Class TextClassificationDatasetMetadata (2.37.0)

public final class TextClassificationDatasetMetadata extends GeneratedMessageV3 implements TextClassificationDatasetMetadataOrBuilder

Dataset metadata for classification.

Protobuf type google.cloud.automl.v1beta1.TextClassificationDatasetMetadata

Inheritance

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

Static Fields

CLASSIFICATION_TYPE_FIELD_NUMBER

public static final int CLASSIFICATION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextClassificationDatasetMetadata getDefaultInstance()
Returns
TypeDescription
TextClassificationDatasetMetadata

getDescriptor()

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

newBuilder()

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

newBuilder(TextClassificationDatasetMetadata prototype)

public static TextClassificationDatasetMetadata.Builder newBuilder(TextClassificationDatasetMetadata prototype)
Parameter
NameDescription
prototypeTextClassificationDatasetMetadata
Returns
TypeDescription
TextClassificationDatasetMetadata.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 TextClassificationDatasetMetadata.Builder newBuilderForType()
Returns
TypeDescription
TextClassificationDatasetMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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