Class ImageClassificationConfig.Builder

    • 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<ImageClassificationConfig.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<ImageClassificationConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public ImageClassificationConfig.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<ImageClassificationConfig.Builder>
      • isInitialized

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

        public ImageClassificationConfig.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<ImageClassificationConfig.Builder>
        Throws:
        IOException
      • getAnnotationSpecSetBytes

        public com.google.protobuf.ByteString getAnnotationSpecSetBytes()
         Required. Annotation spec set resource name.
         
        string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAnnotationSpecSetBytes in interface ImageClassificationConfigOrBuilder
        Returns:
        The bytes for annotationSpecSet.
      • setAnnotationSpecSet

        public ImageClassificationConfig.Builder setAnnotationSpecSet​(String value)
         Required. Annotation spec set resource name.
         
        string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The annotationSpecSet to set.
        Returns:
        This builder for chaining.
      • clearAnnotationSpecSet

        public ImageClassificationConfig.Builder clearAnnotationSpecSet()
         Required. Annotation spec set resource name.
         
        string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setAnnotationSpecSetBytes

        public ImageClassificationConfig.Builder setAnnotationSpecSetBytes​(com.google.protobuf.ByteString value)
         Required. Annotation spec set resource name.
         
        string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for annotationSpecSet to set.
        Returns:
        This builder for chaining.
      • getAllowMultiLabel

        public boolean getAllowMultiLabel()
         Optional. If allow_multi_label is true, contributors are able to choose
         multiple labels for one image.
         
        bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAllowMultiLabel in interface ImageClassificationConfigOrBuilder
        Returns:
        The allowMultiLabel.
      • setAllowMultiLabel

        public ImageClassificationConfig.Builder setAllowMultiLabel​(boolean value)
         Optional. If allow_multi_label is true, contributors are able to choose
         multiple labels for one image.
         
        bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The allowMultiLabel to set.
        Returns:
        This builder for chaining.
      • clearAllowMultiLabel

        public ImageClassificationConfig.Builder clearAllowMultiLabel()
         Optional. If allow_multi_label is true, contributors are able to choose
         multiple labels for one image.
         
        bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getAnswerAggregationTypeValue

        public int getAnswerAggregationTypeValue()
         Optional. The type of how to aggregate answers.
         
        .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAnswerAggregationTypeValue in interface ImageClassificationConfigOrBuilder
        Returns:
        The enum numeric value on the wire for answerAggregationType.
      • setAnswerAggregationTypeValue

        public ImageClassificationConfig.Builder setAnswerAggregationTypeValue​(int value)
         Optional. The type of how to aggregate answers.
         
        .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for answerAggregationType to set.
        Returns:
        This builder for chaining.
      • setAnswerAggregationType

        public ImageClassificationConfig.Builder setAnswerAggregationType​(StringAggregationType value)
         Optional. The type of how to aggregate answers.
         
        .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The answerAggregationType to set.
        Returns:
        This builder for chaining.
      • clearAnswerAggregationType

        public ImageClassificationConfig.Builder clearAnswerAggregationType()
         Optional. The type of how to aggregate answers.
         
        .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ImageClassificationConfig.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<ImageClassificationConfig.Builder>
      • mergeUnknownFields

        public final ImageClassificationConfig.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<ImageClassificationConfig.Builder>