Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/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) ⇒ GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings.



5933
5934
5935
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5933

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

Instance Attribute Details

#data_store_connectionsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1DataStoreConnection>

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



5902
5903
5904
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5902

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)


5907
5908
5909
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5907

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)


5914
5915
5916
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5914

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)


5920
5921
5922
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5920

def target_page
  @target_page
end

#trigger_fulfillmentGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1Fulfillment

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



5931
5932
5933
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5931

def trigger_fulfillment
  @trigger_fulfillment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5938
5939
5940
5941
5942
5943
5944
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5938

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