Package viam.app.v1

Class App.MLTrainingMetadata.Builder

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

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

    • getVersionsList

      public List<App.MLTrainingVersion> getVersionsList()
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
      Specified by:
      getVersionsList in interface App.MLTrainingMetadataOrBuilder
    • getVersionsCount

      public int getVersionsCount()
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
      Specified by:
      getVersionsCount in interface App.MLTrainingMetadataOrBuilder
    • getVersions

      public App.MLTrainingVersion getVersions(int index)
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
      Specified by:
      getVersions in interface App.MLTrainingMetadataOrBuilder
    • setVersions

      public App.MLTrainingMetadata.Builder setVersions(int index, App.MLTrainingVersion value)
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
    • setVersions

      public App.MLTrainingMetadata.Builder setVersions(int index, App.MLTrainingVersion.Builder builderForValue)
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
    • addVersions

       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
    • addVersions

      public App.MLTrainingMetadata.Builder addVersions(int index, App.MLTrainingVersion value)
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
    • addVersions

      public App.MLTrainingMetadata.Builder addVersions(App.MLTrainingVersion.Builder builderForValue)
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
    • addVersions

      public App.MLTrainingMetadata.Builder addVersions(int index, App.MLTrainingVersion.Builder builderForValue)
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
    • addAllVersions

      public App.MLTrainingMetadata.Builder addAllVersions(Iterable<? extends App.MLTrainingVersion> values)
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
    • clearVersions

      public App.MLTrainingMetadata.Builder clearVersions()
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
    • removeVersions

      public App.MLTrainingMetadata.Builder removeVersions(int index)
       A list of package versions for ML training source distribution
       
      repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];
    • getModelTypeValue

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

      public App.MLTrainingMetadata.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.MLTrainingMetadataOrBuilder
      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.MLTrainingMetadata.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.MLTrainingMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for modelFramework.
    • setModelFrameworkValue

      public App.MLTrainingMetadata.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.MLTrainingMetadataOrBuilder
      Returns:
      The modelFramework.
    • setModelFramework

      .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.MLTrainingMetadata.Builder clearModelFramework()
      .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];
      Returns:
      This builder for chaining.
    • getDraft

      public boolean getDraft()
      bool draft = 4 [json_name = "draft"];
      Specified by:
      getDraft in interface App.MLTrainingMetadataOrBuilder
      Returns:
      The draft.
    • setDraft

      public App.MLTrainingMetadata.Builder setDraft(boolean value)
      bool draft = 4 [json_name = "draft"];
      Parameters:
      value - The draft to set.
      Returns:
      This builder for chaining.
    • clearDraft

      public App.MLTrainingMetadata.Builder clearDraft()
      bool draft = 4 [json_name = "draft"];
      Returns:
      This builder for chaining.