Package inference

Class ModelConfigOuterClass.ModelOutput.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ModelConfigOuterClass.ModelOutput.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelOutput.Builder>
inference.ModelConfigOuterClass.ModelOutput.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ModelConfigOuterClass.ModelOutputOrBuilder, Cloneable
Enclosing class:
ModelConfigOuterClass.ModelOutput

public static final class ModelConfigOuterClass.ModelOutput.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelOutput.Builder> implements ModelConfigOuterClass.ModelOutputOrBuilder
@@
@@.. cpp:var:: message ModelOutput
@@
@@   An output produced by the model.
@@
 
Protobuf type inference.ModelOutput
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>
    • getDefaultInstanceForType

      public ModelConfigOuterClass.ModelOutput 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 ModelConfigOuterClass.ModelOutput 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<ModelConfigOuterClass.ModelOutput.Builder>
    • setField

      public ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>
    • clearField

      public ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>
    • clearOneof

      public ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>
    • setRepeatedField

      public ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>
    • addRepeatedField

      public ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>
    • mergeFrom

      public ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>
    • mergeFrom

      public ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>
      Throws:
      IOException
    • getName

      public String getName()
      @@  .. cpp:var:: string name
      @@
      @@     The name of the output.
      @@
       
      string name = 1;
      Specified by:
      getName in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      @@  .. cpp:var:: string name
      @@
      @@     The name of the output.
      @@
       
      string name = 1;
      Specified by:
      getNameBytes in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The bytes for name.
    • setName

      @@  .. cpp:var:: string name
      @@
      @@     The name of the output.
      @@
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      @@  .. cpp:var:: string name
      @@
      @@     The name of the output.
      @@
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ModelConfigOuterClass.ModelOutput.Builder setNameBytes(com.google.protobuf.ByteString value)
      @@  .. cpp:var:: string name
      @@
      @@     The name of the output.
      @@
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDataTypeValue

      public int getDataTypeValue()
      @@  .. cpp:var:: DataType data_type
      @@
      @@     The data-type of the output.
      @@
       
      .inference.DataType data_type = 2;
      Specified by:
      getDataTypeValue in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The enum numeric value on the wire for dataType.
    • setDataTypeValue

      public ModelConfigOuterClass.ModelOutput.Builder setDataTypeValue(int value)
      @@  .. cpp:var:: DataType data_type
      @@
      @@     The data-type of the output.
      @@
       
      .inference.DataType data_type = 2;
      Parameters:
      value - The enum numeric value on the wire for dataType to set.
      Returns:
      This builder for chaining.
    • getDataType

      public ModelConfigOuterClass.DataType getDataType()
      @@  .. cpp:var:: DataType data_type
      @@
      @@     The data-type of the output.
      @@
       
      .inference.DataType data_type = 2;
      Specified by:
      getDataType in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The dataType.
    • setDataType

      @@  .. cpp:var:: DataType data_type
      @@
      @@     The data-type of the output.
      @@
       
      .inference.DataType data_type = 2;
      Parameters:
      value - The dataType to set.
      Returns:
      This builder for chaining.
    • clearDataType

      @@  .. cpp:var:: DataType data_type
      @@
      @@     The data-type of the output.
      @@
       
      .inference.DataType data_type = 2;
      Returns:
      This builder for chaining.
    • getDimsList

      public List<Long> getDimsList()
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Specified by:
      getDimsList in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      A list containing the dims.
    • getDimsCount

      public int getDimsCount()
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Specified by:
      getDimsCount in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The count of dims.
    • getDims

      public long getDims(int index)
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Specified by:
      getDims in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dims at the given index.
    • setDims

      public ModelConfigOuterClass.ModelOutput.Builder setDims(int index, long value)
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Parameters:
      index - The index to set the value at.
      value - The dims to set.
      Returns:
      This builder for chaining.
    • addDims

      public ModelConfigOuterClass.ModelOutput.Builder addDims(long value)
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Parameters:
      value - The dims to add.
      Returns:
      This builder for chaining.
    • addAllDims

      public ModelConfigOuterClass.ModelOutput.Builder addAllDims(Iterable<? extends Long> values)
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Parameters:
      values - The dims to add.
      Returns:
      This builder for chaining.
    • clearDims

      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Returns:
      This builder for chaining.
    • hasReshape

      public boolean hasReshape()
      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape produced for this output by the backend. The output will
      @@     be reshaped from this to the shape specified in 'dims' before being
      @@     returned in the inference response. The reshape must have the same
      @@     number of elements as the output shape specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
      Specified by:
      hasReshape in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      Whether the reshape field is set.
    • getReshape

      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape produced for this output by the backend. The output will
      @@     be reshaped from this to the shape specified in 'dims' before being
      @@     returned in the inference response. The reshape must have the same
      @@     number of elements as the output shape specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
      Specified by:
      getReshape in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The reshape.
    • setReshape

      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape produced for this output by the backend. The output will
      @@     be reshaped from this to the shape specified in 'dims' before being
      @@     returned in the inference response. The reshape must have the same
      @@     number of elements as the output shape specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
    • setReshape

      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape produced for this output by the backend. The output will
      @@     be reshaped from this to the shape specified in 'dims' before being
      @@     returned in the inference response. The reshape must have the same
      @@     number of elements as the output shape specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
    • mergeReshape

      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape produced for this output by the backend. The output will
      @@     be reshaped from this to the shape specified in 'dims' before being
      @@     returned in the inference response. The reshape must have the same
      @@     number of elements as the output shape specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
    • clearReshape

      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape produced for this output by the backend. The output will
      @@     be reshaped from this to the shape specified in 'dims' before being
      @@     returned in the inference response. The reshape must have the same
      @@     number of elements as the output shape specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
    • getReshapeBuilder

      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape produced for this output by the backend. The output will
      @@     be reshaped from this to the shape specified in 'dims' before being
      @@     returned in the inference response. The reshape must have the same
      @@     number of elements as the output shape specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
    • getReshapeOrBuilder

      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape produced for this output by the backend. The output will
      @@     be reshaped from this to the shape specified in 'dims' before being
      @@     returned in the inference response. The reshape must have the same
      @@     number of elements as the output shape specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
      Specified by:
      getReshapeOrBuilder in interface ModelConfigOuterClass.ModelOutputOrBuilder
    • getLabelFilename

      public String getLabelFilename()
      @@  .. cpp:var:: string label_filename
      @@
      @@     The label file associated with this output. Should be specified only
      @@     for outputs that represent classifications. Optional.
      @@
       
      string label_filename = 4;
      Specified by:
      getLabelFilename in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The labelFilename.
    • getLabelFilenameBytes

      public com.google.protobuf.ByteString getLabelFilenameBytes()
      @@  .. cpp:var:: string label_filename
      @@
      @@     The label file associated with this output. Should be specified only
      @@     for outputs that represent classifications. Optional.
      @@
       
      string label_filename = 4;
      Specified by:
      getLabelFilenameBytes in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The bytes for labelFilename.
    • setLabelFilename

      public ModelConfigOuterClass.ModelOutput.Builder setLabelFilename(String value)
      @@  .. cpp:var:: string label_filename
      @@
      @@     The label file associated with this output. Should be specified only
      @@     for outputs that represent classifications. Optional.
      @@
       
      string label_filename = 4;
      Parameters:
      value - The labelFilename to set.
      Returns:
      This builder for chaining.
    • clearLabelFilename

      public ModelConfigOuterClass.ModelOutput.Builder clearLabelFilename()
      @@  .. cpp:var:: string label_filename
      @@
      @@     The label file associated with this output. Should be specified only
      @@     for outputs that represent classifications. Optional.
      @@
       
      string label_filename = 4;
      Returns:
      This builder for chaining.
    • setLabelFilenameBytes

      public ModelConfigOuterClass.ModelOutput.Builder setLabelFilenameBytes(com.google.protobuf.ByteString value)
      @@  .. cpp:var:: string label_filename
      @@
      @@     The label file associated with this output. Should be specified only
      @@     for outputs that represent classifications. Optional.
      @@
       
      string label_filename = 4;
      Parameters:
      value - The bytes for labelFilename to set.
      Returns:
      This builder for chaining.
    • getIsShapeTensor

      public boolean getIsShapeTensor()
      @@  .. cpp:var:: bool is_shape_tensor
      @@
      @@     Whether or not the output is a shape tensor to the model. This field
      @@     is currently supported only for the TensorRT model. An error will be
      @@     generated if this specification does not comply with underlying
      @@     model.
      @@
       
      bool is_shape_tensor = 6;
      Specified by:
      getIsShapeTensor in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The isShapeTensor.
    • setIsShapeTensor

      public ModelConfigOuterClass.ModelOutput.Builder setIsShapeTensor(boolean value)
      @@  .. cpp:var:: bool is_shape_tensor
      @@
      @@     Whether or not the output is a shape tensor to the model. This field
      @@     is currently supported only for the TensorRT model. An error will be
      @@     generated if this specification does not comply with underlying
      @@     model.
      @@
       
      bool is_shape_tensor = 6;
      Parameters:
      value - The isShapeTensor to set.
      Returns:
      This builder for chaining.
    • clearIsShapeTensor

      public ModelConfigOuterClass.ModelOutput.Builder clearIsShapeTensor()
      @@  .. cpp:var:: bool is_shape_tensor
      @@
      @@     Whether or not the output is a shape tensor to the model. This field
      @@     is currently supported only for the TensorRT model. An error will be
      @@     generated if this specification does not comply with underlying
      @@     model.
      @@
       
      bool is_shape_tensor = 6;
      Returns:
      This builder for chaining.
    • getIsNonLinearFormatIo

      public boolean getIsNonLinearFormatIo()
      @@  .. cpp:var:: bool is_non_linear_format_io
      @@
      @@     Indicates whether the output tensor uses a non-linear IO format. This
      @@     field is currently supported only for TensorRT models. An error will
      @@     be generated if this specification does not comply with the
      @@     underlying model.
      @@
       
      bool is_non_linear_format_io = 7;
      Specified by:
      getIsNonLinearFormatIo in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The isNonLinearFormatIo.
    • setIsNonLinearFormatIo

      public ModelConfigOuterClass.ModelOutput.Builder setIsNonLinearFormatIo(boolean value)
      @@  .. cpp:var:: bool is_non_linear_format_io
      @@
      @@     Indicates whether the output tensor uses a non-linear IO format. This
      @@     field is currently supported only for TensorRT models. An error will
      @@     be generated if this specification does not comply with the
      @@     underlying model.
      @@
       
      bool is_non_linear_format_io = 7;
      Parameters:
      value - The isNonLinearFormatIo to set.
      Returns:
      This builder for chaining.
    • clearIsNonLinearFormatIo

      public ModelConfigOuterClass.ModelOutput.Builder clearIsNonLinearFormatIo()
      @@  .. cpp:var:: bool is_non_linear_format_io
      @@
      @@     Indicates whether the output tensor uses a non-linear IO format. This
      @@     field is currently supported only for TensorRT models. An error will
      @@     be generated if this specification does not comply with the
      @@     underlying model.
      @@
       
      bool is_non_linear_format_io = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>
    • mergeUnknownFields

      public final ModelConfigOuterClass.ModelOutput.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<ModelConfigOuterClass.ModelOutput.Builder>