Class EntityMentionData (2.5.0)

public final class EntityMentionData extends GeneratedMessageV3 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 Fields

ENTITY_UNIQUE_ID_FIELD_NUMBER

public static final int ENTITY_UNIQUE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

SENTIMENT_FIELD_NUMBER

public static final int SENTIMENT_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EntityMentionData getDefaultInstance()
Returns
TypeDescription
EntityMentionData

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static EntityMentionData.Builder newBuilder()
Returns
TypeDescription
EntityMentionData.Builder

newBuilder(EntityMentionData prototype)

public static EntityMentionData.Builder newBuilder(EntityMentionData prototype)
Parameter
NameDescription
prototypeEntityMentionData
Returns
TypeDescription
EntityMentionData.Builder

parseDelimitedFrom(InputStream input)

public static EntityMentionData parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityMentionData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static EntityMentionData parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EntityMentionData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EntityMentionData parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EntityMentionData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EntityMentionData parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityMentionData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static EntityMentionData parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityMentionData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static EntityMentionData parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EntityMentionData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMentionData
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<EntityMentionData> parser()
Returns
TypeDescription
Parser<EntityMentionData>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public EntityMentionData getDefaultInstanceForType()
Returns
TypeDescription
EntityMentionData

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.

getParserForType()

public Parser<EntityMentionData> getParserForType()
Returns
TypeDescription
Parser<EntityMentionData>
Overrides

getSentiment()

public SentimentData getSentiment()

Sentiment expressed for this mention of the entity.

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

Returns
TypeDescription
SentimentData

The sentiment.

getSentimentOrBuilder()

public SentimentDataOrBuilder getSentimentOrBuilder()

Sentiment expressed for this mention of the entity.

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

Returns
TypeDescription
SentimentDataOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public EntityMentionData.Builder newBuilderForType()
Returns
TypeDescription
EntityMentionData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EntityMentionData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EntityMentionData.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public EntityMentionData.Builder toBuilder()
Returns
TypeDescription
EntityMentionData.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException