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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EntityMentionData
build()
EntityMentionData
buildPartial()
EntityMentionData.Builder
clear()
EntityMentionData.Builder
clearEntityUniqueId()
The key of this entity in conversation entities.EntityMentionData.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
EntityMentionData.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
EntityMentionData.Builder
clearSentiment()
Sentiment expressed for this mention of the entity.EntityMentionData.Builder
clearType()
The type of the entity mention.EntityMentionData.Builder
clone()
EntityMentionData
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEntityUniqueId()
The key of this entity in conversation entities.com.google.protobuf.ByteString
getEntityUniqueIdBytes()
The key of this entity in conversation entities.SentimentData
getSentiment()
Sentiment expressed for this mention of the entity.SentimentData.Builder
getSentimentBuilder()
Sentiment expressed for this mention of the entity.SentimentDataOrBuilder
getSentimentOrBuilder()
Sentiment expressed for this mention of the entity.EntityMentionData.MentionType
getType()
The type of the entity mention.int
getTypeValue()
The type of the entity mention.boolean
hasSentiment()
Sentiment expressed for this mention of the entity.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
EntityMentionData.Builder
mergeFrom(EntityMentionData other)
EntityMentionData.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
EntityMentionData.Builder
mergeFrom(com.google.protobuf.Message other)
EntityMentionData.Builder
mergeSentiment(SentimentData value)
Sentiment expressed for this mention of the entity.EntityMentionData.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EntityMentionData.Builder
setEntityUniqueId(String value)
The key of this entity in conversation entities.EntityMentionData.Builder
setEntityUniqueIdBytes(com.google.protobuf.ByteString value)
The key of this entity in conversation entities.EntityMentionData.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EntityMentionData.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
EntityMentionData.Builder
setSentiment(SentimentData value)
Sentiment expressed for this mention of the entity.EntityMentionData.Builder
setSentiment(SentimentData.Builder builderForValue)
Sentiment expressed for this mention of the entity.EntityMentionData.Builder
setType(EntityMentionData.MentionType value)
The type of the entity mention.EntityMentionData.Builder
setTypeValue(int value)
The type of the entity mention.EntityMentionData.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
clear
public EntityMentionData.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
getDefaultInstanceForType
public EntityMentionData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EntityMentionData build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EntityMentionData buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EntityMentionData.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
setField
public EntityMentionData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
clearField
public EntityMentionData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
clearOneof
public EntityMentionData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
setRepeatedField
public EntityMentionData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
addRepeatedField
public EntityMentionData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
mergeFrom
public EntityMentionData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EntityMentionData.Builder>
-
mergeFrom
public EntityMentionData.Builder mergeFrom(EntityMentionData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getEntityUniqueId
in 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:
getEntityUniqueIdBytes
in 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:
getTypeValue
in 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:
getType
in 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:
hasSentiment
in 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:
getSentiment
in 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:
getSentimentOrBuilder
in interfaceEntityMentionDataOrBuilder
-
setUnknownFields
public final EntityMentionData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
mergeUnknownFields
public final EntityMentionData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
-
-