# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::Webhook (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.26.0 0.25.0 0.24.2 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::Webhook.

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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #disabled

    def disabled() -> ::Boolean

**Returns**

- (::Boolean) --- Indicates whether the webhook is disabled.

### #disabled=

    def disabled=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Indicates whether the webhook is disabled.
**Returns**

- (::Boolean) --- Indicates whether the webhook is disabled.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Required. The human-readable name of the webhook, unique within the agent.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The human-readable name of the webhook, unique within the agent.
**Returns**

- (::String) --- Required. The human-readable name of the webhook, unique within the agent.

### #generic_web_service

    def generic_web_service() -> ::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService)) --- Configuration for a generic web service.


  Note: The following fields are mutually exclusive: `generic_web_service`, `service_directory`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #generic_web_service=

    def generic_web_service=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService)) --- Configuration for a generic web service.


  Note: The following fields are mutually exclusive: `generic_web_service`, `service_directory`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService)) --- Configuration for a generic web service.


  Note: The following fields are mutually exclusive: `generic_web_service`, `service_directory`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhooks-Client#Google__Cloud__Dialogflow__CX__V3__Webhooks__Client_update_webhook_instance_ "Google::Cloud::Dialogflow::CX::V3::Webhooks::Client#update_webhook (method)") method. [Webhooks.CreateWebhook](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhooks-Client#Google__Cloud__Dialogflow__CX__V3__Webhooks__Client_create_webhook_instance_ "Google::Cloud::Dialogflow::CX::V3::Webhooks::Client#create_webhook (method)") populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhooks-Client#Google__Cloud__Dialogflow__CX__V3__Webhooks__Client_update_webhook_instance_ "Google::Cloud::Dialogflow::CX::V3::Webhooks::Client#update_webhook (method)") method. [Webhooks.CreateWebhook](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhooks-Client#Google__Cloud__Dialogflow__CX__V3__Webhooks__Client_create_webhook_instance_ "Google::Cloud::Dialogflow::CX::V3::Webhooks::Client#create_webhook (method)") populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
**Returns**

- (::String) --- The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhooks-Client#Google__Cloud__Dialogflow__CX__V3__Webhooks__Client_update_webhook_instance_ "Google::Cloud::Dialogflow::CX::V3::Webhooks::Client#update_webhook (method)") method. [Webhooks.CreateWebhook](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhooks-Client#Google__Cloud__Dialogflow__CX__V3__Webhooks__Client_create_webhook_instance_ "Google::Cloud::Dialogflow::CX::V3::Webhooks::Client#create_webhook (method)") populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.

### #service_directory

    def service_directory() -> ::Google::Cloud::Dialogflow::CX::V3::Webhook::ServiceDirectoryConfig

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::ServiceDirectoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-ServiceDirectoryConfig)) --- Configuration for a [Service
  Directory](https://cloud.google.com/service-directory) service.


  Note: The following fields are mutually exclusive: `service_directory`, `generic_web_service`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #service_directory=

    def service_directory=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Webhook::ServiceDirectoryConfig

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Webhook::ServiceDirectoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-ServiceDirectoryConfig)) --- Configuration for a [Service
  Directory](https://cloud.google.com/service-directory) service.


  Note: The following fields are mutually exclusive: `service_directory`, `generic_web_service`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::ServiceDirectoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-ServiceDirectoryConfig)) --- Configuration for a [Service
  Directory](https://cloud.google.com/service-directory) service.


  Note: The following fields are mutually exclusive: `service_directory`, `generic_web_service`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #timeout

    def timeout() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Duration)) --- 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.

### #timeout=

    def timeout=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Duration)) --- 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.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Duration)) --- 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.