# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService (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::GenericWebService.

Represents configuration for a generic web service.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allowed_ca_certs

    def allowed_ca_certs() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, `
  openssl x509 -req -days 200 -in example.com.csr \
  -signkey example.com.key \
  -out example.com.crt \
  -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
  `

### #allowed_ca_certs=

    def allowed_ca_certs=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, `
  openssl x509 -req -days 200 -in example.com.csr \
  -signkey example.com.key \
  -out example.com.crt \
  -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
  `
**Returns**

- (::Array\<::String\>) --- Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, `
  openssl x509 -req -days 200 -in example.com.csr \
  -signkey example.com.key \
  -out example.com.crt \
  -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
  `

### #http_method

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

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::HttpMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-HttpMethod)) --- Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.

### #http_method=

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

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::HttpMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-HttpMethod)) --- Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::HttpMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-HttpMethod)) --- Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.

### #oauth_config

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

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::OAuthConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-OAuthConfig)) --- Optional. The OAuth configuration of the webhook. If specified, Dialogflow will initiate the OAuth client credential flow to exchange an access token from the 3rd party platform and put it in the auth header.

### #oauth_config=

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

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::OAuthConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-OAuthConfig)) --- Optional. The OAuth configuration of the webhook. If specified, Dialogflow will initiate the OAuth client credential flow to exchange an access token from the 3rd party platform and put it in the auth header.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::OAuthConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-OAuthConfig)) --- Optional. The OAuth configuration of the webhook. If specified, Dialogflow will initiate the OAuth client credential flow to exchange an access token from the 3rd party platform and put it in the auth header.

### #parameter_mapping

    def parameter_mapping() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Maps the values extracted from specific fields of the flexible
  webhook response into session parameters.

  - Key: session parameter name
  - Value: field path in the webhook response

### #parameter_mapping=

    def parameter_mapping=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) ---

  Optional. Maps the values extracted from specific fields of the flexible
  webhook response into session parameters.
  - Key: session parameter name
  - Value: field path in the webhook response
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Maps the values extracted from specific fields of the flexible
  webhook response into session parameters.

  - Key: session parameter name
  - Value: field path in the webhook response

### #password

    def password() -> ::String

**Returns**

- (::String) --- The password for HTTP Basic authentication.

### #password=

    def password=(value) -> ::String

**Parameter**

- **value** (::String) --- The password for HTTP Basic authentication.
**Returns**

- (::String) --- The password for HTTP Basic authentication.

### #request_body

    def request_body() -> ::String

**Returns**

- (::String) --- Optional. Defines a custom JSON object as request body to send to flexible webhook.

### #request_body=

    def request_body=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Defines a custom JSON object as request body to send to flexible webhook.
**Returns**

- (::String) --- Optional. Defines a custom JSON object as request body to send to flexible webhook.

### #request_headers

    def request_headers() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- The HTTP request headers to send together with webhook requests.

### #request_headers=

    def request_headers=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- The HTTP request headers to send together with webhook requests.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- The HTTP request headers to send together with webhook requests.

### #secret_version_for_username_password

    def secret_version_for_username_password() -> ::String

**Returns**

- (::String) --- Optional. The SecretManager secret version resource storing the username:password pair for HTTP Basic authentication. Format: `projects/{project}/secrets/{secret}/versions/{version}`

### #secret_version_for_username_password=

    def secret_version_for_username_password=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The SecretManager secret version resource storing the username:password pair for HTTP Basic authentication. Format: `projects/{project}/secrets/{secret}/versions/{version}`
**Returns**

- (::String) --- Optional. The SecretManager secret version resource storing the username:password pair for HTTP Basic authentication. Format: `projects/{project}/secrets/{secret}/versions/{version}`

### #secret_versions_for_request_headers

    def secret_versions_for_request_headers() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::SecretVersionHeaderValue}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::SecretVersionHeaderValue}) --- Optional. The HTTP request headers to send together with webhook requests. Header values are stored in SecretManager secret versions.

  When the same header name is specified in both `request_headers` and
  `secret_versions_for_request_headers`, the value in
  `secret_versions_for_request_headers` will be used.

### #secret_versions_for_request_headers=

    def secret_versions_for_request_headers=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::SecretVersionHeaderValue}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::SecretVersionHeaderValue}) --- Optional. The HTTP request headers to send together with webhook requests. Header values are stored in SecretManager secret versions.


  When the same header name is specified in both `request_headers` and
  `secret_versions_for_request_headers`, the value in
  `secret_versions_for_request_headers` will be used.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::SecretVersionHeaderValue}) --- Optional. The HTTP request headers to send together with webhook requests. Header values are stored in SecretManager secret versions.

  When the same header name is specified in both `request_headers` and
  `secret_versions_for_request_headers`, the value in
  `secret_versions_for_request_headers` will be used.

### #service_account_auth_config

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

**Returns**

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

### #service_account_auth_config=

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

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::ServiceAccountAuthConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-ServiceAccountAuthConfig)) --- Optional. Configuration for service account authentication.
**Returns**

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

### #service_agent_auth

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

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::ServiceAgentAuth](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-ServiceAgentAuth)) --- Optional. Indicate the auth token type generated from the [Diglogflow
  service
  agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header.

### #service_agent_auth=

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

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::ServiceAgentAuth](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-ServiceAgentAuth)) --- Optional. Indicate the auth token type generated from the [Diglogflow
  service
  agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::ServiceAgentAuth](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-ServiceAgentAuth)) --- Optional. Indicate the auth token type generated from the [Diglogflow
  service
  agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header.

### #uri

    def uri() -> ::String

**Returns**

- (::String) --- Required. The webhook URI for receiving POST requests. It must use https protocol.

### #uri=

    def uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The webhook URI for receiving POST requests. It must use https protocol.
**Returns**

- (::String) --- Required. The webhook URI for receiving POST requests. It must use https protocol.

### #username

    def username() -> ::String

**Returns**

- (::String) --- The user name for HTTP Basic authentication.

### #username=

    def username=(value) -> ::String

**Parameter**

- **value** (::String) --- The user name for HTTP Basic authentication.
**Returns**

- (::String) --- The user name for HTTP Basic authentication.

### #webhook_type

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

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::WebhookType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-WebhookType)) --- Optional. Type of the webhook.

### #webhook_type=

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

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::WebhookType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-WebhookType)) --- Optional. Type of the webhook.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Webhook::GenericWebService::WebhookType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Webhook-GenericWebService-WebhookType)) --- Optional. Type of the webhook.