public class HealthCheckService.HealthCheckServiceClient : ClientBase<HealthCheckService.HealthCheckServiceClient>Reference documentation and code samples for the Vision AI v1 API class HealthCheckService.HealthCheckServiceClient.
Client for HealthCheckService
Inheritance
object > ClientBase > ClientBaseHealthCheckServiceHealthCheckServiceClient > HealthCheckService.HealthCheckServiceClientNamespace
Google.Cloud.VisionAI.V1Assembly
Google.Cloud.VisionAI.V1.dll
Constructors
HealthCheckServiceClient()
protected HealthCheckServiceClient()Protected parameterless constructor to allow creation of test doubles.
HealthCheckServiceClient(CallInvoker)
public HealthCheckServiceClient(CallInvoker callInvoker)Creates a new client for HealthCheckService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
HealthCheckServiceClient(ChannelBase)
public HealthCheckServiceClient(ChannelBase channel)Creates a new client for HealthCheckService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
HealthCheckServiceClient(ClientBaseConfiguration)
protected HealthCheckServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
CreateIAMPolicyClient()
public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()Creates a new instance of IAMPolicy.IAMPolicyClient using the same call invoker as this client.
| Returns | |
|---|---|
| Type | Description |
IAMPolicyIAMPolicyClient |
A new IAMPolicy.IAMPolicyClient for the same target as this client. |
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. |
HealthCheck(HealthCheckRequest, CallOptions)
public virtual HealthCheckResponse HealthCheck(HealthCheckRequest request, CallOptions options)HealthCheck method checks the health status of the cluster.
| Parameters | |
|---|---|
| Name | Description |
request |
HealthCheckRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
HealthCheckResponse |
The response received from the server. |
HealthCheck(HealthCheckRequest, Metadata, DateTime?, CancellationToken)
public virtual HealthCheckResponse HealthCheck(HealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)HealthCheck method checks the health status of the cluster.
| Parameters | |
|---|---|
| Name | Description |
request |
HealthCheckRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
HealthCheckResponse |
The response received from the server. |
HealthCheckAsync(HealthCheckRequest, CallOptions)
public virtual AsyncUnaryCall<HealthCheckResponse> HealthCheckAsync(HealthCheckRequest request, CallOptions options)HealthCheck method checks the health status of the cluster.
| Parameters | |
|---|---|
| Name | Description |
request |
HealthCheckRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallHealthCheckResponse |
The call object. |
HealthCheckAsync(HealthCheckRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<HealthCheckResponse> HealthCheckAsync(HealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)HealthCheck method checks the health status of the cluster.
| Parameters | |
|---|---|
| Name | Description |
request |
HealthCheckRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallHealthCheckResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override HealthCheckService.HealthCheckServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
HealthCheckServiceHealthCheckServiceClient |
|