public sealed class MatchServiceClientImpl : MatchServiceClientReference documentation and code samples for the Vertex AI v1beta1 API class MatchServiceClientImpl.
MatchService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.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 | |
|---|---|
| Name | Description |
grpcClient |
MatchServiceMatchServiceClientThe underlying gRPC client. |
settings |
MatchServiceSettingsThe base MatchServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override MatchService.MatchServiceClient GrpcClient { get; }The underlying gRPC MatchService client
| Property Value | |
|---|---|
| Type | Description |
MatchServiceMatchServiceClient |
|
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }The IAMPolicyClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
IAMPolicyClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
FindNeighbors(FindNeighborsRequest, CallSettings)
public override FindNeighborsResponse FindNeighbors(FindNeighborsRequest request, CallSettings callSettings = null)Finds the nearest neighbors of each vector within the request.
| Parameters | |
|---|---|
| Name | Description |
request |
FindNeighborsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FindNeighborsResponse |
The RPC response. |
FindNeighborsAsync(FindNeighborsRequest, CallSettings)
public override Task<FindNeighborsResponse> FindNeighborsAsync(FindNeighborsRequest request, CallSettings callSettings = null)Finds the nearest neighbors of each vector within the request.
| Parameters | |
|---|---|
| Name | Description |
request |
FindNeighborsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFindNeighborsResponse |
A Task containing the RPC response. |
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 | |
|---|---|
| Name | Description |
request |
ReadIndexDatapointsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ReadIndexDatapointsResponse |
The RPC response. |
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 | |
|---|---|
| Name | Description |
request |
ReadIndexDatapointsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskReadIndexDatapointsResponse |
A Task containing the RPC response. |