Class PredefinedSplit.Builder (3.84.0)

public static final class PredefinedSplit.Builder extends GeneratedMessage.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

Static Methods

getDescriptor()

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

Methods

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

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.

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 GeneratedMessage.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

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.