Class EntityMentionData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<EntityMentionData.Builder> implements EntityMentionDataOrBuilder
The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation.
Protobuf typegoogle.cloud.contactcenterinsights.v1.EntityMentionData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityMentionData.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EntityMentionDatabuild()EntityMentionDatabuildPartial()EntityMentionData.Builderclear()EntityMentionData.BuilderclearEntityUniqueId()The key of this entity in conversation entities.EntityMentionData.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)EntityMentionData.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)EntityMentionData.BuilderclearSentiment()Sentiment expressed for this mention of the entity.EntityMentionData.BuilderclearType()The type of the entity mention.EntityMentionData.Builderclone()EntityMentionDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEntityUniqueId()The key of this entity in conversation entities.com.google.protobuf.ByteStringgetEntityUniqueIdBytes()The key of this entity in conversation entities.SentimentDatagetSentiment()Sentiment expressed for this mention of the entity.SentimentData.BuildergetSentimentBuilder()Sentiment expressed for this mention of the entity.SentimentDataOrBuildergetSentimentOrBuilder()Sentiment expressed for this mention of the entity.EntityMentionData.MentionTypegetType()The type of the entity mention.intgetTypeValue()The type of the entity mention.booleanhasSentiment()Sentiment expressed for this mention of the entity.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()EntityMentionData.BuildermergeFrom(EntityMentionData other)EntityMentionData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)EntityMentionData.BuildermergeFrom(com.google.protobuf.Message other)EntityMentionData.BuildermergeSentiment(SentimentData value)Sentiment expressed for this mention of the entity.EntityMentionData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)EntityMentionData.BuildersetEntityUniqueId(String value)The key of this entity in conversation entities.EntityMentionData.BuildersetEntityUniqueIdBytes(com.google.protobuf.ByteString value)The key of this entity in conversation entities.EntityMentionData.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EntityMentionData.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)EntityMentionData.BuildersetSentiment(SentimentData value)Sentiment expressed for this mention of the entity.EntityMentionData.BuildersetSentiment(SentimentData.Builder builderForValue)Sentiment expressed for this mention of the entity.EntityMentionData.BuildersetType(EntityMentionData.MentionType value)The type of the entity mention.EntityMentionData.BuildersetTypeValue(int value)The type of the entity mention.EntityMentionData.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
clear
public EntityMentionData.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
getDefaultInstanceForType
public EntityMentionData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public EntityMentionData build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EntityMentionData buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EntityMentionData.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
setField
public EntityMentionData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
clearField
public EntityMentionData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
clearOneof
public EntityMentionData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
setRepeatedField
public EntityMentionData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
addRepeatedField
public EntityMentionData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
mergeFrom
public EntityMentionData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityMentionData.Builder>
-
mergeFrom
public EntityMentionData.Builder mergeFrom(EntityMentionData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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;- 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
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;- Parameters:
value- The entityUniqueId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEntityUniqueIdBytes
public EntityMentionData.Builder setEntityUniqueIdBytes(com.google.protobuf.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;- 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
public EntityMentionData.Builder setTypeValue(int value)
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
public EntityMentionData.MentionType getType()
The type of the entity mention.
.google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;- Specified by:
getTypein interfaceEntityMentionDataOrBuilder- Returns:
- The type.
-
setType
public EntityMentionData.Builder setType(EntityMentionData.MentionType value)
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
public EntityMentionData.Builder 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
public SentimentData getSentiment()
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;- Specified by:
getSentimentin interfaceEntityMentionDataOrBuilder- Returns:
- The sentiment.
-
setSentiment
public EntityMentionData.Builder setSentiment(SentimentData value)
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
-
setSentiment
public EntityMentionData.Builder setSentiment(SentimentData.Builder builderForValue)
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
-
mergeSentiment
public EntityMentionData.Builder mergeSentiment(SentimentData value)
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
-
clearSentiment
public EntityMentionData.Builder clearSentiment()
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
-
getSentimentBuilder
public SentimentData.Builder getSentimentBuilder()
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;
-
getSentimentOrBuilder
public SentimentDataOrBuilder getSentimentOrBuilder()
Sentiment expressed for this mention of the entity.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3;- Specified by:
getSentimentOrBuilderin interfaceEntityMentionDataOrBuilder
-
setUnknownFields
public final EntityMentionData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
mergeUnknownFields
public final EntityMentionData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
-