Class AnnotateTextRequest.Features (2.37.0)

public static final class AnnotateTextRequest.Features extends GeneratedMessageV3 implements AnnotateTextRequest.FeaturesOrBuilder

All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.

Protobuf type google.cloud.language.v1.AnnotateTextRequest.Features

Static Fields

CLASSIFICATION_MODEL_OPTIONS_FIELD_NUMBER

public static final int CLASSIFICATION_MODEL_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

CLASSIFY_TEXT_FIELD_NUMBER

public static final int CLASSIFY_TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

EXTRACT_DOCUMENT_SENTIMENT_FIELD_NUMBER

public static final int EXTRACT_DOCUMENT_SENTIMENT_FIELD_NUMBER
Field Value
TypeDescription
int

EXTRACT_ENTITIES_FIELD_NUMBER

public static final int EXTRACT_ENTITIES_FIELD_NUMBER
Field Value
TypeDescription
int

EXTRACT_ENTITY_SENTIMENT_FIELD_NUMBER

public static final int EXTRACT_ENTITY_SENTIMENT_FIELD_NUMBER
Field Value
TypeDescription
int

EXTRACT_SYNTAX_FIELD_NUMBER

public static final int EXTRACT_SYNTAX_FIELD_NUMBER
Field Value
TypeDescription
int

MODERATE_TEXT_FIELD_NUMBER

public static final int MODERATE_TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnnotateTextRequest.Features getDefaultInstance()
Returns
TypeDescription
AnnotateTextRequest.Features

getDescriptor()

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

newBuilder()

public static AnnotateTextRequest.Features.Builder newBuilder()
Returns
TypeDescription
AnnotateTextRequest.Features.Builder

newBuilder(AnnotateTextRequest.Features prototype)

public static AnnotateTextRequest.Features.Builder newBuilder(AnnotateTextRequest.Features prototype)
Parameter
NameDescription
prototypeAnnotateTextRequest.Features
Returns
TypeDescription
AnnotateTextRequest.Features.Builder

parseDelimitedFrom(InputStream input)

public static AnnotateTextRequest.Features parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnnotateTextRequest.Features
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotateTextRequest.Features parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegis