Class InputConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<InputConfig.Builder> implements InputConfigOrBuilder
The configuration of input data, including data type, location, etc.
Protobuf typegoogle.cloud.datalabeling.v1beta1.InputConfig
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
clear
public InputConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
getDefaultInstanceForType
public InputConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public InputConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InputConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InputConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
setField
public InputConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
clearField
public InputConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
clearOneof
public InputConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
addRepeatedField
public InputConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
mergeFrom
public InputConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InputConfig.Builder>
-
mergeFrom
public InputConfig.Builder mergeFrom(InputConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InputConfig.Builder>
- Throws:
IOException
-
getDataTypeMetadataCase
public InputConfig.DataTypeMetadataCase getDataTypeMetadataCase()
- Specified by:
getDataTypeMetadataCase
in interfaceInputConfigOrBuilder
-
clearDataTypeMetadata
public InputConfig.Builder clearDataTypeMetadata()
-
getSourceCase
public InputConfig.SourceCase getSourceCase()
- Specified by:
getSourceCase
in interfaceInputConfigOrBuilder
-
clearSource
public InputConfig.Builder 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:
hasTextMetadata
in interfaceInputConfigOrBuilder
- 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 interfaceInputConfigOrBuilder
- 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;
-
getTextMetadataOrBuilder
public TextMetadataOrBuilder getTextMetadataOrBuilder()
Required for text import, as language code must be specified.
.google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6;
- Specified by:
getTextMetadataOrBuilder
in interfaceInputConfigOrBuilder
-
hasGcsSource
public boolean hasGcsSource()
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;
- Specified by:
hasGcsSource
in interfaceInputConfigOrBuilder
- 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 interfaceInputConfigOrBuilder
- 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;
-
getGcsSourceOrBuilder
public GcsSourceOrBuilder getGcsSourceOrBuilder()
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;
- Specified by:
getGcsSourceOrBuilder
in 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:
hasBigquerySource
in interfaceInputConfigOrBuilder
- 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 interfaceInputConfigOrBuilder
- 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 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:
getDataTypeValue
in interfaceInputConfigOrBuilder
- 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 interfaceInputConfigOrBuilder
- 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 interfaceInputConfigOrBuilder
- 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 interfaceInputConfigOrBuilder
- 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 interfaceInputConfigOrBuilder
- 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 interfaceInputConfigOrBuilder
- 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 interfaceInputConfigOrBuilder
-
setUnknownFields
public final InputConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
mergeUnknownFields
public final InputConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
-