Send feedback
  
   
 
  
    
      Class SampleConfig (3.79.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
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
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   SAMPLE_STRATEGY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   SampleConfig   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   SampleConfig . Builder   newBuilder ()  
  
  
    
public   static   SampleConfig . Builder   newBuilder ( SampleConfig   prototype )  
  
  
  
    
public   static   SampleConfig   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   SampleConfig   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SampleConfig   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   SampleConfig   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SampleConfig   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   SampleConfig   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SampleConfig   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   SampleConfig   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SampleConfig   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   SampleConfig   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SampleConfig   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   SampleConfig   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<SampleConfig>   parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   SampleConfig   getDefaultInstanceForType ()  
  
  
    
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   Parser<SampleConfig>   getParserForType ()  
  
  Overrides 
  
  
    
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   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
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.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   SampleConfig . Builder   newBuilderForType ()  
  
  
    
protected   SampleConfig . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   SampleConfig . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]