Package org.mlflow.api.proto
Class ModelRegistry.CreateModelVersion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ModelRegistry.CreateModelVersion.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
org.mlflow.api.proto.ModelRegistry.CreateModelVersion.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ModelRegistry.CreateModelVersionOrBuilder
- Enclosing class:
ModelRegistry.CreateModelVersion
public static final class ModelRegistry.CreateModelVersion.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
implements ModelRegistry.CreateModelVersionOrBuilder
Protobuf type
mlflow.CreateModelVersion
-
Method Summary
Modifier and TypeMethodDescriptionaddAllTags
(Iterable<? extends ModelRegistry.ModelVersionTag> values) Additional metadata for model version.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTags
(int index, ModelRegistry.ModelVersionTag value) Additional metadata for model version.addTags
(int index, ModelRegistry.ModelVersionTag.Builder builderForValue) Additional metadata for model version.Additional metadata for model version.addTags
(ModelRegistry.ModelVersionTag.Builder builderForValue) Additional metadata for model version.Additional metadata for model version.addTagsBuilder
(int index) Additional metadata for model version.build()
clear()
Optional description for model version.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Register model under this nameclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking serverMLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.URI indicating the location of the model artifacts.Additional metadata for model version.clone()
Optional description for model version.com.google.protobuf.ByteString
Optional description for model version.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
Register model under this namecom.google.protobuf.ByteString
Register model under this namegetRunId()
MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking servercom.google.protobuf.ByteString
MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking serverMLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.com.google.protobuf.ByteString
MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.URI indicating the location of the model artifacts.com.google.protobuf.ByteString
URI indicating the location of the model artifacts.getTags
(int index) Additional metadata for model version.getTagsBuilder
(int index) Additional metadata for model version.Additional metadata for model version.int
Additional metadata for model version.Additional metadata for model version.getTagsOrBuilder
(int index) Additional metadata for model version.List
<? extends ModelRegistry.ModelVersionTagOrBuilder> Additional metadata for model version.boolean
Optional description for model version.boolean
hasName()
Register model under this nameboolean
hasRunId()
MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking serverboolean
MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.boolean
URI indicating the location of the model artifacts.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeTags
(int index) Additional metadata for model version.setDescription
(String value) Optional description for model version.setDescriptionBytes
(com.google.protobuf.ByteString value) Optional description for model version.Register model under this namesetNameBytes
(com.google.protobuf.ByteString value) Register model under this namesetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking serversetRunIdBytes
(com.google.protobuf.ByteString value) MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking serversetRunLink
(String value) MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.setRunLinkBytes
(com.google.protobuf.ByteString value) MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.URI indicating the location of the model artifacts.setSourceBytes
(com.google.protobuf.ByteString value) URI indicating the location of the model artifacts.setTags
(int index, ModelRegistry.ModelVersionTag value) Additional metadata for model version.setTags
(int index, ModelRegistry.ModelVersionTag.Builder builderForValue) Additional metadata for model version.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
setField
public ModelRegistry.CreateModelVersion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
clearField
public ModelRegistry.CreateModelVersion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
clearOneof
public ModelRegistry.CreateModelVersion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
setRepeatedField
public ModelRegistry.CreateModelVersion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
addRepeatedField
public ModelRegistry.CreateModelVersion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ModelRegistry.CreateModelVersion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
mergeFrom
public ModelRegistry.CreateModelVersion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ModelRegistry.CreateModelVersion.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()Register model under this name
optional string name = 1 [(.mlflow.validate_required) = true];
- Specified by:
hasName
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- Whether the name field is set.
-
getName
Register model under this name
optional string name = 1 [(.mlflow.validate_required) = true];
- Specified by:
getName
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Register model under this name
optional string name = 1 [(.mlflow.validate_required) = true];
- Specified by:
getNameBytes
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The bytes for name.
-
setName
Register model under this name
optional string name = 1 [(.mlflow.validate_required) = true];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Register model under this name
optional string name = 1 [(.mlflow.validate_required) = true];
- Returns:
- This builder for chaining.
-
setNameBytes
Register model under this name
optional string name = 1 [(.mlflow.validate_required) = true];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasSource
public boolean hasSource()URI indicating the location of the model artifacts.
optional string source = 2 [(.mlflow.validate_required) = true];
- Specified by:
hasSource
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
URI indicating the location of the model artifacts.
optional string source = 2 [(.mlflow.validate_required) = true];
- Specified by:
getSource
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()URI indicating the location of the model artifacts.
optional string source = 2 [(.mlflow.validate_required) = true];
- Specified by:
getSourceBytes
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The bytes for source.
-
setSource
URI indicating the location of the model artifacts.
optional string source = 2 [(.mlflow.validate_required) = true];
- Parameters:
value
- The source to set.- Returns:
- This builder for chaining.
-
clearSource
URI indicating the location of the model artifacts.
optional string source = 2 [(.mlflow.validate_required) = true];
- Returns:
- This builder for chaining.
-
setSourceBytes
public ModelRegistry.CreateModelVersion.Builder setSourceBytes(com.google.protobuf.ByteString value) URI indicating the location of the model artifacts.
optional string source = 2 [(.mlflow.validate_required) = true];
- Parameters:
value
- The bytes for source to set.- Returns:
- This builder for chaining.
-
hasRunId
public boolean hasRunId()MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking server
optional string run_id = 3;
- Specified by:
hasRunId
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- Whether the runId field is set.
-
getRunId
MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking server
optional string run_id = 3;
- Specified by:
getRunId
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The runId.
-
getRunIdBytes
public com.google.protobuf.ByteString getRunIdBytes()MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking server
optional string run_id = 3;
- Specified by:
getRunIdBytes
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The bytes for runId.
-
setRunId
MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking server
optional string run_id = 3;
- Parameters:
value
- The runId to set.- Returns:
- This builder for chaining.
-
clearRunId
MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking server
optional string run_id = 3;
- Returns:
- This builder for chaining.
-
setRunIdBytes
MLflow run ID for correlation, if ``source`` was generated by an experiment run in MLflow tracking server
optional string run_id = 3;
- Parameters:
value
- The bytes for runId to set.- Returns:
- This builder for chaining.
-
getTagsList
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
- Specified by:
getTagsList
in interfaceModelRegistry.CreateModelVersionOrBuilder
-
getTagsCount
public int getTagsCount()Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
- Specified by:
getTagsCount
in interfaceModelRegistry.CreateModelVersionOrBuilder
-
getTags
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
- Specified by:
getTags
in interfaceModelRegistry.CreateModelVersionOrBuilder
-
setTags
public ModelRegistry.CreateModelVersion.Builder setTags(int index, ModelRegistry.ModelVersionTag value) Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
setTags
public ModelRegistry.CreateModelVersion.Builder setTags(int index, ModelRegistry.ModelVersionTag.Builder builderForValue) Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
addTags
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
addTags
public ModelRegistry.CreateModelVersion.Builder addTags(int index, ModelRegistry.ModelVersionTag value) Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
addTags
public ModelRegistry.CreateModelVersion.Builder addTags(ModelRegistry.ModelVersionTag.Builder builderForValue) Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
addTags
public ModelRegistry.CreateModelVersion.Builder addTags(int index, ModelRegistry.ModelVersionTag.Builder builderForValue) Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
addAllTags
public ModelRegistry.CreateModelVersion.Builder addAllTags(Iterable<? extends ModelRegistry.ModelVersionTag> values) Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
clearTags
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
removeTags
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
getTagsBuilder
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
getTagsOrBuilder
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
- Specified by:
getTagsOrBuilder
in interfaceModelRegistry.CreateModelVersionOrBuilder
-
getTagsOrBuilderList
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
- Specified by:
getTagsOrBuilderList
in interfaceModelRegistry.CreateModelVersionOrBuilder
-
addTagsBuilder
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
addTagsBuilder
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
getTagsBuilderList
Additional metadata for model version.
repeated .mlflow.ModelVersionTag tags = 4;
-
hasRunLink
public boolean hasRunLink()MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.
optional string run_link = 5;
- Specified by:
hasRunLink
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- Whether the runLink field is set.
-
getRunLink
MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.
optional string run_link = 5;
- Specified by:
getRunLink
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The runLink.
-
getRunLinkBytes
public com.google.protobuf.ByteString getRunLinkBytes()MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.
optional string run_link = 5;
- Specified by:
getRunLinkBytes
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The bytes for runLink.
-
setRunLink
MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.
optional string run_link = 5;
- Parameters:
value
- The runLink to set.- Returns:
- This builder for chaining.
-
clearRunLink
MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.
optional string run_link = 5;
- Returns:
- This builder for chaining.
-
setRunLinkBytes
public ModelRegistry.CreateModelVersion.Builder setRunLinkBytes(com.google.protobuf.ByteString value) MLflow run link - this is the exact link of the run that generated this model version, potentially hosted at another instance of MLflow.
optional string run_link = 5;
- Parameters:
value
- The bytes for runLink to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()Optional description for model version.
optional string description = 6;
- Specified by:
hasDescription
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
Optional description for model version.
optional string description = 6;
- Specified by:
getDescription
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional description for model version.
optional string description = 6;
- Specified by:
getDescriptionBytes
in interfaceModelRegistry.CreateModelVersionOrBuilder
- Returns:
- The bytes for description.
-
setDescription
Optional description for model version.
optional string description = 6;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional description for model version.
optional string description = 6;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public ModelRegistry.CreateModelVersion.Builder setDescriptionBytes(com.google.protobuf.ByteString value) Optional description for model version.
optional string description = 6;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ModelRegistry.CreateModelVersion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-
mergeUnknownFields
public final ModelRegistry.CreateModelVersion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.CreateModelVersion.Builder>
-