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.v1.PredefinedSplit
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
public PredefinedSplit.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public PredefinedSplit build()
Returns
public PredefinedSplit buildPartial()
Returns
public PredefinedSplit.Builder clear()
Returns
Overrides
public PredefinedSplit.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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];
Returns
public PredefinedSplit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public PredefinedSplit.Builder clone()
Returns
Overrides
public PredefinedSplit getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public PredefinedSplit.Builder mergeFrom(PredefinedSplit other)
Parameter
Returns
public PredefinedSplit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public PredefinedSplit.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final PredefinedSplit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public PredefinedSplit.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
public PredefinedSplit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final PredefinedSplit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides