Class AnalyzeSentimentResponse (2.25.0)

public final class AnalyzeSentimentResponse extends GeneratedMessageV3 implements AnalyzeSentimentResponseOrBuilder

The sentiment analysis response message.

Protobuf type google.cloud.language.v1.AnalyzeSentimentResponse

Static Fields

DOCUMENT_SENTIMENT_FIELD_NUMBER

public static final int DOCUMENT_SENTIMENT_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_FIELD_NUMBER

public static final int LANGUAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SENTENCES_FIELD_NUMBER

public static final int SENTENCES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnalyzeSentimentResponse getDefaultInstance()
Returns
TypeDescription
AnalyzeSentimentResponse

getDescriptor()

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

newBuilder()

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

newBuilder(AnalyzeSentimentResponse prototype)

public static AnalyzeSentimentResponse.Builder newBuilder(AnalyzeSentimentResponse prototype)
Parameter
NameDescription
prototypeAnalyzeSentimentResponse
Returns
TypeDescription
AnalyzeSentimentResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

public static AnalyzeSentimentResponse