Package inference
Class GrpcPredictV2.ModelInferResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.ModelInferResponse.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.Builder>
inference.GrpcPredictV2.ModelInferResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GrpcPredictV2.ModelInferResponseOrBuilder,Cloneable
- Enclosing class:
GrpcPredictV2.ModelInferResponse
public static final class GrpcPredictV2.ModelInferResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.Builder>
implements GrpcPredictV2.ModelInferResponseOrBuilder
Protobuf type
inference.ModelInferResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllOutputs(Iterable<? extends GrpcPredictV2.ModelInferResponse.InferOutputTensor> values) The output tensors holding inference results.addAllRawOutputContents(Iterable<? extends com.google.protobuf.ByteString> values) The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.addOutputs(int index, GrpcPredictV2.ModelInferResponse.InferOutputTensor value) The output tensors holding inference results.addOutputs(int index, GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder builderForValue) The output tensors holding inference results.The output tensors holding inference results.addOutputs(GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder builderForValue) The output tensors holding inference results.The output tensors holding inference results.addOutputsBuilder(int index) The output tensors holding inference results.addRawOutputContents(com.google.protobuf.ByteString value) The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()The id of the inference request if one was specified.The name of the model used for inference.The version of the model used for inference.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The output tensors holding inference results.The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.clone()booleancontainsParameters(String key) Optional inference response parameters.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()The id of the inference request if one was specified.com.google.protobuf.ByteStringThe id of the inference request if one was specified.The name of the model used for inference.com.google.protobuf.ByteStringThe name of the model used for inference.The version of the model used for inference.com.google.protobuf.ByteStringThe version of the model used for inference.Deprecated.getOutputs(int index) The output tensors holding inference results.getOutputsBuilder(int index) The output tensors holding inference results.The output tensors holding inference results.intThe output tensors holding inference results.The output tensors holding inference results.getOutputsOrBuilder(int index) The output tensors holding inference results.The output tensors holding inference results.Deprecated.intOptional inference response parameters.Optional inference response parameters.getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional inference response parameters.Optional inference response parameters.com.google.protobuf.ByteStringgetRawOutputContents(int index) The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.intThe data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.List<com.google.protobuf.ByteString> The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Optional inference response parameters.putParameters(String key, GrpcPredictV2.InferParameter value) Optional inference response parameters.Optional inference response parameters.removeOutputs(int index) The output tensors holding inference results.removeParameters(String key) Optional inference response parameters.The id of the inference request if one was specified.setIdBytes(com.google.protobuf.ByteString value) The id of the inference request if one was specified.setModelName(String value) The name of the model used for inference.setModelNameBytes(com.google.protobuf.ByteString value) The name of the model used for inference.setModelVersion(String value) The version of the model used for inference.setModelVersionBytes(com.google.protobuf.ByteString value) The version of the model used for inference.setOutputs(int index, GrpcPredictV2.ModelInferResponse.InferOutputTensor value) The output tensors holding inference results.setOutputs(int index, GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder builderForValue) The output tensors holding inference results.setRawOutputContents(int index, com.google.protobuf.ByteString value) The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.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.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.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.Builder>
-
setField
public GrpcPredictV2.ModelInferResponse.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.Builder>
-
clearField
public GrpcPredictV2.ModelInferResponse.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.Builder>
-
clearOneof
public GrpcPredictV2.ModelInferResponse.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.Builder>
-
setRepeatedField
public GrpcPredictV2.ModelInferResponse.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.Builder>
-
addRepeatedField
public GrpcPredictV2.ModelInferResponse.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.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.ModelInferResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.Builder>
-
mergeFrom
public GrpcPredictV2.ModelInferResponse.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.Builder>- Throws:
IOException
-
getModelName
The name of the model used for inference.
string model_name = 1;- Specified by:
getModelNamein interfaceGrpcPredictV2.ModelInferResponseOrBuilder- Returns:
- The modelName.
-
getModelNameBytes
public com.google.protobuf.ByteString getModelNameBytes()The name of the model used for inference.
string model_name = 1;- Specified by:
getModelNameBytesin interfaceGrpcPredictV2.ModelInferResponseOrBuilder- Returns:
- The bytes for modelName.
-
setModelName
The name of the model used for inference.
string model_name = 1;- Parameters:
value- The modelName to set.- Returns:
- This builder for chaining.
-
clearModelName
The name of the model used for inference.
string model_name = 1;- Returns:
- This builder for chaining.
-
setModelNameBytes
public GrpcPredictV2.ModelInferResponse.Builder setModelNameBytes(com.google.protobuf.ByteString value) The name of the model used for inference.
string model_name = 1;- Parameters:
value- The bytes for modelName to set.- Returns:
- This builder for chaining.
-
getModelVersion
The version of the model used for inference.
string model_version = 2;- Specified by:
getModelVersionin interfaceGrpcPredictV2.ModelInferResponseOrBuilder- Returns:
- The modelVersion.
-
getModelVersionBytes
public com.google.protobuf.ByteString getModelVersionBytes()The version of the model used for inference.
string model_version = 2;- Specified by:
getModelVersionBytesin interfaceGrpcPredictV2.ModelInferResponseOrBuilder- Returns:
- The bytes for modelVersion.
-
setModelVersion
The version of the model used for inference.
string model_version = 2;- Parameters:
value- The modelVersion to set.- Returns:
- This builder for chaining.
-
clearModelVersion
The version of the model used for inference.
string model_version = 2;- Returns:
- This builder for chaining.
-
setModelVersionBytes
public GrpcPredictV2.ModelInferResponse.Builder setModelVersionBytes(com.google.protobuf.ByteString value) The version of the model used for inference.
string model_version = 2;- Parameters:
value- The bytes for modelVersion to set.- Returns:
- This builder for chaining.
-
getId
The id of the inference request if one was specified.
string id = 3;- Specified by:
getIdin interfaceGrpcPredictV2.ModelInferResponseOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The id of the inference request if one was specified.
string id = 3;- Specified by:
getIdBytesin interfaceGrpcPredictV2.ModelInferResponseOrBuilder- Returns:
- The bytes for id.
-
setId
The id of the inference request if one was specified.
string id = 3;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The id of the inference request if one was specified.
string id = 3;- Returns:
- This builder for chaining.
-
setIdBytes
The id of the inference request if one was specified.
string id = 3;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getParametersCount
public int getParametersCount()Description copied from interface:GrpcPredictV2.ModelInferResponseOrBuilderOptional inference response parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersCountin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
containsParameters
Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
containsParametersin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
getParametersMap
Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersMapin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
getParametersOrDefault
public GrpcPredictV2.InferParameter getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersOrDefaultin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
getParametersOrThrow
Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersOrThrowin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
clearParameters
-
removeParameters
Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4; -
getMutableParameters
Deprecated.Use alternate mutation accessors instead. -
putParameters
public GrpcPredictV2.ModelInferResponse.Builder putParameters(String key, GrpcPredictV2.InferParameter value) Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4; -
putAllParameters
public GrpcPredictV2.ModelInferResponse.Builder putAllParameters(Map<String, GrpcPredictV2.InferParameter> values) Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4; -
putParametersBuilderIfAbsent
Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4; -
getOutputsList
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsListin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
getOutputsCount
public int getOutputsCount()The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsCountin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
getOutputs
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
setOutputs
public GrpcPredictV2.ModelInferResponse.Builder setOutputs(int index, GrpcPredictV2.ModelInferResponse.InferOutputTensor value) The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
setOutputs
public GrpcPredictV2.ModelInferResponse.Builder setOutputs(int index, GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder builderForValue) The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputs
public GrpcPredictV2.ModelInferResponse.Builder addOutputs(GrpcPredictV2.ModelInferResponse.InferOutputTensor value) The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputs
public GrpcPredictV2.ModelInferResponse.Builder addOutputs(int index, GrpcPredictV2.ModelInferResponse.InferOutputTensor value) The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputs
public GrpcPredictV2.ModelInferResponse.Builder addOutputs(GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder builderForValue) The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputs
public GrpcPredictV2.ModelInferResponse.Builder addOutputs(int index, GrpcPredictV2.ModelInferResponse.InferOutputTensor.Builder builderForValue) The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addAllOutputs
public GrpcPredictV2.ModelInferResponse.Builder addAllOutputs(Iterable<? extends GrpcPredictV2.ModelInferResponse.InferOutputTensor> values) The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
clearOutputs
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
removeOutputs
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputsBuilder
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputsOrBuilder
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsOrBuilderin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
getOutputsOrBuilderList
public List<? extends GrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder> getOutputsOrBuilderList()The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsOrBuilderListin interfaceGrpcPredictV2.ModelInferResponseOrBuilder
-
addOutputsBuilder
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputsBuilder
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputsBuilderList
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getRawOutputContentsList
The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Specified by:
getRawOutputContentsListin interfaceGrpcPredictV2.ModelInferResponseOrBuilder- Returns:
- A list containing the rawOutputContents.
-
getRawOutputContentsCount
public int getRawOutputContentsCount()The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Specified by:
getRawOutputContentsCountin interfaceGrpcPredictV2.ModelInferResponseOrBuilder- Returns:
- The count of rawOutputContents.
-
getRawOutputContents
public com.google.protobuf.ByteString getRawOutputContents(int index) The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Specified by:
getRawOutputContentsin interfaceGrpcPredictV2.ModelInferResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The rawOutputContents at the given index.
-
setRawOutputContents
public GrpcPredictV2.ModelInferResponse.Builder setRawOutputContents(int index, com.google.protobuf.ByteString value) The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Parameters:
index- The index to set the value at.value- The rawOutputContents to set.- Returns:
- This builder for chaining.
-
addRawOutputContents
public GrpcPredictV2.ModelInferResponse.Builder addRawOutputContents(com.google.protobuf.ByteString value) The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Parameters:
value- The rawOutputContents to add.- Returns:
- This builder for chaining.
-
addAllRawOutputContents
public GrpcPredictV2.ModelInferResponse.Builder addAllRawOutputContents(Iterable<? extends com.google.protobuf.ByteString> values) The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Parameters:
values- The rawOutputContents to add.- Returns:
- This builder for chaining.
-
clearRawOutputContents
The data contained in an output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final GrpcPredictV2.ModelInferResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.Builder>
-
mergeUnknownFields
public final GrpcPredictV2.ModelInferResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferResponse.Builder>
-