Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3KnowledgeConnectorSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Overview

The Knowledge Connector settings for this page or flow. This includes information such as the attached Knowledge Bases, and the way to execute fulfillment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3KnowledgeConnectorSettings

Returns a new instance of GoogleCloudDialogflowCxV3KnowledgeConnectorSettings.



4033
4034
4035
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4033

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

Instance Attribute Details

#data_store_connectionsArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DataStoreConnection>

Optional. List of related data store connections. Corresponds to the JSON property dataStoreConnections



4002
4003
4004
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4002

def data_store_connections
  @data_store_connections
end

#enabledBoolean Also known as: enabled?

Whether Knowledge Connector is enabled or not. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


4007
4008
4009
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4007

def enabled
  @enabled
end

#target_flowString

The target flow to transition to. Format: projects//locations//agents//flows/ . Corresponds to the JSON property targetFlow

Returns:

  • (String)


4014
4015
4016
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4014

def target_flow
  @target_flow
end

#target_pageString

The target page to transition to. Format: projects//locations//agents//flows// pages/. Corresponds to the JSON property targetPage

Returns:

  • (String)


4020
4021
4022
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4020

def target_page
  @target_page
end

#trigger_fulfillmentGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment

A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page's entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. Corresponds to the JSON property triggerFulfillment



4031
4032
4033
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4031

def trigger_fulfillment
  @trigger_fulfillment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4038
4039
4040
4041
4042
4043
4044
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4038

def update!(**args)
  @data_store_connections = args[:data_store_connections] if args.key?(:data_store_connections)
  @enabled = args[:enabled] if args.key?(:enabled)
  @target_flow = args[:target_flow] if args.key?(:target_flow)
  @target_page = args[:target_page] if args.key?(:target_page)
  @trigger_fulfillment = args[:trigger_fulfillment] if args.key?(:trigger_fulfillment)
end