public static final class PredefinedSplit.Builder extends GeneratedMessageV3.Builder<PredefinedSplit.Builder> implements PredefinedSplitOrBuilder
Assigns input data to training, validation, and test sets based on the
value of a provided key.
Supported only for tabular Datasets.
Protobuf type google.cloud.aiplatform.v1beta1.PredefinedSplit
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public PredefinedSplit.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PredefinedSplit build()
public PredefinedSplit buildPartial()
public PredefinedSplit.Builder clear()
Overrides
public PredefinedSplit.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public PredefinedSplit.Builder clearKey()
Required. The key is a name of one of the Dataset's data columns.
The value of the key (either the label's value or value in the column)
must be one of {training
, validation
, test
}, and it defines to which
set the given piece of data is assigned. If for a piece of data the key
is not present or has an invalid value, that piece is ignored by the
pipeline.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
public PredefinedSplit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public PredefinedSplit.Builder clone()
Overrides
public PredefinedSplit getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
Required. The key is a name of one of the Dataset's data columns.
The value of the key (either the label's value or value in the column)
must be one of {training
, validation
, test
}, and it defines to which
set the given piece of data is assigned. If for a piece of data the key
is not present or has an invalid value, that piece is ignored by the
pipeline.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The key.
|
public ByteString getKeyBytes()
Required. The key is a name of one of the Dataset's data columns.
The value of the key (either the label's value or value in the column)
must be one of {training
, validation
, test
}, and it defines to which
set the given piece of data is assigned. If for a piece of data the key
is not present or has an invalid value, that piece is ignored by the
pipeline.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for key.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PredefinedSplit.Builder mergeFrom(PredefinedSplit other)
public PredefinedSplit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public PredefinedSplit.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final PredefinedSplit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public PredefinedSplit.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PredefinedSplit.Builder setKey(String value)
Required. The key is a name of one of the Dataset's data columns.
The value of the key (either the label's value or value in the column)
must be one of {training
, validation
, test
}, and it defines to which
set the given piece of data is assigned. If for a piece of data the key
is not present or has an invalid value, that piece is ignored by the
pipeline.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The key to set.
|
public PredefinedSplit.Builder setKeyBytes(ByteString value)
Required. The key is a name of one of the Dataset's data columns.
The value of the key (either the label's value or value in the column)
must be one of {training
, validation
, test
}, and it defines to which
set the given piece of data is assigned. If for a piece of data the key
is not present or has an invalid value, that piece is ignored by the
pipeline.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for key to set.
|
public PredefinedSplit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final PredefinedSplit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides