public final class AnalyzeEntitySentimentResponse extends GeneratedMessageV3 implements AnalyzeEntitySentimentResponseOrBuilder
The entity-level sentiment analysis response message.Protobuf type
google.cloud.language.v1.AnalyzeEntitySentimentResponse
Modifier and Type | Class and Description |
---|---|
static class |
AnalyzeEntitySentimentResponse.Builder
The entity-level sentiment analysis response message.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ENTITIES_FIELD_NUMBER |
static int |
LANGUAGE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int ENTITIES_FIELD_NUMBER
public static final int LANGUAGE_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public List<Entity> getEntitiesList()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
getEntitiesList
in interface AnalyzeEntitySentimentResponseOrBuilder
public List<? extends EntityOrBuilder> getEntitiesOrBuilderList()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
getEntitiesOrBuilderList
in interface AnalyzeEntitySentimentResponseOrBuilder
public int getEntitiesCount()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
getEntitiesCount
in interface AnalyzeEntitySentimentResponseOrBuilder
public Entity getEntities(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
getEntities
in interface AnalyzeEntitySentimentResponseOrBuilder
public EntityOrBuilder getEntitiesOrBuilder(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
getEntitiesOrBuilder
in interface AnalyzeEntitySentimentResponseOrBuilder
public String getLanguage()
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][google.cloud.language.v1.Document.language] field for more details.
string language = 2;
getLanguage
in interface AnalyzeEntitySentimentResponseOrBuilder
public ByteString getLanguageBytes()
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][google.cloud.language.v1.Document.language] field for more details.
string language = 2;
getLanguageBytes
in interface AnalyzeEntitySentimentResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static AnalyzeEntitySentimentResponse parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeEntitySentimentResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeEntitySentimentResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeEntitySentimentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeEntitySentimentResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeEntitySentimentResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeEntitySentimentResponse parseFrom(InputStream input) throws IOException
IOException
public static AnalyzeEntitySentimentResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnalyzeEntitySentimentResponse parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AnalyzeEntitySentimentResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnalyzeEntitySentimentResponse parseFrom(CodedInputStream input) throws IOException
IOException
public static AnalyzeEntitySentimentResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public AnalyzeEntitySentimentResponse.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static AnalyzeEntitySentimentResponse.Builder newBuilder()
public static AnalyzeEntitySentimentResponse.Builder newBuilder(AnalyzeEntitySentimentResponse prototype)
public AnalyzeEntitySentimentResponse.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected AnalyzeEntitySentimentResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static AnalyzeEntitySentimentResponse getDefaultInstance()
public static Parser<AnalyzeEntitySentimentResponse> parser()
public Parser<AnalyzeEntitySentimentResponse> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public AnalyzeEntitySentimentResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.