Class SampleConfig.Builder (3.48.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.48.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
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.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      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 ()  
  
  Methods
   
  
    
public   SampleConfig . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   SampleConfig   build ()  
  
  
    
public   SampleConfig   buildPartial ()  
  
  
    
public   SampleConfig . Builder   clear ()  
  
  Overrides 
  
  
    
public   SampleConfig . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  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;
    
public   SampleConfig . Builder   clearFollowingBatchSampleSize ()  
  
  
    
public   SampleConfig . Builder   clearInitialBatchSamplePercentage ()  
   The percentage of data needed to be labeled in the first batch.
 int32 initial_batch_sample_percentage = 1;
    
public   SampleConfig . Builder   clearInitialBatchSampleSize ()  
  
  
    
public   SampleConfig . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  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;
 
    
public   SampleConfig . Builder   clone ()  
  
  Overrides 
  
  
    
public   SampleConfig   getDefaultInstanceForType ()  
  
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  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 ()  
  
  
    
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 ()  
  
  
    
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;
 
    
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 ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   SampleConfig . Builder   mergeFrom ( SampleConfig   other )  
  
  
  
    
public   SampleConfig . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  
    
public   SampleConfig . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  
    
public   final   SampleConfig . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  
    
public   SampleConfig . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  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  
      
        valueint The followingBatchSamplePercentage to set.
 
     
  
  
  
    
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  
      
        valueint The initialBatchSamplePercentage to set.
 
     
  
  
  
    
public   SampleConfig . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  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;
 
    
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  
      
        valueint The enum numeric value on the wire for sampleStrategy to set.
 
     
  
  
  
    
public   final   SampleConfig . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-11 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]