1.2.0 (latest) 1.1.0 1.0.0

    public sealed class ApiHubCollectClientImpl : ApiHubCollectClient

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

ApiHubCollect client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ApiHubCollectClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt) \> ApiHubCollectClientImpl

## Inherited Members

[ApiHubCollectClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_DefaultEndpoint) [ApiHubCollectClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_DefaultScopes) [ApiHubCollectClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_ServiceMetadata) [ApiHubCollectClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CreateAsync_System_Threading_CancellationToken_) [ApiHubCollectClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_Create) [ApiHubCollectClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_ShutdownDefaultChannelsAsync) [ApiHubCollectClient.CollectApiDataAsync(CollectApiDataRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiDataAsync_Google_Cloud_ApiHub_V1_CollectApiDataRequest_System_Threading_CancellationToken_) [ApiHubCollectClient.PollOnceCollectApiData(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_PollOnceCollectApiData_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiHubCollectClient.PollOnceCollectApiDataAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_PollOnceCollectApiDataAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiHubCollectClient.CollectApiData(string, CollectionType, ApiData, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiData_System_String_Google_Cloud_ApiHub_V1_CollectionType_Google_Cloud_ApiHub_V1_ApiData_Google_Api_Gax_Grpc_CallSettings_) [ApiHubCollectClient.CollectApiDataAsync(string, CollectionType, ApiData, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiDataAsync_System_String_Google_Cloud_ApiHub_V1_CollectionType_Google_Cloud_ApiHub_V1_ApiData_Google_Api_Gax_Grpc_CallSettings_) [ApiHubCollectClient.CollectApiDataAsync(string, CollectionType, ApiData, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiDataAsync_System_String_Google_Cloud_ApiHub_V1_CollectionType_Google_Cloud_ApiHub_V1_ApiData_System_Threading_CancellationToken_) [ApiHubCollectClient.CollectApiData(LocationName, CollectionType, ApiData, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiData_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_ApiHub_V1_CollectionType_Google_Cloud_ApiHub_V1_ApiData_Google_Api_Gax_Grpc_CallSettings_) [ApiHubCollectClient.CollectApiDataAsync(LocationName, CollectionType, ApiData, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiDataAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_ApiHub_V1_CollectionType_Google_Cloud_ApiHub_V1_ApiData_Google_Api_Gax_Grpc_CallSettings_) [ApiHubCollectClient.CollectApiDataAsync(LocationName, CollectionType, ApiData, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiDataAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_ApiHub_V1_CollectionType_Google_Cloud_ApiHub_V1_ApiData_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.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

## Remarks

This service exposes methods used for collecting various types of data from
different first party and third party sources and push it to Hub's collect
layer.

## Constructors

### ApiHubCollectClientImpl(ApiHubCollectClient, ApiHubCollectSettings, ILogger)

    public ApiHubCollectClientImpl(ApiHubCollect.ApiHubCollectClient grpcClient, ApiHubCollectSettings settings, ILogger logger)

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

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

## Properties

### CollectApiDataOperationsClient

    public override OperationsClient CollectApiDataOperationsClient { get; }

The long-running operations client for `CollectApiData`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [ApiHubCollectClient.CollectApiDataOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiDataOperationsClient)

### GrpcClient

    public override ApiHubCollect.ApiHubCollectClient GrpcClient { get; }

The underlying gRPC ApiHubCollect client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ApiHubCollectApiHubCollectClient` |   |

**Overrides** [ApiHubCollectClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_GrpcClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationsClient` |   |

**Overrides** [ApiHubCollectClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_LocationsClient)

## Methods

### CollectApiData(CollectApiDataRequest, CallSettings)

    public override Operation<CollectApiDataResponse, OperationMetadata> CollectApiData(CollectApiDataRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CollectApiDataRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationCollectApiDataResponseOperationMetadata` | The RPC response. |

**Overrides** [ApiHubCollectClient.CollectApiData(CollectApiDataRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiData_Google_Cloud_ApiHub_V1_CollectApiDataRequest_Google_Api_Gax_Grpc_CallSettings_)

### CollectApiDataAsync(CollectApiDataRequest, CallSettings)

    public override Task<Operation<CollectApiDataResponse, OperationMetadata>> CollectApiDataAsync(CollectApiDataRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CollectApiDataRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationCollectApiDataResponseOperationMetadata` | A Task containing the RPC response. |

**Overrides** [ApiHubCollectClient.CollectApiDataAsync(CollectApiDataRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubCollectClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubCollectClient_CollectApiDataAsync_Google_Cloud_ApiHub_V1_CollectApiDataRequest_Google_Api_Gax_Grpc_CallSettings_)