# Connect Gateway v1 API - Class GatewayControlClientImpl (1.1.0)

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

- [1.1.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClientImpl)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/1.0.0/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClientImpl)

    public sealed class GatewayControlClientImpl : GatewayControlClient

Reference documentation and code samples for the Connect Gateway v1 API class GatewayControlClientImpl.

GatewayControl client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [GatewayControlClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient) \> GatewayControlClientImpl

## Inherited Members

[GatewayControlClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_DefaultEndpoint) [GatewayControlClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_DefaultScopes) [GatewayControlClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_ServiceMetadata) [GatewayControlClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_CreateAsync_System_Threading_CancellationToken_) [GatewayControlClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_Create) [GatewayControlClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_ShutdownDefaultChannelsAsync) [GatewayControlClient.GenerateCredentialsAsync(GenerateCredentialsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_GenerateCredentialsAsync_Google_Cloud_GkeConnect_Gateway_V1_GenerateCredentialsRequest_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.GkeConnect.Gateway.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1)

## Assembly

Google.Cloud.GkeConnect.Gateway.V1.dll

## Remarks

GatewayControl is the control plane API for Connect Gateway.

## Constructors

### GatewayControlClientImpl(GatewayControlClient, GatewayControlSettings, ILogger)

    public GatewayControlClientImpl(GatewayControl.GatewayControlClient grpcClient, GatewayControlSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControl.GatewayControlClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlSettings` The base [GatewayControlSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlSettings) 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

### GrpcClient

    public override GatewayControl.GatewayControlClient GrpcClient { get; }

The underlying gRPC GatewayControl client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControl.GatewayControlClient` |   |

**Overrides** [GatewayControlClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_GrpcClient)

## Methods

### GenerateCredentials(GenerateCredentialsRequest, CallSettings)

    public override GenerateCredentialsResponse GenerateCredentials(GenerateCredentialsRequest request, CallSettings callSettings = null)

GenerateCredentials provides connection information that allows a user to
access the specified membership using Connect Gateway.

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

**Overrides** [GatewayControlClient.GenerateCredentials(GenerateCredentialsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_GenerateCredentials_Google_Cloud_GkeConnect_Gateway_V1_GenerateCredentialsRequest_Google_Api_Gax_Grpc_CallSettings_)

### GenerateCredentialsAsync(GenerateCredentialsRequest, CallSettings)

    public override Task<GenerateCredentialsResponse> GenerateCredentialsAsync(GenerateCredentialsRequest request, CallSettings callSettings = null)

GenerateCredentials provides connection information that allows a user to
access the specified membership using Connect Gateway.

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

**Overrides** [GatewayControlClient.GenerateCredentialsAsync(GenerateCredentialsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControlClient#Google_Cloud_GkeConnect_Gateway_V1_GatewayControlClient_GenerateCredentialsAsync_Google_Cloud_GkeConnect_Gateway_V1_GenerateCredentialsRequest_Google_Api_Gax_Grpc_CallSettings_)