Google Cloud Ai Platform V1 Client - Class StreamDirectRawPredictRequest (1.7.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class StreamDirectRawPredictRequest.

Request message for PredictionService.StreamDirectRawPredict.

The first message must contain endpoint and method_name fields and optionally input. The subsequent messages must contain input. method_name in the subsequent messages have no effect.

Generated from protobuf message google.cloud.aiplatform.v1.StreamDirectRawPredictRequest

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ endpoint string

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

↳ method_name string

Optional. Fully qualified name of the API method being invoked to perform predictions. Format: /namespace.Service/Method/ Example: /tensorflow.serving.PredictionService/Predict

↳ input string

Optional. The prediction input.

getEndpoint

Required. The name of the Endpoint requested to serve the prediction.

Format: projects/{project}/locations/{location}/endpoints/{endpoint}

Returns
Type Description
string

setEndpoint

Required. The name of the Endpoint requested to serve the prediction.

Format: projects/{project}/locations/{location}/endpoints/{endpoint}

Parameter
Name Description
var string
Returns
Type Description
$this

getMethodName

Optional. Fully qualified name of the API method being invoked to perform predictions.

Format: /namespace.Service/Method/ Example: /tensorflow.serving.PredictionService/Predict

Returns
Type Description
string

setMethodName

Optional. Fully qualified name of the API method being invoked to perform predictions.

Format: /namespace.Service/Method/ Example: /tensorflow.serving.PredictionService/Predict

Parameter
Name Description
var string
Returns
Type Description
$this

getInput

Optional. The prediction input.

Returns
Type Description
string

setInput

Optional. The prediction input.

Parameter
Name Description
var string
Returns
Type Description
$this