Class SampleConfig.Builder (3.24.0)

public static final class SampleConfig.Builder extends GeneratedMessageV3.Builder<SampleConfig.Builder> implements SampleConfigOrBuilder

Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.

Protobuf type google.cloud.aiplatform.v1beta1.SampleConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SampleConfig build()
Returns
TypeDescription
SampleConfig

buildPartial()

public SampleConfig buildPartial()
Returns
TypeDescription
SampleConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFollowingBatchSamplePercentage()

public SampleConfig.Builder clearFollowingBatchSamplePercentage()

The percentage of data needed to be labeled in each following batch (except the first batch).

int32 following_batch_sample_percentage = 3;

Returns
TypeDescription
SampleConfig.Builder

This builder for chaining.

clearFollowingBatchSampleSize()

public SampleConfig.Builder clearFollowingBatchSampleSize()
Returns
TypeDescription
SampleConfig.Builder

clearInitialBatchSamplePercentage()

public SampleConfig.Builder clearInitialBatchSamplePercentage()

The percentage of data needed to be labeled in the first batch.

int32 initial_batch_sample_percentage = 1;

Returns
TypeDescription
SampleConfig.Builder

This builder for chaining.

clearInitialBatchSampleSize()

public SampleConfig.Builder clearInitialBatchSampleSize()
Returns
TypeDescription
SampleConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSampleStrategy()

public SampleConfig.Builder clearSampleStrategy()

Field to choose sampling strategy. Sampling strategy will decide which data should be selected for human labeling in every batch.

.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy sample_strategy = 5;

Returns
TypeDescription
SampleConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SampleConfig getDefaultInstanceForType()
Returns
TypeDescription
SampleConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFollowingBatchSamplePercentage()

public int getFollowingBatchSamplePercentage()

The percentage of data needed to be labeled in each following batch (except the first batch).

int32 following_batch_sample_percentage = 3;

Returns
TypeDescription
int

The followingBatchSamplePercentage.

getFollowingBatchSampleSizeCase()

public SampleConfig.FollowingBatchSampleSizeCase getFollowingBatchSampleSizeCase()
Returns
TypeDescription
SampleConfig.FollowingBatchSampleSizeCase

getInitialBatchSamplePercentage()

public int getInitialBatchSamplePercentage()

The percentage of data needed to be labeled in the first batch.

int32 initial_batch_sample_percentage = 1;

Returns
TypeDescription
int

The initialBatchSamplePercentage.

getInitialBatchSampleSizeCase()

public SampleConfig.InitialBatchSampleSizeCase getInitialBatchSampleSizeCase()
Returns
TypeDescription
SampleConfig.InitialBatchSampleSizeCase

getSampleStrategy()

public SampleConfig.SampleStrategy getSampleStrategy()

Field to choose sampling strategy. Sampling strategy will decide which data should be selected for human labeling in every batch.

.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy sample_strategy = 5;

Returns
TypeDescription
SampleConfig.SampleStrategy

The sampleStrategy.

getSampleStrategyValue()

public int getSampleStrategyValue()

Field to choose sampling strategy. Sampling strategy will decide which data should be selected for human labeling in every batch.

.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy sample_strategy = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for sampleStrategy.

hasFollowingBatchSamplePercentage()

public boolean hasFollowingBatchSamplePercentage()

The percentage of data needed to be labeled in each following batch (except the first batch).

int32 following_batch_sample_percentage = 3;

Returns
TypeDescription
boolean

Whether the followingBatchSamplePercentage field is set.

hasInitialBatchSamplePercentage()

public boolean hasInitialBatchSamplePercentage()

The percentage of data needed to be labeled in the first batch.

int32 initial_batch_sample_percentage = 1;

Returns
TypeDescription
boolean

Whether the initialBatchSamplePercentage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SampleConfig other)

public SampleConfig.Builder mergeFrom(SampleConfig other)
Parameter
NameDescription
otherSampleConfig
Returns
TypeDescription
SampleConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFollowingBatchSamplePercentage(int value)

public SampleConfig.Builder setFollowingBatchSamplePercentage(int value)

The percentage of data needed to be labeled in each following batch (except the first batch).

int32 following_batch_sample_percentage = 3;

Parameter
NameDescription
valueint

The followingBatchSamplePercentage to set.

Returns
TypeDescription
SampleConfig.Builder

This builder for chaining.

setInitialBatchSamplePercentage(int value)

public SampleConfig.Builder setInitialBatchSamplePercentage(int value)

The percentage of data needed to be labeled in the first batch.

int32 initial_batch_sample_percentage = 1;

Parameter
NameDescription
valueint

The initialBatchSamplePercentage to set.

Returns
TypeDescription
SampleConfig.Builder

This builder for chaining.

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

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

setSampleStrategy(SampleConfig.SampleStrategy value)

public SampleConfig.Builder setSampleStrategy(SampleConfig.SampleStrategy value)

Field to choose sampling strategy. Sampling strategy will decide which data should be selected for human labeling in every batch.

.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy sample_strategy = 5;

Parameter
NameDescription
valueSampleConfig.SampleStrategy

The sampleStrategy to set.

Returns
TypeDescription
SampleConfig.Builder

This builder for chaining.

setSampleStrategyValue(int value)

public SampleConfig.Builder setSampleStrategyValue(int value)

Field to choose sampling strategy. Sampling strategy will decide which data should be selected for human labeling in every batch.

.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy sample_strategy = 5;

Parameter
NameDescription
valueint

The enum numeric value on the wire for sampleStrategy to set.

Returns
TypeDescription
SampleConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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