Class AnalyzeSentimentRequest (2.36.0)

public final class AnalyzeSentimentRequest extends GeneratedMessageV3 implements AnalyzeSentimentRequestOrBuilder

The sentiment analysis request message.

Protobuf type google.cloud.language.v1.AnalyzeSentimentRequest

Static Fields

DOCUMENT_FIELD_NUMBER

public static final int DOCUMENT_FIELD_NUMBER
Field Value
TypeDescription
int

ENCODING_TYPE_FIELD_NUMBER

public static final int ENCODING_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnalyzeSentimentRequest getDefaultInstance()
Returns
TypeDescription
AnalyzeSentimentRequest

getDescriptor()

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

newBuilder()

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

newBuilder(AnalyzeSentimentRequest prototype)

public static AnalyzeSentimentRequest.Builder newBuilder(AnalyzeSentimentRequest prototype)
Parameter
NameDescription
prototypeAnalyzeSentimentRequest
Returns
TypeDescription
AnalyzeSentimentRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AnalyzeSentimentRequest parseFrom(ByteString data)
Parameter
NameDescription
data