Class InputConfig.Builder (0.163.0)

public static final class InputConfig.Builder extends GeneratedMessageV3.Builder<InputConfig.Builder> implements InputConfigOrBuilder

The configuration of input data, including data type, location, etc.

Protobuf type google.cloud.datalabeling.v1beta1.InputConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InputConfig.Builder
Overrides

build()

public InputConfig build()
Returns
Type Description
InputConfig

buildPartial()

public InputConfig buildPartial()
Returns
Type Description
InputConfig

clear()

public InputConfig.Builder clear()
Returns
Type Description
InputConfig.Builder
Overrides

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.AnnotationType annotation_type = 3;

Returns
Type Description
InputConfig.Builder

This builder for chaining.

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.BigQuerySource bigquery_source = 5;

Returns
Type Description
InputConfig.Builder

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 for a model version that performs classification.

.google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;

Returns
Type Description
InputConfig.Builder

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
Type Description
InputConfig.Builder

This builder for chaining.

clearDataTypeMetadata()

public InputConfig.Builder clearDataTypeMetadata()
Returns
Type Description
InputConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public InputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InputConfig.Builder
Overrides

clearGcsSource()

public InputConfig.Builder clearGcsSource()

Source located in Cloud Storage.

.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
InputConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InputConfig.Builder
Overrides

clearSource()

public InputConfig.Builder clearSource()
Returns
Type Description
InputConfig.Builder

clearTextMetadata()

public InputConfig.Builder clearTextMetadata()

Required for text import, as language code must be specified.

.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;

Returns
Type Description
InputConfig.Builder

clone()

public InputConfig.Builder clone()
Returns
Type Description
InputConfig.Builder
Overrides

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.AnnotationType annotation_type = 3;

Returns
Type Description
AnnotationType

The annotationType.

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.AnnotationType annotation_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for annotationType.

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.BigQuerySource bigquery_source = 5;

Returns
Type Description
BigQuerySource

The bigquerySource.

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.BigQuerySource bigquery_source = 5;

Returns
Type Description
BigQuerySource.Builder

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.BigQuerySource bigquery_source = 5;

Returns
Type Description
BigQuerySourceOrBuilder

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 for a model version that performs classification.

.google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;

Returns
Type Description
ClassificationMetadata

The classificationMetadata.

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 for a model version that performs classification.

.google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;

Returns
Type Description
ClassificationMetadata.Builder

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 for a model version that performs classification.

.google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;

Returns
Type Description
ClassificationMetadataOrBuilder

getDataType()

public DataType getDataType()

Required. Data type must be specifed when user tries to import data.

.google.cloud.datalabeling.v1beta1.DataType data_type = 1;

Returns
Type Description
DataType

The dataType.

getDataTypeMetadataCase()

public InputConfig.DataTypeMetadataCase getDataTypeMetadataCase()
Returns
Type Description
InputConfig.DataTypeMetadataCase

getDataTypeValue()

public int getDataTypeValue()

Required. Data type must be specifed when user tries to import data.

.google.cloud.datalabeling.v1beta1.DataType data_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for dataType.

getDefaultInstanceForType()

public InputConfig getDefaultInstanceForType()
Returns
Type Description
InputConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcsSource()

public GcsSource getGcsSource()

Source located in Cloud Storage.

.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

Source located in Cloud Storage.

.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

Source located in Cloud Storage.

.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
GcsSourceOrBuilder

getSourceCase()

public InputConfig.SourceCase getSourceCase()
Returns
Type Description
InputConfig.SourceCase

getTextMetadata()

public TextMetadata getTextMetadata()

Required for text import, as language code must be specified.

.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;

Returns
Type Description
TextMetadata

The textMetadata.

getTextMetadataBuilder()

public TextMetadata.Builder getTextMetadataBuilder()

Required for text import, as language code must be specified.

.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;

Returns
Type Description
TextMetadata.Builder

getTextMetadataOrBuilder()

public TextMetadataOrBuilder getTextMetadataOrBuilder()

Required for text import, as language code must be specified.

.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;

Returns
Type Description
TextMetadataOrBuilder

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.BigQuerySource bigquery_source = 5;

Returns
Type Description
boolean

Whether the bigquerySource field is set.

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 for a model version that performs classification.

.google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;

Returns
Type Description
boolean

Whether the classificationMetadata field is set.

hasGcsSource()

public boolean hasGcsSource()

Source located in Cloud Storage.

.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
boolean

Whether the gcsSource field is set.

hasTextMetadata()

public boolean hasTextMetadata()

Required for text import, as language code must be specified.

.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;

Returns
Type Description
boolean

Whether the textMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBigquerySource(BigQuerySource value)

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.BigQuerySource bigquery_source = 5;

Parameter
Name Description
value BigQuerySource
Returns
Type Description
InputConfig.Builder

mergeClassificationMetadata(ClassificationMetadata value)

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 for a model version that performs classification.

.google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;

Parameter
Name Description
value ClassificationMetadata
Returns
Type Description
InputConfig.Builder

mergeFrom(InputConfig other)

public InputConfig.Builder mergeFrom(InputConfig other)
Parameter
Name Description
other InputConfig
Returns
Type Description
InputConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InputConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InputConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InputConfig.Builder
Overrides

mergeGcsSource(GcsSource value)

public InputConfig.Builder mergeGcsSource(GcsSource value)

Source located in Cloud Storage.

.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;

Parameter
Name Description
value GcsSource
Returns
Type Description
InputConfig.Builder

mergeTextMetadata(TextMetadata value)

public InputConfig.Builder mergeTextMetadata(TextMetadata value)

Required for text import, as language code must be specified.

.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;

Parameter
Name Description
value TextMetadata
Returns
Type Description
InputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InputConfig.Builder
Overrides

setAnnotationType(AnnotationType value)

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.AnnotationType annotation_type = 3;

Parameter
Name Description
value AnnotationType

The annotationType to set.

Returns
Type Description
InputConfig.Builder

This builder for chaining.

setAnnotationTypeValue(int value)

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.AnnotationType annotation_type = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for annotationType to set.

Returns
Type Description
InputConfig.Builder

This builder for chaining.

setBigquerySource(BigQuerySource value)

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.BigQuerySource bigquery_source = 5;

Parameter
Name Description
value BigQuerySource
Returns
Type Description
InputConfig.Builder

setBigquerySource(BigQuerySource.Builder builderForValue)

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.BigQuerySource bigquery_source = 5;

Parameter
Name Description
builderForValue BigQuerySource.Builder
Returns
Type Description
InputConfig.Builder

setClassificationMetadata(ClassificationMetadata value)

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 for a model version that performs classification.

.google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;

Parameter
Name Description
value ClassificationMetadata
Returns
Type Description
InputConfig.Builder

setClassificationMetadata(ClassificationMetadata.Builder builderForValue)

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 for a model version that performs classification.

.google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4;

Parameter
Name Description
builderForValue ClassificationMetadata.Builder
Returns
Type Description
InputConfig.Builder

setDataType(DataType value)

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;

Parameter
Name Description
value DataType

The dataType to set.

Returns
Type Description
InputConfig.Builder

This builder for chaining.

setDataTypeValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for dataType to set.

Returns
Type Description
InputConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InputConfig.Builder
Overrides

setGcsSource(GcsSource value)

public InputConfig.Builder setGcsSource(GcsSource value)

Source located in Cloud Storage.

.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;

Parameter
Name Description
value GcsSource
Returns
Type Description
InputConfig.Builder

setGcsSource(GcsSource.Builder builderForValue)

public InputConfig.Builder setGcsSource(GcsSource.Builder builderForValue)

Source located in Cloud Storage.

.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;

Parameter
Name Description
builderForValue GcsSource.Builder
Returns
Type Description
InputConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InputConfig.Builder
Overrides

setTextMetadata(TextMetadata value)

public InputConfig.Builder setTextMetadata(TextMetadata value)

Required for text import, as language code must be specified.

.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;

Parameter
Name Description
value TextMetadata
Returns
Type Description
InputConfig.Builder

setTextMetadata(TextMetadata.Builder builderForValue)

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;

Parameter
Name Description
builderForValue TextMetadata.Builder
Returns
Type Description
InputConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InputConfig.Builder
Overrides