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
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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public EntityMentionData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public EntityMentionData build()
Returns
public EntityMentionData buildPartial()
Returns
public EntityMentionData.Builder clear()
Returns
Overrides
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
public EntityMentionData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public EntityMentionData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public EntityMentionData.Builder clearSentiment()
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
Returns
public EntityMentionData.Builder clearType()
The type of the entity mention.
.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;
Returns
public EntityMentionData.Builder clone()
Returns
Overrides
public EntityMentionData getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
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.
|
public SentimentData getSentiment()
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
Returns
public SentimentData.Builder getSentimentBuilder()
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
Returns
public SentimentDataOrBuilder getSentimentOrBuilder()
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
Returns
public EntityMentionData.MentionType getType()
The type of the entity mention.
.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;
Returns
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public EntityMentionData.Builder mergeFrom(EntityMentionData other)
Parameter
Returns
public EntityMentionData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public EntityMentionData.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public EntityMentionData.Builder mergeSentiment(SentimentData value)
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
Parameter
Returns
public final EntityMentionData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
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
public EntityMentionData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public EntityMentionData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public EntityMentionData.Builder setSentiment(SentimentData value)
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
Parameter
Returns
public EntityMentionData.Builder setSentiment(SentimentData.Builder builderForValue)
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
Parameter
Returns
public EntityMentionData.Builder setType(EntityMentionData.MentionType value)
The type of the entity mention.
.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;
Parameter
Returns
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
public final EntityMentionData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides