# Google Cloud Dialogflow v2beta1 API - Class FulfillmentsClient (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

    public abstract class FulfillmentsClient

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class FulfillmentsClient.

Fulfillments client wrapper, for convenient use.

## Inheritance

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

## 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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[FulfillmentsClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClientImpl)

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

## Remarks

Service for managing
\[Fulfillments\]\[google.cloud.dialogflow.v2beta1.Fulfillment\].

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the Fulfillments service, which is a host of "dialogflow.googleapis.com" and a port
of 443.

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

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default Fulfillments scopes.

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

**Remarks** The default Fulfillments scopes are:

- <https://www.googleapis.com/auth/cloud-platform>
- <https://www.googleapis.com/auth/dialogflow>

### GrpcClient

    public virtual Fulfillments.FulfillmentsClient GrpcClient { get; }

The underlying gRPC Fulfillments client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillmentshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillments.FulfillmentsClient` |   |

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static FulfillmentsClient Create()

Synchronously creates a [FulfillmentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [FulfillmentsClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient` | The created [FulfillmentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient). |

### CreateAsync(CancellationToken)

    public static Task<FulfillmentsClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [FulfillmentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [FulfillmentsClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient` | The task representing the created [FulfillmentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient). |

### GetFulfillment(FulfillmentName, CallSettings)

    public virtual Fulfillment GetFulfillment(FulfillmentName name, CallSettings callSettings = null)

Retrieves the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentName` Required. The name of the fulfillment. Supported formats: - `projects/<Project ID>/agent/fulfillment` - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | The RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = FulfillmentsClient.Create();
    // Initialize request argument(s)
    FulfillmentName name = FulfillmentName.FromProject("[PROJECT]");
    // Make the request
    Fulfillment response = fulfillmentsClient.GetFulfillment(name);

### GetFulfillment(GetFulfillmentRequest, CallSettings)

    public virtual Fulfillment GetFulfillment(GetFulfillmentRequest request, CallSettings callSettings = null)

Retrieves the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetFulfillmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | The RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = FulfillmentsClient.Create();
    // Initialize request argument(s)
    GetFulfillmentRequest request = new GetFulfillmentRequest
    {
        FulfillmentName = FulfillmentName.FromProject("[PROJECT]"),
    };
    // Make the request
    Fulfillment response = fulfillmentsClient.GetFulfillment(request);

### GetFulfillment(string, CallSettings)

    public virtual Fulfillment GetFulfillment(string name, CallSettings callSettings = null)

Retrieves the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the fulfillment. Supported formats: - `projects/<Project ID>/agent/fulfillment` - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | The RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = FulfillmentsClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/agent/fulfillment";
    // Make the request
    Fulfillment response = fulfillmentsClient.GetFulfillment(name);

### GetFulfillmentAsync(FulfillmentName, CallSettings)

    public virtual Task<Fulfillment> GetFulfillmentAsync(FulfillmentName name, CallSettings callSettings = null)

Retrieves the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentName` Required. The name of the fulfillment. Supported formats: - `projects/<Project ID>/agent/fulfillment` - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    FulfillmentName name = FulfillmentName.FromProject("[PROJECT]");
    // Make the request
    Fulfillment response = await fulfillmentsClient.GetFulfillmentAsync(name);

### GetFulfillmentAsync(FulfillmentName, CancellationToken)

    public virtual Task<Fulfillment> GetFulfillmentAsync(FulfillmentName name, CancellationToken cancellationToken)

Retrieves the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentName` Required. The name of the fulfillment. Supported formats: - `projects/<Project ID>/agent/fulfillment` - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    FulfillmentName name = FulfillmentName.FromProject("[PROJECT]");
    // Make the request
    Fulfillment response = await fulfillmentsClient.GetFulfillmentAsync(name);

### GetFulfillmentAsync(GetFulfillmentRequest, CallSettings)

    public virtual Task<Fulfillment> GetFulfillmentAsync(GetFulfillmentRequest request, CallSettings callSettings = null)

Retrieves the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetFulfillmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    GetFulfillmentRequest request = new GetFulfillmentRequest
    {
        FulfillmentName = FulfillmentName.FromProject("[PROJECT]"),
    };
    // Make the request
    Fulfillment response = await fulfillmentsClient.GetFulfillmentAsync(request);

### GetFulfillmentAsync(GetFulfillmentRequest, CancellationToken)

    public virtual Task<Fulfillment> GetFulfillmentAsync(GetFulfillmentRequest request, CancellationToken cancellationToken)

Retrieves the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetFulfillmentRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    GetFulfillmentRequest request = new GetFulfillmentRequest
    {
        FulfillmentName = FulfillmentName.FromProject("[PROJECT]"),
    };
    // Make the request
    Fulfillment response = await fulfillmentsClient.GetFulfillmentAsync(request);

### GetFulfillmentAsync(string, CallSettings)

    public virtual Task<Fulfillment> GetFulfillmentAsync(string name, CallSettings callSettings = null)

Retrieves the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the fulfillment. Supported formats: - `projects/<Project ID>/agent/fulfillment` - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/agent/fulfillment";
    // Make the request
    Fulfillment response = await fulfillmentsClient.GetFulfillmentAsync(name);

### GetFulfillmentAsync(string, CancellationToken)

    public virtual Task<Fulfillment> GetFulfillmentAsync(string name, CancellationToken cancellationToken)

Retrieves the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the fulfillment. Supported formats: - `projects/<Project ID>/agent/fulfillment` - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/agent/fulfillment";
    // Make the request
    Fulfillment response = await fulfillmentsClient.GetFulfillmentAsync(name);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient#Google_Cloud_Dialogflow_V2Beta1_FulfillmentsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient#Google_Cloud_Dialogflow_V2Beta1_FulfillmentsClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient#Google_Cloud_Dialogflow_V2Beta1_FulfillmentsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.FulfillmentsClient#Google_Cloud_Dialogflow_V2Beta1_FulfillmentsClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateFulfillment(Fulfillment, FieldMask, CallSettings)

    public virtual Fulfillment UpdateFulfillment(Fulfillment fulfillment, FieldMask updateMask, CallSettings callSettings = null)

Updates the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `fulfillment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` Required. The fulfillment to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | The RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = FulfillmentsClient.Create();
    // Initialize request argument(s)
    Fulfillment fulfillment = new Fulfillment();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Fulfillment response = fulfillmentsClient.UpdateFulfillment(fulfillment, updateMask);

### UpdateFulfillment(UpdateFulfillmentRequest, CallSettings)

    public virtual Fulfillment UpdateFulfillment(UpdateFulfillmentRequest request, CallSettings callSettings = null)

Updates the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.UpdateFulfillmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | The RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = FulfillmentsClient.Create();
    // Initialize request argument(s)
    UpdateFulfillmentRequest request = new UpdateFulfillmentRequest
    {
        Fulfillment = new Fulfillment(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Fulfillment response = fulfillmentsClient.UpdateFulfillment(request);

### UpdateFulfillmentAsync(Fulfillment, FieldMask, CallSettings)

    public virtual Task<Fulfillment> UpdateFulfillmentAsync(Fulfillment fulfillment, FieldMask updateMask, CallSettings callSettings = null)

Updates the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `fulfillment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` Required. The fulfillment to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    Fulfillment fulfillment = new Fulfillment();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Fulfillment response = await fulfillmentsClient.UpdateFulfillmentAsync(fulfillment, updateMask);

### UpdateFulfillmentAsync(Fulfillment, FieldMask, CancellationToken)

    public virtual Task<Fulfillment> UpdateFulfillmentAsync(Fulfillment fulfillment, FieldMask updateMask, CancellationToken cancellationToken)

Updates the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `fulfillment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` Required. The fulfillment to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    Fulfillment fulfillment = new Fulfillment();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Fulfillment response = await fulfillmentsClient.UpdateFulfillmentAsync(fulfillment, updateMask);

### UpdateFulfillmentAsync(UpdateFulfillmentRequest, CallSettings)

    public virtual Task<Fulfillment> UpdateFulfillmentAsync(UpdateFulfillmentRequest request, CallSettings callSettings = null)

Updates the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.UpdateFulfillmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    UpdateFulfillmentRequest request = new UpdateFulfillmentRequest
    {
        Fulfillment = new Fulfillment(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Fulfillment response = await fulfillmentsClient.UpdateFulfillmentAsync(request);

### UpdateFulfillmentAsync(UpdateFulfillmentRequest, CancellationToken)

    public virtual Task<Fulfillment> UpdateFulfillmentAsync(UpdateFulfillmentRequest request, CancellationToken cancellationToken)

Updates the fulfillment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.UpdateFulfillmentRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Fulfillment` | A Task containing the RPC response. |

**Example**

    // Create client
    FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync();
    // Initialize request argument(s)
    UpdateFulfillmentRequest request = new UpdateFulfillmentRequest
    {
        Fulfillment = new Fulfillment(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Fulfillment response = await fulfillmentsClient.UpdateFulfillmentAsync(request);