1.2.0 (latest) 1.1.0 1.0.0

    public class ApiHubCollect.ApiHubCollectClient : ClientBase<ApiHubCollect.ApiHubCollectClient>

Reference documentation and code samples for the API hub v1 API class ApiHubCollect.ApiHubCollectClient.

Client for ApiHubCollect

## 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)[ApiHubCollect](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollect.md.txt)[ApiHubCollectClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollect.ApiHubCollectClient.md.txt) \> ApiHubCollect.ApiHubCollectClient

## Inherited Members

[ClientBase\<ApiHubCollect.ApiHubCollectClient\>.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.ApiHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.md.txt)

## Assembly

Google.Cloud.ApiHub.V1.dll

## Constructors

### ApiHubCollectClient()

    protected ApiHubCollectClient()

Protected parameterless constructor to allow creation of test doubles.

### ApiHubCollectClient(CallInvoker)

    public ApiHubCollectClient(CallInvoker callInvoker)

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### ApiHubCollectClient(ChannelBase)

    public ApiHubCollectClient(ChannelBase channel)

Creates a new client for ApiHubCollect

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### ApiHubCollectClient(ClientBaseConfiguration)

    protected ApiHubCollectClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### CollectApiData(CollectApiDataRequest, CallOptions)

    public virtual Operation CollectApiData(CollectApiDataRequest request, CallOptions options)

Collect API data from a source and push it to Hub's collect layer.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CollectApiDataRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### CollectApiData(CollectApiDataRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation CollectApiData(CollectApiDataRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Collect API data from a source and push it to Hub's collect layer.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CollectApiDataRequest` The request to send to the server. |
| `headers` | `Metadata` 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` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### CollectApiDataAsync(CollectApiDataRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> CollectApiDataAsync(CollectApiDataRequest request, CallOptions options)

Collect API data from a source and push it to Hub's collect layer.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CollectApiDataRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |

### CollectApiDataAsync(CollectApiDataRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> CollectApiDataAsync(CollectApiDataRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Collect API data from a source and push it to Hub's collect layer.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CollectApiDataRequest` The request to send to the server. |
| `headers` | `Metadata` 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` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |

### CreateLocationsClient()

    public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LocationsLocationsClient` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) for the same target as this client. |

### CreateOperationsClient()

    public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of [Operations.OperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationsOperationsClient` | A new Operations client for the same target as this client. |

### NewInstance(ClientBaseConfiguration)

    protected override ApiHubCollect.ApiHubCollectClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ApiHubCollectApiHubCollectClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.ApiHub.V1.ApiHubCollect.ApiHubCollectClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)