Class ClassifyTextResponse (2.8.0)

public final class ClassifyTextResponse extends GeneratedMessageV3 implements ClassifyTextResponseOrBuilder

The document classification response message.

Protobuf type google.cloud.language.v1beta2.ClassifyTextResponse

Static Fields

CATEGORIES_FIELD_NUMBER

public static final int CATEGORIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ClassifyTextResponse getDefaultInstance()
Returns
TypeDescription
ClassifyTextResponse

getDescriptor()

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

newBuilder()

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

newBuilder(ClassifyTextResponse prototype)

public static ClassifyTextResponse.Builder newBuilder(ClassifyTextResponse prototype)
Parameter
NameDescription
prototypeClassifyTextResponse
Returns
TypeDescription
ClassifyTextResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCategories(int index)

public ClassificationCategory getCategories(int index)

Categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ClassificationCategory

getCategoriesCount()

public int getCategoriesCount()

Categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;

Returns
TypeDescription
int

getCategoriesList()

public List<ClassificationCategory> getCategoriesList()

Categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;

Returns
TypeDescription
List<ClassificationCategory>

getCategoriesOrBuilder(int index)

public ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)

Categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ClassificationCategoryOrBuilder

getCategoriesOrBuilderList()

public List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()

Categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;

Returns
TypeDescription
List<? extends com.google.cloud.language.v1beta2.ClassificationCategoryOrBuilder>

getDefaultInstanceForType()

public ClassifyTextResponse getDefaultInstanceForType()
Returns
TypeDescription
ClassifyTextResponse

getParserForType()

public Parser<ClassifyTextResponse> getParserForType()
Returns
TypeDescription
Parser<ClassifyTextResponse>
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 ClassifyTextResponse.Builder newBuilderForType()
Returns
TypeDescription
ClassifyTextResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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