Class Mlmodel.Metadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.Metadata,Mlmodel.Metadata.Builder>
com.viam.service.mlmodel.v1.Mlmodel.Metadata.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Mlmodel.MetadataOrBuilder, Cloneable
Enclosing class:
Mlmodel.Metadata

public static final class Mlmodel.Metadata.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.Metadata,Mlmodel.Metadata.Builder> implements Mlmodel.MetadataOrBuilder
Protobuf type viam.service.mlmodel.v1.Metadata
  • Method Details

    • getName

      public String getName()
       name of the model
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Mlmodel.MetadataOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       name of the model
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Mlmodel.MetadataOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Mlmodel.Metadata.Builder setName(String value)
       name of the model
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Mlmodel.Metadata.Builder clearName()
       name of the model
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Mlmodel.Metadata.Builder setNameBytes(com.google.protobuf.ByteString value)
       name of the model
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       type of model e.g. object_detector, text_classifier
       
      string type = 2 [json_name = "type"];
      Specified by:
      getType in interface Mlmodel.MetadataOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       type of model e.g. object_detector, text_classifier
       
      string type = 2 [json_name = "type"];
      Specified by:
      getTypeBytes in interface Mlmodel.MetadataOrBuilder
      Returns:
      The bytes for type.
    • setType

      public Mlmodel.Metadata.Builder setType(String value)
       type of model e.g. object_detector, text_classifier
       
      string type = 2 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Mlmodel.Metadata.Builder clearType()
       type of model e.g. object_detector, text_classifier
       
      string type = 2 [json_name = "type"];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Mlmodel.Metadata.Builder setTypeBytes(com.google.protobuf.ByteString value)
       type of model e.g. object_detector, text_classifier
       
      string type = 2 [json_name = "type"];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       description of the model
       
      string description = 3 [json_name = "description"];
      Specified by:
      getDescription in interface Mlmodel.MetadataOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       description of the model
       
      string description = 3 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface Mlmodel.MetadataOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Mlmodel.Metadata.Builder setDescription(String value)
       description of the model
       
      string description = 3 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Mlmodel.Metadata.Builder clearDescription()
       description of the model
       
      string description = 3 [json_name = "description"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Mlmodel.Metadata.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       description of the model
       
      string description = 3 [json_name = "description"];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getInputInfoList

      public List<Mlmodel.TensorInfo> getInputInfoList()
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
      Specified by:
      getInputInfoList in interface Mlmodel.MetadataOrBuilder
    • getInputInfoCount

      public int getInputInfoCount()
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
      Specified by:
      getInputInfoCount in interface Mlmodel.MetadataOrBuilder
    • getInputInfo

      public Mlmodel.TensorInfo getInputInfo(int index)
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
      Specified by:
      getInputInfo in interface Mlmodel.MetadataOrBuilder
    • setInputInfo

      public Mlmodel.Metadata.Builder setInputInfo(int index, Mlmodel.TensorInfo value)
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
    • setInputInfo

      public Mlmodel.Metadata.Builder setInputInfo(int index, Mlmodel.TensorInfo.Builder builderForValue)
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
    • addInputInfo

      public Mlmodel.Metadata.Builder addInputInfo(Mlmodel.TensorInfo value)
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
    • addInputInfo

      public Mlmodel.Metadata.Builder addInputInfo(int index, Mlmodel.TensorInfo value)
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
    • addInputInfo

      public Mlmodel.Metadata.Builder addInputInfo(Mlmodel.TensorInfo.Builder builderForValue)
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
    • addInputInfo

      public Mlmodel.Metadata.Builder addInputInfo(int index, Mlmodel.TensorInfo.Builder builderForValue)
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
    • addAllInputInfo

      public Mlmodel.Metadata.Builder addAllInputInfo(Iterable<? extends Mlmodel.TensorInfo> values)
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
    • clearInputInfo

      public Mlmodel.Metadata.Builder clearInputInfo()
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
    • removeInputInfo

      public Mlmodel.Metadata.Builder removeInputInfo(int index)
       the necessary input arrays/tensors for an inference, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
    • getOutputInfoList

      public List<Mlmodel.TensorInfo> getOutputInfoList()
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
      Specified by:
      getOutputInfoList in interface Mlmodel.MetadataOrBuilder
    • getOutputInfoCount

      public int getOutputInfoCount()
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
      Specified by:
      getOutputInfoCount in interface Mlmodel.MetadataOrBuilder
    • getOutputInfo

      public Mlmodel.TensorInfo getOutputInfo(int index)
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
      Specified by:
      getOutputInfo in interface Mlmodel.MetadataOrBuilder
    • setOutputInfo

      public Mlmodel.Metadata.Builder setOutputInfo(int index, Mlmodel.TensorInfo value)
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
    • setOutputInfo

      public Mlmodel.Metadata.Builder setOutputInfo(int index, Mlmodel.TensorInfo.Builder builderForValue)
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
    • addOutputInfo

      public Mlmodel.Metadata.Builder addOutputInfo(Mlmodel.TensorInfo value)
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
    • addOutputInfo

      public Mlmodel.Metadata.Builder addOutputInfo(int index, Mlmodel.TensorInfo value)
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
    • addOutputInfo

      public Mlmodel.Metadata.Builder addOutputInfo(Mlmodel.TensorInfo.Builder builderForValue)
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
    • addOutputInfo

      public Mlmodel.Metadata.Builder addOutputInfo(int index, Mlmodel.TensorInfo.Builder builderForValue)
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
    • addAllOutputInfo

      public Mlmodel.Metadata.Builder addAllOutputInfo(Iterable<? extends Mlmodel.TensorInfo> values)
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
    • clearOutputInfo

      public Mlmodel.Metadata.Builder clearOutputInfo()
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
    • removeOutputInfo

      public Mlmodel.Metadata.Builder removeOutputInfo(int index)
       the output arrays/tensors of the model, order matters
       
      repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];