Package inference
Class GrpcService.ModelInferResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GrpcService.ModelInferResponse.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
inference.GrpcService.ModelInferResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GrpcService.ModelInferResponseOrBuilder,Cloneable
- Enclosing class:
GrpcService.ModelInferResponse
public static final class GrpcService.ModelInferResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
implements GrpcService.ModelInferResponseOrBuilder
@@ @@.. cpp:var:: message ModelInferResponse @@ @@ Response message for ModelInfer. @@Protobuf type
inference.ModelInferResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllOutputs(Iterable<? extends GrpcService.ModelInferResponse.InferOutputTensor> values) @@ @@ ..addAllRawOutputContents(Iterable<? extends com.google.protobuf.ByteString> values) @@ @@ ..addOutputs(int index, GrpcService.ModelInferResponse.InferOutputTensor value) @@ @@ ..addOutputs(int index, GrpcService.ModelInferResponse.InferOutputTensor.Builder builderForValue) @@ @@ ..@@ @@ ..addOutputs(GrpcService.ModelInferResponse.InferOutputTensor.Builder builderForValue) @@ @@ ..@@ @@ ..addOutputsBuilder(int index) @@ @@ ..addRawOutputContents(com.google.protobuf.ByteString value) @@ @@ ..addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()@@ ..@@ ..@@ ..clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) @@ @@ ..@@ @@ ..clone()booleancontainsParameters(String key) @@ ..static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()@@ ..com.google.protobuf.ByteString@@ ..@@ ..com.google.protobuf.ByteString@@ ..@@ ..com.google.protobuf.ByteString@@ ..Deprecated.getOutputs(int index) @@ @@ ..getOutputsBuilder(int index) @@ @@ ..@@ @@ ..int@@ @@ ..@@ @@ ..getOutputsOrBuilder(int index) @@ @@ ..@@ @@ ..Deprecated.int@@ ..@@ ..getParametersOrDefault(String key, GrpcService.InferParameter defaultValue) @@ ..@@ ..com.google.protobuf.ByteStringgetRawOutputContents(int index) @@ @@ ..int@@ @@ ..List<com.google.protobuf.ByteString> @@ @@ ..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) @@ ..putParameters(String key, GrpcService.InferParameter value) @@ ..@@ ..removeOutputs(int index) @@ @@ ..removeParameters(String key) @@ ..@@ ..setIdBytes(com.google.protobuf.ByteString value) @@ ..setModelName(String value) @@ ..setModelNameBytes(com.google.protobuf.ByteString value) @@ ..setModelVersion(String value) @@ ..setModelVersionBytes(com.google.protobuf.ByteString value) @@ ..setOutputs(int index, GrpcService.ModelInferResponse.InferOutputTensor value) @@ @@ ..setOutputs(int index, GrpcService.ModelInferResponse.InferOutputTensor.Builder builderForValue) @@ @@ ..setRawOutputContents(int index, com.google.protobuf.ByteString value) @@ @@ ..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<GrpcService.ModelInferResponse.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.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<GrpcService.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<GrpcService.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<GrpcService.ModelInferResponse.Builder>
-
setField
public GrpcService.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<GrpcService.ModelInferResponse.Builder>
-
clearField
public GrpcService.ModelInferResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
-
clearOneof
public GrpcService.ModelInferResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
-
setRepeatedField
public GrpcService.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<GrpcService.ModelInferResponse.Builder>
-
addRepeatedField
public GrpcService.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<GrpcService.ModelInferResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcService.ModelInferResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
-
mergeFrom
public GrpcService.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<GrpcService.ModelInferResponse.Builder>- Throws:
IOException
-
getModelName
@@ .. cpp:var:: string model_name @@ @@ The name of the model used for inference. @@
string model_name = 1;- Specified by:
getModelNamein interfaceGrpcService.ModelInferResponseOrBuilder- Returns:
- The modelName.
-
getModelNameBytes
public com.google.protobuf.ByteString getModelNameBytes()@@ .. cpp:var:: string model_name @@ @@ The name of the model used for inference. @@
string model_name = 1;- Specified by:
getModelNameBytesin interfaceGrpcService.ModelInferResponseOrBuilder- Returns:
- The bytes for modelName.
-
setModelName
@@ .. cpp:var:: string model_name @@ @@ The name of the model used for inference. @@
string model_name = 1;- Parameters:
value- The modelName to set.- Returns:
- This builder for chaining.
-
clearModelName
@@ .. cpp:var:: string model_name @@ @@ The name of the model used for inference. @@
string model_name = 1;- Returns:
- This builder for chaining.
-
setModelNameBytes
public GrpcService.ModelInferResponse.Builder setModelNameBytes(com.google.protobuf.ByteString value) @@ .. cpp:var:: string model_name @@ @@ 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
@@ .. cpp:var:: string model_version @@ @@ The version of the model used for inference. @@
string model_version = 2;- Specified by:
getModelVersionin interfaceGrpcService.ModelInferResponseOrBuilder- Returns:
- The modelVersion.
-
getModelVersionBytes
public com.google.protobuf.ByteString getModelVersionBytes()@@ .. cpp:var:: string model_version @@ @@ The version of the model used for inference. @@
string model_version = 2;- Specified by:
getModelVersionBytesin interfaceGrpcService.ModelInferResponseOrBuilder- Returns:
- The bytes for modelVersion.
-
setModelVersion
@@ .. cpp:var:: string model_version @@ @@ The version of the model used for inference. @@
string model_version = 2;- Parameters:
value- The modelVersion to set.- Returns:
- This builder for chaining.
-
clearModelVersion
@@ .. cpp:var:: string model_version @@ @@ The version of the model used for inference. @@
string model_version = 2;- Returns:
- This builder for chaining.
-
setModelVersionBytes
public GrpcService.ModelInferResponse.Builder setModelVersionBytes(com.google.protobuf.ByteString value) @@ .. cpp:var:: string model_version @@ @@ 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
@@ .. cpp:var:: string id @@ @@ The id of the inference request if one was specified. @@
string id = 3;- Specified by:
getIdin interfaceGrpcService.ModelInferResponseOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()@@ .. cpp:var:: string id @@ @@ The id of the inference request if one was specified. @@
string id = 3;- Specified by:
getIdBytesin interfaceGrpcService.ModelInferResponseOrBuilder- Returns:
- The bytes for id.
-
setId
@@ .. cpp:var:: string id @@ @@ 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
@@ .. cpp:var:: string id @@ @@ The id of the inference request if one was specified. @@
string id = 3;- Returns:
- This builder for chaining.
-
setIdBytes
@@ .. cpp:var:: string id @@ @@ 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:GrpcService.ModelInferResponseOrBuilder@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional inference response parameters. @@
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersCountin interfaceGrpcService.ModelInferResponseOrBuilder
-
containsParameters
@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional inference response parameters. @@
map<string, .inference.InferParameter> parameters = 4;- Specified by:
containsParametersin interfaceGrpcService.ModelInferResponseOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceGrpcService.ModelInferResponseOrBuilder
-
getParametersMap
@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional inference response parameters. @@
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersMapin interfaceGrpcService.ModelInferResponseOrBuilder
-
getParametersOrDefault
public GrpcService.InferParameter getParametersOrDefault(String key, GrpcService.InferParameter defaultValue) @@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional inference response parameters. @@
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersOrDefaultin interfaceGrpcService.ModelInferResponseOrBuilder
-
getParametersOrThrow
@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional inference response parameters. @@
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersOrThrowin interfaceGrpcService.ModelInferResponseOrBuilder
-
clearParameters
-
removeParameters
@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional inference response parameters. @@
map<string, .inference.InferParameter> parameters = 4; -
getMutableParameters
Deprecated.Use alternate mutation accessors instead. -
putParameters
public GrpcService.ModelInferResponse.Builder putParameters(String key, GrpcService.InferParameter value) @@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional inference response parameters. @@
map<string, .inference.InferParameter> parameters = 4; -
putAllParameters
public GrpcService.ModelInferResponse.Builder putAllParameters(Map<String, GrpcService.InferParameter> values) @@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional inference response parameters. @@
map<string, .inference.InferParameter> parameters = 4; -
putParametersBuilderIfAbsent
@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional inference response parameters. @@
map<string, .inference.InferParameter> parameters = 4; -
getOutputsList
@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsListin interfaceGrpcService.ModelInferResponseOrBuilder
-
getOutputsCount
public int getOutputsCount()@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsCountin interfaceGrpcService.ModelInferResponseOrBuilder
-
getOutputs
@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsin interfaceGrpcService.ModelInferResponseOrBuilder
-
setOutputs
public GrpcService.ModelInferResponse.Builder setOutputs(int index, GrpcService.ModelInferResponse.InferOutputTensor value) @@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
setOutputs
public GrpcService.ModelInferResponse.Builder setOutputs(int index, GrpcService.ModelInferResponse.InferOutputTensor.Builder builderForValue) @@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputs
public GrpcService.ModelInferResponse.Builder addOutputs(GrpcService.ModelInferResponse.InferOutputTensor value) @@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputs
public GrpcService.ModelInferResponse.Builder addOutputs(int index, GrpcService.ModelInferResponse.InferOutputTensor value) @@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputs
public GrpcService.ModelInferResponse.Builder addOutputs(GrpcService.ModelInferResponse.InferOutputTensor.Builder builderForValue) @@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputs
public GrpcService.ModelInferResponse.Builder addOutputs(int index, GrpcService.ModelInferResponse.InferOutputTensor.Builder builderForValue) @@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addAllOutputs
public GrpcService.ModelInferResponse.Builder addAllOutputs(Iterable<? extends GrpcService.ModelInferResponse.InferOutputTensor> values) @@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
clearOutputs
@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
removeOutputs
@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputsBuilder
@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputsOrBuilder
@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsOrBuilderin interfaceGrpcService.ModelInferResponseOrBuilder
-
getOutputsOrBuilderList
public List<? extends GrpcService.ModelInferResponse.InferOutputTensorOrBuilder> getOutputsOrBuilderList()@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;- Specified by:
getOutputsOrBuilderListin interfaceGrpcService.ModelInferResponseOrBuilder
-
addOutputsBuilder
@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
addOutputsBuilder
@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputsBuilderList
@@ @@ .. cpp:var:: InferOutputTensor outputs (repeated) @@ @@ The output tensors holding inference results. @@
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getRawOutputContentsList
@@ @@ .. cpp:var:: bytes raw_output_contents @@ @@ 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. Using the "raw" bytes form will @@ typically allow higher performance due to the way protobuf @@ allocation and reuse interacts with GRPC. For example, see @@ https://github.com/grpc/grpc/issues/23231. @@ @@ 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 interfaceGrpcService.ModelInferResponseOrBuilder- Returns:
- A list containing the rawOutputContents.
-
getRawOutputContentsCount
public int getRawOutputContentsCount()@@ @@ .. cpp:var:: bytes raw_output_contents @@ @@ 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. Using the "raw" bytes form will @@ typically allow higher performance due to the way protobuf @@ allocation and reuse interacts with GRPC. For example, see @@ https://github.com/grpc/grpc/issues/23231. @@ @@ 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 interfaceGrpcService.ModelInferResponseOrBuilder- Returns:
- The count of rawOutputContents.
-
getRawOutputContents
public com.google.protobuf.ByteString getRawOutputContents(int index) @@ @@ .. cpp:var:: bytes raw_output_contents @@ @@ 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. Using the "raw" bytes form will @@ typically allow higher performance due to the way protobuf @@ allocation and reuse interacts with GRPC. For example, see @@ https://github.com/grpc/grpc/issues/23231. @@ @@ 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 interfaceGrpcService.ModelInferResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The rawOutputContents at the given index.
-
setRawOutputContents
public GrpcService.ModelInferResponse.Builder setRawOutputContents(int index, com.google.protobuf.ByteString value) @@ @@ .. cpp:var:: bytes raw_output_contents @@ @@ 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. Using the "raw" bytes form will @@ typically allow higher performance due to the way protobuf @@ allocation and reuse interacts with GRPC. For example, see @@ https://github.com/grpc/grpc/issues/23231. @@ @@ 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 GrpcService.ModelInferResponse.Builder addRawOutputContents(com.google.protobuf.ByteString value) @@ @@ .. cpp:var:: bytes raw_output_contents @@ @@ 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. Using the "raw" bytes form will @@ typically allow higher performance due to the way protobuf @@ allocation and reuse interacts with GRPC. For example, see @@ https://github.com/grpc/grpc/issues/23231. @@ @@ 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 GrpcService.ModelInferResponse.Builder addAllRawOutputContents(Iterable<? extends com.google.protobuf.ByteString> values) @@ @@ .. cpp:var:: bytes raw_output_contents @@ @@ 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. Using the "raw" bytes form will @@ typically allow higher performance due to the way protobuf @@ allocation and reuse interacts with GRPC. For example, see @@ https://github.com/grpc/grpc/issues/23231. @@ @@ 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
@@ @@ .. cpp:var:: bytes raw_output_contents @@ @@ 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. Using the "raw" bytes form will @@ typically allow higher performance due to the way protobuf @@ allocation and reuse interacts with GRPC. For example, see @@ https://github.com/grpc/grpc/issues/23231. @@ @@ 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 GrpcService.ModelInferResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
-
mergeUnknownFields
public final GrpcService.ModelInferResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
-