Class 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 type google.cloud.contactcenterinsights.v1.EntityMentionData
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
      • clear

        public EntityMentionData.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
      • getDefaultInstanceForType

        public EntityMentionData getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public EntityMentionData build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public EntityMentionData buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public EntityMentionData.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
      • setField

        public EntityMentionData.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
      • clearField

        public EntityMentionData.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
      • clearOneof

        public EntityMentionData.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
      • addRepeatedField

        public EntityMentionData.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
      • mergeFrom

        public EntityMentionData.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EntityMentionData.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface EntityMentionDataOrBuilder
        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 interface EntityMentionDataOrBuilder
        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 interface EntityMentionDataOrBuilder
        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.
      • 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 interface EntityMentionDataOrBuilder
        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 interface EntityMentionDataOrBuilder
        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;
      • 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;
      • setUnknownFields

        public final EntityMentionData.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>
      • mergeUnknownFields

        public final EntityMentionData.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityMentionData.Builder>