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 > ClientBase > ClientBaseApiHubCollectApiHubCollectClient > ApiHubCollect.ApiHubCollectClientNamespace
Google.Cloud.ApiHub.V1Assembly
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 using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
LocationsLocationsClient |
A new Locations.LocationsClient for the same target as this client. |
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()
Creates a new instance of Operations.OperationsClient 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 |