Class SampleConfig (3.0.0)

public final class SampleConfig extends GeneratedMessageV3 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 Fields

FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER

public static final int FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER
Field Value
TypeDescription
int

INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER

public static final int INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SAMPLE_STRATEGY_FIELD_NUMBER

public static final int SAMPLE_STRATEGY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SampleConfig getDefaultInstance()
Returns
TypeDescription
SampleConfig

getDescriptor()

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

newBuilder()

public static SampleConfig.Builder newBuilder()
Returns
TypeDescription
SampleConfig.Builder

newBuilder(SampleConfig prototype)

public static SampleConfig.Builder newBuilder(SampleConfig prototype)
Parameter
NameDescription
prototypeSampleConfig
Returns
TypeDescription
SampleConfig.Builder

parseDelimitedFrom(InputStream input)

public static SampleConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SampleConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SampleConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SampleConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SampleConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SampleConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SampleConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SampleConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SampleConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SampleConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SampleConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SampleConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SampleConfig> parser()
Returns
TypeDescription
Parser<SampleConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SampleConfig getDefaultInstanceForType()
Returns
TypeDescription
SampleConfig

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

getParserForType()

public Parser<SampleConfig> getParserForType()
Returns
TypeDescription
Parser<SampleConfig>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SampleConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SampleConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException