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