Class TextClassificationDatasetMetadata.Builder (2.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextClassificationDatasetMetadata build()
Returns
TypeDescription
TextClassificationDatasetMetadata

buildPartial()

public TextClassificationDatasetMetadata buildPartial()
Returns
TypeDescription
TextClassificationDatasetMetadata

clear()

public TextClassificationDatasetMetadata.Builder clear()
Returns
TypeDescription
TextClassificationDatasetMetadata.Builder
Overrides

clearClassificationType()

public TextClassificationDatasetMetadata.Builder clearClassificationType()

Required. Type of the classification problem.

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

Returns
TypeDescription
TextClassificationDatasetMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TextClassificationDatasetMetadata.Builder clone()
Returns
TypeDescription
TextClassificationDatasetMetadata.Builder
Overrides

getClassificationType()

public ClassificationProto.ClassificationType getClassificationType()

Required. Type of the classification problem.

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

Returns
TypeDescription
ClassificationProto.ClassificationType

The classificationType.

getClassificationTypeValue()

public int getClassificationTypeValue()

Required. Type of the classification problem.

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

Returns
TypeDescription
int

The enum numeric value on the wire for classificationType.

getDefaultInstanceForType()

public TextClassificationDatasetMetadata getDefaultInstanceForType()
Returns
TypeDescription
TextClassificationDatasetMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextClassificationDatasetMetadata other)

public TextClassificationDatasetMetadata.Builder mergeFrom(TextClassificationDatasetMetadata other)
Parameter
NameDescription
otherTextClassificationDatasetMetadata
Returns
TypeDescription
TextClassificationDatasetMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TextClassificationDatasetMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TextClassificationDatasetMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The classificationType to set.

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

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

Returns
TypeDescription
TextClassificationDatasetMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public TextClassificationDatasetMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TextClassificationDatasetMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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