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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public SampleConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public SampleConfig build()
Returns
public SampleConfig buildPartial()
Returns
public SampleConfig.Builder clear()
Returns
Overrides
public SampleConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
public SampleConfig.Builder clearFollowingBatchSampleSize()
Returns
public SampleConfig.Builder clearInitialBatchSamplePercentage()
The percentage of data needed to be labeled in the first batch.
int32 initial_batch_sample_percentage = 1;
Returns
public SampleConfig.Builder clearInitialBatchSampleSize()
Returns
public SampleConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public SampleConfig.Builder clone()
Returns
Overrides
public SampleConfig getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Type | Description |
int | The followingBatchSamplePercentage.
|
public SampleConfig.FollowingBatchSampleSizeCase getFollowingBatchSampleSizeCase()
Returns
public int getInitialBatchSamplePercentage()
The percentage of data needed to be labeled in the first batch.
int32 initial_batch_sample_percentage = 1;
Returns
Type | Description |
int | The initialBatchSamplePercentage.
|
public SampleConfig.InitialBatchSampleSizeCase getInitialBatchSampleSizeCase()
Returns
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
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
Type | Description |
int | The enum numeric value on the wire for sampleStrategy.
|
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
Type | Description |
boolean | Whether the followingBatchSamplePercentage field is set.
|
public boolean hasInitialBatchSamplePercentage()
The percentage of data needed to be labeled in the first batch.
int32 initial_batch_sample_percentage = 1;
Returns
Type | Description |
boolean | Whether the initialBatchSamplePercentage field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public SampleConfig.Builder mergeFrom(SampleConfig other)
Parameter
Returns
public SampleConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public SampleConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final SampleConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public SampleConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Name | Description |
value | int
The followingBatchSamplePercentage to set.
|
Returns
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
Name | Description |
value | int
The initialBatchSamplePercentage to set.
|
Returns
public SampleConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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
Returns
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
Name | Description |
value | int
The enum numeric value on the wire for sampleStrategy to set.
|
Returns
public final SampleConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides