Class SampleConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.SampleConfig
All Implemented Interfaces:
SampleConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SampleConfig extends com.google.protobuf.GeneratedMessage 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.v1.SampleConfig
See Also:
  • Field Details

    • INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER

      public static final int INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER
      See Also:
    • FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER

      public static final int FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER
      See Also:
    • SAMPLE_STRATEGY_FIELD_NUMBER

      public static final int SAMPLE_STRATEGY_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getInitialBatchSampleSizeCase

      public SampleConfig.InitialBatchSampleSizeCase getInitialBatchSampleSizeCase()
      Specified by:
      getInitialBatchSampleSizeCase in interface SampleConfigOrBuilder
    • getFollowingBatchSampleSizeCase

      public SampleConfig.FollowingBatchSampleSizeCase getFollowingBatchSampleSizeCase()
      Specified by:
      getFollowingBatchSampleSizeCase in interface SampleConfigOrBuilder
    • hasInitialBatchSamplePercentage

      public boolean hasInitialBatchSamplePercentage()
       The percentage of data needed to be labeled in the first batch.
       
      int32 initial_batch_sample_percentage = 1;
      Specified by:
      hasInitialBatchSamplePercentage in interface SampleConfigOrBuilder
      Returns:
      Whether the initialBatchSamplePercentage field is set.
    • getInitialBatchSamplePercentage

      public int getInitialBatchSamplePercentage()
       The percentage of data needed to be labeled in the first batch.
       
      int32 initial_batch_sample_percentage = 1;
      Specified by:
      getInitialBatchSamplePercentage in interface SampleConfigOrBuilder
      Returns:
      The initialBatchSamplePercentage.
    • 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;
      Specified by:
      hasFollowingBatchSamplePercentage in interface SampleConfigOrBuilder
      Returns:
      Whether the followingBatchSamplePercentage field is set.
    • 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;
      Specified by:
      getFollowingBatchSamplePercentage in interface SampleConfigOrBuilder
      Returns:
      The followingBatchSamplePercentage.
    • 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.v1.SampleConfig.SampleStrategy sample_strategy = 5;
      Specified by:
      getSampleStrategyValue in interface SampleConfigOrBuilder
      Returns:
      The enum numeric value on the wire for sampleStrategy.
    • 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.v1.SampleConfig.SampleStrategy sample_strategy = 5;
      Specified by:
      getSampleStrategy in interface SampleConfigOrBuilder
      Returns:
      The sampleStrategy.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SampleConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SampleConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SampleConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SampleConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SampleConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SampleConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SampleConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SampleConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SampleConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SampleConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SampleConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SampleConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SampleConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SampleConfig.Builder newBuilder()
    • newBuilder

      public static SampleConfig.Builder newBuilder(SampleConfig prototype)
    • toBuilder

      public SampleConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SampleConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SampleConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SampleConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<SampleConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SampleConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder