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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllVersions
(Iterable<String> values) A list of package versions for a ML modeladdVersions
(String value) A list of package versions for a ML modeladdVersionsBytes
(com.google.protobuf.ByteString value) A list of package versions for a ML model.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 a ML model.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 a ML modelcom.google.protobuf.ByteString
getVersionsBytes
(int index) A list of package versions for a ML modelint
A list of package versions for a ML modelA list of package versions for a ML model.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, String value) A list of package versions for a ML modelMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getVersionsList
A list of package versions for a ML model
repeated string versions = 1 [json_name = "versions"];
- Specified by:
getVersionsList
in interfaceApp.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 interfaceApp.MLModelMetadataOrBuilder
- Returns:
- The count of versions.
-
getVersions
A list of package versions for a ML model
repeated string versions = 1 [json_name = "versions"];
- Specified by:
getVersions
in interfaceApp.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 interfaceApp.MLModelMetadataOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the versions at the given index.
-
setVersions
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
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
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
A list of package versions for a ML model
repeated string versions = 1 [json_name = "versions"];
- Returns:
- This builder for chaining.
-
addVersionsBytes
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 interfaceApp.MLModelMetadataOrBuilder
- 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:
getModelType
in interfaceApp.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
.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 interfaceApp.MLModelMetadataOrBuilder
- 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:
getModelFramework
in interfaceApp.MLModelMetadataOrBuilder
- 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
.viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"];
- Returns:
- This builder for chaining.
-