Class EntityMentionData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EntityMentionData.Builder>
com.google.cloud.contactcenterinsights.v1.EntityMentionData.Builder
- All Implemented Interfaces:
EntityMentionDataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EntityMentionData
public static final class EntityMentionData.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The key of this entity in conversation entities.Sentiment expressed for this mention of the entity.The type of the entity mention.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe key of this entity in conversation entities.com.google.protobuf.ByteStringThe key of this entity in conversation entities.Sentiment expressed for this mention of the entity.Sentiment expressed for this mention of the entity.Sentiment expressed for this mention of the entity.getType()The type of the entity mention.intThe type of the entity mention.booleanSentiment expressed for this mention of the entity.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EntityMentionData other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSentiment(SentimentData value) Sentiment expressed for this mention of the entity.setEntityUniqueId(String value) The key of this entity in conversation entities.setEntityUniqueIdBytes(com.google.protobuf.ByteString value) The key of this entity in conversation entities.setSentiment(SentimentData value) Sentiment expressed for this mention of the entity.setSentiment(SentimentData.Builder builderForValue) Sentiment expressed for this mention of the entity.The type of the entity mention.setTypeValue(int value) The type of the entity mention.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EntityMentionData.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EntityMentionData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EntityMentionData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityMentionData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EntityMentionData.Builder>
-
mergeFrom
public EntityMentionData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityMentionData.Builder>- Throws:
IOException
-
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;- Specified by:
getEntityUniqueIdin interfaceEntityMentionDataOrBuilder- Returns:
- The entityUniqueId.
-
getEntityUniqueIdBytes
public com.google.protobuf.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;- Specified by:
getEntityUniqueIdBytesin interfaceEntityMentionDataOrBuilder- Returns:
- The bytes for entityUniqueId.
-
setEntityUniqueId
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;- Parameters:
value- The entityUniqueId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEntityUniqueIdBytes
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;- Parameters:
value- The bytes for entityUniqueId to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()The type of the entity mention.
.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;- Specified by:
getTypeValuein interfaceEntityMentionDataOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The type of the entity mention.
.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The type of the entity mention.
.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;- Specified by:
getTypein interfaceEntityMentionDataOrBuilder- Returns:
- The type.
-
setType
The type of the entity mention.
.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of the entity mention.
.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;- Returns:
- This builder for chaining.
-
hasSentiment
public boolean hasSentiment()Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;- Specified by:
hasSentimentin interfaceEntityMentionDataOrBuilder- Returns:
- Whether the sentiment field is set.
-
getSentiment
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;- Specified by:
getSentimentin interfaceEntityMentionDataOrBuilder- Returns:
- The sentiment.
-
setSentiment
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3; -
setSentiment
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3; -
mergeSentiment
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3; -
clearSentiment
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3; -
getSentimentBuilder
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3; -
getSentimentOrBuilder
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;- Specified by:
getSentimentOrBuilderin interfaceEntityMentionDataOrBuilder
-