Cloud AI Platform v1 API - Class MatchServiceClientImpl (2.19.0)

public sealed class MatchServiceClientImpl : MatchServiceClient

Reference documentation and code samples for the Cloud AI Platform v1 API class MatchServiceClientImpl.

MatchService client wrapper implementation, for convenient use.

Inheritance

object > MatchServiceClient > MatchServiceClientImpl

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Remarks

MatchService is a Google managed service for efficient vector similarity search at scale.

Constructors

MatchServiceClientImpl(MatchServiceClient, MatchServiceSettings, ILogger)

public MatchServiceClientImpl(MatchService.MatchServiceClient grpcClient, MatchServiceSettings settings, ILogger logger)

Constructs a client wrapper for the MatchService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientMatchServiceMatchServiceClient

The underlying gRPC client.

settingsMatchServiceSettings

The base MatchServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override MatchService.MatchServiceClient GrpcClient { get; }

The underlying gRPC MatchService client

Property Value
TypeDescription
MatchServiceMatchServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

FindNeighbors(FindNeighborsRequest, CallSettings)

public override FindNeighborsResponse FindNeighbors(FindNeighborsRequest request, CallSettings callSettings = null)

Finds the nearest neighbors of each vector within the request.

Parameters
NameDescription
requestFindNeighborsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
FindNeighborsResponse

The RPC response.

Overrides

FindNeighborsAsync(FindNeighborsRequest, CallSettings)

public override Task<FindNeighborsResponse> FindNeighborsAsync(FindNeighborsRequest request, CallSettings callSettings = null)

Finds the nearest neighbors of each vector within the request.

Parameters
NameDescription
requestFindNeighborsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFindNeighborsResponse

A Task containing the RPC response.

Overrides

ReadIndexDatapoints(ReadIndexDatapointsRequest, CallSettings)

public override ReadIndexDatapointsResponse ReadIndexDatapoints(ReadIndexDatapointsRequest request, CallSettings callSettings = null)

Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.

Parameters
NameDescription
requestReadIndexDatapointsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReadIndexDatapointsResponse

The RPC response.

Overrides

ReadIndexDatapointsAsync(ReadIndexDatapointsRequest, CallSettings)

public override Task<ReadIndexDatapointsResponse> ReadIndexDatapointsAsync(ReadIndexDatapointsRequest request, CallSettings callSettings = null)

Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.

Parameters
NameDescription
requestReadIndexDatapointsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReadIndexDatapointsResponse

A Task containing the RPC response.

Overrides