Class SampleConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SampleConfig.Builder>
com.google.cloud.aiplatform.v1.SampleConfig.Builder
All Implemented Interfaces:
SampleConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SampleConfig

public static final class SampleConfig.Builder extends com.google.protobuf.GeneratedMessage.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.v1.SampleConfig
  • 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.Builder<SampleConfig.Builder>
    • clear

      public SampleConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SampleConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SampleConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public SampleConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SampleConfig.Builder>
    • mergeFrom

      public SampleConfig.Builder mergeFrom(SampleConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SampleConfig.Builder>
    • mergeFrom

      public SampleConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SampleConfig.Builder>
      Throws:
      IOException
    • getInitialBatchSampleSizeCase

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

      public SampleConfig.Builder clearInitialBatchSampleSize()
    • getFollowingBatchSampleSizeCase

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

      public SampleConfig.Builder clearFollowingBatchSampleSize()
    • 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.
    • setInitialBatchSamplePercentage

      public SampleConfig.Builder setInitialBatchSamplePercentage(int value)
       The percentage of data needed to be labeled in the first batch.
       
      int32 initial_batch_sample_percentage = 1;
      Parameters:
      value - The initialBatchSamplePercentage to set.
      Returns:
      This builder for chaining.
    • clearInitialBatchSamplePercentage

      public SampleConfig.Builder clearInitialBatchSamplePercentage()
       The percentage of data needed to be labeled in the first batch.
       
      int32 initial_batch_sample_percentage = 1;
      Returns:
      This builder for chaining.
    • 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.
    • setFollowingBatchSamplePercentage

      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;
      Parameters:
      value - The followingBatchSamplePercentage to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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.
    • setSampleStrategyValue

      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.v1.SampleConfig.SampleStrategy sample_strategy = 5;
      Parameters:
      value - The enum numeric value on the wire for sampleStrategy to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSampleStrategy

      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.v1.SampleConfig.SampleStrategy sample_strategy = 5;
      Parameters:
      value - The sampleStrategy to set.
      Returns:
      This builder for chaining.
    • 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.v1.SampleConfig.SampleStrategy sample_strategy = 5;
      Returns:
      This builder for chaining.