Package inference
Class GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
inference.GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder,Cloneable
- Enclosing class:
GrpcPredictV2.ModelInferResponse.InferOutputTensor
public static final class GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
implements GrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder
An output tensor returned for an inference request.Protobuf type
inference.ModelInferResponse.InferOutputTensor-
Method Summary
Modifier and TypeMethodDescriptionaddAllShape(Iterable<? extends Long> values) The tensor shape.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addShape(long value) The tensor shape.build()clear()The tensor contents using a data-type format.The tensor data type.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The tensor name.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The tensor shape.clone()booleancontainsParameters(String key) Optional output tensor parameters.The tensor contents using a data-type format.The tensor contents using a data-type format.The tensor contents using a data-type format.The tensor data type.com.google.protobuf.ByteStringThe tensor data type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.getName()The tensor name.com.google.protobuf.ByteStringThe tensor name.Deprecated.intOptional output tensor parameters.Optional output tensor parameters.getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional output tensor parameters.Optional output tensor parameters.longgetShape(int index) The tensor shape.intThe tensor shape.The tensor shape.booleanThe tensor contents using a data-type format.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanThe tensor contents using a data-type format.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Optional output tensor parameters.putParameters(String key, GrpcPredictV2.InferParameter value) Optional output tensor parameters.Optional output tensor parameters.removeParameters(String key) Optional output tensor parameters.The tensor contents using a data-type format.setContents(GrpcPredictV2.InferTensorContents.Builder builderForValue) The tensor contents using a data-type format.setDatatype(String value) The tensor data type.setDatatypeBytes(com.google.protobuf.ByteString value) The tensor data type.The tensor name.setNameBytes(com.google.protobuf.ByteString value) The tensor name.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setShape(int index, long value) The tensor shape.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
setField
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
clearField
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
clearOneof
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
setRepeatedField
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
addRepeatedField
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
mergeFrom
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
mergeFrom
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>- Throws:
IOException
-
getName
The tensor name.
string name = 1;- Specified by:
getNamein interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The tensor name.
string name = 1;- Specified by:
getNameBytesin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder- Returns:
- The bytes for name.
-
setName
The tensor name.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The tensor name.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder setNameBytes(com.google.protobuf.ByteString value) The tensor name.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDatatype
The tensor data type.
string datatype = 2;- Specified by:
getDatatypein interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder- Returns:
- The datatype.
-
getDatatypeBytes
public com.google.protobuf.ByteString getDatatypeBytes()The tensor data type.
string datatype = 2;- Specified by:
getDatatypeBytesin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder- Returns:
- The bytes for datatype.
-
setDatatype
The tensor data type.
string datatype = 2;- Parameters:
value- The datatype to set.- Returns:
- This builder for chaining.
-
clearDatatype
The tensor data type.
string datatype = 2;- Returns:
- This builder for chaining.
-
setDatatypeBytes
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder setDatatypeBytes(com.google.protobuf.ByteString value) The tensor data type.
string datatype = 2;- Parameters:
value- The bytes for datatype to set.- Returns:
- This builder for chaining.
-
getShapeList
The tensor shape.
repeated int64 shape = 3;- Specified by:
getShapeListin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder- Returns:
- A list containing the shape.
-
getShapeCount
public int getShapeCount()The tensor shape.
repeated int64 shape = 3;- Specified by:
getShapeCountin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder- Returns:
- The count of shape.
-
getShape
public long getShape(int index) The tensor shape.
repeated int64 shape = 3;- Specified by:
getShapein interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The shape at the given index.
-
setShape
The tensor shape.
repeated int64 shape = 3;- Parameters:
index- The index to set the value at.value- The shape to set.- Returns:
- This builder for chaining.
-
addShape
The tensor shape.
repeated int64 shape = 3;- Parameters:
value- The shape to add.- Returns:
- This builder for chaining.
-
addAllShape
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder addAllShape(Iterable<? extends Long> values) The tensor shape.
repeated int64 shape = 3;- Parameters:
values- The shape to add.- Returns:
- This builder for chaining.
-
clearShape
The tensor shape.
repeated int64 shape = 3;- Returns:
- This builder for chaining.
-
getParametersCount
public int getParametersCount()Description copied from interface:GrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilderOptional output tensor parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersCountin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder
-
containsParameters
Optional output tensor parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
containsParametersin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder
-
getParametersMap
Optional output tensor parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersMapin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder
-
getParametersOrDefault
public GrpcPredictV2.InferParameter getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional output tensor parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersOrDefaultin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder
-
getParametersOrThrow
Optional output tensor parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersOrThrowin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder
-
clearParameters
-
removeParameters
Optional output tensor parameters.
map<string, .inference.InferParameter> parameters = 4; -
getMutableParameters
Deprecated.Use alternate mutation accessors instead. -
putParameters
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder putParameters(String key, GrpcPredictV2.InferParameter value) Optional output tensor parameters.
map<string, .inference.InferParameter> parameters = 4; -
putAllParameters
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder putAllParameters(Map<String, GrpcPredictV2.InferParameter> values) Optional output tensor parameters.
map<string, .inference.InferParameter> parameters = 4; -
putParametersBuilderIfAbsent
Optional output tensor parameters.
map<string, .inference.InferParameter> parameters = 4; -
hasContents
public boolean hasContents()The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference response.
.inference.InferTensorContents contents = 5;- Specified by:
hasContentsin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder- Returns:
- Whether the contents field is set.
-
getContents
The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference response.
.inference.InferTensorContents contents = 5;- Specified by:
getContentsin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder- Returns:
- The contents.
-
setContents
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder setContents(GrpcPredictV2.InferTensorContents value) The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference response.
.inference.InferTensorContents contents = 5; -
setContents
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder setContents(GrpcPredictV2.InferTensorContents.Builder builderForValue) The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference response.
.inference.InferTensorContents contents = 5; -
mergeContents
public GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder mergeContents(GrpcPredictV2.InferTensorContents value) The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference response.
.inference.InferTensorContents contents = 5; -
clearContents
The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference response.
.inference.InferTensorContents contents = 5; -
getContentsBuilder
The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference response.
.inference.InferTensorContents contents = 5; -
getContentsOrBuilder
The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference response.
.inference.InferTensorContents contents = 5;- Specified by:
getContentsOrBuilderin interfaceGrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder
-
setUnknownFields
public final GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-
mergeUnknownFields
public final GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder>
-