3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Webhook.Types.GenericWebService : IMessage<Webhook.Types.GenericWebService>, IEquatable<Webhook.Types.GenericWebService>, IDeepCloneable<Webhook.Types.GenericWebService>, IBufferMessage, IMessage

Reference documentation and code samples for the Dialogflow v3 API class Webhook.Types.GenericWebService.

Represents configuration for a generic web service.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Webhook.Types.GenericWebService

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Webhook](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.Types.md.txt)[GenericWebService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.Types.GenericWebService.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Webhook](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.Types.md.txt)[GenericWebService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.Types.GenericWebService.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Webhook](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.Types.md.txt)[GenericWebService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.Types.GenericWebService.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### GenericWebService()

    public GenericWebService()

### GenericWebService(GenericWebService)

    public GenericWebService(Webhook.Types.GenericWebService other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `WebhookTypesGenericWebService` |

## Properties

### AllowedCaCerts

    public RepeatedField<ByteString> AllowedCaCerts { get; }

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'")

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldByteString` |   |

### HttpMethod

    public Webhook.Types.GenericWebService.Types.HttpMethod HttpMethod { get; set; }

Optional. HTTP method for the flexible webhook calls. Standard webhook
always uses POST.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `WebhookTypesGenericWebServiceTypesHttpMethod` |   |

### OauthConfig

    public Webhook.Types.GenericWebService.Types.OAuthConfig OauthConfig { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `WebhookTypesGenericWebServiceTypesOAuthConfig` |   |

### ParameterMapping

    public MapField<string, string> ParameterMapping { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### Password

    [Obsolete]
    public string Password { get; set; }

The password for HTTP Basic authentication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RequestBody

    public string RequestBody { get; set; }

Optional. Defines a custom JSON object as request body to send to
flexible webhook.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RequestHeaders

    public MapField<string, string> RequestHeaders { get; }

The HTTP request headers to send together with webhook requests.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### SecretVersionForUsernamePassword

    public string SecretVersionForUsernamePassword { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SecretVersionForUsernamePasswordAsSecretVersionName

    public SecretVersionName SecretVersionForUsernamePasswordAsSecretVersionName { get; set; }

[SecretVersionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.SecretVersionName.md.txt)-typed view over the [SecretVersionForUsernamePassword](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhook.Types.GenericWebService.md.txt#Google_Cloud_Dialogflow_Cx_V3_Webhook_Types_GenericWebService_SecretVersionForUsernamePassword)
resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecretVersionName` |   |

### SecretVersionsForRequestHeaders

    public MapField<string, Webhook.Types.GenericWebService.Types.SecretVersionHeaderValue> SecretVersionsForRequestHeaders { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringWebhookTypesGenericWebServiceTypesSecretVersionHeaderValue` |   |

### ServiceAccountAuthConfig

    public Webhook.Types.GenericWebService.Types.ServiceAccountAuthConfig ServiceAccountAuthConfig { get; set; }

Optional. Configuration for service account authentication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `WebhookTypesGenericWebServiceTypesServiceAccountAuthConfig` |   |

### ServiceAgentAuth

    public Webhook.Types.GenericWebService.Types.ServiceAgentAuth ServiceAgentAuth { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `WebhookTypesGenericWebServiceTypesServiceAgentAuth` |   |

### Uri

    public string Uri { get; set; }

Required. The webhook URI for receiving POST requests. It must use https
protocol.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Username

    [Obsolete]
    public string Username { get; set; }

The user name for HTTP Basic authentication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### WebhookType

    public Webhook.Types.GenericWebService.Types.WebhookType WebhookType { get; set; }

Optional. Type of the webhook.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `WebhookTypesGenericWebServiceTypesWebhookType` |   |