Class InputConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InputConfig.Builder>
com.google.cloud.datalabeling.v1beta1.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.GeneratedMessage.Builder<InputConfig.Builder>
implements InputConfigOrBuilder
The configuration of input data, including data type, location, etc.Protobuf type
google.cloud.datalabeling.v1beta1.InputConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Source located in BigQuery.Optional.Required.Source located in Cloud Storage.Required for text import, as language code must be specified.Optional.intOptional.Source located in BigQuery.Source located in BigQuery.Source located in BigQuery.Optional.Optional.Optional.Required.intRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSource located in Cloud Storage.Source located in Cloud Storage.Source located in Cloud Storage.Required for text import, as language code must be specified.Required for text import, as language code must be specified.Required for text import, as language code must be specified.booleanSource located in BigQuery.booleanOptional.booleanSource located in Cloud Storage.booleanRequired for text import, as language code must be specified.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanSource located in BigQuery.Optional.mergeFrom(InputConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGcsSource(GcsSource value) Source located in Cloud Storage.mergeTextMetadata(TextMetadata value) Required for text import, as language code must be specified.setAnnotationType(AnnotationType value) Optional.setAnnotationTypeValue(int value) Optional.setBigquerySource(BigQuerySource value) Source located in BigQuery.setBigquerySource(BigQuerySource.Builder builderForValue) Source located in BigQuery.Optional.setClassificationMetadata(ClassificationMetadata.Builder builderForValue) Optional.setDataType(DataType value) Required.setDataTypeValue(int value) Required.setGcsSource(GcsSource value) Source located in Cloud Storage.setGcsSource(GcsSource.Builder builderForValue) Source located in Cloud Storage.setTextMetadata(TextMetadata value) Required for text import, as language code must be specified.setTextMetadata(TextMetadata.Builder builderForValue) Required for text import, as language code must be specified.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InputConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InputConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InputConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InputConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InputConfig.Builder>
-
mergeFrom
public InputConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InputConfig.Builder>- Throws:
IOException
-
getDataTypeMetadataCase
- Specified by:
getDataTypeMetadataCasein interfaceInputConfigOrBuilder
-
clearDataTypeMetadata
-
getSourceCase
- Specified by:
getSourceCasein interfaceInputConfigOrBuilder
-
clearSource
-
hasTextMetadata
public boolean hasTextMetadata()Required for text import, as language code must be specified.
.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;- Specified by:
hasTextMetadatain interfaceInputConfigOrBuilder- Returns:
- Whether the textMetadata field is set.
-
getTextMetadata
Required for text import, as language code must be specified.
.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;- Specified by:
getTextMetadatain interfaceInputConfigOrBuilder- Returns:
- The textMetadata.
-
setTextMetadata
Required for text import, as language code must be specified.
.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; -
setTextMetadata
Required for text import, as language code must be specified.
.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; -
mergeTextMetadata
Required for text import, as language code must be specified.
.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; -
clearTextMetadata
Required for text import, as language code must be specified.
.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; -
getTextMetadataBuilder
Required for text import, as language code must be specified.
.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; -
getTextMetadataOrBuilder
Required for text import, as language code must be specified.
.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;- Specified by:
getTextMetadataOrBuilderin interfaceInputConfigOrBuilder
-
hasGcsSource
public boolean hasGcsSource()Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;- Specified by:
hasGcsSourcein interfaceInputConfigOrBuilder- Returns:
- Whether the gcsSource field is set.
-
getGcsSource
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;- Specified by:
getGcsSourcein interfaceInputConfigOrBuilder- Returns:
- The gcsSource.
-
setGcsSource
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; -
setGcsSource
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; -
mergeGcsSource
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; -
clearGcsSource
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; -
getGcsSourceBuilder
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; -
getGcsSourceOrBuilder
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;- Specified by:
getGcsSourceOrBuilderin interfaceInputConfigOrBuilder
-
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:
hasBigquerySourcein interfaceInputConfigOrBuilder- Returns:
- Whether the bigquerySource field is set.
-
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:
getBigquerySourcein interfaceInputConfigOrBuilder- Returns:
- The bigquerySource.
-
setBigquerySource
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
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
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
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
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
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:
getBigquerySourceOrBuilderin interfaceInputConfigOrBuilder
-
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:
getDataTypeValuein interfaceInputConfigOrBuilder- Returns:
- The enum numeric value on the wire for dataType.
-
setDataTypeValue
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
Required. Data type must be specifed when user tries to import data.
.google.cloud.datalabeling.v1beta1.DataType data_type = 1;- Specified by:
getDataTypein interfaceInputConfigOrBuilder- Returns:
- The dataType.
-
setDataType
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
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:
getAnnotationTypeValuein interfaceInputConfigOrBuilder- Returns:
- The enum numeric value on the wire for annotationType.
-
setAnnotationTypeValue
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
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:
getAnnotationTypein interfaceInputConfigOrBuilder- Returns:
- The annotationType.
-
setAnnotationType
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
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:
hasClassificationMetadatain interfaceInputConfigOrBuilder- Returns:
- Whether the classificationMetadata field is set.
-
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:
getClassificationMetadatain interfaceInputConfigOrBuilder- Returns:
- The classificationMetadata.
-
setClassificationMetadata
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
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
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
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
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:
getClassificationMetadataOrBuilderin interfaceInputConfigOrBuilder
-