public static final class AnalyzeEntitySentimentResponse.Builder extends GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder> implements AnalyzeEntitySentimentResponseOrBuilder
The entity-level sentiment analysis response message.Protobuf type
google.cloud.language.v1.AnalyzeEntitySentimentResponse
Modifier and Type | Method and Description |
---|---|
AnalyzeEntitySentimentResponse.Builder |
addAllEntities(java.lang.Iterable<? extends Entity> values)
The recognized entities in the input document with associated sentiments.
|
AnalyzeEntitySentimentResponse.Builder |
addEntities(Entity.Builder builderForValue)
The recognized entities in the input document with associated sentiments.
|
AnalyzeEntitySentimentResponse.Builder |
addEntities(Entity value)
The recognized entities in the input document with associated sentiments.
|
AnalyzeEntitySentimentResponse.Builder |
addEntities(int index,
Entity.Builder builderForValue)
The recognized entities in the input document with associated sentiments.
|
AnalyzeEntitySentimentResponse.Builder |
addEntities(int index,
Entity value)
The recognized entities in the input document with associated sentiments.
|
Entity.Builder |
addEntitiesBuilder()
The recognized entities in the input document with associated sentiments.
|
Entity.Builder |
addEntitiesBuilder(int index)
The recognized entities in the input document with associated sentiments.
|
AnalyzeEntitySentimentResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AnalyzeEntitySentimentResponse |
build() |
AnalyzeEntitySentimentResponse |
buildPartial() |
AnalyzeEntitySentimentResponse.Builder |
clear() |
AnalyzeEntitySentimentResponse.Builder |
clearEntities()
The recognized entities in the input document with associated sentiments.
|
AnalyzeEntitySentimentResponse.Builder |
clearField(Descriptors.FieldDescriptor field) |
AnalyzeEntitySentimentResponse.Builder |
clearLanguage()
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.
|
AnalyzeEntitySentimentResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
AnalyzeEntitySentimentResponse.Builder |
clone() |
AnalyzeEntitySentimentResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Entity |
getEntities(int index)
The recognized entities in the input document with associated sentiments.
|
Entity.Builder |
getEntitiesBuilder(int index)
The recognized entities in the input document with associated sentiments.
|
java.util.List<Entity.Builder> |
getEntitiesBuilderList()
The recognized entities in the input document with associated sentiments.
|
int |
getEntitiesCount()
The recognized entities in the input document with associated sentiments.
|
java.util.List<Entity> |
getEntitiesList()
The recognized entities in the input document with associated sentiments.
|
EntityOrBuilder |
getEntitiesOrBuilder(int index)
The recognized entities in the input document with associated sentiments.
|
java.util.List<? extends EntityOrBuilder> |
getEntitiesOrBuilderList()
The recognized entities in the input document with associated sentiments.
|
java.lang.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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AnalyzeEntitySentimentResponse.Builder |
mergeFrom(AnalyzeEntitySentimentResponse other) |
AnalyzeEntitySentimentResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
AnalyzeEntitySentimentResponse.Builder |
mergeFrom(Message other) |
AnalyzeEntitySentimentResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
AnalyzeEntitySentimentResponse.Builder |
removeEntities(int index)
The recognized entities in the input document with associated sentiments.
|
AnalyzeEntitySentimentResponse.Builder |
setEntities(int index,
Entity.Builder builderForValue)
The recognized entities in the input document with associated sentiments.
|
AnalyzeEntitySentimentResponse.Builder |
setEntities(int index,
Entity value)
The recognized entities in the input document with associated sentiments.
|
AnalyzeEntitySentimentResponse.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AnalyzeEntitySentimentResponse.Builder |
setLanguage(java.lang.String value)
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.
|
AnalyzeEntitySentimentResponse.Builder |
setLanguageBytes(ByteString value)
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.
|
AnalyzeEntitySentimentResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
AnalyzeEntitySentimentResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AnalyzeEntitySentimentResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AnalyzeEntitySentimentResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AnalyzeEntitySentimentResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse.Builder mergeFrom(AnalyzeEntitySentimentResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public AnalyzeEntitySentimentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<AnalyzeEntitySentimentResponse.Builder>
java.io.IOException
public java.util.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 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 AnalyzeEntitySentimentResponse.Builder setEntities(int index, Entity value)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public AnalyzeEntitySentimentResponse.Builder setEntities(int index, Entity.Builder builderForValue)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public AnalyzeEntitySentimentResponse.Builder addEntities(Entity value)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public AnalyzeEntitySentimentResponse.Builder addEntities(int index, Entity value)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public AnalyzeEntitySentimentResponse.Builder addEntities(Entity.Builder builderForValue)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public AnalyzeEntitySentimentResponse.Builder addEntities(int index, Entity.Builder builderForValue)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public AnalyzeEntitySentimentResponse.Builder addAllEntities(java.lang.Iterable<? extends Entity> values)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public AnalyzeEntitySentimentResponse.Builder clearEntities()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public AnalyzeEntitySentimentResponse.Builder removeEntities(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public Entity.Builder getEntitiesBuilder(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
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 java.util.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 Entity.Builder addEntitiesBuilder()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public Entity.Builder addEntitiesBuilder(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public java.util.List<Entity.Builder> getEntitiesBuilderList()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
public java.lang.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 AnalyzeEntitySentimentResponse.Builder setLanguage(java.lang.String value)
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;
public AnalyzeEntitySentimentResponse.Builder clearLanguage()
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;
public AnalyzeEntitySentimentResponse.Builder setLanguageBytes(ByteString value)
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;
public final AnalyzeEntitySentimentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>
public final AnalyzeEntitySentimentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AnalyzeEntitySentimentResponse.Builder>