public class RankService.RankServiceClient : ClientBase<RankService.RankServiceClient>Reference documentation and code samples for the Discovery Engine v1 API class RankService.RankServiceClient.
Client for RankService
Inheritance
object > ClientBase > ClientBaseRankServiceRankServiceClient > RankService.RankServiceClientNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
RankServiceClient()
protected RankServiceClient()Protected parameterless constructor to allow creation of test doubles.
RankServiceClient(CallInvoker)
public RankServiceClient(CallInvoker callInvoker)Creates a new client for RankService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
RankServiceClient(ChannelBase)
public RankServiceClient(ChannelBase channel)Creates a new client for RankService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
RankServiceClient(ClientBaseConfiguration)
protected RankServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
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. |
NewInstance(ClientBaseConfiguration)
protected override RankService.RankServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
RankServiceRankServiceClient |
|
Rank(RankRequest, CallOptions)
public virtual RankResponse Rank(RankRequest request, CallOptions options)Ranks a list of text records based on the given input query.
| Parameters | |
|---|---|
| Name | Description |
request |
RankRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
RankResponse |
The response received from the server. |
Rank(RankRequest, Metadata, DateTime?, CancellationToken)
public virtual RankResponse Rank(RankRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Ranks a list of text records based on the given input query.
| Parameters | |
|---|---|
| Name | Description |
request |
RankRequestThe 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 |
RankResponse |
The response received from the server. |
RankAsync(RankRequest, CallOptions)
public virtual AsyncUnaryCall<RankResponse> RankAsync(RankRequest request, CallOptions options)Ranks a list of text records based on the given input query.
| Parameters | |
|---|---|
| Name | Description |
request |
RankRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallRankResponse |
The call object. |
RankAsync(RankRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<RankResponse> RankAsync(RankRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Ranks a list of text records based on the given input query.
| Parameters | |
|---|---|
| Name | Description |
request |
RankRequestThe 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 |
AsyncUnaryCallRankResponse |
The call object. |