# Google Cloud Dialogflow v2beta1 API - Class Fulfillment.Types.GenericWebService (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

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

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class Fulfillment.Types.GenericWebService.

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>.

## Inheritance

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

## Implements

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

## 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.V2Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)

## Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

## Constructors

### GenericWebService()

    public GenericWebService()

### GenericWebService(GenericWebService)

    public GenericWebService(Fulfillment.Types.GenericWebService other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillmenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment.Types.GenericWebService` |

## Properties

### IsCloudFunction

    [Obsolete]
    public bool IsCloudFunction { get; set; }

Optional. Indicates if generic web service is created through Cloud
Functions integration. Defaults to false.

is_cloud_function is deprecated. Cloud functions can be configured by
its uri as a regular web service now.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Password

    public string Password { get; set; }

The password for HTTP Basic authentication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### RequestHeaders

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

The HTTP request headers to send together with fulfillment requests.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Uri

    public string Uri { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Username

    public string Username { get; set; }

The user name for HTTP Basic authentication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |