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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllEntities(Iterable<? extends Entity> values)
public AnalyzeEntitySentimentResponse.Builder addAllEntities(Iterable<? extends Entity> values)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.language.v1.Entity>
|
addEntities(Entity value)
public AnalyzeEntitySentimentResponse.Builder addEntities(Entity value)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter |
---|
Name | Description |
value | Entity
|
addEntities(Entity.Builder builderForValue)
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;
addEntities(int index, Entity value)
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;
addEntities(int index, Entity.Builder builderForValue)
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;
addEntitiesBuilder()
public Entity.Builder addEntitiesBuilder()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
addEntitiesBuilder(int index)
public Entity.Builder addEntitiesBuilder(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter |
---|
Name | Description |
index | int
|
build()
public AnalyzeEntitySentimentResponse build()
buildPartial()
public AnalyzeEntitySentimentResponse buildPartial()
clear()
public AnalyzeEntitySentimentResponse.Builder clear()
Overrides
clearEntities()
public AnalyzeEntitySentimentResponse.Builder clearEntities()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
clearLanguage()
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 field
for more details.
string language = 2;
getDefaultInstanceForType()
public AnalyzeEntitySentimentResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEntities(int index)
public Entity getEntities(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter |
---|
Name | Description |
index | int
|
getEntitiesBuilder(int index)
public Entity.Builder getEntitiesBuilder(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter |
---|
Name | Description |
index | int
|
getEntitiesBuilderList()
public List<Entity.Builder> getEntitiesBuilderList()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
getEntitiesCount()
public int getEntitiesCount()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
Returns |
---|
Type | Description |
int | |
getEntitiesList()
public List<Entity> getEntitiesList()
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
getEntitiesOrBuilder(int index)
public EntityOrBuilder getEntitiesOrBuilder(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter |
---|
Name | Description |
index | int
|
getEntitiesOrBuilderList()
public List<? extends EntityOrBuilder> 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()
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 field
for more details.
string language = 2;
Returns |
---|
Type | Description |
String | The language.
|
getLanguageBytes()
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 field
for more details.
string language = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for language.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AnalyzeEntitySentimentResponse other)
public AnalyzeEntitySentimentResponse.Builder mergeFrom(AnalyzeEntitySentimentResponse other)
public AnalyzeEntitySentimentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AnalyzeEntitySentimentResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeEntitySentimentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeEntities(int index)
public AnalyzeEntitySentimentResponse.Builder removeEntities(int index)
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter |
---|
Name | Description |
index | int
|
setEntities(int index, Entity value)
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;
setEntities(int index, Entity.Builder builderForValue)
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;
setLanguage(String value)
public AnalyzeEntitySentimentResponse.Builder setLanguage(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 field
for more details.
string language = 2;
Parameter |
---|
Name | Description |
value | String
The language to set.
|
setLanguageBytes(ByteString value)
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 field
for more details.
string language = 2;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for language to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeEntitySentimentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides