Package inference

Class ModelConfigOuterClass.BatchOutput.Builder

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

public static final class ModelConfigOuterClass.BatchOutput.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.BatchOutput.Builder> implements ModelConfigOuterClass.BatchOutputOrBuilder
@@.. cpp:var:: message BatchOutput
@@
@@   A batch output is an output produced by the model that must be handled
@@   differently by the backend based on all the requests in a batch.
@@
 
Protobuf type inference.BatchOutput
  • 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.BatchOutput.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.BatchOutput.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.BatchOutput.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public com.google.protobuf.ProtocolStringList getTargetNameList()
      @@  .. cpp:var:: string target_name (repeated)
      @@
      @@     The name of the outputs to be produced by this batch output
      @@     specification.
      @@
       
      repeated string target_name = 1;
      Specified by:
      getTargetNameList in interface ModelConfigOuterClass.BatchOutputOrBuilder
      Returns:
      A list containing the targetName.
    • getTargetNameCount

      public int getTargetNameCount()
      @@  .. cpp:var:: string target_name (repeated)
      @@
      @@     The name of the outputs to be produced by this batch output
      @@     specification.
      @@
       
      repeated string target_name = 1;
      Specified by:
      getTargetNameCount in interface ModelConfigOuterClass.BatchOutputOrBuilder
      Returns:
      The count of targetName.
    • getTargetName

      public String getTargetName(int index)
      @@  .. cpp:var:: string target_name (repeated)
      @@
      @@     The name of the outputs to be produced by this batch output
      @@     specification.
      @@
       
      repeated string target_name = 1;
      Specified by:
      getTargetName in interface ModelConfigOuterClass.BatchOutputOrBuilder
      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 outputs to be produced by this batch output
      @@     specification.
      @@
       
      repeated string target_name = 1;
      Specified by:
      getTargetNameBytes in interface ModelConfigOuterClass.BatchOutputOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetName at the given index.
    • setTargetName

      public ModelConfigOuterClass.BatchOutput.Builder setTargetName(int index, String value)
      @@  .. cpp:var:: string target_name (repeated)
      @@
      @@     The name of the outputs to be produced by this batch output
      @@     specification.
      @@
       
      repeated string target_name = 1;
      Parameters:
      index - The index to set the value at.
      value - The targetName to set.
      Returns:
      This builder for chaining.
    • addTargetName

      public ModelConfigOuterClass.BatchOutput.Builder addTargetName(String value)
      @@  .. cpp:var:: string target_name (repeated)
      @@
      @@     The name of the outputs to be produced by this batch output
      @@     specification.
      @@
       
      repeated string target_name = 1;
      Parameters:
      value - The targetName to add.
      Returns:
      This builder for chaining.
    • addAllTargetName

      public ModelConfigOuterClass.BatchOutput.Builder addAllTargetName(Iterable<String> values)
      @@  .. cpp:var:: string target_name (repeated)
      @@
      @@     The name of the outputs to be produced by this batch output
      @@     specification.
      @@
       
      repeated string target_name = 1;
      Parameters:
      values - The targetName to add.
      Returns:
      This builder for chaining.
    • clearTargetName

      @@  .. cpp:var:: string target_name (repeated)
      @@
      @@     The name of the outputs to be produced by this batch output
      @@     specification.
      @@
       
      repeated string target_name = 1;
      Returns:
      This builder for chaining.
    • addTargetNameBytes

      public ModelConfigOuterClass.BatchOutput.Builder addTargetNameBytes(com.google.protobuf.ByteString value)
      @@  .. cpp:var:: string target_name (repeated)
      @@
      @@     The name of the outputs to be produced by this batch output
      @@     specification.
      @@
       
      repeated string target_name = 1;
      Parameters:
      value - The bytes of the targetName to add.
      Returns:
      This builder for chaining.
    • getKindValue

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

      public ModelConfigOuterClass.BatchOutput.Builder setKindValue(int value)
      @@  .. cpp:var:: Kind kind
      @@
      @@     The kind of this batch output.
      @@
       
      .inference.BatchOutput.Kind kind = 2;
      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 output.
      @@
       
      .inference.BatchOutput.Kind kind = 2;
      Specified by:
      getKind in interface ModelConfigOuterClass.BatchOutputOrBuilder
      Returns:
      The kind.
    • setKind

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

      @@  .. cpp:var:: Kind kind
      @@
      @@     The kind of this batch output.
      @@
       
      .inference.BatchOutput.Kind kind = 2;
      Returns:
      This builder for chaining.
    • getSourceInputList

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

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

      public String getSourceInput(int index)
      @@  .. cpp:var:: string source_input (repeated)
      @@
      @@     The backend derives each batch output from one or more inputs.
      @@     'source_input' gives the names of those inputs.
      @@
       
      repeated string source_input = 3;
      Specified by:
      getSourceInput in interface ModelConfigOuterClass.BatchOutputOrBuilder
      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 each batch output from one or more inputs.
      @@     'source_input' gives the names of those inputs.
      @@
       
      repeated string source_input = 3;
      Specified by:
      getSourceInputBytes in interface ModelConfigOuterClass.BatchOutputOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sourceInput at the given index.
    • setSourceInput

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

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

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

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

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

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

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