Class EntityMentionData.Builder (2.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EntityMentionData build()
Returns
TypeDescription
EntityMentionData

buildPartial()

public EntityMentionData buildPartial()
Returns
TypeDescription
EntityMentionData

clear()

public EntityMentionData.Builder clear()
Returns
TypeDescription
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
TypeDescription
EntityMentionData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EntityMentionData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EntityMentionData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EntityMentionData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EntityMentionData.Builder
Overrides

clearSentiment()

public EntityMentionData.Builder clearSentiment()

Sentiment expressed for this mention of the entity.

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

Returns
TypeDescription
EntityMentionData.Builder

clearType()

public EntityMentionData.Builder clearType()

The type of the entity mention.

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

Returns
TypeDescription
EntityMentionData.Builder

This builder for chaining.

clone()

public EntityMentionData.Builder clone()
Returns
TypeDescription
EntityMentionData.Builder
Overrides

getDefaultInstanceForType()

public EntityMentionData getDefaultInstanceForType()
Returns
TypeDescription
EntityMentionData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SentimentData

The sentiment.

getSentimentBuilder()

public SentimentData.Builder getSentimentBuilder()

Sentiment expressed for this mention of the entity.

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

Returns
TypeDescription
SentimentData.Builder

getSentimentOrBuilder()

public SentimentDataOrBuilder getSentimentOrBuilder()

Sentiment expressed for this mention of the entity.

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

Returns
TypeDescription
SentimentDataOrBuilder

getType()

public EntityMentionData.MentionType getType()

The type of the entity mention.

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

Returns
TypeDescription
EntityMentionData.MentionType

The type.

getTypeValue()

public int getTypeValue()

The type of the entity mention.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the sentiment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EntityMentionData other)

public EntityMentionData.Builder mergeFrom(EntityMentionData other)
Parameter
NameDescription
otherEntityMentionData
Returns
TypeDescription
EntityMentionData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EntityMentionData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMentionData.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EntityMentionData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSentimentData
Returns
TypeDescription
EntityMentionData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EntityMentionData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The entityUniqueId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for entityUniqueId to set.

Returns
TypeDescription
EntityMentionData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public EntityMentionData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSentimentData
Returns
TypeDescription
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
NameDescription
builderForValueSentimentData.Builder
Returns
TypeDescription
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
NameDescription
valueEntityMentionData.MentionType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
EntityMentionData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final EntityMentionData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EntityMentionData.Builder
Overrides