Package viam.app.v1

Class App.MLModelMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<App.MLModelMetadata,App.MLModelMetadata.Builder>
viam.app.v1.App.MLModelMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, App.MLModelMetadataOrBuilder
Enclosing class:
App.MLModelMetadata

public static final class App.MLModelMetadata.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<App.MLModelMetadata,App.MLModelMetadata.Builder> implements App.MLModelMetadataOrBuilder
Protobuf type viam.app.v1.MLModelMetadata
  • Method Details

    • getVersionsList

      public List<String> getVersionsList()
       A list of package versions for a ML model
       
      repeated string versions = 1 [json_name = "versions"];
      Specified by:
      getVersionsList in interface App.MLModelMetadataOrBuilder
      Returns:
      A list containing the versions.
    • getVersionsCount

      public int getVersionsCount()
       A list of package versions for a ML model
       
      repeated string versions = 1 [json_name = "versions"];
      Specified by:
      getVersionsCount in interface App.MLModelMetadataOrBuilder
      Returns:
      The count of versions.
    • getVersions

      public String getVersions(int index)
       A list of package versions for a ML model
       
      repeated string versions = 1 [json_name = "versions"];
      Specified by:
      getVersions in interface App.MLModelMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The versions at the given index.
    • getVersionsBytes

      public com.google.protobuf.ByteString getVersionsBytes(int index)
       A list of package versions for a ML model
       
      repeated string versions = 1 [json_name = "versions"];
      Specified by:
      getVersionsBytes in interface App.MLModelMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the versions at the given index.
    • setVersions

      public App.MLModelMetadata.Builder setVersions(int index, String value)
       A list of package versions for a ML model
       
      repeated string versions = 1 [json_name = "versions"];
      Parameters:
      index - The index to set the value at.
      value - The versions to set.
      Returns:
      This builder for chaining.
    • addVersions

      public App.MLModelMetadata.Builder addVersions(String value)
       A list of package versions for a ML model
       
      repeated string versions = 1 [json_name = "versions"];
      Parameters:
      value - The versions to add.
      Returns:
      This builder for chaining.
    • addAllVersions

      public App.MLModelMetadata.Builder addAllVersions(Iterable<String> values)
       A list of package versions for a ML model
       
      repeated string versions = 1 [json_name = "versions"];
      Parameters:
      values - The versions to add.
      Returns:
      This builder for chaining.
    • clearVersions

      public App.MLModelMetadata.Builder clearVersions()
       A list of package versions for a ML model
       
      repeated string versions = 1 [json_name = "versions"];
      Returns:
      This builder for chaining.
    • addVersionsBytes

      public App.MLModelMetadata.Builder addVersionsBytes(com.google.protobuf.ByteString value)
       A list of package versions for a ML model
       
      repeated string versions = 1 [json_name = "versions"];
      Parameters:
      value - The bytes of the versions to add.
      Returns:
      This builder for chaining.
    • getModelTypeValue

      public int getModelTypeValue()
      .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];
      Specified by:
      getModelTypeValue in interface App.MLModelMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for modelType.
    • setModelTypeValue

      public App.MLModelMetadata.Builder setModelTypeValue(int value)
      .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];
      Parameters:
      value - The modelType to set.
      Returns:
      This builder for chaining.
    • getModelType

      public MlTraining.ModelType getModelType()
      .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];
      Specified by:
      getModelType in interface App.MLModelMetadataOrBuilder
      Returns:
      The modelType.
    • setModelType

      .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];
      Parameters:
      value - The enum numeric value on the wire for modelType to set.
      Returns:
      This builder for chaining.
    • clearModelType

      public App.MLModelMetadata.Builder clearModelType()
      .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];
      Returns:
      This builder for chaining.
    • getModelFrameworkValue

      public int getModelFrameworkValue()
      .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];
      Specified by:
      getModelFrameworkValue in interface App.MLModelMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for modelFramework.
    • setModelFrameworkValue

      public App.MLModelMetadata.Builder setModelFrameworkValue(int value)
      .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];
      Parameters:
      value - The modelFramework to set.
      Returns:
      This builder for chaining.
    • getModelFramework

      public MlTraining.ModelFramework getModelFramework()
      .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];
      Specified by:
      getModelFramework in interface App.MLModelMetadataOrBuilder
      Returns:
      The modelFramework.
    • setModelFramework

      public App.MLModelMetadata.Builder setModelFramework(MlTraining.ModelFramework value)
      .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];
      Parameters:
      value - The enum numeric value on the wire for modelFramework to set.
      Returns:
      This builder for chaining.
    • clearModelFramework

      public App.MLModelMetadata.Builder clearModelFramework()
      .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];
      Returns:
      This builder for chaining.