Package viam.app.v1
Class AppOuterClass.MLTrainingMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<AppOuterClass.MLTrainingMetadata,AppOuterClass.MLTrainingMetadata.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<AppOuterClass.MLTrainingMetadata,AppOuterClass.MLTrainingMetadata.Builder>
viam.app.v1.AppOuterClass.MLTrainingMetadata.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable,AppOuterClass.MLTrainingMetadataOrBuilder
- Enclosing class:
AppOuterClass.MLTrainingMetadata
public static final class AppOuterClass.MLTrainingMetadata.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<AppOuterClass.MLTrainingMetadata,AppOuterClass.MLTrainingMetadata.Builder>
implements AppOuterClass.MLTrainingMetadataOrBuilder
Protobuf type
viam.app.v1.MLTrainingMetadata-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionColon-delimited triplets of components or services from the registry used when model_framework is MODEL_FRAMEWORK_REGISTRY.addAllVersions(Iterable<? extends AppOuterClass.MLTrainingVersion> values) A list of package versions for ML training source distributionColon-delimited triplets of components or services from the registry used when model_framework is MODEL_FRAMEWORK_REGISTRY.addDeploymentModularResourcesBytes(com.google.protobuf.ByteString value) Colon-delimited triplets of components or services from the registry used when model_framework is MODEL_FRAMEWORK_REGISTRY.addVersions(int index, AppOuterClass.MLTrainingVersion value) A list of package versions for ML training source distributionaddVersions(int index, AppOuterClass.MLTrainingVersion.Builder builderForValue) A list of package versions for ML training source distributionA list of package versions for ML training source distributionaddVersions(AppOuterClass.MLTrainingVersion.Builder builderForValue) A list of package versions for ML training source distributionColon-delimited triplets of components or services from the registry used when model_framework is MODEL_FRAMEWORK_REGISTRY.bool draft = 4 [json_name = "draft"];.viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];.viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];A list of package versions for ML training source distributiongetDeploymentModularResources(int index) Colon-delimited triplets of components or services from the registry used when model_framework is MODEL_FRAMEWORK_REGISTRY.com.google.protobuf.ByteStringgetDeploymentModularResourcesBytes(int index) Colon-delimited triplets of components or services from the registry used when model_framework is MODEL_FRAMEWORK_REGISTRY.intColon-delimited triplets of components or services from the registry used when model_framework is MODEL_FRAMEWORK_REGISTRY.Colon-delimited triplets of components or services from the registry used when model_framework is MODEL_FRAMEWORK_REGISTRY.booleangetDraft()bool draft = 4 [json_name = "draft"];.viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];int.viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];.viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];int.viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];getVersions(int index) A list of package versions for ML training source distributionintA list of package versions for ML training source distributionA list of package versions for ML training source distributionremoveVersions(int index) A list of package versions for ML training source distributionsetDeploymentModularResources(int index, String value) Colon-delimited triplets of components or services from the registry used when model_framework is MODEL_FRAMEWORK_REGISTRY.setDraft(boolean value) bool draft = 4 [json_name = "draft"];.viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];setModelFrameworkValue(int value) .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];setModelType(MlTraining.ModelType value) .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];setModelTypeValue(int value) .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];setVersions(int index, AppOuterClass.MLTrainingVersion value) A list of package versions for ML training source distributionsetVersions(int index, AppOuterClass.MLTrainingVersion.Builder builderForValue) A list of package versions for ML training source distributionMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getVersionsList
A list of package versions for ML training source distribution
repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];- Specified by:
getVersionsListin interfaceAppOuterClass.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:
getVersionsCountin interfaceAppOuterClass.MLTrainingMetadataOrBuilder
-
getVersions
A list of package versions for ML training source distribution
repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"];- Specified by:
getVersionsin interfaceAppOuterClass.MLTrainingMetadataOrBuilder
-
setVersions
public AppOuterClass.MLTrainingMetadata.Builder setVersions(int index, AppOuterClass.MLTrainingVersion value) A list of package versions for ML training source distribution
repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; -
setVersions
public AppOuterClass.MLTrainingMetadata.Builder setVersions(int index, AppOuterClass.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 AppOuterClass.MLTrainingMetadata.Builder addVersions(int index, AppOuterClass.MLTrainingVersion value) A list of package versions for ML training source distribution
repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; -
addVersions
public AppOuterClass.MLTrainingMetadata.Builder addVersions(AppOuterClass.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 AppOuterClass.MLTrainingMetadata.Builder addVersions(int index, AppOuterClass.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 AppOuterClass.MLTrainingMetadata.Builder addAllVersions(Iterable<? extends AppOuterClass.MLTrainingVersion> values) A list of package versions for ML training source distribution
repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; -
clearVersions
A list of package versions for ML training source distribution
repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; -
removeVersions
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:
getModelTypeValuein interfaceAppOuterClass.MLTrainingMetadataOrBuilder- Returns:
- The enum numeric value on the wire for modelType.
-
setModelTypeValue
.viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];- Parameters:
value- The modelType to set.- Returns:
- This builder for chaining.
-
getModelType
.viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"];- Specified by:
getModelTypein interfaceAppOuterClass.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.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
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:
getModelFrameworkValuein interfaceAppOuterClass.MLTrainingMetadataOrBuilder- Returns:
- The enum numeric value on the wire for modelFramework.
-
setModelFrameworkValue
.viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];- Parameters:
value- The modelFramework to set.- Returns:
- This builder for chaining.
-
getModelFramework
.viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];- Specified by:
getModelFrameworkin interfaceAppOuterClass.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.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
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:
getDraftin interfaceAppOuterClass.MLTrainingMetadataOrBuilder- Returns:
- The draft.
-
setDraft
bool draft = 4 [json_name = "draft"];- Parameters:
value- The draft to set.- Returns:
- This builder for chaining.
-
clearDraft
bool draft = 4 [json_name = "draft"];- Returns:
- This builder for chaining.
-
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. Copied onto packages published by this training script.
repeated string deployment_modular_resources = 6 [json_name = "deploymentModularResources"];- Specified by:
getDeploymentModularResourcesListin interfaceAppOuterClass.MLTrainingMetadataOrBuilder- 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. Copied onto packages published by this training script.
repeated string deployment_modular_resources = 6 [json_name = "deploymentModularResources"];- Specified by:
getDeploymentModularResourcesCountin interfaceAppOuterClass.MLTrainingMetadataOrBuilder- Returns:
- The count of deploymentModularResources.
-
getDeploymentModularResources
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. Copied onto packages published by this training script.
repeated string deployment_modular_resources = 6 [json_name = "deploymentModularResources"];- Specified by:
getDeploymentModularResourcesin interfaceAppOuterClass.MLTrainingMetadataOrBuilder- 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. Copied onto packages published by this training script.
repeated string deployment_modular_resources = 6 [json_name = "deploymentModularResources"];- Specified by:
getDeploymentModularResourcesBytesin interfaceAppOuterClass.MLTrainingMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the deploymentModularResources at the given index.
-
setDeploymentModularResources
public AppOuterClass.MLTrainingMetadata.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. Copied onto packages published by this training script.
repeated string deployment_modular_resources = 6 [json_name = "deploymentModularResources"];- Parameters:
index- The index to set the value at.value- The deploymentModularResources to set.- Returns:
- This builder for chaining.
-
addDeploymentModularResources
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. Copied onto packages published by this training script.
repeated string deployment_modular_resources = 6 [json_name = "deploymentModularResources"];- Parameters:
value- The deploymentModularResources to add.- Returns:
- This builder for chaining.
-
addAllDeploymentModularResources
public AppOuterClass.MLTrainingMetadata.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. Copied onto packages published by this training script.
repeated string deployment_modular_resources = 6 [json_name = "deploymentModularResources"];- Parameters:
values- The deploymentModularResources to add.- Returns:
- This builder for chaining.
-
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. Copied onto packages published by this training script.
repeated string deployment_modular_resources = 6 [json_name = "deploymentModularResources"];- Returns:
- This builder for chaining.
-
addDeploymentModularResourcesBytes
public AppOuterClass.MLTrainingMetadata.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. Copied onto packages published by this training script.
repeated string deployment_modular_resources = 6 [json_name = "deploymentModularResources"];- Parameters:
value- The bytes of the deploymentModularResources to add.- Returns:
- This builder for chaining.
-