# Class CallSettings (4.10.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [4.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings)
- [4.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.8.0/Google.Api.Gax.Grpc.CallSettings)
- [4.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.4.0/Google.Api.Gax.Grpc.CallSettings)
- [4.3.1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.3.1/Google.Api.Gax.Grpc.CallSettings)
- [4.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.2.0/Google.Api.Gax.Grpc.CallSettings)
- [4.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.0.0/Google.Api.Gax.Grpc.CallSettings)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/3.2.0/Google.Api.Gax.Grpc.CallSettings)

    public sealed class CallSettings

Settings to determine how an RPC operates. This type is immutable.

## Inheritance

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

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Api.Gax.Grpc](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc)

## Assembly

Google.Api.Gax.Grpc.dll

## Constructors

### CallSettings(CancellationToken?, Expiration, RetrySettings, Action\<Metadata\>, WriteOptions, ContextPropagationToken)

    public CallSettings(CancellationToken? cancellationToken, Expiration expiration, RetrySettings retry, Action<Metadata> headerMutation, WriteOptions writeOptions, ContextPropagationToken propagationToken)

Constructs an instance with the specified settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` Cancellation token that can be used for cancelling the call. |
| `expiration` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Expiration` [Expiration](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings#Google_Api_Gax_Grpc_CallSettings_Expiration) to use, or null for default expiration behavior. |
| `retry` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetrySettings` [Retry](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings#Google_Api_Gax_Grpc_CallSettings_Retry) to use, or null for default retry behavior. |
| `headerMutation` | `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` Action to modify the headers to send at the beginning of the call. |
| `writeOptions` | `https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/WriteOptions.cs` [WriteOptions](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/WriteOptions.cs) that will be used for the call. |
| `propagationToken` | `https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/ContextPropagationToken.cs` [ContextPropagationToken](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/ContextPropagationToken.cs) for propagating settings from a parent call. |

### CallSettings(CancellationToken?, Expiration, RetrySettings, Action\<Metadata\>, WriteOptions, ContextPropagationToken, Action\<Metadata\>, Action\<Metadata\>)

    public CallSettings(CancellationToken? cancellationToken, Expiration expiration, RetrySettings retry, Action<Metadata> headerMutation, WriteOptions writeOptions, ContextPropagationToken propagationToken, Action<Metadata> responseMetadataHandler, Action<Metadata> trailingMetadataHandler)

Constructs an instance with the specified settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` Cancellation token that can be used for cancelling the call. |
| `expiration` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Expiration` [Expiration](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings#Google_Api_Gax_Grpc_CallSettings_Expiration) to use, or null for default expiration behavior. |
| `retry` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetrySettings` [Retry](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings#Google_Api_Gax_Grpc_CallSettings_Retry) to use, or null for default retry behavior. |
| `headerMutation` | `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` Action to modify the headers to send at the beginning of the call. |
| `writeOptions` | `https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/WriteOptions.cs` [WriteOptions](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/WriteOptions.cs) that will be used for the call. |
| `propagationToken` | `https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/ContextPropagationToken.cs` [ContextPropagationToken](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/ContextPropagationToken.cs) for propagating settings from a parent call. |
| `responseMetadataHandler` | `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` Action to invoke when response metadata is received. |
| `trailingMetadataHandler` | `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` Action to invoke when trailing metadata is received. |

## Properties

### CancellationToken

    public CancellationToken? CancellationToken { get; }

Cancellation token that can be used for cancelling the call.

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

### Expiration

    public Expiration Expiration { get; }

The expiration for the call (either a timeout or a deadline), or null for the default expiration.

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

### HeaderMutation

    public Action<Metadata> HeaderMutation { get; }

Delegate to mutate the metadata which will be sent at the start of the call,
typically to add custom headers.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` |   |

### PropagationToken

    public ContextPropagationToken PropagationToken { get; }

[ContextPropagationToken](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/ContextPropagationToken.cs) for propagating settings from a parent call.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/ContextPropagationToken.cs` |   |

### ResponseMetadataHandler

    public Action<Metadata> ResponseMetadataHandler { get; }

Delegate to receive the metadata associated with a response.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` |   |

### Retry

    public RetrySettings Retry { get; }

[RetrySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetrySettings) to use, or null for default retry behavior.

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

### TrailingMetadataHandler

    public Action<Metadata> TrailingMetadataHandler { get; }

Delegate to receive the metadata sent after the response.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` |   |

### WriteOptions

    public WriteOptions WriteOptions { get; }

[WriteOptions](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/WriteOptions.cs) that will be used for the call.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/WriteOptions.cs` |   |

## Methods

### FromCancellationToken(CancellationToken)

    public static CallSettings FromCancellationToken(CancellationToken cancellationToken)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) for the specified cancellation token.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The cancellation token for the new settings. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A new instance. |

### FromExpiration(Expiration)

    public static CallSettings FromExpiration(Expiration expiration)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) for the specified call expiration, or returns null
if `expiration` is null.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `expiration` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Expiration` The call timing for the new settings. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A new instance or null if `expiration` is null.. |

### FromFieldMask(string)

    public static CallSettings FromFieldMask(string fieldMask)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) that will include a field mask in the request, to
limit which fields are returned in the response.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `fieldMask` | `https://learn.microsoft.com/dotnet/api/system.string` The field mask for the request. Must not be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A new instance. |

**Remarks** The precise effect on the request is not guaranteed: it may be through a header or a side-channel,
for example. Likewise the effect of combining multiple settings containing field masks is not specified.

### FromGoogleRequestParamsHeader(string)

    public static CallSettings FromGoogleRequestParamsHeader(string escapedHeaderValue)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) which applies an x-goog-request-params header with the specified
