Class CompletionClient (1.0.0)

public abstract class CompletionClient

Completion client wrapper, for convenient use.

Inheritance

System.Object > CompletionClient

Namespace

Google.Cloud.Talent.V4

Assembly

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
TypeDescription
System.String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default Completion scopes.

Property Value
TypeDescription
System.Collections.Generic.IReadOnlyList<System.String>
Remarks

GrpcClient

public virtual Completion.CompletionClient GrpcClient { get; }

The underlying gRPC Completion client

Property Value
TypeDescription
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
NameDescription
requestCompleteQueryRequest

The request object containing all of the parameters for the API call.

callSettingsGoogle.Api.Gax.Grpc.CallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCompleteQueryRequest

The request object containing all of the parameters for the API call.

callSettingsGoogle.Api.Gax.Grpc.CallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCompleteQueryRequest

The request object containing all of the parameters for the API call.

cancellationTokenSystem.Threading.CancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
cancellationTokenSystem.Threading.CancellationToken

The System.Threading.CancellationToken to use while creating the client.

Returns
TypeDescription
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
TypeDescription
System.Threading.Tasks.Task

A task representing the asynchronous shutdown operation.

Remarks

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.