Package viam.app.v1

Class AppOuterClass.UpdateMLTrainingMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<AppOuterClass.UpdateMLTrainingMetadata,AppOuterClass.UpdateMLTrainingMetadata.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<AppOuterClass.UpdateMLTrainingMetadata,AppOuterClass.UpdateMLTrainingMetadata.Builder>
viam.app.v1.AppOuterClass.UpdateMLTrainingMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, AppOuterClass.UpdateMLTrainingMetadataOrBuilder
Enclosing class:
AppOuterClass.UpdateMLTrainingMetadata

public static final class AppOuterClass.UpdateMLTrainingMetadata.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<AppOuterClass.UpdateMLTrainingMetadata,AppOuterClass.UpdateMLTrainingMetadata.Builder> implements AppOuterClass.UpdateMLTrainingMetadataOrBuilder
Protobuf type viam.app.v1.UpdateMLTrainingMetadata
  • Method Details

    • getModelTypeValue

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

      public AppOuterClass.UpdateMLTrainingMetadata.Builder setModelTypeValue(int value)
      .viam.app.mltraining.v1.ModelType model_type = 1 [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 = 1 [json_name = "modelType"];
      Specified by:
      getModelType in interface AppOuterClass.UpdateMLTrainingMetadataOrBuilder
      Returns:
      The modelType.
    • setModelType

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

      .viam.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"];
      Returns:
      This builder for chaining.
    • getModelFrameworkValue

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

      public AppOuterClass.UpdateMLTrainingMetadata.Builder setModelFrameworkValue(int value)
      .viam.app.mltraining.v1.ModelFramework model_framework = 2 [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 = 2 [json_name = "modelFramework"];
      Specified by:
      getModelFramework in interface AppOuterClass.UpdateMLTrainingMetadataOrBuilder
      Returns:
      The modelFramework.
    • setModelFramework

      .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"];
      Parameters:
      value - The enum numeric value on the wire for modelFramework to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • clearModelFramework

      public AppOuterClass.UpdateMLTrainingMetadata.Builder clearModelFramework()
      .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"];
      Returns:
      This builder for chaining.
    • getDraft

      public boolean getDraft()
      bool draft = 3 [json_name = "draft"];
      Specified by:
      getDraft in interface AppOuterClass.UpdateMLTrainingMetadataOrBuilder
      Returns:
      The draft.
    • setDraft

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

      bool draft = 3 [json_name = "draft"];
      Returns:
      This builder for chaining.
    • getDeploymentModularResourcesList

      public List<String> getDeploymentModularResourcesList()
       Colon-delimited triplets of components or services from the registry used when
       model_framework is MODEL_FRAMEWORK_REGISTRY. This ties the ML model file to the
       associated component or service that consumes the files and should be deployed
       along with the model.
       
      repeated string deployment_modular_resources = 4 [json_name = "deploymentModularResources"];
      Specified by:
      getDeploymentModularResourcesList in interface AppOuterClass.UpdateMLTrainingMetadataOrBuilder
      Returns:
      A list containing the deploymentModularResources.
    • getDeploymentModularResourcesCount

      public int getDeploymentModularResourcesCount()
       Colon-delimited triplets of components or services from the registry used when
       model_framework is MODEL_FRAMEWORK_REGISTRY. This ties the ML model file to the
       associated component or service that consumes the files and should be deployed
       along with the model.
       
      repeated string deployment_modular_resources = 4 [json_name = "deploymentModularResources"];
      Specified by:
      getDeploymentModularResourcesCount in interface AppOuterClass.UpdateMLTrainingMetadataOrBuilder
      Returns:
      The count of deploymentModularResources.
    • getDeploymentModularResources

      public String getDeploymentModularResources(int index)
       Colon-delimited triplets of components or services from the registry used when
       model_framework is MODEL_FRAMEWORK_REGISTRY. This ties the ML model file to the
       associated component or service that consumes the files and should be deployed
       along with the model.
       
      repeated string deployment_modular_resources = 4 [json_name = "deploymentModularResources"];
      Specified by:
      getDeploymentModularResources in interface AppOuterClass.UpdateMLTrainingMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The deploymentModularResources at the given index.
    • getDeploymentModularResourcesBytes

      public com.google.protobuf.ByteString getDeploymentModularResourcesBytes(int index)
       Colon-delimited triplets of components or services from the registry used when
       model_framework is MODEL_FRAMEWORK_REGISTRY. This ties the ML model file to the
       associated component or service that consumes the files and should be deployed
       along with the model.
       
      repeated string deployment_modular_resources = 4 [json_name = "deploymentModularResources"];
      Specified by:
      getDeploymentModularResourcesBytes in interface AppOuterClass.UpdateMLTrainingMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the deploymentModularResources at the given index.
    • setDeploymentModularResources

      public AppOuterClass.UpdateMLTrainingMetadata.Builder setDeploymentModularResources(int index, String value)
       Colon-delimited triplets of components or services from the registry used when
       model_framework is MODEL_FRAMEWORK_REGISTRY. This ties the ML model file to the
       associated component or service that consumes the files and should be deployed
       along with the model.
       
      repeated string deployment_modular_resources = 4 [json_name = "deploymentModularResources"];
      Parameters:
      index - The index to set the value at.
      value - The deploymentModularResources to set.
      Returns:
      This builder for chaining.
    • addDeploymentModularResources

      public AppOuterClass.UpdateMLTrainingMetadata.Builder addDeploymentModularResources(String value)
       Colon-delimited triplets of components or services from the registry used when
       model_framework is MODEL_FRAMEWORK_REGISTRY. This ties the ML model file to the
       associated component or service that consumes the files and should be deployed
       along with the model.
       
      repeated string deployment_modular_resources = 4 [json_name = "deploymentModularResources"];
      Parameters:
      value - The deploymentModularResources to add.
      Returns:
      This builder for chaining.
    • addAllDeploymentModularResources

      public AppOuterClass.UpdateMLTrainingMetadata.Builder addAllDeploymentModularResources(Iterable<String> values)
       Colon-delimited triplets of components or services from the registry used when
       model_framework is MODEL_FRAMEWORK_REGISTRY. This ties the ML model file to the
       associated component or service that consumes the files and should be deployed
       along with the model.
       
      repeated string deployment_modular_resources = 4 [json_name = "deploymentModularResources"];
      Parameters:
      values - The deploymentModularResources to add.
      Returns:
      This builder for chaining.
    • clearDeploymentModularResources

      public AppOuterClass.UpdateMLTrainingMetadata.Builder clearDeploymentModularResources()
       Colon-delimited triplets of components or services from the registry used when
       model_framework is MODEL_FRAMEWORK_REGISTRY. This ties the ML model file to the
       associated component or service that consumes the files and should be deployed
       along with the model.
       
      repeated string deployment_modular_resources = 4 [json_name = "deploymentModularResources"];
      Returns:
      This builder for chaining.
    • addDeploymentModularResourcesBytes

      public AppOuterClass.UpdateMLTrainingMetadata.Builder addDeploymentModularResourcesBytes(com.google.protobuf.ByteString value)
       Colon-delimited triplets of components or services from the registry used when
       model_framework is MODEL_FRAMEWORK_REGISTRY. This ties the ML model file to the
       associated component or service that consumes the files and should be deployed
       along with the model.
       
      repeated string deployment_modular_resources = 4 [json_name = "deploymentModularResources"];
      Parameters:
      value - The bytes of the deploymentModularResources to add.
      Returns:
      This builder for chaining.