escaped header value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `escapedHeaderValue` | `https://learn.microsoft.com/dotnet/api/system.string` The value of the x-goog-request-params header. Must be escaped. Must not be null or empty. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) which applies the appropriate header. |

**Remarks** This method is intended to be called from API-specific client libraries; it would be very unusual
for it to be appropriate to call from application code.

### FromGoogleRequestParamsHeader(string, string)

    public static CallSettings FromGoogleRequestParamsHeader(string parameterName, string value)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) which applies an x-goog-request-params header with the specified
parameter name and value.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parameterName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the parameter. Must not be null. |
| `value` | `https://learn.microsoft.com/dotnet/api/system.string` The value of the parameter, which may be null. A null value is equivalent to providing an empty string. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) which applies the appropriate header with a single parameter. |

**Remarks**
The value is URL-encoded; it is expected that `parameterName` is already URL-encoded.


This method is intended to be called from API-specific client libraries; it would be very unusual
for it to be appropriate to call from application code.

### FromHeader(string, string)

    public static CallSettings FromHeader(string name, string value)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) for the specified header name and value.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the header to add. Must not be null. |
| `value` | `https://learn.microsoft.com/dotnet/api/system.string` The value of the header to add. Must not be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A new instance. |

### FromHeaderMutation(Action\<Metadata\>)

    public static CallSettings FromHeaderMutation(Action<Metadata> headerMutation)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) for the specified header mutation, or returns null
if `headerMutation` is null.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `headerMutation` | `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` Action to modify the headers to send at the beginning of the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A new instance, or null if `headerMutation` is null.. |

### FromResponseMetadataHandler(Action\<Metadata\>)

    public static CallSettings FromResponseMetadataHandler(Action<Metadata> responseMetadataHandler)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) for the specified response metadata handler, or returns null
if `responseMetadataHandler` is null.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `responseMetadataHandler` | `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` Action to receive response metadata when the call completes. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A new instance, or null if `responseMetadataHandler` is null.. |

### FromRetry(RetrySettings)

    public static CallSettings FromRetry(RetrySettings retry)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) for the specified retry settings, or returns null
if `retry` is null.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `retry` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetrySettings` The call timing for the new settings. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A new instance or null if `retry` is null.. |

### FromTrailingMetadataHandler(Action\<Metadata\>)

    public static CallSettings FromTrailingMetadataHandler(Action<Metadata> trailingMetadataHandler)

Creates a [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings) for the specified trailing metadata handler, or returns null
if `trailingMetadataHandler` is null.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `trailingMetadataHandler` | `https://learn.microsoft.com/dotnet/api/system.action-1https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` Action to receive trailing metadata when the call completes. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings` | A new instance, or null if `trailingMetadataHandler` is null.. |

## Extension Methods

[CallSettingsExtensions.MergedWith(CallSettings, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_MergedWith_Google_Api_Gax_Grpc_CallSettings_Google_Api_Gax_Grpc_CallSettings_) [CallSettingsExtensions.WithCancellationToken(CallSettings, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_WithCancellationToken_Google_Api_Gax_Grpc_CallSettings_System_Threading_CancellationToken_) [CallSettingsExtensions.WithDeadline(CallSettings, DateTime)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_WithDeadline_Google_Api_Gax_Grpc_CallSettings_System_DateTime_) [CallSettingsExtensions.WithEarlierDeadline(CallSettings, DateTime?, IClock)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_WithEarlierDeadline_Google_Api_Gax_Grpc_CallSettings_System_Nullable_System_DateTime__Google_Api_Gax_IClock_) [CallSettingsExtensions.WithExpiration(CallSettings, Expiration)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_WithExpiration_Google_Api_Gax_Grpc_CallSettings_Google_Api_Gax_Expiration_) [CallSettingsExtensions.WithHeader(CallSettings, string, string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_WithHeader_Google_Api_Gax_Grpc_CallSettings_System_String_System_String_) [CallSettingsExtensions.WithResponseMetadataHandler(CallSettings, Action\<Metadata\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_WithResponseMetadataHandler_Google_Api_Gax_Grpc_CallSettings_System_Action_Grpc_Core_Metadata__) [CallSettingsExtensions.WithRetry(CallSettings, RetrySettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_WithRetry_Google_Api_Gax_Grpc_CallSettings_Google_Api_Gax_Grpc_RetrySettings_) [CallSettingsExtensions.WithTimeout(CallSettings, TimeSpan)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_WithTimeout_Google_Api_Gax_Grpc_CallSettings_System_TimeSpan_) [CallSettingsExtensions.WithTrailingMetadataHandler(CallSettings, Action\<Metadata\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions#Google_Api_Gax_Grpc_CallSettingsExtensions_WithTrailingMetadataHandler_Google_Api_Gax_Grpc_CallSettings_System_Action_Grpc_Core_Metadata__)