Class InputConfig.Builder (0.122.11)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InputConfig.Builder
Overrides

build()

public InputConfig build()
Returns
TypeDescription
InputConfig

buildPartial()

public InputConfig buildPartial()
Returns
TypeDescription
InputConfig

clear()

public InputConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InputConfig.Builder

This builder for chaining.

clearDataTypeMetadata()

public InputConfig.Builder clearDataTypeMetadata()
Returns
TypeDescription
InputConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public InputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InputConfig.Builder
Overrides

clearGcsSource()

public InputConfig.Builder clearGcsSource()

Source located in Cloud Storage.

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

Returns
TypeDescription
InputConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InputConfig.Builder
Overrides

clearSource()

public InputConfig.Builder clearSource()
Returns
TypeDescription
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
TypeDescription
InputConfig.Builder

clone()

public InputConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DataType

The dataType.

getDataTypeMetadataCase()

public InputConfig.DataTypeMetadataCase getDataTypeMetadataCase()
Returns
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for dataType.

getDefaultInstanceForType()

public InputConfig getDefaultInstanceForType()
Returns
TypeDescription
InputConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsSource()

public GcsSource getGcsSource()

Source located in Cloud Storage.

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

Returns
TypeDescription
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

Source located in Cloud Storage.

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

Returns
TypeDescription
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

Source located in Cloud Storage.

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

Returns
TypeDescription
GcsSourceOrBuilder

getSourceCase()

public InputConfig.SourceCase getSourceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the textMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBigQuerySource
Returns
TypeDescription
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
NameDescription
valueClassificationMetadata
Returns
TypeDescription
InputConfig.Builder

mergeFrom(InputConfig other)

public InputConfig.Builder mergeFrom(InputConfig other)
Parameter
NameDescription
otherInputConfig
Returns
TypeDescription
InputConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InputConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InputConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGcsSource
Returns
TypeDescription
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
NameDescription
valueTextMetadata
Returns
TypeDescription
InputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAnnotationType

The annotationType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueBigQuerySource
Returns
TypeDescription
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
NameDescription
builderForValueBigQuerySource.Builder
Returns
TypeDescription
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
NameDescription
valueClassificationMetadata
Returns
TypeDescription
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
NameDescription
builderForValueClassificationMetadata.Builder
Returns
TypeDescription
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
NameDescription
valueDataType

The dataType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
InputConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGcsSource
Returns
TypeDescription
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
NameDescription
builderForValueGcsSource.Builder
Returns
TypeDescription
InputConfig.Builder

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

public InputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTextMetadata
Returns
TypeDescription
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
NameDescription
builderForValueTextMetadata.Builder
Returns
TypeDescription
InputConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InputConfig.Builder
Overrides