Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Conversation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Conversation

Returns a new instance of GoogleCloudDialogflowCxV3beta1Conversation.



5013
5014
5015
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5013

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#durationString

Duration of the conversation. Corresponds to the JSON property duration

Returns:

  • (String)


4942
4943
4944
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4942

def duration
  @duration
end

#environmentGoogle::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



4953
4954
4955
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4953

def environment
  @environment
end

#flow_versionsHash<String,Fixnum>

Flow versions used in the conversation. Corresponds to the JSON property flowVersions

Returns:

  • (Hash<String,Fixnum>)


4958
4959
4960
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4958

def flow_versions
  @flow_versions
end

#flowsArray<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



4964
4965
4966
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4964

def flows
  @flows
end

#intentsArray<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



4970
4971
4972
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4970

def intents
  @intents
end

#interactionsArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteraction>

Interactions of the conversation. Only populated for GetConversation and empty for ListConversations. Corresponds to the JSON property interactions



4976
4977
4978
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4976

def interactions
  @interactions
end

#language_codeString

The language of the conversation, which is the language of the first request in the conversation. Corresponds to the JSON property languageCode

Returns:

  • (String)


4982
4983
4984
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4982

def language_code
  @language_code
end

#metricsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationMetrics

Represents metrics for the conversation. Corresponds to the JSON property metrics



4987
4988
4989
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4987

def metrics
  @metrics
end

#nameString

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

Returns:

  • (String)


4994
4995
4996
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4994

def name
  @name
end

#pagesArray<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



5000
5001
5002
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5000

def pages
  @pages
end

#start_timeString

Start time of the conversation, which is the time of the first request of the conversation. Corresponds to the JSON property startTime

Returns:

  • (String)


5006
5007
5008
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5006

def start_time
  @start_time
end

#typeString

The type of the conversation. Corresponds to the JSON property type

Returns:

  • (String)


5011
5012
5013
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5011

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5018

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