public final class AnalyzeSentimentRequest extends GeneratedMessageV3 implements AnalyzeSentimentRequestOrBuilder
The sentiment analysis request message.
Protobuf type google.cloud.language.v1beta2.AnalyzeSentimentRequest
Static Fields
DOCUMENT_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER
Field Value
ENCODING_TYPE_FIELD_NUMBER
public static final int ENCODING_TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AnalyzeSentimentRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AnalyzeSentimentRequest.Builder newBuilder()
Returns
newBuilder(AnalyzeSentimentRequest prototype)
public static AnalyzeSentimentRequest.Builder newBuilder(AnalyzeSentimentRequest prototype)
Parameter
Returns
public static AnalyzeSentimentRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnalyzeSentimentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AnalyzeSentimentRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnalyzeSentimentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AnalyzeSentimentRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnalyzeSentimentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnalyzeSentimentRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AnalyzeSentimentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnalyzeSentimentRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnalyzeSentimentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AnalyzeSentimentRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnalyzeSentimentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AnalyzeSentimentRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AnalyzeSentimentRequest getDefaultInstanceForType()
Returns
getDocument()
public Document getDocument()
Required. Input document.
.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
Required. Input document.
.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getEncodingType()
public EncodingType getEncodingType()
The encoding type used by the API to calculate sentence offsets for the
sentence sentiment.
.google.cloud.language.v1beta2.EncodingType encoding_type = 2;
Returns
getEncodingTypeValue()
public int getEncodingTypeValue()
The encoding type used by the API to calculate sentence offsets for the
sentence sentiment.
.google.cloud.language.v1beta2.EncodingType encoding_type = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for encodingType.
|
getParserForType()
public Parser<AnalyzeSentimentRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasDocument()
public boolean hasDocument()
Required. Input document.
.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the document field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AnalyzeSentimentRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnalyzeSentimentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AnalyzeSentimentRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions