Class AnalyzeEntitySentimentResponse.Builder (2.36.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.cloud.language.v1.Entity>
Returns
TypeDescription
AnalyzeEntitySentimentResponse.Builder

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
NameDescription
valueEntity
Returns
TypeDescription
AnalyzeEntitySentimentResponse.Builder

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;

Parameter
NameDescription
builderForValueEntity.Builder
Returns
TypeDescription
AnalyzeEntitySentimentResponse.Builder

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;

Parameters
NameDescription
indexint
valueEntity
Returns
TypeDescription
AnalyzeEntitySentimentResponse.Builder

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;

Parameters
NameDescription
indexint
builderForValueEntity.Builder
Returns
TypeDescription
AnalyzeEntitySentimentResponse.Builder

addEntitiesBuilder()

public Entity.Builder addEntitiesBuilder()

The recognized entities in the input document with associated sentiments.

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

Returns
TypeDescription
Entity.Builder

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
NameDescription
indexint
Returns
TypeDescription
Entity.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeEntitySentimentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeEntitySentimentResponse.Builder
Overrides

build()

public AnalyzeEntitySentimentResponse build()
Returns
TypeDescription
AnalyzeEntitySentimentResponse

buildPartial()

public AnalyzeEntitySentimentResponse buildPartial()
Returns
TypeDescription
AnalyzeEntitySentimentResponse

clear()

public AnalyzeEntitySentimentResponse.Builder clear()
Returns
TypeDescription
AnalyzeEntitySentimentResponse.Builder
Overrides