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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • getDefaultInstanceForType

      public GrpcService.ModelInferResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GrpcService.ModelInferResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • setField

      public GrpcService.ModelInferResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • clearField

      public GrpcService.ModelInferResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • clearOneof

      public GrpcService.ModelInferResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • addRepeatedField

      public GrpcService.ModelInferResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • mergeFrom

      public GrpcService.ModelInferResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GrpcService.ModelInferResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GrpcService.ModelInferResponse.Builder>
      Throws:
      IOException
    • getModelName

      public String getModelName()
      @@  .. cpp:var:: string model_name
      @@
      @@     The name of the model used for inference.
      @@
       
      string model_name = 1;
      Specified by:
      getModelName in interface GrpcService.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:
      getModelNameBytes in interface GrpcService.ModelInferResponseOrBuilder
      Returns:
      The bytes for modelName.
    • setModelName

      public GrpcService.ModelInferResponse.Builder setModelName(String value)
      @@  .. 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

      public GrpcService.ModelInferResponse.Builder 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

      public String getModelVersion()
      @@  .. cpp:var:: string model_version
      @@
      @@     The version of the model used for inference.
      @@
       
      string model_version = 2;
      Specified by:
      getModelVersion in interface GrpcService.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:
      getModelVersionBytes in interface GrpcService.ModelInferResponseOrBuilder
      Returns:
      The bytes for modelVersion.
    • setModelVersion

      public GrpcService.ModelInferResponse.Builder setModelVersion(String value)
      @@  .. 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

      public GrpcService.ModelInferResponse.Builder 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

      public String getId()
      @@  .. cpp:var:: string id
      @@
      @@     The id of the inference request if one was specified.
      @@
       
      string id = 3;
      Specified by:
      getId in interface GrpcService.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:
      getIdBytes in interface GrpcService.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

      public GrpcService.ModelInferResponse.Builder setIdBytes(com.google.protobuf.ByteString value)
      @@  .. 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:
      getParametersCount in interface GrpcService.ModelInferResponseOrBuilder
    • containsParameters

      public boolean containsParameters(String key)
      @@  .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@     Optional inference response parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
      Specified by:
      containsParameters in interface GrpcService.ModelInferResponseOrBuilder
    • getParameters

      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface GrpcService.ModelInferResponseOrBuilder
    • getParametersMap

      public Map<String,GrpcService.InferParameter> getParametersMap()
      @@  .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@     Optional inference response parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
      Specified by:
      getParametersMap in interface GrpcService.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:
      getParametersOrDefault in interface GrpcService.ModelInferResponseOrBuilder
    • getParametersOrThrow

      public GrpcService.InferParameter getParametersOrThrow(String key)
      @@  .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@     Optional inference response parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
      Specified by:
      getParametersOrThrow in interface GrpcService.ModelInferResponseOrBuilder
    • clearParameters

      public GrpcService.ModelInferResponse.Builder clearParameters()
    • removeParameters

      public GrpcService.ModelInferResponse.Builder removeParameters(String key)
      @@  .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@     Optional inference response parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
    • getMutableParameters

      @Deprecated public Map<String,GrpcService.InferParameter> getMutableParameters()
      Deprecated.
      Use alternate mutation accessors instead.
    • putParameters

      @@  .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@     Optional inference response parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
    • putAllParameters

      @@  .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@     Optional inference response parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
    • putParametersBuilderIfAbsent

      public GrpcService.InferParameter.Builder putParametersBuilderIfAbsent(String key)
      @@  .. 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:
      getOutputsList in interface GrpcService.ModelInferResponseOrBuilder
    • getOutputsCount

      public int getOutputsCount()
      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
      Specified by:
      getOutputsCount in interface GrpcService.ModelInferResponseOrBuilder
    • getOutputs

      public GrpcService.ModelInferResponse.InferOutputTensor getOutputs(int index)
      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
      Specified by:
      getOutputs in interface GrpcService.ModelInferResponseOrBuilder
    • setOutputs

      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
    • setOutputs

      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
    • addOutputs

      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
    • addOutputs

      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
    • addOutputs

      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
    • addOutputs

      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
    • addAllOutputs

      @@
      @@  .. 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

      public GrpcService.ModelInferResponse.Builder removeOutputs(int index)
      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
    • getOutputsBuilder

      public GrpcService.ModelInferResponse.InferOutputTensor.Builder getOutputsBuilder(int index)
      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
    • getOutputsOrBuilder

      public GrpcService.ModelInferResponse.InferOutputTensorOrBuilder getOutputsOrBuilder(int index)
      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
      Specified by:
      getOutputsOrBuilder in interface GrpcService.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:
      getOutputsOrBuilderList in interface GrpcService.ModelInferResponseOrBuilder
    • addOutputsBuilder

      @@
      @@  .. cpp:var:: InferOutputTensor outputs (repeated)
      @@
      @@     The output tensors holding inference results.
      @@
       
      repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5;
    • addOutputsBuilder

      public GrpcService.ModelInferResponse.InferOutputTensor.Builder addOutputsBuilder(int index)
      @@
      @@  .. 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

      public List<com.google.protobuf.ByteString> 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:
      getRawOutputContentsList in interface GrpcService.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:
      getRawOutputContentsCount in interface GrpcService.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:
      getRawOutputContents in interface GrpcService.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

      public GrpcService.ModelInferResponse.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>
    • mergeUnknownFields

      public final GrpcService.ModelInferResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.ModelInferResponse.Builder>