Class TextClassificationModelMetadata.Builder (2.7.0)

public static final class TextClassificationModelMetadata.Builder extends GeneratedMessageV3.Builder<TextClassificationModelMetadata.Builder> implements TextClassificationModelMetadataOrBuilder

Model metadata that is specific to text classification.

Protobuf type google.cloud.automl.v1.TextClassificationModelMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextClassificationModelMetadata build()
Returns
TypeDescription
TextClassificationModelMetadata

buildPartial()

public TextClassificationModelMetadata buildPartial()
Returns
TypeDescription
TextClassificationModelMetadata

clear()

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

clearClassificationType()

public TextClassificationModelMetadata.Builder clearClassificationType()

Output only. Classification type of the dataset used to train this model.

.google.cloud.automl.v1.ClassificationType classification_type = 3;

Returns
TypeDescription
TextClassificationModelMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getClassificationType()

public ClassificationType getClassificationType()

Output only. Classification type of the dataset used to train this model.

.google.cloud.automl.v1.ClassificationType classification_type = 3;

Returns
TypeDescription
ClassificationType

The classificationType.

getClassificationTypeValue()

public int getClassificationTypeValue()

Output only. Classification type of the dataset used to train this model.

.google.cloud.automl.v1.ClassificationType classification_type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for classificationType.

getDefaultInstanceForType()

public TextClassificationModelMetadata getDefaultInstanceForType()
Returns
TypeDescription
TextClassificationModelMetadata

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(TextClassificationModelMetadata other)

public TextClassificationModelMetadata.Builder mergeFrom(TextClassificationModelMetadata other)
Parameter
NameDescription
otherTextClassificationModelMetadata
Returns
TypeDescription
TextClassificationModelMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextClassificationModelMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextClassificationModelMetadata.Builder
Overrides

setClassificationType(ClassificationType value)

public TextClassificationModelMetadata.Builder setClassificationType(ClassificationType value)

Output only. Classification type of the dataset used to train this model.

.google.cloud.automl.v1.ClassificationType classification_type = 3;

Parameter
NameDescription
valueClassificationType

The classificationType to set.

Returns
TypeDescription
TextClassificationModelMetadata.Builder

This builder for chaining.

setClassificationTypeValue(int value)

public TextClassificationModelMetadata.Builder setClassificationTypeValue(int value)

Output only. Classification type of the dataset used to train this model.

.google.cloud.automl.v1.ClassificationType classification_type = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
TextClassificationModelMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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