class Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook
Webhooks host the developer's business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow's natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.
Attributes
Indicates whether the webhook is disabled. Corresponds to the JSON property `disabled` @return [Boolean]
Indicates whether the webhook is disabled. Corresponds to the JSON property `disabled` @return [Boolean]
Required. The human-readable name of the webhook, unique within the agent. Corresponds to the JSON property `displayName` @return [String]
Represents configuration for a generic web service. Corresponds to the JSON property `genericWebService` @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookGenericWebService]
The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: ` projects//locations//agents//webhooks/`. Corresponds to the JSON property `name` @return [String]
Represents configuration for a [Service Directory](cloud.google.com/ service-directory) service. Corresponds to the JSON property `serviceDirectory` @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig]
Webhook execution timeout. Execution is considered failed if Dialogflow doesn' t receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds. Corresponds to the JSON property `timeout` @return [String]
Public Class Methods
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 8069 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 8074 def update!(**args) @disabled = args[:disabled] if args.key?(:disabled) @display_name = args[:display_name] if args.key?(:display_name) @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service) @name = args[:name] if args.key?(:name) @service_directory = args[:service_directory] if args.key?(:service_directory) @timeout = args[:timeout] if args.key?(:timeout) end