Package org.mlflow.api.proto
Class Service.Dataset.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Service.Dataset.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Service.Dataset.Builder>
org.mlflow.api.proto.Service.Dataset.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Service.DatasetOrBuilder
- Enclosing class:
Service.Dataset
public static final class Service.Dataset.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Service.Dataset.Builder>
implements Service.DatasetOrBuilder
Dataset. Represents a reference to data used for training, testing, or evaluation during the model development process.Protobuf type
mlflow.Dataset
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Dataset digest, e.g.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The name of the dataset.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The profile of the dataset.The schema of the dataset.The type of the dataset source, e.g.Source information for the dataset.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Dataset digest, e.g.com.google.protobuf.ByteString
Dataset digest, e.g.getName()
The name of the dataset.com.google.protobuf.ByteString
The name of the dataset.The profile of the dataset.com.google.protobuf.ByteString
The profile of the dataset.The schema of the dataset.com.google.protobuf.ByteString
The schema of the dataset.The type of the dataset source, e.g.com.google.protobuf.ByteString
The type of the dataset source, e.g.Source information for the dataset.com.google.protobuf.ByteString
Source information for the dataset.boolean
Dataset digest, e.g.boolean
hasName()
The name of the dataset.boolean
The profile of the dataset.boolean
The schema of the dataset.boolean
The type of the dataset source, e.g.boolean
Source information for the dataset.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.Dataset other) final Service.Dataset.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Dataset digest, e.g.setDigestBytes
(com.google.protobuf.ByteString value) Dataset digest, e.g.The name of the dataset.setNameBytes
(com.google.protobuf.ByteString value) The name of the dataset.setProfile
(String value) The profile of the dataset.setProfileBytes
(com.google.protobuf.ByteString value) The profile of the dataset.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The schema of the dataset.setSchemaBytes
(com.google.protobuf.ByteString value) The schema of the dataset.The type of the dataset source, e.g.setSourceBytes
(com.google.protobuf.ByteString value) The type of the dataset source, e.g.setSourceType
(String value) Source information for the dataset.setSourceTypeBytes
(com.google.protobuf.ByteString value) Source information for the dataset.final Service.Dataset.Builder
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<Service.Dataset.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.Dataset.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.Dataset.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.Dataset.Builder>
-
setField
public Service.Dataset.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.Dataset.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Dataset.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Dataset.Builder>
-
setRepeatedField
public Service.Dataset.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.Dataset.Builder>
-
addRepeatedField
public Service.Dataset.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.Dataset.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Service.Dataset.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Dataset.Builder>
-
mergeFrom
public Service.Dataset.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.Dataset.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()The name of the dataset. E.g. “my.uc.table@2” “nyc-taxi-dataset”, “fantastic-elk-3”
optional string name = 1 [(.mlflow.validate_required) = true];
- Specified by:
hasName
in interfaceService.DatasetOrBuilder
- Returns:
- Whether the name field is set.
-
getName
The name of the dataset. E.g. “my.uc.table@2” “nyc-taxi-dataset”, “fantastic-elk-3”
optional string name = 1 [(.mlflow.validate_required) = true];
- Specified by:
getName
in interfaceService.DatasetOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the dataset. E.g. “my.uc.table@2” “nyc-taxi-dataset”, “fantastic-elk-3”
optional string name = 1 [(.mlflow.validate_required) = true];
- Specified by:
getNameBytes
in interfaceService.DatasetOrBuilder
- Returns:
- The bytes for name.
-
setName
The name of the dataset. E.g. “my.uc.table@2” “nyc-taxi-dataset”, “fantastic-elk-3”
optional string name = 1 [(.mlflow.validate_required) = true];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the dataset. E.g. “my.uc.table@2” “nyc-taxi-dataset”, “fantastic-elk-3”
optional string name = 1 [(.mlflow.validate_required) = true];
- Returns:
- This builder for chaining.
-
setNameBytes
The name of the dataset. E.g. “my.uc.table@2” “nyc-taxi-dataset”, “fantastic-elk-3”
optional string name = 1 [(.mlflow.validate_required) = true];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasDigest
public boolean hasDigest()Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it within datasets of the same name.
optional string digest = 2 [(.mlflow.validate_required) = true];
- Specified by:
hasDigest
in interfaceService.DatasetOrBuilder
- Returns:
- Whether the digest field is set.
-
getDigest
Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it within datasets of the same name.
optional string digest = 2 [(.mlflow.validate_required) = true];
- Specified by:
getDigest
in interfaceService.DatasetOrBuilder
- Returns:
- The digest.
-
getDigestBytes
public com.google.protobuf.ByteString getDigestBytes()Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it within datasets of the same name.
optional string digest = 2 [(.mlflow.validate_required) = true];
- Specified by:
getDigestBytes
in interfaceService.DatasetOrBuilder
- Returns:
- The bytes for digest.
-
setDigest
Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it within datasets of the same name.
optional string digest = 2 [(.mlflow.validate_required) = true];
- Parameters:
value
- The digest to set.- Returns:
- This builder for chaining.
-
clearDigest
Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it within datasets of the same name.
optional string digest = 2 [(.mlflow.validate_required) = true];
- Returns:
- This builder for chaining.
-
setDigestBytes
Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it within datasets of the same name.
optional string digest = 2 [(.mlflow.validate_required) = true];
- Parameters:
value
- The bytes for digest to set.- Returns:
- This builder for chaining.
-
hasSourceType
public boolean hasSourceType()Source information for the dataset. Note that the source may not exactly reproduce the dataset if it was transformed / modified before use with MLflow.
optional string source_type = 3 [(.mlflow.validate_required) = true];
- Specified by:
hasSourceType
in interfaceService.DatasetOrBuilder
- Returns:
- Whether the sourceType field is set.
-
getSourceType
Source information for the dataset. Note that the source may not exactly reproduce the dataset if it was transformed / modified before use with MLflow.
optional string source_type = 3 [(.mlflow.validate_required) = true];
- Specified by:
getSourceType
in interfaceService.DatasetOrBuilder
- Returns:
- The sourceType.
-
getSourceTypeBytes
public com.google.protobuf.ByteString getSourceTypeBytes()Source information for the dataset. Note that the source may not exactly reproduce the dataset if it was transformed / modified before use with MLflow.
optional string source_type = 3 [(.mlflow.validate_required) = true];
- Specified by:
getSourceTypeBytes
in interfaceService.DatasetOrBuilder
- Returns:
- The bytes for sourceType.
-
setSourceType
Source information for the dataset. Note that the source may not exactly reproduce the dataset if it was transformed / modified before use with MLflow.
optional string source_type = 3 [(.mlflow.validate_required) = true];
- Parameters:
value
- The sourceType to set.- Returns:
- This builder for chaining.
-
clearSourceType
Source information for the dataset. Note that the source may not exactly reproduce the dataset if it was transformed / modified before use with MLflow.
optional string source_type = 3 [(.mlflow.validate_required) = true];
- Returns:
- This builder for chaining.
-
setSourceTypeBytes
Source information for the dataset. Note that the source may not exactly reproduce the dataset if it was transformed / modified before use with MLflow.
optional string source_type = 3 [(.mlflow.validate_required) = true];
- Parameters:
value
- The bytes for sourceType to set.- Returns:
- This builder for chaining.
-
hasSource
public boolean hasSource()The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
optional string source = 4 [(.mlflow.validate_required) = true];
- Specified by:
hasSource
in interfaceService.DatasetOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
optional string source = 4 [(.mlflow.validate_required) = true];
- Specified by:
getSource
in interfaceService.DatasetOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
optional string source = 4 [(.mlflow.validate_required) = true];
- Specified by:
getSourceBytes
in interfaceService.DatasetOrBuilder
- Returns:
- The bytes for source.
-
setSource
The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
optional string source = 4 [(.mlflow.validate_required) = true];
- Parameters:
value
- The source to set.- Returns:
- This builder for chaining.
-
clearSource
The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
optional string source = 4 [(.mlflow.validate_required) = true];
- Returns:
- This builder for chaining.
-
setSourceBytes
The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
optional string source = 4 [(.mlflow.validate_required) = true];
- Parameters:
value
- The bytes for source to set.- Returns:
- This builder for chaining.
-
hasSchema
public boolean hasSchema()The schema of the dataset. E.g., MLflow ColSpec JSON for a dataframe, MLflow TensorSpec JSON for an ndarray, or another schema format.
optional string schema = 5;
- Specified by:
hasSchema
in interfaceService.DatasetOrBuilder
- Returns:
- Whether the schema field is set.
-
getSchema
The schema of the dataset. E.g., MLflow ColSpec JSON for a dataframe, MLflow TensorSpec JSON for an ndarray, or another schema format.
optional string schema = 5;
- Specified by:
getSchema
in interfaceService.DatasetOrBuilder
- Returns:
- The schema.
-
getSchemaBytes
public com.google.protobuf.ByteString getSchemaBytes()The schema of the dataset. E.g., MLflow ColSpec JSON for a dataframe, MLflow TensorSpec JSON for an ndarray, or another schema format.
optional string schema = 5;
- Specified by:
getSchemaBytes
in interfaceService.DatasetOrBuilder
- Returns:
- The bytes for schema.
-
setSchema
The schema of the dataset. E.g., MLflow ColSpec JSON for a dataframe, MLflow TensorSpec JSON for an ndarray, or another schema format.
optional string schema = 5;
- Parameters:
value
- The schema to set.- Returns:
- This builder for chaining.
-
clearSchema
The schema of the dataset. E.g., MLflow ColSpec JSON for a dataframe, MLflow TensorSpec JSON for an ndarray, or another schema format.
optional string schema = 5;
- Returns:
- This builder for chaining.
-
setSchemaBytes
The schema of the dataset. E.g., MLflow ColSpec JSON for a dataframe, MLflow TensorSpec JSON for an ndarray, or another schema format.
optional string schema = 5;
- Parameters:
value
- The bytes for schema to set.- Returns:
- This builder for chaining.
-
hasProfile
public boolean hasProfile()The profile of the dataset. Summary statistics for the dataset, such as the number of rows in a table, the mean / std / mode of each column in a table, or the number of elements in an array.
optional string profile = 6;
- Specified by:
hasProfile
in interfaceService.DatasetOrBuilder
- Returns:
- Whether the profile field is set.
-
getProfile
The profile of the dataset. Summary statistics for the dataset, such as the number of rows in a table, the mean / std / mode of each column in a table, or the number of elements in an array.
optional string profile = 6;
- Specified by:
getProfile
in interfaceService.DatasetOrBuilder
- Returns:
- The profile.
-
getProfileBytes
public com.google.protobuf.ByteString getProfileBytes()The profile of the dataset. Summary statistics for the dataset, such as the number of rows in a table, the mean / std / mode of each column in a table, or the number of elements in an array.
optional string profile = 6;
- Specified by:
getProfileBytes
in interfaceService.DatasetOrBuilder
- Returns:
- The bytes for profile.
-
setProfile
The profile of the dataset. Summary statistics for the dataset, such as the number of rows in a table, the mean / std / mode of each column in a table, or the number of elements in an array.
optional string profile = 6;
- Parameters:
value
- The profile to set.- Returns:
- This builder for chaining.
-
clearProfile
The profile of the dataset. Summary statistics for the dataset, such as the number of rows in a table, the mean / std / mode of each column in a table, or the number of elements in an array.
optional string profile = 6;
- Returns:
- This builder for chaining.
-
setProfileBytes
The profile of the dataset. Summary statistics for the dataset, such as the number of rows in a table, the mean / std / mode of each column in a table, or the number of elements in an array.
optional string profile = 6;
- Parameters:
value
- The bytes for profile to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Service.Dataset.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.Dataset.Builder>
-
mergeUnknownFields
public final Service.Dataset.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.Dataset.Builder>
-