public final class AnalyzeEntitySentimentRequest extends GeneratedMessageV3 implements AnalyzeEntitySentimentRequestOrBuilder
The entity-level sentiment analysis request message.
Protobuf type google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest
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 AnalyzeEntitySentimentRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AnalyzeEntitySentimentRequest.Builder newBuilder()
Returns
newBuilder(AnalyzeEntitySentimentRequest prototype)
public static AnalyzeEntitySentimentRequest.Builder newBuilder(AnalyzeEntitySentimentRequest prototype)
Parameter
Returns
public static AnalyzeEntitySentimentRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnalyzeEntitySentimentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AnalyzeEntitySentimentRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnalyzeEntitySentimentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AnalyzeEntitySentimentRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnalyzeEntitySentimentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnalyzeEntitySentimentRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AnalyzeEntitySentimentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnalyzeEntitySentimentRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnalyzeEntitySentimentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AnalyzeEntitySentimentRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnalyzeEntitySentimentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AnalyzeEntitySentimentRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AnalyzeEntitySentimentRequest 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 offsets.
.google.cloud.language.v1beta2.EncodingType encoding_type = 2;
Returns
getEncodingTypeValue()
public int getEncodingTypeValue()
The encoding type used by the API to calculate offsets.
.google.cloud.language.v1beta2.EncodingType encoding_type = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for encodingType.
|
getParserForType()
public Parser<AnalyzeEntitySentimentRequest> 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 AnalyzeEntitySentimentRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnalyzeEntitySentimentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AnalyzeEntitySentimentRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions