Package inference

Class ModelConfigOuterClass.BatchInput.Builder

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

public static final class ModelConfigOuterClass.BatchInput.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.BatchInput.Builder> implements ModelConfigOuterClass.BatchInputOrBuilder
@@  .. cpp:var:: message BatchInput
@@
@@     A batch input is an additional input that must be added by
@@     the backend based on all the requests in a batch.
@@
 
Protobuf type inference.BatchInput
  • 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.BatchInput.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.BatchInput.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.BatchInput.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public int getKindValue()
      @@    .. cpp:var:: Kind kind
      @@
      @@       The kind of this batch input.
      @@
       
      .inference.BatchInput.Kind kind = 1;
      Specified by:
      getKindValue in interface ModelConfigOuterClass.BatchInputOrBuilder
      Returns:
      The enum numeric value on the wire for kind.
    • setKindValue

      public ModelConfigOuterClass.BatchInput.Builder setKindValue(int value)
      @@    .. cpp:var:: Kind kind
      @@
      @@       The kind of this batch input.
      @@
       
      .inference.BatchInput.Kind kind = 1;
      Parameters:
      value - The enum numeric value on the wire for kind to set.
      Returns:
      This builder for chaining.
    • getKind

      @@    .. cpp:var:: Kind kind
      @@
      @@       The kind of this batch input.
      @@
       
      .inference.BatchInput.Kind kind = 1;
      Specified by:
      getKind in interface ModelConfigOuterClass.BatchInputOrBuilder
      Returns:
      The kind.
    • setKind

      @@    .. cpp:var:: Kind kind
      @@
      @@       The kind of this batch input.
      @@
       
      .inference.BatchInput.Kind kind = 1;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      @@    .. cpp:var:: Kind kind
      @@
      @@       The kind of this batch input.
      @@
       
      .inference.BatchInput.Kind kind = 1;
      Returns:
      This builder for chaining.
    • getTargetNameList

      public com.google.protobuf.ProtocolStringList getTargetNameList()
      @@    .. cpp:var:: string target_name (repeated)
      @@
      @@       The name of the model inputs that the backend will create
      @@       for this batch input.
      @@
       
      repeated string target_name = 2;
      Specified by:
      getTargetNameList in interface ModelConfigOuterClass.BatchInputOrBuilder
      Returns:
      A list containing the targetName.
    • getTargetNameCount

      public int getTargetNameCount()
      @@    .. cpp:var:: string target_name (repeated)
      @@
      @@       The name of the model inputs that the backend will create
      @@       for this batch input.
      @@
       
      repeated string target_name = 2;
      Specified by:
      getTargetNameCount in interface ModelConfigOuterClass.BatchInputOrBuilder
      Returns:
      The count of targetName.
    • getTargetName

      public String getTargetName(int index)
      @@    .. cpp:var:: string target_name (repeated)
      @@
      @@       The name of the model inputs that the backend will create
      @@       for this batch input.
      @@
       
      repeated string target_name = 2;
      Specified by:
      getTargetName in interface ModelConfigOuterClass.BatchInputOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targetName at the given index.
    • getTargetNameBytes

      public com.google.protobuf.ByteString getTargetNameBytes(int index)
      @@    .. cpp:var:: string target_name (repeated)
      @@
      @@       The name of the model inputs that the backend will create
      @@       for this batch input.
      @@
       
      repeated string target_name = 2;
      Specified by:
      getTargetNameBytes in interface ModelConfigOuterClass.BatchInputOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetName at the given index.
    • setTargetName

      public ModelConfigOuterClass.BatchInput.Builder setTargetName(int index, String value)
      @@    .. cpp:var:: string target_name (repeated)
      @@
      @@       The name of the model inputs that the backend will create
      @@       for this batch input.
      @@
       
      repeated string target_name = 2;
      Parameters:
      index - The index to set the value at.
      value - The targetName to set.
      Returns:
      This builder for chaining.
    • addTargetName

      public ModelConfigOuterClass.BatchInput.Builder addTargetName(String value)
      @@    .. cpp:var:: string target_name (repeated)
      @@
      @@       The name of the model inputs that the backend will create
      @@       for this batch input.
      @@
       
      repeated string target_name = 2;
      Parameters:
      value - The targetName to add.
      Returns:
      This builder for chaining.
    • addAllTargetName

      public ModelConfigOuterClass.BatchInput.Builder addAllTargetName(Iterable<String> values)
      @@    .. cpp:var:: string target_name (repeated)
      @@
      @@       The name of the model inputs that the backend will create
      @@       for this batch input.
      @@
       
      repeated string target_name = 2;
      Parameters:
      values - The targetName to add.
      Returns:
      This builder for chaining.
    • clearTargetName

      public ModelConfigOuterClass.BatchInput.Builder clearTargetName()
      @@    .. cpp:var:: string target_name (repeated)
      @@
      @@       The name of the model inputs that the backend will create
      @@       for this batch input.
      @@
       
      repeated string target_name = 2;
      Returns:
      This builder for chaining.
    • addTargetNameBytes

      public ModelConfigOuterClass.BatchInput.Builder addTargetNameBytes(com.google.protobuf.ByteString value)
      @@    .. cpp:var:: string target_name (repeated)
      @@
      @@       The name of the model inputs that the backend will create
      @@       for this batch input.
      @@
       
      repeated string target_name = 2;
      Parameters:
      value - The bytes of the targetName to add.
      Returns:
      This builder for chaining.
    • getDataTypeValue

      public int getDataTypeValue()
      @@    .. cpp:var:: DataType data_type
      @@
      @@       The input's datatype. The data type can be TYPE_INT32 or
      @@       TYPE_FP32.
      @@
       
      .inference.DataType data_type = 3;
      Specified by:
      getDataTypeValue in interface ModelConfigOuterClass.BatchInputOrBuilder
      Returns:
      The enum numeric value on the wire for dataType.
    • setDataTypeValue

      public ModelConfigOuterClass.BatchInput.Builder setDataTypeValue(int value)
      @@    .. cpp:var:: DataType data_type
      @@
      @@       The input's datatype. The data type can be TYPE_INT32 or
      @@       TYPE_FP32.
      @@
       
      .inference.DataType data_type = 3;
      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 input's datatype. The data type can be TYPE_INT32 or
      @@       TYPE_FP32.
      @@
       
      .inference.DataType data_type = 3;
      Specified by:
      getDataType in interface ModelConfigOuterClass.BatchInputOrBuilder
      Returns:
      The dataType.
    • setDataType

      @@    .. cpp:var:: DataType data_type
      @@
      @@       The input's datatype. The data type can be TYPE_INT32 or
      @@       TYPE_FP32.
      @@
       
      .inference.DataType data_type = 3;
      Parameters:
      value - The dataType to set.
      Returns:
      This builder for chaining.
    • clearDataType

      @@    .. cpp:var:: DataType data_type
      @@
      @@       The input's datatype. The data type can be TYPE_INT32 or
      @@       TYPE_FP32.
      @@
       
      .inference.DataType data_type = 3;
      Returns:
      This builder for chaining.
    • getSourceInputList

      public com.google.protobuf.ProtocolStringList getSourceInputList()
      @@    .. cpp:var:: string source_input (repeated)
      @@
      @@       The backend derives the value for each batch input from one or
      @@       more other inputs. 'source_input' gives the names of those
      @@       inputs.
      @@
       
      repeated string source_input = 4;
      Specified by:
      getSourceInputList in interface ModelConfigOuterClass.BatchInputOrBuilder
      Returns:
      A list containing the sourceInput.
    • getSourceInputCount

      public int getSourceInputCount()
      @@    .. cpp:var:: string source_input (repeated)
      @@
      @@       The backend derives the value for each batch input from one or
      @@       more other inputs. 'source_input' gives the names of those
      @@       inputs.
      @@
       
      repeated string source_input = 4;
      Specified by:
      getSourceInputCount in interface ModelConfigOuterClass.BatchInputOrBuilder
      Returns:
      The count of sourceInput.
    • getSourceInput

      public String getSourceInput(int index)
      @@    .. cpp:var:: string source_input (repeated)
      @@
      @@       The backend derives the value for each batch input from one or
      @@       more other inputs. 'source_input' gives the names of those
      @@       inputs.
      @@
       
      repeated string source_input = 4;
      Specified by:
      getSourceInput in interface ModelConfigOuterClass.BatchInputOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sourceInput at the given index.
    • getSourceInputBytes

      public com.google.protobuf.ByteString getSourceInputBytes(int index)
      @@    .. cpp:var:: string source_input (repeated)
      @@
      @@       The backend derives the value for each batch input from one or
      @@       more other inputs. 'source_input' gives the names of those
      @@       inputs.
      @@
       
      repeated string source_input = 4;
      Specified by:
      getSourceInputBytes in interface ModelConfigOuterClass.BatchInputOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sourceInput at the given index.
    • setSourceInput

      public ModelConfigOuterClass.BatchInput.Builder setSourceInput(int index, String value)
      @@    .. cpp:var:: string source_input (repeated)
      @@
      @@       The backend derives the value for each batch input from one or
      @@       more other inputs. 'source_input' gives the names of those
      @@       inputs.
      @@
       
      repeated string source_input = 4;
      Parameters:
      index - The index to set the value at.
      value - The sourceInput to set.
      Returns:
      This builder for chaining.
    • addSourceInput

      public ModelConfigOuterClass.BatchInput.Builder addSourceInput(String value)
      @@    .. cpp:var:: string source_input (repeated)
      @@
      @@       The backend derives the value for each batch input from one or
      @@       more other inputs. 'source_input' gives the names of those
      @@       inputs.
      @@
       
      repeated string source_input = 4;
      Parameters:
      value - The sourceInput to add.
      Returns:
      This builder for chaining.
    • addAllSourceInput

      public ModelConfigOuterClass.BatchInput.Builder addAllSourceInput(Iterable<String> values)
      @@    .. cpp:var:: string source_input (repeated)
      @@
      @@       The backend derives the value for each batch input from one or
      @@       more other inputs. 'source_input' gives the names of those
      @@       inputs.
      @@
       
      repeated string source_input = 4;
      Parameters:
      values - The sourceInput to add.
      Returns:
      This builder for chaining.
    • clearSourceInput

      public ModelConfigOuterClass.BatchInput.Builder clearSourceInput()
      @@    .. cpp:var:: string source_input (repeated)
      @@
      @@       The backend derives the value for each batch input from one or
      @@       more other inputs. 'source_input' gives the names of those
      @@       inputs.
      @@
       
      repeated string source_input = 4;
      Returns:
      This builder for chaining.
    • addSourceInputBytes

      public ModelConfigOuterClass.BatchInput.Builder addSourceInputBytes(com.google.protobuf.ByteString value)
      @@    .. cpp:var:: string source_input (repeated)
      @@
      @@       The backend derives the value for each batch input from one or
      @@       more other inputs. 'source_input' gives the names of those
      @@       inputs.
      @@
       
      repeated string source_input = 4;
      Parameters:
      value - The bytes of the sourceInput to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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