Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb
Overview
Represents a fulfillment.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Optional.
-
#enabled ⇒ Boolean
(also: #enabled?)
Optional.
-
#features ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentFeature>
Optional.
-
#generic_web_service ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService
Represents configuration for a generic web service.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2Fulfillment
constructor
A new instance of GoogleCloudDialogflowV2Fulfillment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2Fulfillment
Returns a new instance of GoogleCloudDialogflowV2Fulfillment.
996 997 998 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 996 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Optional. The human-readable name of the fulfillment, unique within the agent.
Corresponds to the JSON property displayName
966 967 968 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 966 def display_name @display_name end |
#enabled ⇒ Boolean Also known as: enabled?
Optional. Whether fulfillment is enabled.
Corresponds to the JSON property enabled
971 972 973 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 971 def enabled @enabled end |
#features ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentFeature>
Optional. The field defines whether the fulfillment is enabled for certain
features.
Corresponds to the JSON property features
978 979 980 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 978 def features @features end |
#generic_web_service ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService
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
988 989 990 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 988 def generic_web_service @generic_web_service end |
#name ⇒ String
Required. The unique identifier of the fulfillment.
Format: projects/<Project ID>/agent/fulfillment
.
Corresponds to the JSON property name
994 995 996 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 994 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1001 1002 1003 1004 1005 1006 1007 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1001 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 |