Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#conversation_profile ⇒ String
Required.
-
#conversation_stage ⇒ String
The stage of a conversation.
-
#end_time ⇒ String
Output only.
-
#lifecycle_state ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#phone_number ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber
Represents a phone number for telephony integration.
-
#start_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Conversation
constructor
A new instance of GoogleCloudDialogflowV2beta1Conversation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Conversation
Returns a new instance of GoogleCloudDialogflowV2beta1Conversation.
10531 10532 10533 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10531 def initialize(**args) update!(**args) end |
Instance Attribute Details
#conversation_profile ⇒ String
Required. The Conversation Profile to be used to configure this Conversation.
This field cannot be updated. Format: projects//locations//
conversationProfiles/
.
Corresponds to the JSON property conversationProfile
10489 10490 10491 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10489 def conversation_profile @conversation_profile end |
#conversation_stage ⇒ String
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; Otherwise, defaults to
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, it skips
ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to
ConversationStage.HUMAN_ASSIST_STAGE.
Corresponds to the JSON property conversationStage
10502 10503 10504 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10502 def conversation_stage @conversation_stage end |
#end_time ⇒ String
Output only. The time the conversation was finished.
Corresponds to the JSON property endTime
10507 10508 10509 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10507 def end_time @end_time end |
#lifecycle_state ⇒ String
Output only. The current state of the Conversation.
Corresponds to the JSON property lifecycleState
10512 10513 10514 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10512 def lifecycle_state @lifecycle_state end |
#name ⇒ String
Output only. The unique identifier of this conversation. Format: projects//
locations//conversations/
.
Corresponds to the JSON property name
10518 10519 10520 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10518 def name @name end |
#phone_number ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber
Represents a phone number for telephony integration. It allows for connecting
a particular conversation over telephony.
Corresponds to the JSON property phoneNumber
10524 10525 10526 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10524 def phone_number @phone_number end |
#start_time ⇒ String
Output only. The time the conversation was started.
Corresponds to the JSON property startTime
10529 10530 10531 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10529 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10536 10537 10538 10539 10540 10541 10542 10543 10544 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10536 def update!(**args) @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile) @conversation_stage = args[:conversation_stage] if args.key?(:conversation_stage) @end_time = args[:end_time] if args.key?(:end_time) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) @name = args[:name] if args.key?(:name) @phone_number = args[:phone_number] if args.key?(:phone_number) @start_time = args[:start_time] if args.key?(:start_time) end |