Class FilterSplit.Builder (3.36.0)

public static final class FilterSplit.Builder extends GeneratedMessageV3.Builder<FilterSplit.Builder> implements FilterSplitOrBuilder

Assigns input data to training, validation, and test sets based on the given filters, data pieces not matched by any filter are ignored. Currently only supported for Datasets containing DataItems. If any of the filters in this message are to match nothing, then they can be set as '-' (the minus sign).

Supported only for unstructured Datasets.

Protobuf type google.cloud.aiplatform.v1beta1.FilterSplit

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FilterSplit build()
Returns
TypeDescription
FilterSplit

buildPartial()

public FilterSplit buildPartial()
Returns
TypeDescription
FilterSplit

clear()

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

clearField(Descriptors.FieldDescriptor field)

public FilterSplit.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FilterSplit.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTestFilter()

public FilterSplit.Builder clearTestFilter()

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to test the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string test_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FilterSplit.Builder

This builder for chaining.

clearTrainingFilter()

public FilterSplit.Builder clearTrainingFilter()

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to train the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string training_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FilterSplit.Builder

This builder for chaining.

clearValidationFilter()

public FilterSplit.Builder clearValidationFilter()

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to validate the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string validation_filter = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FilterSplit.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FilterSplit getDefaultInstanceForType()
Returns
TypeDescription
FilterSplit

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTestFilter()

public String getTestFilter()

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to test the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string test_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The testFilter.

getTestFilterBytes()

public ByteString getTestFilterBytes()

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to test the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string test_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for testFilter.

getTrainingFilter()

public String getTrainingFilter()

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to train the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string training_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The trainingFilter.

getTrainingFilterBytes()

public ByteString getTrainingFilterBytes()

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to train the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string training_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for trainingFilter.

getValidationFilter()

public String getValidationFilter()

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to validate the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string validation_filter = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The validationFilter.

getValidationFilterBytes()

public ByteString getValidationFilterBytes()

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to validate the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string validation_filter = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for validationFilter.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FilterSplit other)

public FilterSplit.Builder mergeFrom(FilterSplit other)
Parameter
NameDescription
otherFilterSplit
Returns
TypeDescription
FilterSplit.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public FilterSplit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FilterSplit.Builder
Overrides

setTestFilter(String value)

public FilterSplit.Builder setTestFilter(String value)

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to test the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string test_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The testFilter to set.

Returns
TypeDescription
FilterSplit.Builder

This builder for chaining.

setTestFilterBytes(ByteString value)

public FilterSplit.Builder setTestFilterBytes(ByteString value)

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to test the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string test_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for testFilter to set.

Returns
TypeDescription
FilterSplit.Builder

This builder for chaining.

setTrainingFilter(String value)

public FilterSplit.Builder setTrainingFilter(String value)

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to train the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string training_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The trainingFilter to set.

Returns
TypeDescription
FilterSplit.Builder

This builder for chaining.

setTrainingFilterBytes(ByteString value)

public FilterSplit.Builder setTrainingFilterBytes(ByteString value)

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to train the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string training_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for trainingFilter to set.

Returns
TypeDescription
FilterSplit.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidationFilter(String value)

public FilterSplit.Builder setValidationFilter(String value)

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to validate the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string validation_filter = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The validationFilter to set.

Returns
TypeDescription
FilterSplit.Builder

This builder for chaining.

setValidationFilterBytes(ByteString value)

public FilterSplit.Builder setValidationFilterBytes(ByteString value)

Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to validate the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order.

string validation_filter = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for validationFilter to set.

Returns
TypeDescription
FilterSplit.Builder

This builder for chaining.