Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Conversation
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Conversation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb
Overview
Represents a conversation.
Instance Attribute Summary collapse
-
#duration ⇒ String
Duration of the conversation.
-
#environment ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment
Represents an environment for an agent.
-
#flow_versions ⇒ Hash<String,Fixnum>
Flow versions used in the conversation.
-
#flows ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow>
All the Flow the conversation has went through.
-
#intents ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent>
All the matched Intent in the conversation.
-
#interactions ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteraction>
Interactions of the conversation.
-
#language_code ⇒ String
The language of the conversation, which is the language of the first request in the conversation.
-
#metrics ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationMetrics
Represents metrics for the conversation.
-
#name ⇒ String
Identifier.
-
#pages ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page>
All the Page the conversation has went through.
-
#start_time ⇒ String
Start time of the conversation, which is the time of the first request of the conversation.
-
#type ⇒ String
The type of the conversation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Conversation
constructor
A new instance of GoogleCloudDialogflowCxV3beta1Conversation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Conversation
Returns a new instance of GoogleCloudDialogflowCxV3beta1Conversation.
4918 4919 4920 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4918 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ String
Duration of the conversation.
Corresponds to the JSON property duration
4847 4848 4849 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4847 def duration @duration end |
#environment ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment
Represents an environment for an agent. You can create multiple versions of
your agent and publish them to separate environments. When you edit an agent,
you are editing the draft agent. At any point, you can save the draft agent as
an agent version, which is an immutable snapshot of your agent. When you save
the draft agent, it is published to the default environment. When you create
agent versions, you can publish them to custom environments. You can create a
variety of custom environments for testing, development, production, etc.
Corresponds to the JSON property environment
4858 4859 4860 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4858 def environment @environment end |
#flow_versions ⇒ Hash<String,Fixnum>
Flow versions used in the conversation.
Corresponds to the JSON property flowVersions
4863 4864 4865 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4863 def flow_versions @flow_versions end |
#flows ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow>
All the Flow the conversation has went through. Only name
and display_name
are filled in this message.
Corresponds to the JSON property flows
4869 4870 4871 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4869 def flows @flows end |
#intents ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent>
All the matched Intent in the conversation. Only name
and display_name
are
filled in this message.
Corresponds to the JSON property intents
4875 4876 4877 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4875 def intents @intents end |
#interactions ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteraction>
Interactions of the conversation. Only populated for GetConversation
and
empty for ListConversations
.
Corresponds to the JSON property interactions
4881 4882 4883 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4881 def interactions @interactions end |
#language_code ⇒ String
The language of the conversation, which is the language of the first request
in the conversation.
Corresponds to the JSON property languageCode
4887 4888 4889 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4887 def language_code @language_code end |
#metrics ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationMetrics
Represents metrics for the conversation.
Corresponds to the JSON property metrics
4892 4893 4894 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4892 def metrics @metrics end |
#name ⇒ String
Identifier. The identifier of the conversation. If conversation ID is reused,
interactions happened later than 48 hours of the conversation's create time
will be ignored. Format: projects//locations//agents//conversations/
Corresponds to the JSON property name
4899 4900 4901 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4899 def name @name end |
#pages ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page>
All the Page the conversation has went through. Only name
and display_name
are filled in this message.
Corresponds to the JSON property pages
4905 4906 4907 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4905 def pages @pages end |
#start_time ⇒ String
Start time of the conversation, which is the time of the first request of the
conversation.
Corresponds to the JSON property startTime
4911 4912 4913 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4911 def start_time @start_time end |
#type ⇒ String
The type of the conversation.
Corresponds to the JSON property type
4916 4917 4918 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4916 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4923 def update!(**args) @duration = args[:duration] if args.key?(:duration) @environment = args[:environment] if args.key?(:environment) @flow_versions = args[:flow_versions] if args.key?(:flow_versions) @flows = args[:flows] if args.key?(:flows) @intents = args[:intents] if args.key?(:intents) @interactions = args[:interactions] if args.key?(:interactions) @language_code = args[:language_code] if args.key?(:language_code) @metrics = args[:metrics] if args.key?(:metrics) @name = args[:name] if args.key?(:name) @pages = args[:pages] if args.key?(:pages) @start_time = args[:start_time] if args.key?(:start_time) @type = args[:type] if args.key?(:type) end |