public abstract class CompletionClientCompletion client wrapper, for convenient use.
Inheritance
System.Object > CompletionClientNamespace
Google.Cloud.Talent.V4Assembly
Google.Cloud.Talent.V4.dll
Remarks
A service handles auto completion.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the Completion service, which is a host of "jobs.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
System.String |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default Completion scopes.
| Property Value | |
|---|---|
| Type | Description |
System.Collections.Generic.IReadOnlyList<System.String> |
|
The default Completion scopes are:
GrpcClient
public virtual Completion.CompletionClient GrpcClient { get; }The underlying gRPC Completion client
| Property Value | |
|---|---|
| Type | Description |
Completion.CompletionClient |
|
Methods
CompleteQuery(CompleteQueryRequest, CallSettings)
public virtual CompleteQueryResponse CompleteQuery(CompleteQueryRequest request, CallSettings callSettings = null)Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.
| Parameters | |
|---|---|
| Name | Description |
request |
CompleteQueryRequestThe request object containing all of the parameters for the API call. |
callSettings |
Google.Api.Gax.Grpc.CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CompleteQueryResponse |
The RPC response. |
CompleteQueryAsync(CompleteQueryRequest, CallSettings)
public virtual Task<CompleteQueryResponse> CompleteQueryAsync(CompleteQueryRequest request, CallSettings callSettings = null)Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.
| Parameters | |
|---|---|
| Name | Description |
request |
CompleteQueryRequestThe request object containing all of the parameters for the API call. |
callSettings |
Google.Api.Gax.Grpc.CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task<CompleteQueryResponse> |
A Task containing the RPC response. |
CompleteQueryAsync(CompleteQueryRequest, CancellationToken)
public virtual Task<CompleteQueryResponse> CompleteQueryAsync(CompleteQueryRequest request, CancellationToken cancellationToken)Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.
| Parameters | |
|---|---|
| Name | Description |
request |
CompleteQueryRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
System.Threading.CancellationTokenA System.Threading.CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task<CompleteQueryResponse> |
A Task containing the RPC response. |
Create()
public static CompletionClient Create()Synchronously creates a CompletionClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CompletionClientBuilder.
| Returns | |
|---|---|
| Type | Description |
CompletionClient |
The created CompletionClient. |
CreateAsync(CancellationToken)
public static Task<CompletionClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))Asynchronously creates a CompletionClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CompletionClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
System.Threading.CancellationTokenThe System.Threading.CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task<CompletionClient> |
The task representing the created CompletionClient. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.