Package inference

Class ModelConfigOuterClass.ModelSequenceBatching.Control.Builder

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

public static final class ModelConfigOuterClass.ModelSequenceBatching.Control.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.Control.Builder> implements ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
@@  .. cpp:var:: message Control
@@
@@     A control is a signal that the sequence batcher uses to
@@     communicate with a backend.
@@
 
Protobuf type inference.ModelSequenceBatching.Control
  • 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.ModelSequenceBatching.Control.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.ModelSequenceBatching.Control.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.ModelSequenceBatching.Control.Builder>
    • getDefaultInstanceForType

      public ModelConfigOuterClass.ModelSequenceBatching.Control 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

      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.ModelSequenceBatching.Control.Builder>
    • setField

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

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

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

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

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

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

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

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

      @@    .. cpp:var:: Kind kind
      @@
      @@       The kind of this control.
      @@
       
      .inference.ModelSequenceBatching.Control.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 control.
      @@
       
      .inference.ModelSequenceBatching.Control.Kind kind = 1;
      Specified by:
      getKind in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Returns:
      The kind.
    • setKind

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

      @@    .. cpp:var:: Kind kind
      @@
      @@       The kind of this control.
      @@
       
      .inference.ModelSequenceBatching.Control.Kind kind = 1;
      Returns:
      This builder for chaining.
    • getInt32FalseTrueList

      public List<Integer> getInt32FalseTrueList()
      @@    .. cpp:var:: int32 int32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in an int32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'int32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated int32 int32_false_true = 2;
      Specified by:
      getInt32FalseTrueList in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Returns:
      A list containing the int32FalseTrue.
    • getInt32FalseTrueCount

      public int getInt32FalseTrueCount()
      @@    .. cpp:var:: int32 int32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in an int32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'int32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated int32 int32_false_true = 2;
      Specified by:
      getInt32FalseTrueCount in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Returns:
      The count of int32FalseTrue.
    • getInt32FalseTrue

      public int getInt32FalseTrue(int index)
      @@    .. cpp:var:: int32 int32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in an int32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'int32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated int32 int32_false_true = 2;
      Specified by:
      getInt32FalseTrue in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The int32FalseTrue at the given index.
    • setInt32FalseTrue

      public ModelConfigOuterClass.ModelSequenceBatching.Control.Builder setInt32FalseTrue(int index, int value)
      @@    .. cpp:var:: int32 int32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in an int32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'int32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated int32 int32_false_true = 2;
      Parameters:
      index - The index to set the value at.
      value - The int32FalseTrue to set.
      Returns:
      This builder for chaining.
    • addInt32FalseTrue

      @@    .. cpp:var:: int32 int32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in an int32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'int32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated int32 int32_false_true = 2;
      Parameters:
      value - The int32FalseTrue to add.
      Returns:
      This builder for chaining.
    • addAllInt32FalseTrue

      public ModelConfigOuterClass.ModelSequenceBatching.Control.Builder addAllInt32FalseTrue(Iterable<? extends Integer> values)
      @@    .. cpp:var:: int32 int32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in an int32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'int32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated int32 int32_false_true = 2;
      Parameters:
      values - The int32FalseTrue to add.
      Returns:
      This builder for chaining.
    • clearInt32FalseTrue

      @@    .. cpp:var:: int32 int32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in an int32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'int32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated int32 int32_false_true = 2;
      Returns:
      This builder for chaining.
    • getFp32FalseTrueList

      public List<Float> getFp32FalseTrueList()
      @@    .. cpp:var:: float fp32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a fp32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'fp32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated float fp32_false_true = 3;
      Specified by:
      getFp32FalseTrueList in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Returns:
      A list containing the fp32FalseTrue.
    • getFp32FalseTrueCount

      public int getFp32FalseTrueCount()
      @@    .. cpp:var:: float fp32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a fp32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'fp32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated float fp32_false_true = 3;
      Specified by:
      getFp32FalseTrueCount in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Returns:
      The count of fp32FalseTrue.
    • getFp32FalseTrue

      public float getFp32FalseTrue(int index)
      @@    .. cpp:var:: float fp32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a fp32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'fp32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated float fp32_false_true = 3;
      Specified by:
      getFp32FalseTrue in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The fp32FalseTrue at the given index.
    • setFp32FalseTrue

      public ModelConfigOuterClass.ModelSequenceBatching.Control.Builder setFp32FalseTrue(int index, float value)
      @@    .. cpp:var:: float fp32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a fp32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'fp32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated float fp32_false_true = 3;
      Parameters:
      index - The index to set the value at.
      value - The fp32FalseTrue to set.
      Returns:
      This builder for chaining.
    • addFp32FalseTrue

      public ModelConfigOuterClass.ModelSequenceBatching.Control.Builder addFp32FalseTrue(float value)
      @@    .. cpp:var:: float fp32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a fp32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'fp32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated float fp32_false_true = 3;
      Parameters:
      value - The fp32FalseTrue to add.
      Returns:
      This builder for chaining.
    • addAllFp32FalseTrue

      public ModelConfigOuterClass.ModelSequenceBatching.Control.Builder addAllFp32FalseTrue(Iterable<? extends Float> values)
      @@    .. cpp:var:: float fp32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a fp32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'fp32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated float fp32_false_true = 3;
      Parameters:
      values - The fp32FalseTrue to add.
      Returns:
      This builder for chaining.
    • clearFp32FalseTrue

      @@    .. cpp:var:: float fp32_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a fp32 tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'fp32_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated float fp32_false_true = 3;
      Returns:
      This builder for chaining.
    • getBoolFalseTrueList

      public List<Boolean> getBoolFalseTrueList()
      @@    .. cpp:var:: bool bool_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a bool tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'bool_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated bool bool_false_true = 5;
      Specified by:
      getBoolFalseTrueList in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Returns:
      A list containing the boolFalseTrue.
    • getBoolFalseTrueCount

      public int getBoolFalseTrueCount()
      @@    .. cpp:var:: bool bool_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a bool tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'bool_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated bool bool_false_true = 5;
      Specified by:
      getBoolFalseTrueCount in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Returns:
      The count of boolFalseTrue.
    • getBoolFalseTrue

      public boolean getBoolFalseTrue(int index)
      @@    .. cpp:var:: bool bool_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a bool tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'bool_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated bool bool_false_true = 5;
      Specified by:
      getBoolFalseTrue in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The boolFalseTrue at the given index.
    • setBoolFalseTrue

      public ModelConfigOuterClass.ModelSequenceBatching.Control.Builder setBoolFalseTrue(int index, boolean value)
      @@    .. cpp:var:: bool bool_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a bool tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'bool_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated bool bool_false_true = 5;
      Parameters:
      index - The index to set the value at.
      value - The boolFalseTrue to set.
      Returns:
      This builder for chaining.
    • addBoolFalseTrue

      public ModelConfigOuterClass.ModelSequenceBatching.Control.Builder addBoolFalseTrue(boolean value)
      @@    .. cpp:var:: bool bool_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a bool tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'bool_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated bool bool_false_true = 5;
      Parameters:
      value - The boolFalseTrue to add.
      Returns:
      This builder for chaining.
    • addAllBoolFalseTrue

      public ModelConfigOuterClass.ModelSequenceBatching.Control.Builder addAllBoolFalseTrue(Iterable<? extends Boolean> values)
      @@    .. cpp:var:: bool bool_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a bool tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'bool_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated bool bool_false_true = 5;
      Parameters:
      values - The boolFalseTrue to add.
      Returns:
      This builder for chaining.
    • clearBoolFalseTrue

      @@    .. cpp:var:: bool bool_false_true (repeated)
      @@
      @@       The control's true and false setting is indicated by setting
      @@       a value in a bool tensor. The tensor must be a
      @@       1-dimensional tensor with size equal to the batch size of
      @@       the request. 'bool_false_true' must have two entries: the
      @@       first the false value and the second the true value.
      @@
       
      repeated bool bool_false_true = 5;
      Returns:
      This builder for chaining.
    • getDataTypeValue

      public int getDataTypeValue()
      @@    .. cpp:var:: DataType data_type
      @@
      @@       The control's datatype.
      @@
       
      .inference.DataType data_type = 4;
      Specified by:
      getDataTypeValue in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Returns:
      The enum numeric value on the wire for dataType.
    • setDataTypeValue

      @@    .. cpp:var:: DataType data_type
      @@
      @@       The control's datatype.
      @@
       
      .inference.DataType data_type = 4;
      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 control's datatype.
      @@
       
      .inference.DataType data_type = 4;
      Specified by:
      getDataType in interface ModelConfigOuterClass.ModelSequenceBatching.ControlOrBuilder
      Returns:
      The dataType.
    • setDataType

      @@    .. cpp:var:: DataType data_type
      @@
      @@       The control's datatype.
      @@
       
      .inference.DataType data_type = 4;
      Parameters:
      value - The dataType to set.
      Returns:
      This builder for chaining.
    • clearDataType

      @@    .. cpp:var:: DataType data_type
      @@
      @@       The control's datatype.
      @@
       
      .inference.DataType data_type = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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