Class PredefinedSplit.Builder (3.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PredefinedSplit.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PredefinedSplit.Builder
Overrides

build()

public PredefinedSplit build()
Returns
TypeDescription
PredefinedSplit

buildPartial()

public PredefinedSplit buildPartial()
Returns
TypeDescription
PredefinedSplit

clear()

public PredefinedSplit.Builder clear()
Returns
TypeDescription
PredefinedSplit.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PredefinedSplit.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
PredefinedSplit.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PredefinedSplit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PredefinedSplit.Builder
Overrides

clone()

public PredefinedSplit.Builder clone()
Returns
TypeDescription
PredefinedSplit.Builder
Overrides

getDefaultInstanceForType()

public PredefinedSplit getDefaultInstanceForType()
Returns
TypeDescription
PredefinedSplit

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for key.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PredefinedSplit other)

public PredefinedSplit.Builder mergeFrom(PredefinedSplit other)
Parameter
NameDescription
otherPredefinedSplit
Returns
TypeDescription
PredefinedSplit.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PredefinedSplit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PredefinedSplit.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PredefinedSplit.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PredefinedSplit.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PredefinedSplit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PredefinedSplit.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PredefinedSplit.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The key to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PredefinedSplit.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PredefinedSplit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PredefinedSplit.Builder
Overrides