Class AnnotateTextResponse (2.36.0)

public final class AnnotateTextResponse extends GeneratedMessageV3 implements AnnotateTextResponseOrBuilder

The text annotations response message.

Protobuf type google.cloud.language.v1.AnnotateTextResponse

Static Fields

CATEGORIES_FIELD_NUMBER

public static final int CATEGORIES_FIELD_NUMBER
Field Value
TypeDescription
int

DOCUMENT_SENTIMENT_FIELD_NUMBER

public static final int DOCUMENT_SENTIMENT_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITIES_FIELD_NUMBER

public static final int ENTITIES_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_FIELD_NUMBER

public static final int LANGUAGE_FIELD_NUMBER
Field Value
TypeDescription
int

MODERATION_CATEGORIES_FIELD_NUMBER

public static final int MODERATION_CATEGORIES_FIELD_NUMBER
Field Value
TypeDescription
int

SENTENCES_FIELD_NUMBER

public static final int SENTENCES_FIELD_NUMBER
Field Value
TypeDescription
int

TOKENS_FIELD_NUMBER

public static final int TOKENS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnnotateTextResponse getDefaultInstance()
Returns
TypeDescription
AnnotateTextResponse

getDescriptor()

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

newBuilder()

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

newBuilder(AnnotateTextResponse prototype)

public static AnnotateTextResponse.Builder newBuilder(AnnotateTextResponse prototype)
Parameter
NameDescription
prototypeAnnotateTextResponse
Returns
TypeDescription
AnnotateTextResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

public static AnnotateTextResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription