Package org.mlflow.api.proto
Class Service.RunInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Service.RunInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Service.RunInfo.Builder>
org.mlflow.api.proto.Service.RunInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Service.RunInfoOrBuilder
- Enclosing class:
Service.RunInfo
public static final class Service.RunInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Service.RunInfo.Builder>
implements Service.RunInfoOrBuilder
Metadata of a single run.Protobuf type
mlflow.RunInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
URI of the directory where artifacts should be uploaded.Unix timestamp of when the run ended in milliseconds.The experiment ID.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Current life cycle stage of the experiment : OneOf("active", "deleted")clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Unique identifier for the run.The name of the run.[Deprecated, use run_id instead] Unique identifier for the run.Unix timestamp of when the run started in milliseconds.Current status of the run.User who initiated the run.clone()
URI of the directory where artifacts should be uploaded.com.google.protobuf.ByteString
URI of the directory where artifacts should be uploaded.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
Unix timestamp of when the run ended in milliseconds.The experiment ID.com.google.protobuf.ByteString
The experiment ID.Current life cycle stage of the experiment : OneOf("active", "deleted")com.google.protobuf.ByteString
Current life cycle stage of the experiment : OneOf("active", "deleted")getRunId()
Unique identifier for the run.com.google.protobuf.ByteString
Unique identifier for the run.The name of the run.com.google.protobuf.ByteString
The name of the run.[Deprecated, use run_id instead] Unique identifier for the run.com.google.protobuf.ByteString
[Deprecated, use run_id instead] Unique identifier for the run.long
Unix timestamp of when the run started in milliseconds.Current status of the run.User who initiated the run.com.google.protobuf.ByteString
User who initiated the run.boolean
URI of the directory where artifacts should be uploaded.boolean
Unix timestamp of when the run ended in milliseconds.boolean
The experiment ID.boolean
Current life cycle stage of the experiment : OneOf("active", "deleted")boolean
hasRunId()
Unique identifier for the run.boolean
The name of the run.boolean
[Deprecated, use run_id instead] Unique identifier for the run.boolean
Unix timestamp of when the run started in milliseconds.boolean
Current status of the run.boolean
User who initiated the run.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) mergeFrom
(Service.RunInfo other) final Service.RunInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setArtifactUri
(String value) URI of the directory where artifacts should be uploaded.setArtifactUriBytes
(com.google.protobuf.ByteString value) URI of the directory where artifacts should be uploaded.setEndTime
(long value) Unix timestamp of when the run ended in milliseconds.setExperimentId
(String value) The experiment ID.setExperimentIdBytes
(com.google.protobuf.ByteString value) The experiment ID.setLifecycleStage
(String value) Current life cycle stage of the experiment : OneOf("active", "deleted")setLifecycleStageBytes
(com.google.protobuf.ByteString value) Current life cycle stage of the experiment : OneOf("active", "deleted")setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Unique identifier for the run.setRunIdBytes
(com.google.protobuf.ByteString value) Unique identifier for the run.setRunName
(String value) The name of the run.setRunNameBytes
(com.google.protobuf.ByteString value) The name of the run.setRunUuid
(String value) [Deprecated, use run_id instead] Unique identifier for the run.setRunUuidBytes
(com.google.protobuf.ByteString value) [Deprecated, use run_id instead] Unique identifier for the run.setStartTime
(long value) Unix timestamp of when the run started in milliseconds.setStatus
(Service.RunStatus value) Current status of the run.final Service.RunInfo.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) User who initiated the run.setUserIdBytes
(com.google.protobuf.ByteString value) User who initiated the run.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<Service.RunInfo.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<Service.RunInfo.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<Service.RunInfo.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<Service.RunInfo.Builder>
-
setField
public Service.RunInfo.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<Service.RunInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.RunInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.RunInfo.Builder>
-
setRepeatedField
public Service.RunInfo.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<Service.RunInfo.Builder>
-
addRepeatedField
public Service.RunInfo.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<Service.RunInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Service.RunInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.RunInfo.Builder>
-
mergeFrom
public Service.RunInfo.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<Service.RunInfo.Builder>
- Throws:
IOException
-
hasRunId
public boolean hasRunId()Unique identifier for the run.
optional string run_id = 15;
- Specified by:
hasRunId
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the runId field is set.
-
getRunId
Unique identifier for the run.
optional string run_id = 15;
- Specified by:
getRunId
in interfaceService.RunInfoOrBuilder
- Returns:
- The runId.
-
getRunIdBytes
public com.google.protobuf.ByteString getRunIdBytes()Unique identifier for the run.
optional string run_id = 15;
- Specified by:
getRunIdBytes
in interfaceService.RunInfoOrBuilder
- Returns:
- The bytes for runId.
-
setRunId
Unique identifier for the run.
optional string run_id = 15;
- Parameters:
value
- The runId to set.- Returns:
- This builder for chaining.
-
clearRunId
Unique identifier for the run.
optional string run_id = 15;
- Returns:
- This builder for chaining.
-
setRunIdBytes
Unique identifier for the run.
optional string run_id = 15;
- Parameters:
value
- The bytes for runId to set.- Returns:
- This builder for chaining.
-
hasRunUuid
public boolean hasRunUuid()[Deprecated, use run_id instead] Unique identifier for the run. This field will be removed in a future MLflow version.
optional string run_uuid = 1;
- Specified by:
hasRunUuid
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the runUuid field is set.
-
getRunUuid
[Deprecated, use run_id instead] Unique identifier for the run. This field will be removed in a future MLflow version.
optional string run_uuid = 1;
- Specified by:
getRunUuid
in interfaceService.RunInfoOrBuilder
- Returns:
- The runUuid.
-
getRunUuidBytes
public com.google.protobuf.ByteString getRunUuidBytes()[Deprecated, use run_id instead] Unique identifier for the run. This field will be removed in a future MLflow version.
optional string run_uuid = 1;
- Specified by:
getRunUuidBytes
in interfaceService.RunInfoOrBuilder
- Returns:
- The bytes for runUuid.
-
setRunUuid
[Deprecated, use run_id instead] Unique identifier for the run. This field will be removed in a future MLflow version.
optional string run_uuid = 1;
- Parameters:
value
- The runUuid to set.- Returns:
- This builder for chaining.
-
clearRunUuid
[Deprecated, use run_id instead] Unique identifier for the run. This field will be removed in a future MLflow version.
optional string run_uuid = 1;
- Returns:
- This builder for chaining.
-
setRunUuidBytes
[Deprecated, use run_id instead] Unique identifier for the run. This field will be removed in a future MLflow version.
optional string run_uuid = 1;
- Parameters:
value
- The bytes for runUuid to set.- Returns:
- This builder for chaining.
-
hasRunName
public boolean hasRunName()The name of the run.
optional string run_name = 3;
- Specified by:
hasRunName
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the runName field is set.
-
getRunName
The name of the run.
optional string run_name = 3;
- Specified by:
getRunName
in interfaceService.RunInfoOrBuilder
- Returns:
- The runName.
-
getRunNameBytes
public com.google.protobuf.ByteString getRunNameBytes()The name of the run.
optional string run_name = 3;
- Specified by:
getRunNameBytes
in interfaceService.RunInfoOrBuilder
- Returns:
- The bytes for runName.
-
setRunName
The name of the run.
optional string run_name = 3;
- Parameters:
value
- The runName to set.- Returns:
- This builder for chaining.
-
clearRunName
The name of the run.
optional string run_name = 3;
- Returns:
- This builder for chaining.
-
setRunNameBytes
The name of the run.
optional string run_name = 3;
- Parameters:
value
- The bytes for runName to set.- Returns:
- This builder for chaining.
-
hasExperimentId
public boolean hasExperimentId()The experiment ID.
optional string experiment_id = 2;
- Specified by:
hasExperimentId
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the experimentId field is set.
-
getExperimentId
The experiment ID.
optional string experiment_id = 2;
- Specified by:
getExperimentId
in interfaceService.RunInfoOrBuilder
- Returns:
- The experimentId.
-
getExperimentIdBytes
public com.google.protobuf.ByteString getExperimentIdBytes()The experiment ID.
optional string experiment_id = 2;
- Specified by:
getExperimentIdBytes
in interfaceService.RunInfoOrBuilder
- Returns:
- The bytes for experimentId.
-
setExperimentId
The experiment ID.
optional string experiment_id = 2;
- Parameters:
value
- The experimentId to set.- Returns:
- This builder for chaining.
-
clearExperimentId
The experiment ID.
optional string experiment_id = 2;
- Returns:
- This builder for chaining.
-
setExperimentIdBytes
The experiment ID.
optional string experiment_id = 2;
- Parameters:
value
- The bytes for experimentId to set.- Returns:
- This builder for chaining.
-
hasUserId
public boolean hasUserId()User who initiated the run. This field is deprecated as of MLflow 1.0, and will be removed in a future MLflow release. Use 'mlflow.user' tag instead.
optional string user_id = 6;
- Specified by:
hasUserId
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the userId field is set.
-
getUserId
User who initiated the run. This field is deprecated as of MLflow 1.0, and will be removed in a future MLflow release. Use 'mlflow.user' tag instead.
optional string user_id = 6;
- Specified by:
getUserId
in interfaceService.RunInfoOrBuilder
- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()User who initiated the run. This field is deprecated as of MLflow 1.0, and will be removed in a future MLflow release. Use 'mlflow.user' tag instead.
optional string user_id = 6;
- Specified by:
getUserIdBytes
in interfaceService.RunInfoOrBuilder
- Returns:
- The bytes for userId.
-
setUserId
User who initiated the run. This field is deprecated as of MLflow 1.0, and will be removed in a future MLflow release. Use 'mlflow.user' tag instead.
optional string user_id = 6;
- Parameters:
value
- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
User who initiated the run. This field is deprecated as of MLflow 1.0, and will be removed in a future MLflow release. Use 'mlflow.user' tag instead.
optional string user_id = 6;
- Returns:
- This builder for chaining.
-
setUserIdBytes
User who initiated the run. This field is deprecated as of MLflow 1.0, and will be removed in a future MLflow release. Use 'mlflow.user' tag instead.
optional string user_id = 6;
- Parameters:
value
- The bytes for userId to set.- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()Current status of the run.
optional .mlflow.RunStatus status = 7;
- Specified by:
hasStatus
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
Current status of the run.
optional .mlflow.RunStatus status = 7;
- Specified by:
getStatus
in interfaceService.RunInfoOrBuilder
- Returns:
- The status.
-
setStatus
Current status of the run.
optional .mlflow.RunStatus status = 7;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Current status of the run.
optional .mlflow.RunStatus status = 7;
- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()Unix timestamp of when the run started in milliseconds.
optional int64 start_time = 8;
- Specified by:
hasStartTime
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
public long getStartTime()Unix timestamp of when the run started in milliseconds.
optional int64 start_time = 8;
- Specified by:
getStartTime
in interfaceService.RunInfoOrBuilder
- Returns:
- The startTime.
-
setStartTime
Unix timestamp of when the run started in milliseconds.
optional int64 start_time = 8;
- Parameters:
value
- The startTime to set.- Returns:
- This builder for chaining.
-
clearStartTime
Unix timestamp of when the run started in milliseconds.
optional int64 start_time = 8;
- Returns:
- This builder for chaining.
-
hasEndTime
public boolean hasEndTime()Unix timestamp of when the run ended in milliseconds.
optional int64 end_time = 9;
- Specified by:
hasEndTime
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the endTime field is set.
-
getEndTime
public long getEndTime()Unix timestamp of when the run ended in milliseconds.
optional int64 end_time = 9;
- Specified by:
getEndTime
in interfaceService.RunInfoOrBuilder
- Returns:
- The endTime.
-
setEndTime
Unix timestamp of when the run ended in milliseconds.
optional int64 end_time = 9;
- Parameters:
value
- The endTime to set.- Returns:
- This builder for chaining.
-
clearEndTime
Unix timestamp of when the run ended in milliseconds.
optional int64 end_time = 9;
- Returns:
- This builder for chaining.
-
hasArtifactUri
public boolean hasArtifactUri()URI of the directory where artifacts should be uploaded. This can be a local path (starting with "/"), or a distributed file system (DFS) path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``. If not set, the local ``./mlruns`` directory is chosen.
optional string artifact_uri = 13;
- Specified by:
hasArtifactUri
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the artifactUri field is set.
-
getArtifactUri
URI of the directory where artifacts should be uploaded. This can be a local path (starting with "/"), or a distributed file system (DFS) path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``. If not set, the local ``./mlruns`` directory is chosen.
optional string artifact_uri = 13;
- Specified by:
getArtifactUri
in interfaceService.RunInfoOrBuilder
- Returns:
- The artifactUri.
-
getArtifactUriBytes
public com.google.protobuf.ByteString getArtifactUriBytes()URI of the directory where artifacts should be uploaded. This can be a local path (starting with "/"), or a distributed file system (DFS) path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``. If not set, the local ``./mlruns`` directory is chosen.
optional string artifact_uri = 13;
- Specified by:
getArtifactUriBytes
in interfaceService.RunInfoOrBuilder
- Returns:
- The bytes for artifactUri.
-
setArtifactUri
URI of the directory where artifacts should be uploaded. This can be a local path (starting with "/"), or a distributed file system (DFS) path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``. If not set, the local ``./mlruns`` directory is chosen.
optional string artifact_uri = 13;
- Parameters:
value
- The artifactUri to set.- Returns:
- This builder for chaining.
-
clearArtifactUri
URI of the directory where artifacts should be uploaded. This can be a local path (starting with "/"), or a distributed file system (DFS) path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``. If not set, the local ``./mlruns`` directory is chosen.
optional string artifact_uri = 13;
- Returns:
- This builder for chaining.
-
setArtifactUriBytes
URI of the directory where artifacts should be uploaded. This can be a local path (starting with "/"), or a distributed file system (DFS) path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``. If not set, the local ``./mlruns`` directory is chosen.
optional string artifact_uri = 13;
- Parameters:
value
- The bytes for artifactUri to set.- Returns:
- This builder for chaining.
-
hasLifecycleStage
public boolean hasLifecycleStage()Current life cycle stage of the experiment : OneOf("active", "deleted")
optional string lifecycle_stage = 14;
- Specified by:
hasLifecycleStage
in interfaceService.RunInfoOrBuilder
- Returns:
- Whether the lifecycleStage field is set.
-
getLifecycleStage
Current life cycle stage of the experiment : OneOf("active", "deleted")
optional string lifecycle_stage = 14;
- Specified by:
getLifecycleStage
in interfaceService.RunInfoOrBuilder
- Returns:
- The lifecycleStage.
-
getLifecycleStageBytes
public com.google.protobuf.ByteString getLifecycleStageBytes()Current life cycle stage of the experiment : OneOf("active", "deleted")
optional string lifecycle_stage = 14;
- Specified by:
getLifecycleStageBytes
in interfaceService.RunInfoOrBuilder
- Returns:
- The bytes for lifecycleStage.
-
setLifecycleStage
Current life cycle stage of the experiment : OneOf("active", "deleted")
optional string lifecycle_stage = 14;
- Parameters:
value
- The lifecycleStage to set.- Returns:
- This builder for chaining.
-
clearLifecycleStage
Current life cycle stage of the experiment : OneOf("active", "deleted")
optional string lifecycle_stage = 14;
- Returns:
- This builder for chaining.
-
setLifecycleStageBytes
Current life cycle stage of the experiment : OneOf("active", "deleted")
optional string lifecycle_stage = 14;
- Parameters:
value
- The bytes for lifecycleStage to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Service.RunInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.RunInfo.Builder>
-
mergeUnknownFields
public final Service.RunInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.RunInfo.Builder>
-