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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
clear
public InputConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<InputConfig.Builder>
-
getDefaultInstanceForType
public InputConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InputConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InputConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InputConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
setField
public InputConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
clearField
public InputConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
clearOneof
public InputConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
setRepeatedField
public InputConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
addRepeatedField
public InputConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
mergeFrom
public InputConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InputConfig.Builder>
-
mergeFrom
public InputConfig.Builder mergeFrom(InputConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
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
public InputConfig.DataTypeMetadataCase getDataTypeMetadataCase()
- Specified by:
getDataTypeMetadataCasein interfaceInputConfigOrBuilder
-
clearDataTypeMetadata
public InputConfig.Builder clearDataTypeMetadata()
-
getSourceCase
public InputConfig.SourceCase getSourceCase()
- Specified by:
getSourceCasein 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:
hasTextMetadatain 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:
getTextMetadatain 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:
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
public GcsSource getGcsSource()
Source located in Cloud Storage.
.google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2;- Specified by:
getGcsSourcein 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:
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
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:
getBigquerySourcein 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:
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
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:
getDataTypein 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:
getAnnotationTypeValuein 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:
getAnnotationTypein 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:
hasClassificationMetadatain 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:
getClassificationMetadatain 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:
getClassificationMetadataOrBuilderin interfaceInputConfigOrBuilder
-
setUnknownFields
public final InputConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
mergeUnknownFields
public final InputConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>
-
-