public sealed class RankServiceClientImpl : RankServiceClient
Reference documentation and code samples for the Discovery Engine v1beta API class RankServiceClientImpl.
RankService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Remarks
Service for ranking text records.
Constructors
RankServiceClientImpl(RankServiceClient, RankServiceSettings, ILogger)
public RankServiceClientImpl(RankService.RankServiceClient grpcClient, RankServiceSettings settings, ILogger logger)
Constructs a client wrapper for the RankService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
RankServiceRankServiceClient The underlying gRPC client. |
settings |
RankServiceSettings The base RankServiceSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override RankService.RankServiceClient GrpcClient { get; }
The underlying gRPC RankService client
Property Value | |
---|---|
Type | Description |
RankServiceRankServiceClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
Rank(RankRequest, CallSettings)
public override RankResponse Rank(RankRequest request, CallSettings callSettings = null)
Ranks a list of text records based on the given input query.
Parameters | |
---|---|
Name | Description |
request |
RankRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
RankResponse |
The RPC response. |
RankAsync(RankRequest, CallSettings)
public override Task<RankResponse> RankAsync(RankRequest request, CallSettings callSettings = null)
Ranks a list of text records based on the given input query.
Parameters | |
---|---|
Name | Description |
request |
RankRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRankResponse |
A Task containing the RPC response. |