Class PredefinedSplit.Builder (3.50.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PredefinedSplit.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PredefinedSplit.Builder
Overrides

build()

public PredefinedSplit build()
Returns
Type Description
PredefinedSplit

buildPartial()

public PredefinedSplit buildPartial()
Returns
Type Description
PredefinedSplit

clear()

public PredefinedSplit.Builder clear()
Returns
Type Description
PredefinedSplit.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PredefinedSplit.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PredefinedSplit.Builder
Overrides

clearKey()

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
Type Description
PredefinedSplit.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PredefinedSplit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PredefinedSplit.Builder
Overrides

clone()

public PredefinedSplit.Builder clone()
Returns
Type Description
PredefinedSplit.Builder
Overrides

getDefaultInstanceForType()

public PredefinedSplit getDefaultInstanceForType()
Returns
Type Description
PredefinedSplit

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKey()

public String getKey()

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.

getKeyBytes()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PredefinedSplit other)

public PredefinedSplit.Builder mergeFrom(PredefinedSplit other)
Parameter
Name Description
other PredefinedSplit
Returns
Type Description
PredefinedSplit.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PredefinedSplit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PredefinedSplit.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PredefinedSplit.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PredefinedSplit.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PredefinedSplit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PredefinedSplit.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PredefinedSplit.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PredefinedSplit.Builder
Overrides

setKey(String value)

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
Type Description
PredefinedSplit.Builder

This builder for chaining.

setKeyBytes(ByteString value)

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
Type Description
PredefinedSplit.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PredefinedSplit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PredefinedSplit.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PredefinedSplit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PredefinedSplit.Builder
Overrides