Class ConversationParticipant.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConversationParticipant.Builder>
com.google.cloud.contactcenterinsights.v1.ConversationParticipant.Builder
All Implemented Interfaces:
ConversationParticipantOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConversationParticipant

public static final class ConversationParticipant.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConversationParticipant.Builder> implements ConversationParticipantOrBuilder
 The call participant speaking for a given utterance.
 
Protobuf type google.cloud.contactcenterinsights.v1.ConversationParticipant
  • 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<ConversationParticipant.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<ConversationParticipant.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<ConversationParticipant.Builder>
    • getDefaultInstanceForType

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

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

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

      public ConversationParticipant.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<ConversationParticipant.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ConversationParticipant.Builder>
    • mergeFrom

      public ConversationParticipant.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<ConversationParticipant.Builder>
      Throws:
      IOException
    • getParticipantCase

      public ConversationParticipant.ParticipantCase getParticipantCase()
      Specified by:
      getParticipantCase in interface ConversationParticipantOrBuilder
    • clearParticipant

      public ConversationParticipant.Builder clearParticipant()
    • hasDialogflowParticipantName

      public boolean hasDialogflowParticipantName()
       The name of the participant provided by Dialogflow. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasDialogflowParticipantName in interface ConversationParticipantOrBuilder
      Returns:
      Whether the dialogflowParticipantName field is set.
    • getDialogflowParticipantName

      public String getDialogflowParticipantName()
       The name of the participant provided by Dialogflow. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDialogflowParticipantName in interface ConversationParticipantOrBuilder
      Returns:
      The dialogflowParticipantName.
    • getDialogflowParticipantNameBytes

      public com.google.protobuf.ByteString getDialogflowParticipantNameBytes()
       The name of the participant provided by Dialogflow. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDialogflowParticipantNameBytes in interface ConversationParticipantOrBuilder
      Returns:
      The bytes for dialogflowParticipantName.
    • setDialogflowParticipantName

      public ConversationParticipant.Builder setDialogflowParticipantName(String value)
       The name of the participant provided by Dialogflow. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The dialogflowParticipantName to set.
      Returns:
      This builder for chaining.
    • clearDialogflowParticipantName

      public ConversationParticipant.Builder clearDialogflowParticipantName()
       The name of the participant provided by Dialogflow. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDialogflowParticipantNameBytes

      public ConversationParticipant.Builder setDialogflowParticipantNameBytes(com.google.protobuf.ByteString value)
       The name of the participant provided by Dialogflow. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for dialogflowParticipantName to set.
      Returns:
      This builder for chaining.
    • hasUserId

      public boolean hasUserId()
       A user-specified ID representing the participant.
       
      string user_id = 6;
      Specified by:
      hasUserId in interface ConversationParticipantOrBuilder
      Returns:
      Whether the userId field is set.
    • getUserId

      public String getUserId()
       A user-specified ID representing the participant.
       
      string user_id = 6;
      Specified by:
      getUserId in interface ConversationParticipantOrBuilder
      Returns:
      The userId.
    • getUserIdBytes

      public com.google.protobuf.ByteString getUserIdBytes()
       A user-specified ID representing the participant.
       
      string user_id = 6;
      Specified by:
      getUserIdBytes in interface ConversationParticipantOrBuilder
      Returns:
      The bytes for userId.
    • setUserId

      public ConversationParticipant.Builder setUserId(String value)
       A user-specified ID representing the participant.
       
      string user_id = 6;
      Parameters:
      value - The userId to set.
      Returns:
      This builder for chaining.
    • clearUserId

      public ConversationParticipant.Builder clearUserId()
       A user-specified ID representing the participant.
       
      string user_id = 6;
      Returns:
      This builder for chaining.
    • setUserIdBytes

      public ConversationParticipant.Builder setUserIdBytes(com.google.protobuf.ByteString value)
       A user-specified ID representing the participant.
       
      string user_id = 6;
      Parameters:
      value - The bytes for userId to set.
      Returns:
      This builder for chaining.
    • getDialogflowParticipant

      @Deprecated public String getDialogflowParticipant()
      Deprecated.
      google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470
       Deprecated. Use `dialogflow_participant_name` instead.
       The name of the Dialogflow participant. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant = 1 [deprecated = true];
      Specified by:
      getDialogflowParticipant in interface ConversationParticipantOrBuilder
      Returns:
      The dialogflowParticipant.
    • getDialogflowParticipantBytes

      @Deprecated public com.google.protobuf.ByteString getDialogflowParticipantBytes()
      Deprecated.
      google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470
       Deprecated. Use `dialogflow_participant_name` instead.
       The name of the Dialogflow participant. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant = 1 [deprecated = true];
      Specified by:
      getDialogflowParticipantBytes in interface ConversationParticipantOrBuilder
      Returns:
      The bytes for dialogflowParticipant.
    • setDialogflowParticipant

      @Deprecated public ConversationParticipant.Builder setDialogflowParticipant(String value)
      Deprecated.
      google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470
       Deprecated. Use `dialogflow_participant_name` instead.
       The name of the Dialogflow participant. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant = 1 [deprecated = true];
      Parameters:
      value - The dialogflowParticipant to set.
      Returns:
      This builder for chaining.
    • clearDialogflowParticipant

      @Deprecated public ConversationParticipant.Builder clearDialogflowParticipant()
      Deprecated.
      google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470
       Deprecated. Use `dialogflow_participant_name` instead.
       The name of the Dialogflow participant. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant = 1 [deprecated = true];
      Returns:
      This builder for chaining.
    • setDialogflowParticipantBytes

      @Deprecated public ConversationParticipant.Builder setDialogflowParticipantBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470
       Deprecated. Use `dialogflow_participant_name` instead.
       The name of the Dialogflow participant. Format:
       projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
       
      string dialogflow_participant = 1 [deprecated = true];
      Parameters:
      value - The bytes for dialogflowParticipant to set.
      Returns:
      This builder for chaining.
    • getObfuscatedExternalUserId

      public String getObfuscatedExternalUserId()
       Obfuscated user ID from Dialogflow.
       
      string obfuscated_external_user_id = 3;
      Specified by:
      getObfuscatedExternalUserId in interface ConversationParticipantOrBuilder
      Returns:
      The obfuscatedExternalUserId.
    • getObfuscatedExternalUserIdBytes

      public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes()
       Obfuscated user ID from Dialogflow.
       
      string obfuscated_external_user_id = 3;
      Specified by:
      getObfuscatedExternalUserIdBytes in interface ConversationParticipantOrBuilder
      Returns:
      The bytes for obfuscatedExternalUserId.
    • setObfuscatedExternalUserId

      public ConversationParticipant.Builder setObfuscatedExternalUserId(String value)
       Obfuscated user ID from Dialogflow.
       
      string obfuscated_external_user_id = 3;
      Parameters:
      value - The obfuscatedExternalUserId to set.
      Returns:
      This builder for chaining.
    • clearObfuscatedExternalUserId

      public ConversationParticipant.Builder clearObfuscatedExternalUserId()
       Obfuscated user ID from Dialogflow.
       
      string obfuscated_external_user_id = 3;
      Returns:
      This builder for chaining.
    • setObfuscatedExternalUserIdBytes

      public ConversationParticipant.Builder setObfuscatedExternalUserIdBytes(com.google.protobuf.ByteString value)
       Obfuscated user ID from Dialogflow.
       
      string obfuscated_external_user_id = 3;
      Parameters:
      value - The bytes for obfuscatedExternalUserId to set.
      Returns:
      This builder for chaining.
    • getRoleValue

      public int getRoleValue()
       The role of the participant.
       
      .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;
      Specified by:
      getRoleValue in interface ConversationParticipantOrBuilder
      Returns:
      The enum numeric value on the wire for role.
    • setRoleValue

      public ConversationParticipant.Builder setRoleValue(int value)
       The role of the participant.
       
      .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;
      Parameters:
      value - The enum numeric value on the wire for role to set.
      Returns:
      This builder for chaining.
    • getRole

      public ConversationParticipant.Role getRole()
       The role of the participant.
       
      .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;
      Specified by:
      getRole in interface ConversationParticipantOrBuilder
      Returns:
      The role.
    • setRole

       The role of the participant.
       
      .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;
      Parameters:
      value - The role to set.
      Returns:
      This builder for chaining.
    • clearRole

      public ConversationParticipant.Builder clearRole()
       The role of the participant.
       
      .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;
      Returns:
      This builder for chaining.