# Connect Gateway v1 API - Class GatewayControl.GatewayControlClient (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.GatewayControl.GatewayControlClient)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/1.0.0/Google.Cloud.GkeConnect.Gateway.V1.GatewayControl.GatewayControlClient)

    public class GatewayControl.GatewayControlClient : ClientBase<GatewayControl.GatewayControlClient>

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

Client for GatewayControl

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html)[GatewayControl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControl)[GatewayControlClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GatewayControl.GatewayControlClient) \> GatewayControl.GatewayControlClient

## Inherited Members

[ClientBase\<GatewayControl.GatewayControlClient\>.WithHost(string)](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html#Grpc_Core_ClientBase_CallInvoker) [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)

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

## Constructors

### GatewayControlClient()

    protected GatewayControlClient()

Protected parameterless constructor to allow creation of test doubles.

### GatewayControlClient(CallInvoker)

    public GatewayControlClient(CallInvoker callInvoker)

Creates a new client for GatewayControl that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallInvoker.html` The callInvoker to use to make remote calls. |

### GatewayControlClient(ChannelBase)

    public GatewayControlClient(ChannelBase channel)

Creates a new client for GatewayControl

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ChannelBase.html` The channel to use to make remote calls. |

### GatewayControlClient(ClientBaseConfiguration)

    protected GatewayControlClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` The client configuration. |

## Methods

### GenerateCredentials(GenerateCredentialsRequest, CallOptions)

    public virtual GenerateCredentialsResponse GenerateCredentials(GenerateCredentialsRequest request, CallOptions options)

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 to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the 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 response received from the server. |

### GenerateCredentials(GenerateCredentialsRequest, Metadata, DateTime?, CancellationToken)

    public virtual GenerateCredentialsResponse GenerateCredentials(GenerateCredentialsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the 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 response received from the server. |

### GenerateCredentialsAsync(GenerateCredentialsRequest, CallOptions)

    public virtual AsyncUnaryCall<GenerateCredentialsResponse> GenerateCredentialsAsync(GenerateCredentialsRequest request, CallOptions options)

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 to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsResponse` | The call object. |

### GenerateCredentialsAsync(GenerateCredentialsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<GenerateCredentialsResponse> GenerateCredentialsAsync(GenerateCredentialsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override GatewayControl.GatewayControlClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` |

| **Returns** ||
|---|---|
| **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** Grpc.Core.ClientBase\<Google.Cloud.GkeConnect.Gateway.V1.GatewayControl.GatewayControlClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)