Class AnalyzeEntitySentimentResponse (2.79.0)

publicfinalclass AnalyzeEntitySentimentResponseextendsGeneratedMessageV3implementsAnalyzeEntitySentimentResponseOrBuilder

The entity-level sentiment analysis response message.

Protobuf type google.cloud.language.v1.AnalyzeEntitySentimentResponse

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AnalyzeEntitySentimentResponse

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ENTITIES_FIELD_NUMBER

publicstaticfinalintENTITIES_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_FIELD_NUMBER

publicstaticfinalintLANGUAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAnalyzeEntitySentimentResponsegetDefaultInstance()
Returns
Type Description
AnalyzeEntitySentimentResponse

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAnalyzeEntitySentimentResponse.BuildernewBuilder()
Returns
Type Description
AnalyzeEntitySentimentResponse.Builder

newBuilder(AnalyzeEntitySentimentResponse prototype)

publicstaticAnalyzeEntitySentimentResponse.BuildernewBuilder(AnalyzeEntitySentimentResponseprototype)
Parameter
Name Description
prototype AnalyzeEntitySentimentResponse
Returns
Type Description
AnalyzeEntitySentimentResponse.Builder

parseDelimitedFrom(InputStream input)

publicstaticAnalyzeEntitySentimentResponseparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeEntitySentimentResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticAnalyzeEntitySentimentResponseparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeEntitySentimentResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAnalyzeEntitySentimentResponseparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeEntitySentimentResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAnalyzeEntitySentimentResponseparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeEntitySentimentResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticAnalyzeEntitySentimentResponseparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeEntitySentimentResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticAnalyzeEntitySentimentResponseparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeEntitySentimentResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitySentimentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<AnalyzeEntitySentimentResponse>parser()
Returns
Type Description
Parser<AnalyzeEntitySentimentResponse>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicAnalyzeEntitySentimentResponsegetDefaultInstanceForType()
Returns
Type Description
AnalyzeEntitySentimentResponse

getEntities(int index)

publicEntitygetEntities(intindex)

The recognized entities in the input document with associated sentiments.

repeated .google.cloud.language.v1.Entity entities = 1;

Parameter
Name Description
index int
Returns
Type Description
Entity

getEntitiesCount()

publicintgetEntitiesCount()

The recognized entities in the input document with associated sentiments.

repeated .google.cloud.language.v1.Entity entities = 1;

Returns
Type Description
int

getEntitiesList()

publicList<Entity>getEntitiesList()

The recognized entities in the input document with associated sentiments.

repeated .google.cloud.language.v1.Entity entities = 1;

Returns
Type Description
List<Entity>

getEntitiesOrBuilder(int index)

publicEntityOrBuildergetEntitiesOrBuilder(intindex)

The recognized entities in the input document with associated sentiments.

repeated .google.cloud.language.v1.Entity entities = 1;

Parameter
Name Description
index int
Returns
Type Description
EntityOrBuilder

getEntitiesOrBuilderList()

publicList<?extendsEntityOrBuilder>getEntitiesOrBuilderList()

The recognized entities in the input document with associated sentiments.

repeated .google.cloud.language.v1.Entity entities = 1;

Returns
Type Description
List<? extends com.google.cloud.language.v1.EntityOrBuilder>

getLanguage()

publicStringgetLanguage()

The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.

string language = 2;

Returns
Type Description
String

The language.

getLanguageBytes()

publicByteStringgetLanguageBytes()

The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.

string language = 2;

Returns
Type Description
ByteString

The bytes for language.

getParserForType()

publicParser<AnalyzeEntitySentimentResponse>getParserForType()
Returns
Type Description
Parser<AnalyzeEntitySentimentResponse>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAnalyzeEntitySentimentResponse.BuildernewBuilderForType()
Returns
Type Description
AnalyzeEntitySentimentResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAnalyzeEntitySentimentResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnalyzeEntitySentimentResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicAnalyzeEntitySentimentResponse.BuildertoBuilder()
Returns
Type Description
AnalyzeEntitySentimentResponse.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.