Class EntityMentionData.Builder (2.42.0)

public static final class EntityMentionData.Builder extends GeneratedMessageV3.Builder<EntityMentionData.Builder> implements EntityMentionDataOrBuilder

The data for an entity mention annotation. This represents a mention of an Entity in the conversation.

Protobuf type google.cloud.contactcenterinsights.v1.EntityMentionData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EntityMentionData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EntityMentionData.Builder
Overrides

build()

public EntityMentionData build()
Returns
Type Description
EntityMentionData

buildPartial()

public EntityMentionData buildPartial()
Returns
Type Description
EntityMentionData

clear()

public EntityMentionData.Builder clear()
Returns
Type Description
EntityMentionData.Builder
Overrides

clearEntityUniqueId()

public EntityMentionData.Builder clearEntityUniqueId()

The key of this entity in conversation entities. Can be used to retrieve the exact Entity this mention is attached to.

string entity_unique_id = 1;

Returns
Type Description
EntityMentionData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EntityMentionData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EntityMentionData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EntityMentionData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EntityMentionData.Builder
Overrides

clearSentiment()

public EntityMentionData.Builder clearSentiment()

Sentiment expressed for this mention of the entity.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;

Returns
Type Description
EntityMentionData.Builder

clearType()

public EntityMentionData.Builder clearType()

The type of the entity mention.

.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;

Returns
Type Description
EntityMentionData.Builder

This builder for chaining.

clone()

public EntityMentionData.Builder clone()
Returns
Type Description
EntityMentionData.Builder
Overrides

getDefaultInstanceForType()

public EntityMentionData getDefaultInstanceForType()
Returns
Type Description
EntityMentionData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntityUniqueId()

public String getEntityUniqueId()

The key of this entity in conversation entities. Can be used to retrieve the exact Entity this mention is attached to.

string entity_unique_id = 1;

Returns
Type Description
String

The entityUniqueId.

getEntityUniqueIdBytes()

public ByteString getEntityUniqueIdBytes()

The key of this entity in conversation entities. Can be used to retrieve the exact Entity this mention is attached to.

string entity_unique_id = 1;

Returns
Type Description
ByteString

The bytes for entityUniqueId.

getSentiment()

public SentimentData getSentiment()

Sentiment expressed for this mention of the entity.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;

Returns
Type Description
SentimentData

The sentiment.

getSentimentBuilder()

public SentimentData.Builder getSentimentBuilder()

Sentiment expressed for this mention of the entity.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;

Returns
Type Description
SentimentData.Builder

getSentimentOrBuilder()

public SentimentDataOrBuilder getSentimentOrBuilder()

Sentiment expressed for this mention of the entity.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;

Returns
Type Description
SentimentDataOrBuilder

getType()

public EntityMentionData.MentionType getType()

The type of the entity mention.

.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;

Returns
Type Description
EntityMentionData.MentionType

The type.

getTypeValue()

public int getTypeValue()

The type of the entity mention.

.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasSentiment()

public boolean hasSentiment()

Sentiment expressed for this mention of the entity.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;

Returns
Type Description
boolean

Whether the sentiment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EntityMentionData other)

public EntityMentionData.Builder mergeFrom(EntityMentionData other)
Parameter
Name Description
other EntityMentionData
Returns
Type Description
EntityMentionData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EntityMentionData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntityMentionData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EntityMentionData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EntityMentionData.Builder
Overrides

mergeSentiment(SentimentData value)

public EntityMentionData.Builder mergeSentiment(SentimentData value)

Sentiment expressed for this mention of the entity.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;

Parameter
Name Description
value SentimentData
Returns
Type Description
EntityMentionData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EntityMentionData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EntityMentionData.Builder
Overrides

setEntityUniqueId(String value)

public EntityMentionData.Builder setEntityUniqueId(String value)

The key of this entity in conversation entities. Can be used to retrieve the exact Entity this mention is attached to.

string entity_unique_id = 1;

Parameter
Name Description
value String

The entityUniqueId to set.

Returns
Type Description
EntityMentionData.Builder

This builder for chaining.

setEntityUniqueIdBytes(ByteString value)

public EntityMentionData.Builder setEntityUniqueIdBytes(ByteString value)

The key of this entity in conversation entities. Can be used to retrieve the exact Entity this mention is attached to.

string entity_unique_id = 1;

Parameter
Name Description
value ByteString

The bytes for entityUniqueId to set.

Returns
Type Description
EntityMentionData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EntityMentionData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EntityMentionData.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EntityMentionData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EntityMentionData.Builder
Overrides

setSentiment(SentimentData value)

public EntityMentionData.Builder setSentiment(SentimentData value)

Sentiment expressed for this mention of the entity.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;

Parameter
Name Description
value SentimentData
Returns
Type Description
EntityMentionData.Builder

setSentiment(SentimentData.Builder builderForValue)

public EntityMentionData.Builder setSentiment(SentimentData.Builder builderForValue)

Sentiment expressed for this mention of the entity.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;

Parameter
Name Description
builderForValue SentimentData.Builder
Returns
Type Description
EntityMentionData.Builder

setType(EntityMentionData.MentionType value)

public EntityMentionData.Builder setType(EntityMentionData.MentionType value)

The type of the entity mention.

.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;

Parameter
Name Description
value EntityMentionData.MentionType

The type to set.

Returns
Type Description
EntityMentionData.Builder

This builder for chaining.

setTypeValue(int value)

public EntityMentionData.Builder setTypeValue(int value)

The type of the entity mention.

.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
EntityMentionData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final EntityMentionData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EntityMentionData.Builder
Overrides