public static final class EntityMentionData.Builder extends GeneratedMessage.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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > EntityMentionData.BuilderImplements
EntityMentionDataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
getDefaultInstanceForType()
public EntityMentionData getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
EntityMentionData |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public EntityMentionData.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
EntityMentionData.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for entityUniqueId to set. |
| Returns | |
|---|---|
| Type | Description |
EntityMentionData.Builder |
This builder for chaining. |
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.MentionTypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
EntityMentionData.Builder |
This builder for chaining. |