# Compute Engine v1 API - Class GlobalForwardingRulesClientImpl (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.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.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class GlobalForwardingRulesClientImpl : GlobalForwardingRulesClient

Reference documentation and code samples for the Compute Engine v1 API class GlobalForwardingRulesClientImpl.

GlobalForwardingRules client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [GlobalForwardingRulesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient) \> GlobalForwardingRulesClientImpl

## Inherited Members

[GlobalForwardingRulesClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_DefaultEndpoint) [GlobalForwardingRulesClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_DefaultScopes) [GlobalForwardingRulesClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_ServiceMetadata) [GlobalForwardingRulesClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_CreateAsync_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_Create) [GlobalForwardingRulesClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_ShutdownDefaultChannelsAsync) [GlobalForwardingRulesClient.DeleteAsync(DeleteGlobalForwardingRuleRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_DeleteAsync_Google_Cloud_Compute_V1_DeleteGlobalForwardingRuleRequest_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.PollOnceDelete(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOnceDelete_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.PollOnceDeleteAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOnceDeleteAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.Delete(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_Delete_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.DeleteAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_DeleteAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.DeleteAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_DeleteAsync_System_String_System_String_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.GetAsync(GetGlobalForwardingRuleRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_GetAsync_Google_Cloud_Compute_V1_GetGlobalForwardingRuleRequest_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.Get(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_Get_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.GetAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_GetAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.GetAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_GetAsync_System_String_System_String_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.InsertAsync(InsertGlobalForwardingRuleRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_InsertAsync_Google_Cloud_Compute_V1_InsertGlobalForwardingRuleRequest_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.PollOnceInsert(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOnceInsert_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.PollOnceInsertAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOnceInsertAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.Insert(string, ForwardingRule, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_Insert_System_String_Google_Cloud_Compute_V1_ForwardingRule_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.InsertAsync(string, ForwardingRule, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_InsertAsync_System_String_Google_Cloud_Compute_V1_ForwardingRule_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.InsertAsync(string, ForwardingRule, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_InsertAsync_System_String_Google_Cloud_Compute_V1_ForwardingRule_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.List(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_List_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.ListAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_ListAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.PatchAsync(PatchGlobalForwardingRuleRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PatchAsync_Google_Cloud_Compute_V1_PatchGlobalForwardingRuleRequest_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.PollOncePatch(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOncePatch_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.PollOncePatchAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOncePatchAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.Patch(string, string, ForwardingRule, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_Patch_System_String_System_String_Google_Cloud_Compute_V1_ForwardingRule_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.PatchAsync(string, string, ForwardingRule, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PatchAsync_System_String_System_String_Google_Cloud_Compute_V1_ForwardingRule_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.PatchAsync(string, string, ForwardingRule, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PatchAsync_System_String_System_String_Google_Cloud_Compute_V1_ForwardingRule_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.SetLabelsAsync(SetLabelsGlobalForwardingRuleRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetLabelsAsync_Google_Cloud_Compute_V1_SetLabelsGlobalForwardingRuleRequest_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.PollOnceSetLabels(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOnceSetLabels_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.PollOnceSetLabelsAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOnceSetLabelsAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.SetLabels(string, string, GlobalSetLabelsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetLabels_System_String_System_String_Google_Cloud_Compute_V1_GlobalSetLabelsRequest_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.SetLabelsAsync(string, string, GlobalSetLabelsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetLabelsAsync_System_String_System_String_Google_Cloud_Compute_V1_GlobalSetLabelsRequest_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.SetLabelsAsync(string, string, GlobalSetLabelsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetLabelsAsync_System_String_System_String_Google_Cloud_Compute_V1_GlobalSetLabelsRequest_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.SetTargetAsync(SetTargetGlobalForwardingRuleRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetTargetAsync_Google_Cloud_Compute_V1_SetTargetGlobalForwardingRuleRequest_System_Threading_CancellationToken_) [GlobalForwardingRulesClient.PollOnceSetTarget(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOnceSetTarget_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.PollOnceSetTargetAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PollOnceSetTargetAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.SetTarget(string, string, TargetReference, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetTarget_System_String_System_String_Google_Cloud_Compute_V1_TargetReference_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.SetTargetAsync(string, string, TargetReference, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetTargetAsync_System_String_System_String_Google_Cloud_Compute_V1_TargetReference_Google_Api_Gax_Grpc_CallSettings_) [GlobalForwardingRulesClient.SetTargetAsync(string, string, TargetReference, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetTargetAsync_System_String_System_String_Google_Cloud_Compute_V1_TargetReference_System_Threading_CancellationToken_) [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.Compute.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)

## Assembly

Google.Cloud.Compute.V1.dll

## Remarks

The GlobalForwardingRules API.

## Constructors

### GlobalForwardingRulesClientImpl(GlobalForwardingRulesClient, GlobalForwardingRulesSettings, ILogger)

    public GlobalForwardingRulesClientImpl(GlobalForwardingRules.GlobalForwardingRulesClient grpcClient, GlobalForwardingRulesSettings settings, ILogger logger)

Constructs a client wrapper for the GlobalForwardingRules service, with the specified gRPC client and
settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRuleshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRules.GlobalForwardingRulesClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesSettings` The base [GlobalForwardingRulesSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### DeleteOperationsClient

    public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for `Delete`.

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

**Overrides** [GlobalForwardingRulesClient.DeleteOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_DeleteOperationsClient)

### GrpcClient

    public override GlobalForwardingRules.GlobalForwardingRulesClient GrpcClient { get; }

The underlying gRPC GlobalForwardingRules client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRuleshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRules.GlobalForwardingRulesClient` |   |

**Overrides** [GlobalForwardingRulesClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_GrpcClient)

### InsertOperationsClient

    public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for `Insert`.

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

**Overrides** [GlobalForwardingRulesClient.InsertOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_InsertOperationsClient)

### PatchOperationsClient

    public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for `Patch`.

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

**Overrides** [GlobalForwardingRulesClient.PatchOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PatchOperationsClient)

### SetLabelsOperationsClient

    public override OperationsClient SetLabelsOperationsClient { get; }

The long-running operations client for `SetLabels`.

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

**Overrides** [GlobalForwardingRulesClient.SetLabelsOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetLabelsOperationsClient)

### SetTargetOperationsClient

    public override OperationsClient SetTargetOperationsClient { get; }

The long-running operations client for `SetTarget`.

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

**Overrides** [GlobalForwardingRulesClient.SetTargetOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetTargetOperationsClient)

## Methods

### Delete(DeleteGlobalForwardingRuleRequest, CallSettings)

    public override Operation<Operation, Operation> Delete(DeleteGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Deletes the specified GlobalForwardingRule resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [GlobalForwardingRulesClient.Delete(DeleteGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_Delete_Google_Cloud_Compute_V1_DeleteGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteAsync(DeleteGlobalForwardingRuleRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Deletes the specified GlobalForwardingRule resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [GlobalForwardingRulesClient.DeleteAsync(DeleteGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_DeleteAsync_Google_Cloud_Compute_V1_DeleteGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### Get(GetGlobalForwardingRuleRequest, CallSettings)

    public override ForwardingRule Get(GetGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Returns the specified GlobalForwardingRule resource. Gets a list of
available forwarding rules by making a list() request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetGlobalForwardingRuleRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.ForwardingRule` | The RPC response. |

**Overrides** [GlobalForwardingRulesClient.Get(GetGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_Get_Google_Cloud_Compute_V1_GetGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAsync(GetGlobalForwardingRuleRequest, CallSettings)

    public override Task<ForwardingRule> GetAsync(GetGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Returns the specified GlobalForwardingRule resource. Gets a list of
available forwarding rules by making a list() request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetGlobalForwardingRuleRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.ForwardingRule` | A Task containing the RPC response. |

**Overrides** [GlobalForwardingRulesClient.GetAsync(GetGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_GetAsync_Google_Cloud_Compute_V1_GetGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### Insert(InsertGlobalForwardingRuleRequest, CallSettings)

    public override Operation<Operation, Operation> Insert(InsertGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Creates a GlobalForwardingRule resource in the specified project using
the data included in the request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [GlobalForwardingRulesClient.Insert(InsertGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_Insert_Google_Cloud_Compute_V1_InsertGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### InsertAsync(InsertGlobalForwardingRuleRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> InsertAsync(InsertGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Creates a GlobalForwardingRule resource in the specified project using
the data included in the request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [GlobalForwardingRulesClient.InsertAsync(InsertGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_InsertAsync_Google_Cloud_Compute_V1_InsertGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### List(ListGlobalForwardingRulesRequest, CallSettings)

    public override PagedEnumerable<ForwardingRuleList, ForwardingRule> List(ListGlobalForwardingRulesRequest request, CallSettings callSettings = null)

Retrieves a list of GlobalForwardingRule resources available to the
specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListGlobalForwardingRulesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ForwardingRuleListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ForwardingRule` | A pageable sequence of [ForwardingRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ForwardingRule) resources. |

**Overrides** [GlobalForwardingRulesClient.List(ListGlobalForwardingRulesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_List_Google_Cloud_Compute_V1_ListGlobalForwardingRulesRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAsync(ListGlobalForwardingRulesRequest, CallSettings)

    public override PagedAsyncEnumerable<ForwardingRuleList, ForwardingRule> ListAsync(ListGlobalForwardingRulesRequest request, CallSettings callSettings = null)

Retrieves a list of GlobalForwardingRule resources available to the
specified project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListGlobalForwardingRulesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ForwardingRuleListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ForwardingRule` | A pageable asynchronous sequence of [ForwardingRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ForwardingRule) resources. |

**Overrides** [GlobalForwardingRulesClient.ListAsync(ListGlobalForwardingRulesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_ListAsync_Google_Cloud_Compute_V1_ListGlobalForwardingRulesRequest_Google_Api_Gax_Grpc_CallSettings_)

### Patch(PatchGlobalForwardingRuleRequest, CallSettings)

    public override Operation<Operation, Operation> Patch(PatchGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Updates the specified forwarding rule with the data included in the
request. This method supportsPATCH
semantics and uses theJSON merge
patch format and processing rules. Currently, you can only
patch the network_tier field.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [GlobalForwardingRulesClient.Patch(PatchGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_Patch_Google_Cloud_Compute_V1_PatchGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### PatchAsync(PatchGlobalForwardingRuleRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> PatchAsync(PatchGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Updates the specified forwarding rule with the data included in the
request. This method supportsPATCH
semantics and uses theJSON merge
patch format and processing rules. Currently, you can only
patch the network_tier field.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [GlobalForwardingRulesClient.PatchAsync(PatchGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_PatchAsync_Google_Cloud_Compute_V1_PatchGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetLabels(SetLabelsGlobalForwardingRuleRequest, CallSettings)

    public override Operation<Operation, Operation> SetLabels(SetLabelsGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Sets the labels on the specified resource. To learn more about labels,
read the
Labeling resources documentation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetLabelsGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [GlobalForwardingRulesClient.SetLabels(SetLabelsGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetLabels_Google_Cloud_Compute_V1_SetLabelsGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetLabelsAsync(SetLabelsGlobalForwardingRuleRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> SetLabelsAsync(SetLabelsGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Sets the labels on the specified resource. To learn more about labels,
read the
Labeling resources documentation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetLabelsGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [GlobalForwardingRulesClient.SetLabelsAsync(SetLabelsGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetLabelsAsync_Google_Cloud_Compute_V1_SetLabelsGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetTarget(SetTargetGlobalForwardingRuleRequest, CallSettings)

    public override Operation<Operation, Operation> SetTarget(SetTargetGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Changes target URL for the GlobalForwardingRule resource. The new target
should be of the same type as the old target.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetTargetGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [GlobalForwardingRulesClient.SetTarget(SetTargetGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetTarget_Google_Cloud_Compute_V1_SetTargetGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetTargetAsync(SetTargetGlobalForwardingRuleRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> SetTargetAsync(SetTargetGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Changes target URL for the GlobalForwardingRule resource. The new target
should be of the same type as the old target.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetTargetGlobalForwardingRuleRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [GlobalForwardingRulesClient.SetTargetAsync(SetTargetGlobalForwardingRuleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalForwardingRulesClient#Google_Cloud_Compute_V1_GlobalForwardingRulesClient_SetTargetAsync_Google_Cloud_Compute_V1_SetTargetGlobalForwardingRuleRequest_Google_Api_Gax_Grpc_CallSettings_)