Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment
- 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
By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday. For more information, see the fulfillment guide.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The human-readable name of the fulfillment, unique within the agent.
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether fulfillment is enabled.
-
#features ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentFeature>
The field defines whether the fulfillment is enabled for certain features.
-
#generic_web_service ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
Represents configuration for a generic web service.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Fulfillment
constructor
A new instance of GoogleCloudDialogflowV2beta1Fulfillment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Fulfillment
Returns a new instance of GoogleCloudDialogflowV2beta1Fulfillment.
12797 12798 12799 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12797 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The human-readable name of the fulfillment, unique within the agent. This
field is not used for Fulfillment in an Environment.
Corresponds to the JSON property displayName
12768 12769 12770 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12768 def display_name @display_name end |
#enabled ⇒ Boolean Also known as: enabled?
Whether fulfillment is enabled.
Corresponds to the JSON property enabled
12773 12774 12775 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12773 def enabled @enabled end |
#features ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentFeature>
The field defines whether the fulfillment is enabled for certain features.
Corresponds to the JSON property features
12779 12780 12781 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12779 def features @features end |
#generic_web_service ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
Represents configuration for a generic web service. Dialogflow supports two
mechanisms for authentications: - Basic authentication with username and
password. - Authentication with additional authentication headers. More
information could be found at: https://cloud.google.com/dialogflow/docs/
fulfillment-configure.
Corresponds to the JSON property genericWebService
12788 12789 12790 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12788 def generic_web_service @generic_web_service end |
#name ⇒ String
Required. The unique identifier of the fulfillment. Supported formats: -
projects//agent/fulfillment
- projects//locations//agent/fulfillment
This
field is not used for Fulfillment in an Environment.
Corresponds to the JSON property name
12795 12796 12797 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12795 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12802 12803 12804 12805 12806 12807 12808 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12802 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @enabled = args[:enabled] if args.key?(:enabled) @features = args[:features] if args.key?(:features) @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service) @name = args[:name] if args.key?(:name) end |