Class ActiveLearningConfig.Builder

  • All Implemented Interfaces:
    ActiveLearningConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ActiveLearningConfig

    public static final class ActiveLearningConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>
    implements ActiveLearningConfigOrBuilder
     Parameters that configure the active learning pipeline. Active learning will
      label the data incrementally by several iterations. For every iteration, it
      will select a batch of data based on the sampling strategy.
     
    Protobuf type google.cloud.aiplatform.v1.ActiveLearningConfig
    • Method Detail

      • 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.Builder<ActiveLearningConfig.Builder>
      • clear

        public ActiveLearningConfig.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.GeneratedMessageV3.Builder<ActiveLearningConfig.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.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public ActiveLearningConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>
      • setField

        public ActiveLearningConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>
      • clearField

        public ActiveLearningConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>
      • clearOneof

        public ActiveLearningConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>
      • setRepeatedField

        public ActiveLearningConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>
      • addRepeatedField

        public ActiveLearningConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>
      • isInitialized

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

        public ActiveLearningConfig.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<ActiveLearningConfig.Builder>
        Throws:
        IOException
      • hasMaxDataItemCount

        public boolean hasMaxDataItemCount()
         Max number of human labeled DataItems.
         
        int64 max_data_item_count = 1;
        Specified by:
        hasMaxDataItemCount in interface ActiveLearningConfigOrBuilder
        Returns:
        Whether the maxDataItemCount field is set.
      • setMaxDataItemCount

        public ActiveLearningConfig.Builder setMaxDataItemCount​(long value)
         Max number of human labeled DataItems.
         
        int64 max_data_item_count = 1;
        Parameters:
        value - The maxDataItemCount to set.
        Returns:
        This builder for chaining.
      • clearMaxDataItemCount

        public ActiveLearningConfig.Builder clearMaxDataItemCount()
         Max number of human labeled DataItems.
         
        int64 max_data_item_count = 1;
        Returns:
        This builder for chaining.
      • hasMaxDataItemPercentage

        public boolean hasMaxDataItemPercentage()
         Max percent of total DataItems for human labeling.
         
        int32 max_data_item_percentage = 2;
        Specified by:
        hasMaxDataItemPercentage in interface ActiveLearningConfigOrBuilder
        Returns:
        Whether the maxDataItemPercentage field is set.
      • getMaxDataItemPercentage

        public int getMaxDataItemPercentage()
         Max percent of total DataItems for human labeling.
         
        int32 max_data_item_percentage = 2;
        Specified by:
        getMaxDataItemPercentage in interface ActiveLearningConfigOrBuilder
        Returns:
        The maxDataItemPercentage.
      • setMaxDataItemPercentage

        public ActiveLearningConfig.Builder setMaxDataItemPercentage​(int value)
         Max percent of total DataItems for human labeling.
         
        int32 max_data_item_percentage = 2;
        Parameters:
        value - The maxDataItemPercentage to set.
        Returns:
        This builder for chaining.
      • clearMaxDataItemPercentage

        public ActiveLearningConfig.Builder clearMaxDataItemPercentage()
         Max percent of total DataItems for human labeling.
         
        int32 max_data_item_percentage = 2;
        Returns:
        This builder for chaining.
      • hasSampleConfig

        public boolean hasSampleConfig()
         Active learning data sampling config. For every active learning labeling
         iteration, it will select a batch of data based on the sampling strategy.
         
        .google.cloud.aiplatform.v1.SampleConfig sample_config = 3;
        Specified by:
        hasSampleConfig in interface ActiveLearningConfigOrBuilder
        Returns:
        Whether the sampleConfig field is set.
      • getSampleConfig

        public SampleConfig getSampleConfig()
         Active learning data sampling config. For every active learning labeling
         iteration, it will select a batch of data based on the sampling strategy.
         
        .google.cloud.aiplatform.v1.SampleConfig sample_config = 3;
        Specified by:
        getSampleConfig in interface ActiveLearningConfigOrBuilder
        Returns:
        The sampleConfig.
      • setSampleConfig

        public ActiveLearningConfig.Builder setSampleConfig​(SampleConfig value)
         Active learning data sampling config. For every active learning labeling
         iteration, it will select a batch of data based on the sampling strategy.
         
        .google.cloud.aiplatform.v1.SampleConfig sample_config = 3;
      • setSampleConfig

        public ActiveLearningConfig.Builder setSampleConfig​(SampleConfig.Builder builderForValue)
         Active learning data sampling config. For every active learning labeling
         iteration, it will select a batch of data based on the sampling strategy.
         
        .google.cloud.aiplatform.v1.SampleConfig sample_config = 3;
      • mergeSampleConfig

        public ActiveLearningConfig.Builder mergeSampleConfig​(SampleConfig value)
         Active learning data sampling config. For every active learning labeling
         iteration, it will select a batch of data based on the sampling strategy.
         
        .google.cloud.aiplatform.v1.SampleConfig sample_config = 3;
      • clearSampleConfig

        public ActiveLearningConfig.Builder clearSampleConfig()
         Active learning data sampling config. For every active learning labeling
         iteration, it will select a batch of data based on the sampling strategy.
         
        .google.cloud.aiplatform.v1.SampleConfig sample_config = 3;
      • getSampleConfigBuilder

        public SampleConfig.Builder getSampleConfigBuilder()
         Active learning data sampling config. For every active learning labeling
         iteration, it will select a batch of data based on the sampling strategy.
         
        .google.cloud.aiplatform.v1.SampleConfig sample_config = 3;
      • getSampleConfigOrBuilder

        public SampleConfigOrBuilder getSampleConfigOrBuilder()
         Active learning data sampling config. For every active learning labeling
         iteration, it will select a batch of data based on the sampling strategy.
         
        .google.cloud.aiplatform.v1.SampleConfig sample_config = 3;
        Specified by:
        getSampleConfigOrBuilder in interface ActiveLearningConfigOrBuilder
      • hasTrainingConfig

        public boolean hasTrainingConfig()
         CMLE training config. For every active learning labeling iteration, system
         will train a machine learning model on CMLE. The trained model will be used
         by data sampling algorithm to select DataItems.
         
        .google.cloud.aiplatform.v1.TrainingConfig training_config = 4;
        Specified by:
        hasTrainingConfig in interface ActiveLearningConfigOrBuilder
        Returns:
        Whether the trainingConfig field is set.
      • getTrainingConfig

        public TrainingConfig getTrainingConfig()
         CMLE training config. For every active learning labeling iteration, system
         will train a machine learning model on CMLE. The trained model will be used
         by data sampling algorithm to select DataItems.
         
        .google.cloud.aiplatform.v1.TrainingConfig training_config = 4;
        Specified by:
        getTrainingConfig in interface ActiveLearningConfigOrBuilder
        Returns:
        The trainingConfig.
      • setTrainingConfig

        public ActiveLearningConfig.Builder setTrainingConfig​(TrainingConfig value)
         CMLE training config. For every active learning labeling iteration, system
         will train a machine learning model on CMLE. The trained model will be used
         by data sampling algorithm to select DataItems.
         
        .google.cloud.aiplatform.v1.TrainingConfig training_config = 4;
      • setTrainingConfig

        public ActiveLearningConfig.Builder setTrainingConfig​(TrainingConfig.Builder builderForValue)
         CMLE training config. For every active learning labeling iteration, system
         will train a machine learning model on CMLE. The trained model will be used
         by data sampling algorithm to select DataItems.
         
        .google.cloud.aiplatform.v1.TrainingConfig training_config = 4;
      • mergeTrainingConfig

        public ActiveLearningConfig.Builder mergeTrainingConfig​(TrainingConfig value)
         CMLE training config. For every active learning labeling iteration, system
         will train a machine learning model on CMLE. The trained model will be used
         by data sampling algorithm to select DataItems.
         
        .google.cloud.aiplatform.v1.TrainingConfig training_config = 4;
      • clearTrainingConfig

        public ActiveLearningConfig.Builder clearTrainingConfig()
         CMLE training config. For every active learning labeling iteration, system
         will train a machine learning model on CMLE. The trained model will be used
         by data sampling algorithm to select DataItems.
         
        .google.cloud.aiplatform.v1.TrainingConfig training_config = 4;
      • getTrainingConfigBuilder

        public TrainingConfig.Builder getTrainingConfigBuilder()
         CMLE training config. For every active learning labeling iteration, system
         will train a machine learning model on CMLE. The trained model will be used
         by data sampling algorithm to select DataItems.
         
        .google.cloud.aiplatform.v1.TrainingConfig training_config = 4;
      • getTrainingConfigOrBuilder

        public TrainingConfigOrBuilder getTrainingConfigOrBuilder()
         CMLE training config. For every active learning labeling iteration, system
         will train a machine learning model on CMLE. The trained model will be used
         by data sampling algorithm to select DataItems.
         
        .google.cloud.aiplatform.v1.TrainingConfig training_config = 4;
        Specified by:
        getTrainingConfigOrBuilder in interface ActiveLearningConfigOrBuilder
      • setUnknownFields

        public final ActiveLearningConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>
      • mergeUnknownFields

        public final ActiveLearningConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ActiveLearningConfig.Builder>