Class TextClassificationModelMetadata

public final class TextClassificationModelMetadata extends GeneratedMessageV3 implements TextClassificationModelMetadataOrBuilder

Model metadata that is specific to text classification.

Protobuf type google.cloud.automl.v1beta1.TextClassificationModelMetadata

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TextClassificationModelMetadata

Static Fields

CLASSIFICATION_TYPE_FIELD_NUMBER

public static final int CLASSIFICATION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextClassificationModelMetadata getDefaultInstance()
Returns
TypeDescription
TextClassificationModelMetadata

getDescriptor()

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

newBuilder()

public static TextClassificationModelMetadata.Builder newBuilder()
Returns
TypeDescription
TextClassificationModelMetadata.Builder

newBuilder(TextClassificationModelMetadata prototype)

public static TextClassificationModelMetadata.Builder newBuilder(TextClassificationModelMetadata prototype)
Parameter
NameDescription
prototypeTextClassificationModelMetadata
Returns
TypeDescription
TextClassificationModelMetadata.Builder

parseDelimitedFrom(InputStream input)

public static TextClassificationModelMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextClassificationModelMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TextClassificationModelMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TextClassificationModelMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TextClassificationModelMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TextClassificationModelMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TextClassificationModelMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TextClassificationModelMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TextClassificationModelMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextClassificationModelMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TextClassificationModelMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TextClassificationModelMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextClassificationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TextClassificationModelMetadata> parser()
Returns
TypeDescription
Parser<TextClassificationModelMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getClassificationType()

public ClassificationProto.ClassificationType getClassificationType()

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

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

Returns
TypeDescription
ClassificationProto.ClassificationType

The classificationType.

getClassificationTypeValue()

public int getClassificationTypeValue()

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

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

Returns
TypeDescription
int

The enum numeric value on the wire for classificationType.

getDefaultInstanceForType()

public TextClassificationModelMetadata getDefaultInstanceForType()
Returns
TypeDescription
TextClassificationModelMetadata

getParserForType()

public Parser<TextClassificationModelMetadata> getParserForType()
Returns
TypeDescription
Parser<TextClassificationModelMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TextClassificationModelMetadata.Builder newBuilderForType()
Returns
TypeDescription
TextClassificationModelMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TextClassificationModelMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TextClassificationModelMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TextClassificationModelMetadata.Builder toBuilder()
Returns
TypeDescription
TextClassificationModelMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException