Class InputConfig.Builder

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

    public static final class InputConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
    implements InputConfigOrBuilder
     The configuration of input data, including data type, location, etc.
     
    Protobuf type google.cloud.datalabeling.v1beta1.InputConfig
    • 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<InputConfig.Builder>
      • clear

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

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

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

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

        public InputConfig.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<InputConfig.Builder>
      • setField

        public InputConfig.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<InputConfig.Builder>
      • clearField

        public InputConfig.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<InputConfig.Builder>
      • clearOneof

        public InputConfig.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<InputConfig.Builder>
      • setRepeatedField

        public InputConfig.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<InputConfig.Builder>
      • addRepeatedField

        public InputConfig.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<InputConfig.Builder>
      • mergeFrom

        public InputConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InputConfig.Builder>
      • isInitialized

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

        public InputConfig.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<InputConfig.Builder>
        Throws:
        IOException
      • hasTextMetadata

        public boolean hasTextMetadata()
         Required for text import, as language code must be specified.
         
        .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;
        Specified by:
        hasTextMetadata in interface InputConfigOrBuilder
        Returns:
        Whether the textMetadata field is set.
      • getTextMetadata

        public TextMetadata getTextMetadata()
         Required for text import, as language code must be specified.
         
        .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;
        Specified by:
        getTextMetadata in interface InputConfigOrBuilder
        Returns:
        The textMetadata.
      • setTextMetadata

        public InputConfig.Builder setTextMetadata​(TextMetadata value)
         Required for text import, as language code must be specified.
         
        .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;
      • setTextMetadata

        public InputConfig.Builder setTextMetadata​(TextMetadata.Builder builderForValue)
         Required for text import, as language code must be specified.
         
        .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;
      • mergeTextMetadata

        public InputConfig.Builder mergeTextMetadata​(TextMetadata value)
         Required for text import, as language code must be specified.
         
        .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;
      • clearTextMetadata

        public InputConfig.Builder clearTextMetadata()
         Required for text import, as language code must be specified.
         
        .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;
      • getTextMetadataBuilder

        public TextMetadata.Builder getTextMetadataBuilder()
         Required for text import, as language code must be specified.
         
        .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;
      • hasGcsSource

        public boolean hasGcsSource()
         Source located in Cloud Storage.
         
        .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;
        Specified by:
        hasGcsSource in interface InputConfigOrBuilder
        Returns:
        Whether the gcsSource field is set.
      • getGcsSource

        public GcsSource getGcsSource()
         Source located in Cloud Storage.
         
        .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;
        Specified by:
        getGcsSource in interface InputConfigOrBuilder
        Returns:
        The gcsSource.
      • setGcsSource

        public InputConfig.Builder setGcsSource​(GcsSource value)
         Source located in Cloud Storage.
         
        .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;
      • setGcsSource

        public InputConfig.Builder setGcsSource​(GcsSource.Builder builderForValue)
         Source located in Cloud Storage.
         
        .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;
      • mergeGcsSource

        public InputConfig.Builder mergeGcsSource​(GcsSource value)
         Source located in Cloud Storage.
         
        .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;
      • clearGcsSource

        public InputConfig.Builder clearGcsSource()
         Source located in Cloud Storage.
         
        .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;
      • getGcsSourceBuilder

        public GcsSource.Builder getGcsSourceBuilder()
         Source located in Cloud Storage.
         
        .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;
      • hasBigquerySource

        public boolean hasBigquerySource()
         Source located in BigQuery. You must specify this field if you are using
         this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
        Specified by:
        hasBigquerySource in interface InputConfigOrBuilder
        Returns:
        Whether the bigquerySource field is set.
      • getBigquerySource

        public BigQuerySource getBigquerySource()
         Source located in BigQuery. You must specify this field if you are using
         this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
        Specified by:
        getBigquerySource in interface InputConfigOrBuilder
        Returns:
        The bigquerySource.
      • setBigquerySource

        public InputConfig.Builder setBigquerySource​(BigQuerySource value)
         Source located in BigQuery. You must specify this field if you are using
         this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
      • setBigquerySource

        public InputConfig.Builder setBigquerySource​(BigQuerySource.Builder builderForValue)
         Source located in BigQuery. You must specify this field if you are using
         this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
      • mergeBigquerySource

        public InputConfig.Builder mergeBigquerySource​(BigQuerySource value)
         Source located in BigQuery. You must specify this field if you are using
         this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
      • clearBigquerySource

        public InputConfig.Builder clearBigquerySource()
         Source located in BigQuery. You must specify this field if you are using
         this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
      • getBigquerySourceBuilder

        public BigQuerySource.Builder getBigquerySourceBuilder()
         Source located in BigQuery. You must specify this field if you are using
         this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
      • getBigquerySourceOrBuilder

        public BigQuerySourceOrBuilder getBigquerySourceOrBuilder()
         Source located in BigQuery. You must specify this field if you are using
         this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
        Specified by:
        getBigquerySourceOrBuilder in interface InputConfigOrBuilder
      • getDataTypeValue

        public int getDataTypeValue()
         Required. Data type must be specifed when user tries to import data.
         
        .google.cloud.datalabeling.v1beta1.DataType data_type = 1;
        Specified by:
        getDataTypeValue in interface InputConfigOrBuilder
        Returns:
        The enum numeric value on the wire for dataType.
      • setDataTypeValue

        public InputConfig.Builder setDataTypeValue​(int value)
         Required. Data type must be specifed when user tries to import data.
         
        .google.cloud.datalabeling.v1beta1.DataType data_type = 1;
        Parameters:
        value - The enum numeric value on the wire for dataType to set.
        Returns:
        This builder for chaining.
      • getDataType

        public DataType getDataType()
         Required. Data type must be specifed when user tries to import data.
         
        .google.cloud.datalabeling.v1beta1.DataType data_type = 1;
        Specified by:
        getDataType in interface InputConfigOrBuilder
        Returns:
        The dataType.
      • setDataType

        public InputConfig.Builder setDataType​(DataType value)
         Required. Data type must be specifed when user tries to import data.
         
        .google.cloud.datalabeling.v1beta1.DataType data_type = 1;
        Parameters:
        value - The dataType to set.
        Returns:
        This builder for chaining.
      • clearDataType

        public InputConfig.Builder clearDataType()
         Required. Data type must be specifed when user tries to import data.
         
        .google.cloud.datalabeling.v1beta1.DataType data_type = 1;
        Returns:
        This builder for chaining.
      • getAnnotationTypeValue

        public int getAnnotationTypeValue()
         Optional. The type of annotation to be performed on this data. You must
         specify this field if you are using this InputConfig in an
         [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3;
        Specified by:
        getAnnotationTypeValue in interface InputConfigOrBuilder
        Returns:
        The enum numeric value on the wire for annotationType.
      • setAnnotationTypeValue

        public InputConfig.Builder setAnnotationTypeValue​(int value)
         Optional. The type of annotation to be performed on this data. You must
         specify this field if you are using this InputConfig in an
         [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3;
        Parameters:
        value - The enum numeric value on the wire for annotationType to set.
        Returns:
        This builder for chaining.
      • getAnnotationType

        public AnnotationType getAnnotationType()
         Optional. The type of annotation to be performed on this data. You must
         specify this field if you are using this InputConfig in an
         [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3;
        Specified by:
        getAnnotationType in interface InputConfigOrBuilder
        Returns:
        The annotationType.
      • setAnnotationType

        public InputConfig.Builder setAnnotationType​(AnnotationType value)
         Optional. The type of annotation to be performed on this data. You must
         specify this field if you are using this InputConfig in an
         [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3;
        Parameters:
        value - The annotationType to set.
        Returns:
        This builder for chaining.
      • clearAnnotationType

        public InputConfig.Builder clearAnnotationType()
         Optional. The type of annotation to be performed on this data. You must
         specify this field if you are using this InputConfig in an
         [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
         
        .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3;
        Returns:
        This builder for chaining.
      • hasClassificationMetadata

        public boolean hasClassificationMetadata()
         Optional. Metadata about annotations for the input. You must specify this
         field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
         model version that performs classification.
         
        .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;
        Specified by:
        hasClassificationMetadata in interface InputConfigOrBuilder
        Returns:
        Whether the classificationMetadata field is set.
      • getClassificationMetadata

        public ClassificationMetadata getClassificationMetadata()
         Optional. Metadata about annotations for the input. You must specify this
         field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
         model version that performs classification.
         
        .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;
        Specified by:
        getClassificationMetadata in interface InputConfigOrBuilder
        Returns:
        The classificationMetadata.
      • setClassificationMetadata

        public InputConfig.Builder setClassificationMetadata​(ClassificationMetadata value)
         Optional. Metadata about annotations for the input. You must specify this
         field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
         model version that performs classification.
         
        .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;
      • setClassificationMetadata

        public InputConfig.Builder setClassificationMetadata​(ClassificationMetadata.Builder builderForValue)
         Optional. Metadata about annotations for the input. You must specify this
         field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
         model version that performs classification.
         
        .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;
      • mergeClassificationMetadata

        public InputConfig.Builder mergeClassificationMetadata​(ClassificationMetadata value)
         Optional. Metadata about annotations for the input. You must specify this
         field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
         model version that performs classification.
         
        .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;
      • clearClassificationMetadata

        public InputConfig.Builder clearClassificationMetadata()
         Optional. Metadata about annotations for the input. You must specify this
         field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
         model version that performs classification.
         
        .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;
      • getClassificationMetadataBuilder

        public ClassificationMetadata.Builder getClassificationMetadataBuilder()
         Optional. Metadata about annotations for the input. You must specify this
         field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
         model version that performs classification.
         
        .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;
      • getClassificationMetadataOrBuilder

        public ClassificationMetadataOrBuilder getClassificationMetadataOrBuilder()
         Optional. Metadata about annotations for the input. You must specify this
         field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
         model version that performs classification.
         
        .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;
        Specified by:
        getClassificationMetadataOrBuilder in interface InputConfigOrBuilder
      • setUnknownFields

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

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