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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public EntityMentionData.Builder mergeFrom(EntityMentionData other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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.
    • getType

       The type of the entity mention.
       
      .google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2;
      Specified by:
      getType in interface EntityMentionDataOrBuilder
      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

      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;
    • 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 interface EntityMentionDataOrBuilder