Class protos.google.cloud.aiplatform.v1.MatchService (3.7.0)

Represents a MatchService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.aiplatform.v1.MatchService

Package

@google-cloud/aiplatform

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new MatchService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
request IFindNeighborsRequest

FindNeighborsRequest message or plain object

callback FindNeighborsCallback

Node-style callback called with the error, if any, and FindNeighborsResponse

Returns
TypeDescription
void

findNeighbors(request)

public findNeighbors(request: google.cloud.aiplatform.v1.IFindNeighborsRequest): Promise<google.cloud.aiplatform.v1.FindNeighborsResponse>;

Calls FindNeighbors.

Parameter
NameDescription
request IFindNeighborsRequest

FindNeighborsRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IReadIndexDatapointsRequest

ReadIndexDatapointsRequest message or plain object

callback ReadIndexDatapointsCallback

Node-style callback called with the error, if any, and ReadIndexDatapointsResponse

Returns
TypeDescription
void

readIndexDatapoints(request)

public readIndexDatapoints(request: google.cloud.aiplatform.v1.IReadIndexDatapointsRequest): Promise<google.cloud.aiplatform.v1.ReadIndexDatapointsResponse>;

Calls ReadIndexDatapoints.

Parameter
NameDescription
request IReadIndexDatapointsRequest

ReadIndexDatapointsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.aiplatform.v1.ReadIndexDatapointsResponse>

Promise