Class TextClassificationDatasetMetadata.Builder (2.48.0)

public static final class TextClassificationDatasetMetadata.Builder extends GeneratedMessageV3.Builder<TextClassificationDatasetMetadata.Builder> implements TextClassificationDatasetMetadataOrBuilder

Dataset metadata for classification.

Protobuf type google.cloud.automl.v1beta1.TextClassificationDatasetMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextClassificationDatasetMetadata build()
Returns
Type Description
TextClassificationDatasetMetadata

buildPartial()

public TextClassificationDatasetMetadata buildPartial()
Returns
Type Description
TextClassificationDatasetMetadata

clear()

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

clearClassificationType()

public TextClassificationDatasetMetadata.Builder clearClassificationType()

Required. Type of the classification problem.

.google.cloud.automl.v1beta1.ClassificationType classification_type = 1;

Returns
Type Description
TextClassificationDatasetMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getClassificationType()

public ClassificationProto.ClassificationType getClassificationType()

Required. Type of the classification problem.

.google.cloud.automl.v1beta1.ClassificationType classification_type = 1;

Returns
Type Description
ClassificationProto.ClassificationType

The classificationType.

getClassificationTypeValue()

public int getClassificationTypeValue()

Required. Type of the classification problem.

.google.cloud.automl.v1beta1.ClassificationType classification_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for classificationType.

getDefaultInstanceForType()

public TextClassificationDatasetMetadata getDefaultInstanceForType()
Returns
Type Description
TextClassificationDatasetMetadata

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TextClassificationDatasetMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClassificationType(ClassificationProto.ClassificationType value)

public TextClassificationDatasetMetadata.Builder setClassificationType(ClassificationProto.ClassificationType value)

Required. Type of the classification problem.

.google.cloud.automl.v1beta1.ClassificationType classification_type = 1;

Parameter
Name Description
value ClassificationProto.ClassificationType

The classificationType to set.

Returns
Type Description
TextClassificationDatasetMetadata.Builder

This builder for chaining.

setClassificationTypeValue(int value)

public TextClassificationDatasetMetadata.Builder setClassificationTypeValue(int value)

Required. Type of the classification problem.

.google.cloud.automl.v1beta1.ClassificationType classification_type = 1;

Parameter
Name Description
value int

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

Returns
Type Description
TextClassificationDatasetMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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