Represents a PredictionService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.aiplatform.v1.PredictionServicePackage
@google-cloud/aiplatform!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new PredictionService service.
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): PredictionService;
Creates new PredictionService service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
PredictionService | RPC service. Useful where requests and/or responses are streamed. |
predict(request, callback)
public predict(request: google.cloud.aiplatform.v1.IPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.PredictCallback): void;
Calls Predict.
Name | Description |
request |
google.cloud.aiplatform.v1.IPredictRequest
PredictRequest message or plain object |
callback |
google.cloud.aiplatform.v1.PredictionService.PredictCallback
Node-style callback called with the error, if any, and PredictResponse |
Type | Description |
void |
predict(request)
public predict(request: google.cloud.aiplatform.v1.IPredictRequest): Promise<google.cloud.aiplatform.v1.PredictResponse>;
Calls Predict.
Name | Description |
request |
google.cloud.aiplatform.v1.IPredictRequest
PredictRequest message or plain object |
Type | Description |
Promise<google.cloud.aiplatform.v1.PredictResponse> | Promise |