Class SampleConfig

  • All Implemented Interfaces:
    SampleConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class SampleConfig
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Field Detail

      • INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER

        public static final int INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER

        public static final int FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SAMPLE_STRATEGY_FIELD_NUMBER

        public static final int SAMPLE_STRATEGY_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.v1beta1.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.v1beta1.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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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