Package inference

Class ModelConfigOuterClass.ModelEnsembling.Step.Builder

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

public static final class ModelConfigOuterClass.ModelEnsembling.Step.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelEnsembling.Step.Builder> implements ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
@@  .. cpp:var:: message Step
@@
@@     Each step specifies a model included in the ensemble,
@@     maps ensemble tensor names to the model input tensors,
@@     and maps model output tensors to ensemble tensor names
@@
 
Protobuf type inference.ModelEnsembling.Step
  • 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<ModelConfigOuterClass.ModelEnsembling.Step.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

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

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

      public ModelConfigOuterClass.ModelEnsembling.Step.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.ModelEnsembling.Step.Builder>
      Throws:
      IOException
    • getModelName

      public String getModelName()
      @@  .. cpp:var:: string model_name
      @@
      @@     The name of the model to execute for this step of the ensemble.
      @@
       
      string model_name = 1;
      Specified by:
      getModelName in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
      Returns:
      The modelName.
    • getModelNameBytes

      public com.google.protobuf.ByteString getModelNameBytes()
      @@  .. cpp:var:: string model_name
      @@
      @@     The name of the model to execute for this step of the ensemble.
      @@
       
      string model_name = 1;
      Specified by:
      getModelNameBytes in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
      Returns:
      The bytes for modelName.
    • setModelName

      @@  .. cpp:var:: string model_name
      @@
      @@     The name of the model to execute for this step of the ensemble.
      @@
       
      string model_name = 1;
      Parameters:
      value - The modelName to set.
      Returns:
      This builder for chaining.
    • clearModelName

      @@  .. cpp:var:: string model_name
      @@
      @@     The name of the model to execute for this step of the ensemble.
      @@
       
      string model_name = 1;
      Returns:
      This builder for chaining.
    • setModelNameBytes

      public ModelConfigOuterClass.ModelEnsembling.Step.Builder setModelNameBytes(com.google.protobuf.ByteString value)
      @@  .. cpp:var:: string model_name
      @@
      @@     The name of the model to execute for this step of the ensemble.
      @@
       
      string model_name = 1;
      Parameters:
      value - The bytes for modelName to set.
      Returns:
      This builder for chaining.
    • getModelVersion

      public long getModelVersion()
      @@  .. cpp:var:: int64 model_version
      @@
      @@     The version of the model to use for inference. If -1
      @@     the latest/most-recent version of the model is used.
      @@
       
      int64 model_version = 2;
      Specified by:
      getModelVersion in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
      Returns:
      The modelVersion.
    • setModelVersion

      public ModelConfigOuterClass.ModelEnsembling.Step.Builder setModelVersion(long value)
      @@  .. cpp:var:: int64 model_version
      @@
      @@     The version of the model to use for inference. If -1
      @@     the latest/most-recent version of the model is used.
      @@
       
      int64 model_version = 2;
      Parameters:
      value - The modelVersion to set.
      Returns:
      This builder for chaining.
    • clearModelVersion

      @@  .. cpp:var:: int64 model_version
      @@
      @@     The version of the model to use for inference. If -1
      @@     the latest/most-recent version of the model is used.
      @@
       
      int64 model_version = 2;
      Returns:
      This builder for chaining.
    • getInputMapCount

      public int getInputMapCount()
      Description copied from interface: ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
      @@  .. cpp:var:: map<string,string> input_map
      @@
      @@     Map from name of an input tensor on this step's model to ensemble
      @@     tensor name. The ensemble tensor must have the same data type and
      @@     shape as the model input. Each model input must be assigned to
      @@     one ensemble tensor, but the same ensemble tensor can be assigned
      @@     to multiple model inputs.
      @@
       
      map<string, string> input_map = 3;
      Specified by:
      getInputMapCount in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • containsInputMap

      public boolean containsInputMap(String key)
      @@  .. cpp:var:: map<string,string> input_map
      @@
      @@     Map from name of an input tensor on this step's model to ensemble
      @@     tensor name. The ensemble tensor must have the same data type and
      @@     shape as the model input. Each model input must be assigned to
      @@     one ensemble tensor, but the same ensemble tensor can be assigned
      @@     to multiple model inputs.
      @@
       
      map<string, string> input_map = 3;
      Specified by:
      containsInputMap in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • getInputMap

      @Deprecated public Map<String,String> getInputMap()
      Deprecated.
      Use getInputMapMap() instead.
      Specified by:
      getInputMap in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • getInputMapMap

      public Map<String,String> getInputMapMap()
      @@  .. cpp:var:: map<string,string> input_map
      @@
      @@     Map from name of an input tensor on this step's model to ensemble
      @@     tensor name. The ensemble tensor must have the same data type and
      @@     shape as the model input. Each model input must be assigned to
      @@     one ensemble tensor, but the same ensemble tensor can be assigned
      @@     to multiple model inputs.
      @@
       
      map<string, string> input_map = 3;
      Specified by:
      getInputMapMap in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • getInputMapOrDefault

      public String getInputMapOrDefault(String key, String defaultValue)
      @@  .. cpp:var:: map<string,string> input_map
      @@
      @@     Map from name of an input tensor on this step's model to ensemble
      @@     tensor name. The ensemble tensor must have the same data type and
      @@     shape as the model input. Each model input must be assigned to
      @@     one ensemble tensor, but the same ensemble tensor can be assigned
      @@     to multiple model inputs.
      @@
       
      map<string, string> input_map = 3;
      Specified by:
      getInputMapOrDefault in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • getInputMapOrThrow

      public String getInputMapOrThrow(String key)
      @@  .. cpp:var:: map<string,string> input_map
      @@
      @@     Map from name of an input tensor on this step's model to ensemble
      @@     tensor name. The ensemble tensor must have the same data type and
      @@     shape as the model input. Each model input must be assigned to
      @@     one ensemble tensor, but the same ensemble tensor can be assigned
      @@     to multiple model inputs.
      @@
       
      map<string, string> input_map = 3;
      Specified by:
      getInputMapOrThrow in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • clearInputMap

    • removeInputMap

      @@  .. cpp:var:: map<string,string> input_map
      @@
      @@     Map from name of an input tensor on this step's model to ensemble
      @@     tensor name. The ensemble tensor must have the same data type and
      @@     shape as the model input. Each model input must be assigned to
      @@     one ensemble tensor, but the same ensemble tensor can be assigned
      @@     to multiple model inputs.
      @@
       
      map<string, string> input_map = 3;
    • getMutableInputMap

      @Deprecated public Map<String,String> getMutableInputMap()
      Deprecated.
      Use alternate mutation accessors instead.
    • putInputMap

      @@  .. cpp:var:: map<string,string> input_map
      @@
      @@     Map from name of an input tensor on this step's model to ensemble
      @@     tensor name. The ensemble tensor must have the same data type and
      @@     shape as the model input. Each model input must be assigned to
      @@     one ensemble tensor, but the same ensemble tensor can be assigned
      @@     to multiple model inputs.
      @@
       
      map<string, string> input_map = 3;
    • putAllInputMap

      @@  .. cpp:var:: map<string,string> input_map
      @@
      @@     Map from name of an input tensor on this step's model to ensemble
      @@     tensor name. The ensemble tensor must have the same data type and
      @@     shape as the model input. Each model input must be assigned to
      @@     one ensemble tensor, but the same ensemble tensor can be assigned
      @@     to multiple model inputs.
      @@
       
      map<string, string> input_map = 3;
    • getOutputMapCount

      public int getOutputMapCount()
      Description copied from interface: ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
      @@  .. cpp:var:: map<string,string> output_map
      @@
      @@     Map from name of an output tensor on this step's model to ensemble
      @@     tensor name. The data type and shape of the ensemble tensor will
      @@     be inferred from the model output. It is optional to assign all
      @@     model outputs to ensemble tensors. One ensemble tensor name
      @@     can appear in an output map only once.
      @@
       
      map<string, string> output_map = 4;
      Specified by:
      getOutputMapCount in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • containsOutputMap

      public boolean containsOutputMap(String key)
      @@  .. cpp:var:: map<string,string> output_map
      @@
      @@     Map from name of an output tensor on this step's model to ensemble
      @@     tensor name. The data type and shape of the ensemble tensor will
      @@     be inferred from the model output. It is optional to assign all
      @@     model outputs to ensemble tensors. One ensemble tensor name
      @@     can appear in an output map only once.
      @@
       
      map<string, string> output_map = 4;
      Specified by:
      containsOutputMap in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • getOutputMap

      @Deprecated public Map<String,String> getOutputMap()
      Deprecated.
      Use getOutputMapMap() instead.
      Specified by:
      getOutputMap in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • getOutputMapMap

      public Map<String,String> getOutputMapMap()
      @@  .. cpp:var:: map<string,string> output_map
      @@
      @@     Map from name of an output tensor on this step's model to ensemble
      @@     tensor name. The data type and shape of the ensemble tensor will
      @@     be inferred from the model output. It is optional to assign all
      @@     model outputs to ensemble tensors. One ensemble tensor name
      @@     can appear in an output map only once.
      @@
       
      map<string, string> output_map = 4;
      Specified by:
      getOutputMapMap in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • getOutputMapOrDefault

      public String getOutputMapOrDefault(String key, String defaultValue)
      @@  .. cpp:var:: map<string,string> output_map
      @@
      @@     Map from name of an output tensor on this step's model to ensemble
      @@     tensor name. The data type and shape of the ensemble tensor will
      @@     be inferred from the model output. It is optional to assign all
      @@     model outputs to ensemble tensors. One ensemble tensor name
      @@     can appear in an output map only once.
      @@
       
      map<string, string> output_map = 4;
      Specified by:
      getOutputMapOrDefault in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • getOutputMapOrThrow

      public String getOutputMapOrThrow(String key)
      @@  .. cpp:var:: map<string,string> output_map
      @@
      @@     Map from name of an output tensor on this step's model to ensemble
      @@     tensor name. The data type and shape of the ensemble tensor will
      @@     be inferred from the model output. It is optional to assign all
      @@     model outputs to ensemble tensors. One ensemble tensor name
      @@     can appear in an output map only once.
      @@
       
      map<string, string> output_map = 4;
      Specified by:
      getOutputMapOrThrow in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
    • clearOutputMap

    • removeOutputMap

      @@  .. cpp:var:: map<string,string> output_map
      @@
      @@     Map from name of an output tensor on this step's model to ensemble
      @@     tensor name. The data type and shape of the ensemble tensor will
      @@     be inferred from the model output. It is optional to assign all
      @@     model outputs to ensemble tensors. One ensemble tensor name
      @@     can appear in an output map only once.
      @@
       
      map<string, string> output_map = 4;
    • getMutableOutputMap

      @Deprecated public Map<String,String> getMutableOutputMap()
      Deprecated.
      Use alternate mutation accessors instead.
    • putOutputMap

      @@  .. cpp:var:: map<string,string> output_map
      @@
      @@     Map from name of an output tensor on this step's model to ensemble
      @@     tensor name. The data type and shape of the ensemble tensor will
      @@     be inferred from the model output. It is optional to assign all
      @@     model outputs to ensemble tensors. One ensemble tensor name
      @@     can appear in an output map only once.
      @@
       
      map<string, string> output_map = 4;
    • putAllOutputMap

      @@  .. cpp:var:: map<string,string> output_map
      @@
      @@     Map from name of an output tensor on this step's model to ensemble
      @@     tensor name. The data type and shape of the ensemble tensor will
      @@     be inferred from the model output. It is optional to assign all
      @@     model outputs to ensemble tensors. One ensemble tensor name
      @@     can appear in an output map only once.
      @@
       
      map<string, string> output_map = 4;
    • getModelNamespace

      public String getModelNamespace()
      @@  .. cpp:var:: string model_namespace
      @@
      @@     [RESERVED] currently this field is reserved for internal use, users
      @@     must not set any value to this field to avoid unexpected behavior.
      @@
       
      string model_namespace = 5;
      Specified by:
      getModelNamespace in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
      Returns:
      The modelNamespace.
    • getModelNamespaceBytes

      public com.google.protobuf.ByteString getModelNamespaceBytes()
      @@  .. cpp:var:: string model_namespace
      @@
      @@     [RESERVED] currently this field is reserved for internal use, users
      @@     must not set any value to this field to avoid unexpected behavior.
      @@
       
      string model_namespace = 5;
      Specified by:
      getModelNamespaceBytes in interface ModelConfigOuterClass.ModelEnsembling.StepOrBuilder
      Returns:
      The bytes for modelNamespace.
    • setModelNamespace

      @@  .. cpp:var:: string model_namespace
      @@
      @@     [RESERVED] currently this field is reserved for internal use, users
      @@     must not set any value to this field to avoid unexpected behavior.
      @@
       
      string model_namespace = 5;
      Parameters:
      value - The modelNamespace to set.
      Returns:
      This builder for chaining.
    • clearModelNamespace

      @@  .. cpp:var:: string model_namespace
      @@
      @@     [RESERVED] currently this field is reserved for internal use, users
      @@     must not set any value to this field to avoid unexpected behavior.
      @@
       
      string model_namespace = 5;
      Returns:
      This builder for chaining.
    • setModelNamespaceBytes

      public ModelConfigOuterClass.ModelEnsembling.Step.Builder setModelNamespaceBytes(com.google.protobuf.ByteString value)
      @@  .. cpp:var:: string model_namespace
      @@
      @@     [RESERVED] currently this field is reserved for internal use, users
      @@     must not set any value to this field to avoid unexpected behavior.
      @@
       
      string model_namespace = 5;
      Parameters:
      value - The bytes for modelNamespace to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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