Represents a MatchService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.aiplatform.v1.MatchServicePackage
@google-cloud/aiplatformConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new MatchService service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MatchService;Creates new MatchService service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
MatchService |
RPC service. Useful where requests and/or responses are streamed. |
findNeighbors(request, callback)
public findNeighbors(request: google.cloud.aiplatform.v1.IFindNeighborsRequest, callback: google.cloud.aiplatform.v1.MatchService.FindNeighborsCallback): void;Calls FindNeighbors.
| Parameters | |
|---|---|
| Name | Description |
request |
IFindNeighborsRequest
FindNeighborsRequest message or plain object |
callback |
FindNeighborsCallback
Node-style callback called with the error, if any, and FindNeighborsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
findNeighbors(request)
public findNeighbors(request: google.cloud.aiplatform.v1.IFindNeighborsRequest): Promise<google.cloud.aiplatform.v1.FindNeighborsResponse>;Calls FindNeighbors.
| Parameter | |
|---|---|
| Name | Description |
request |
IFindNeighborsRequest
FindNeighborsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.aiplatform.v1.FindNeighborsResponse> |
Promise |
readIndexDatapoints(request, callback)
public readIndexDatapoints(request: google.cloud.aiplatform.v1.IReadIndexDatapointsRequest, callback: google.cloud.aiplatform.v1.MatchService.ReadIndexDatapointsCallback): void;Calls ReadIndexDatapoints.
| Parameters | |
|---|---|
| Name | Description |
request |
IReadIndexDatapointsRequest
ReadIndexDatapointsRequest message or plain object |
callback |
ReadIndexDatapointsCallback
Node-style callback called with the error, if any, and ReadIndexDatapointsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
readIndexDatapoints(request)
public readIndexDatapoints(request: google.cloud.aiplatform.v1.IReadIndexDatapointsRequest): Promise<google.cloud.aiplatform.v1.ReadIndexDatapointsResponse>;Calls ReadIndexDatapoints.
| Parameter | |
|---|---|
| Name | Description |
request |
IReadIndexDatapointsRequest
ReadIndexDatapointsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.aiplatform.v1.ReadIndexDatapointsResponse> |
Promise |