Class protos.google.cloud.aiplatform.v1beta1.PredictionService (2.5.0)

Represents a PredictionService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.aiplatform.v1beta1.PredictionService

Package

@google-cloud/aiplatform

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new PredictionService 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): PredictionService;

Creates new PredictionService 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
PredictionService

RPC service. Useful where requests and/or responses are streamed.

explain(request, callback)

public explain(request: google.cloud.aiplatform.v1beta1.IExplainRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.ExplainCallback): void;

Calls Explain.

Parameters
NameDescription
request IExplainRequest

ExplainRequest message or plain object

callback google.cloud.aiplatform.v1beta1.PredictionService.ExplainCallback

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

Returns
TypeDescription
void

explain(request)

public explain(request: google.cloud.aiplatform.v1beta1.IExplainRequest): Promise<google.cloud.aiplatform.v1beta1.ExplainResponse>;

Calls Explain.

Parameter
NameDescription
request IExplainRequest

ExplainRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.aiplatform.v1beta1.ExplainResponse>

Promise

predict(request, callback)

public predict(request: google.cloud.aiplatform.v1beta1.IPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.PredictCallback): void;

Calls Predict.

Parameters
NameDescription
request IPredictRequest

PredictRequest message or plain object

callback google.cloud.aiplatform.v1beta1.PredictionService.PredictCallback

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

Returns
TypeDescription
void

predict(request)

public predict(request: google.cloud.aiplatform.v1beta1.IPredictRequest): Promise<google.cloud.aiplatform.v1beta1.PredictResponse>;

Calls Predict.

Parameter
NameDescription
request IPredictRequest

PredictRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.aiplatform.v1beta1.PredictResponse>

Promise

rawPredict(request, callback)

public rawPredict(request: google.cloud.aiplatform.v1beta1.IRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.RawPredictCallback): void;

Calls RawPredict.

Parameters
NameDescription
request IRawPredictRequest

RawPredictRequest message or plain object

callback google.cloud.aiplatform.v1beta1.PredictionService.RawPredictCallback

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

Returns
TypeDescription
void

rawPredict(request)

public rawPredict(request: google.cloud.aiplatform.v1beta1.IRawPredictRequest): Promise<google.api.HttpBody>;

Calls RawPredict.

Parameter
NameDescription
request IRawPredictRequest

RawPredictRequest message or plain object

Returns
TypeDescription
Promise<google.api.HttpBody>

Promise