Class Conversation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Conversation.Builder>
com.google.cloud.dialogflow.v2.Conversation.Builder
All Implemented Interfaces:
ConversationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Conversation

public static final class Conversation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Conversation.Builder> implements ConversationOrBuilder
 Represents a conversation.
 A conversation is an interaction between an agent, including live agents
 and Dialogflow agents, and a support customer. Conversations can
 include phone calls and text-based chat sessions.
 
Protobuf type google.cloud.dialogflow.v2.Conversation
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Conversation.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Conversation.Builder>
    • internalGetFieldAccessorTable

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

      public Conversation.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<Conversation.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<Conversation.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Conversation.Builder mergeFrom(Conversation other)
    • isInitialized

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

      public Conversation.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<Conversation.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Identifier. The unique identifier of this conversation.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ConversationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Identifier. The unique identifier of this conversation.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ConversationOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Conversation.Builder setName(String value)
       Output only. Identifier. The unique identifier of this conversation.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Conversation.Builder clearName()
       Output only. Identifier. The unique identifier of this conversation.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Conversation.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Identifier. The unique identifier of this conversation.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getLifecycleStateValue

      public int getLifecycleStateValue()
       Output only. The current state of the Conversation.
       
      .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLifecycleStateValue in interface ConversationOrBuilder
      Returns:
      The enum numeric value on the wire for lifecycleState.
    • setLifecycleStateValue

      public Conversation.Builder setLifecycleStateValue(int value)
       Output only. The current state of the Conversation.
       
      .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for lifecycleState to set.
      Returns:
      This builder for chaining.
    • getLifecycleState

      public Conversation.LifecycleState getLifecycleState()
       Output only. The current state of the Conversation.
       
      .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLifecycleState in interface ConversationOrBuilder
      Returns:
      The lifecycleState.
    • setLifecycleState

      public Conversation.Builder setLifecycleState(Conversation.LifecycleState value)
       Output only. The current state of the Conversation.
       
      .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The lifecycleState to set.
      Returns:
      This builder for chaining.
    • clearLifecycleState

      public Conversation.Builder clearLifecycleState()
       Output only. The current state of the Conversation.
       
      .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getConversationProfile

      public String getConversationProfile()
       Required. The Conversation Profile to be used to configure this
       Conversation. This field cannot be updated.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversationProfile in interface ConversationOrBuilder
      Returns:
      The conversationProfile.
    • getConversationProfileBytes

      public com.google.protobuf.ByteString getConversationProfileBytes()
       Required. The Conversation Profile to be used to configure this
       Conversation. This field cannot be updated.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversationProfileBytes in interface ConversationOrBuilder
      Returns:
      The bytes for conversationProfile.
    • setConversationProfile

      public Conversation.Builder setConversationProfile(String value)
       Required. The Conversation Profile to be used to configure this
       Conversation. This field cannot be updated.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The conversationProfile to set.
      Returns:
      This builder for chaining.
    • clearConversationProfile

      public Conversation.Builder clearConversationProfile()
       Required. The Conversation Profile to be used to configure this
       Conversation. This field cannot be updated.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setConversationProfileBytes

      public Conversation.Builder setConversationProfileBytes(com.google.protobuf.ByteString value)
       Required. The Conversation Profile to be used to configure this
       Conversation. This field cannot be updated.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for conversationProfile to set.
      Returns:
      This builder for chaining.
    • hasPhoneNumber

      public boolean hasPhoneNumber()
       Output only. It will not be empty if the conversation is to be connected
       over telephony.
       
      .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPhoneNumber in interface ConversationOrBuilder
      Returns:
      Whether the phoneNumber field is set.
    • getPhoneNumber

      public ConversationPhoneNumber getPhoneNumber()
       Output only. It will not be empty if the conversation is to be connected
       over telephony.
       
      .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPhoneNumber in interface ConversationOrBuilder
      Returns:
      The phoneNumber.
    • setPhoneNumber

      public Conversation.Builder setPhoneNumber(ConversationPhoneNumber value)
       Output only. It will not be empty if the conversation is to be connected
       over telephony.
       
      .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPhoneNumber

      public Conversation.Builder setPhoneNumber(ConversationPhoneNumber.Builder builderForValue)
       Output only. It will not be empty if the conversation is to be connected
       over telephony.
       
      .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePhoneNumber

      public Conversation.Builder mergePhoneNumber(ConversationPhoneNumber value)
       Output only. It will not be empty if the conversation is to be connected
       over telephony.
       
      .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPhoneNumber

      public Conversation.Builder clearPhoneNumber()
       Output only. It will not be empty if the conversation is to be connected
       over telephony.
       
      .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPhoneNumberBuilder

      public ConversationPhoneNumber.Builder getPhoneNumberBuilder()
       Output only. It will not be empty if the conversation is to be connected
       over telephony.
       
      .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPhoneNumberOrBuilder

      public ConversationPhoneNumberOrBuilder getPhoneNumberOrBuilder()
       Output only. It will not be empty if the conversation is to be connected
       over telephony.
       
      .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPhoneNumberOrBuilder in interface ConversationOrBuilder
    • hasStartTime

      public boolean hasStartTime()
       Output only. The time the conversation was started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStartTime in interface ConversationOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Output only. The time the conversation was started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTime in interface ConversationOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public Conversation.Builder setStartTime(com.google.protobuf.Timestamp value)
       Output only. The time the conversation was started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setStartTime

      public Conversation.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the conversation was started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeStartTime

      public Conversation.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Output only. The time the conversation was started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearStartTime

      public Conversation.Builder clearStartTime()
       Output only. The time the conversation was started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Output only. The time the conversation was started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Output only. The time the conversation was started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTimeOrBuilder in interface ConversationOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Output only. The time the conversation was finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEndTime in interface ConversationOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       Output only. The time the conversation was finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTime in interface ConversationOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public Conversation.Builder setEndTime(com.google.protobuf.Timestamp value)
       Output only. The time the conversation was finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setEndTime

      public Conversation.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the conversation was finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeEndTime

      public Conversation.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Output only. The time the conversation was finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearEndTime

      public Conversation.Builder clearEndTime()
       Output only. The time the conversation was finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       Output only. The time the conversation was finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Output only. The time the conversation was finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTimeOrBuilder in interface ConversationOrBuilder
    • getConversationStageValue

      public int getConversationStageValue()
       Optional. The stage of a conversation. It indicates whether the virtual
       agent or a human agent is handling the conversation.
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set, defaults to
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
       Otherwise, defaults to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set but explicitly sets conversation_stage to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
       it skips
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
       stage and directly goes to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
       
      .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversationStageValue in interface ConversationOrBuilder
      Returns:
      The enum numeric value on the wire for conversationStage.
    • setConversationStageValue

      public Conversation.Builder setConversationStageValue(int value)
       Optional. The stage of a conversation. It indicates whether the virtual
       agent or a human agent is handling the conversation.
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set, defaults to
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
       Otherwise, defaults to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set but explicitly sets conversation_stage to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
       it skips
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
       stage and directly goes to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
       
      .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for conversationStage to set.
      Returns:
      This builder for chaining.
    • getConversationStage

      public Conversation.ConversationStage getConversationStage()
       Optional. The stage of a conversation. It indicates whether the virtual
       agent or a human agent is handling the conversation.
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set, defaults to
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
       Otherwise, defaults to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set but explicitly sets conversation_stage to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
       it skips
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
       stage and directly goes to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
       
      .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversationStage in interface ConversationOrBuilder
      Returns:
      The conversationStage.
    • setConversationStage

      public Conversation.Builder setConversationStage(Conversation.ConversationStage value)
       Optional. The stage of a conversation. It indicates whether the virtual
       agent or a human agent is handling the conversation.
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set, defaults to
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
       Otherwise, defaults to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set but explicitly sets conversation_stage to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
       it skips
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
       stage and directly goes to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
       
      .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The conversationStage to set.
      Returns:
      This builder for chaining.
    • clearConversationStage

      public Conversation.Builder clearConversationStage()
       Optional. The stage of a conversation. It indicates whether the virtual
       agent or a human agent is handling the conversation.
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set, defaults to
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
       Otherwise, defaults to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      
       If the conversation is created with the conversation profile that has
       Dialogflow config set but explicitly sets conversation_stage to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
       it skips
       [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
       stage and directly goes to
       [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
       
      .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasTelephonyConnectionInfo

      public boolean hasTelephonyConnectionInfo()
       Output only. The telephony connection information.
       
      .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTelephonyConnectionInfo in interface ConversationOrBuilder
      Returns:
      Whether the telephonyConnectionInfo field is set.
    • getTelephonyConnectionInfo

      public Conversation.TelephonyConnectionInfo getTelephonyConnectionInfo()
       Output only. The telephony connection information.
       
      .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTelephonyConnectionInfo in interface ConversationOrBuilder
      Returns:
      The telephonyConnectionInfo.
    • setTelephonyConnectionInfo

      public Conversation.Builder setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo value)
       Output only. The telephony connection information.
       
      .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setTelephonyConnectionInfo

      public Conversation.Builder setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.Builder builderForValue)
       Output only. The telephony connection information.
       
      .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeTelephonyConnectionInfo

      public Conversation.Builder mergeTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo value)
       Output only. The telephony connection information.
       
      .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearTelephonyConnectionInfo

      public Conversation.Builder clearTelephonyConnectionInfo()
       Output only. The telephony connection information.
       
      .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTelephonyConnectionInfoBuilder

      public Conversation.TelephonyConnectionInfo.Builder getTelephonyConnectionInfoBuilder()
       Output only. The telephony connection information.
       
      .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTelephonyConnectionInfoOrBuilder

      public Conversation.TelephonyConnectionInfoOrBuilder getTelephonyConnectionInfoOrBuilder()
       Output only. The telephony connection information.
       
      .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTelephonyConnectionInfoOrBuilder in interface ConversationOrBuilder
    • hasInitialConversationProfile

      public boolean hasInitialConversationProfile()
       Optional. Output only. The initial conversation profile to be used to
       configure this conversation, which is a copy of the conversation profile
       config read at conversation creation time.
       
      .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasInitialConversationProfile in interface ConversationOrBuilder
      Returns:
      Whether the initialConversationProfile field is set.
    • getInitialConversationProfile

      public ConversationProfile getInitialConversationProfile()
       Optional. Output only. The initial conversation profile to be used to
       configure this conversation, which is a copy of the conversation profile
       config read at conversation creation time.
       
      .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInitialConversationProfile in interface ConversationOrBuilder
      Returns:
      The initialConversationProfile.
    • setInitialConversationProfile

      public Conversation.Builder setInitialConversationProfile(ConversationProfile value)
       Optional. Output only. The initial conversation profile to be used to
       configure this conversation, which is a copy of the conversation profile
       config read at conversation creation time.
       
      .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • setInitialConversationProfile

      public Conversation.Builder setInitialConversationProfile(ConversationProfile.Builder builderForValue)
       Optional. Output only. The initial conversation profile to be used to
       configure this conversation, which is a copy of the conversation profile
       config read at conversation creation time.
       
      .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeInitialConversationProfile

      public Conversation.Builder mergeInitialConversationProfile(ConversationProfile value)
       Optional. Output only. The initial conversation profile to be used to
       configure this conversation, which is a copy of the conversation profile
       config read at conversation creation time.
       
      .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearInitialConversationProfile

      public Conversation.Builder clearInitialConversationProfile()
       Optional. Output only. The initial conversation profile to be used to
       configure this conversation, which is a copy of the conversation profile
       config read at conversation creation time.
       
      .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • getInitialConversationProfileBuilder

      public ConversationProfile.Builder getInitialConversationProfileBuilder()
       Optional. Output only. The initial conversation profile to be used to
       configure this conversation, which is a copy of the conversation profile
       config read at conversation creation time.
       
      .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • getInitialConversationProfileOrBuilder

      public ConversationProfileOrBuilder getInitialConversationProfileOrBuilder()
       Optional. Output only. The initial conversation profile to be used to
       configure this conversation, which is a copy of the conversation profile
       config read at conversation creation time.
       
      .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInitialConversationProfileOrBuilder in interface ConversationOrBuilder
    • getIngestedContextReferencesCount

      public int getIngestedContextReferencesCount()
      Description copied from interface: ConversationOrBuilder
       Output only. The context reference updates provided by external systems.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIngestedContextReferencesCount in interface ConversationOrBuilder
    • containsIngestedContextReferences

      public boolean containsIngestedContextReferences(String key)
       Output only. The context reference updates provided by external systems.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsIngestedContextReferences in interface ConversationOrBuilder
    • getIngestedContextReferences

      @Deprecated public Map<String,Conversation.ContextReference> getIngestedContextReferences()
      Deprecated.
      Specified by:
      getIngestedContextReferences in interface ConversationOrBuilder
    • getIngestedContextReferencesMap

      public Map<String,Conversation.ContextReference> getIngestedContextReferencesMap()
       Output only. The context reference updates provided by external systems.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIngestedContextReferencesMap in interface ConversationOrBuilder
    • getIngestedContextReferencesOrDefault

      public Conversation.ContextReference getIngestedContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue)
       Output only. The context reference updates provided by external systems.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIngestedContextReferencesOrDefault in interface ConversationOrBuilder
    • getIngestedContextReferencesOrThrow

      public Conversation.ContextReference getIngestedContextReferencesOrThrow(String key)
       Output only. The context reference updates provided by external systems.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIngestedContextReferencesOrThrow in interface ConversationOrBuilder
    • clearIngestedContextReferences

      public Conversation.Builder clearIngestedContextReferences()
    • removeIngestedContextReferences

      public Conversation.Builder removeIngestedContextReferences(String key)
       Output only. The context reference updates provided by external systems.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableIngestedContextReferences

      @Deprecated public Map<String,Conversation.ContextReference> getMutableIngestedContextReferences()
      Deprecated.
      Use alternate mutation accessors instead.
    • putIngestedContextReferences

      public Conversation.Builder putIngestedContextReferences(String key, Conversation.ContextReference value)
       Output only. The context reference updates provided by external systems.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllIngestedContextReferences

      public Conversation.Builder putAllIngestedContextReferences(Map<String,Conversation.ContextReference> values)
       Output only. The context reference updates provided by external systems.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putIngestedContextReferencesBuilderIfAbsent

      public Conversation.ContextReference.Builder putIngestedContextReferencesBuilderIfAbsent(String key)
       Output only. The context reference updates provided by external systems.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getInitialGeneratorContextsCount

      public int getInitialGeneratorContextsCount()
      Description copied from interface: ConversationOrBuilder
       Output only. A map with generator name as key and generator context as
       value.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInitialGeneratorContextsCount in interface ConversationOrBuilder
    • containsInitialGeneratorContexts

      public boolean containsInitialGeneratorContexts(String key)
       Output only. A map with generator name as key and generator context as
       value.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsInitialGeneratorContexts in interface ConversationOrBuilder
    • getInitialGeneratorContexts

      @Deprecated public Map<String,Conversation.GeneratorContext> getInitialGeneratorContexts()
      Deprecated.
      Specified by:
      getInitialGeneratorContexts in interface ConversationOrBuilder
    • getInitialGeneratorContextsMap

      public Map<String,Conversation.GeneratorContext> getInitialGeneratorContextsMap()
       Output only. A map with generator name as key and generator context as
       value.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInitialGeneratorContextsMap in interface ConversationOrBuilder
    • getInitialGeneratorContextsOrDefault

      public Conversation.GeneratorContext getInitialGeneratorContextsOrDefault(String key, Conversation.GeneratorContext defaultValue)
       Output only. A map with generator name as key and generator context as
       value.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInitialGeneratorContextsOrDefault in interface ConversationOrBuilder
    • getInitialGeneratorContextsOrThrow

      public Conversation.GeneratorContext getInitialGeneratorContextsOrThrow(String key)
       Output only. A map with generator name as key and generator context as
       value.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInitialGeneratorContextsOrThrow in interface ConversationOrBuilder
    • clearInitialGeneratorContexts

      public Conversation.Builder clearInitialGeneratorContexts()
    • removeInitialGeneratorContexts

      public Conversation.Builder removeInitialGeneratorContexts(String key)
       Output only. A map with generator name as key and generator context as
       value.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableInitialGeneratorContexts

      @Deprecated public Map<String,Conversation.GeneratorContext> getMutableInitialGeneratorContexts()
      Deprecated.
      Use alternate mutation accessors instead.
    • putInitialGeneratorContexts

      public Conversation.Builder putInitialGeneratorContexts(String key, Conversation.GeneratorContext value)
       Output only. A map with generator name as key and generator context as
       value.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllInitialGeneratorContexts

      public Conversation.Builder putAllInitialGeneratorContexts(Map<String,Conversation.GeneratorContext> values)
       Output only. A map with generator name as key and generator context as
       value.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putInitialGeneratorContextsBuilderIfAbsent

      public Conversation.GeneratorContext.Builder putInitialGeneratorContextsBuilderIfAbsent(String key)
       Output only. A map with generator name as key and generator context as
       value.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];