**Full name**: projects.locations.endpoints.directRawPredict

Perform an unary online prediction request to a gRPC model server for custom containers.

### Endpoint

post `https://{service-endpoint}/v1/{endpoint}:directRawPredict`   
Where `{service-endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest#rest_endpoints).

### Path parameters

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

### Request body

The request body contains data with the following structure:
Fields `methodName` `string` Fully qualified name of the API method being invoked to perform predictions.

Format: `/namespace.Service/method/` Example: `/tensorflow.serving.PredictionService/endpoints.predict`
`input` `string (https://developers.google.com/discovery/v1/type-format format)` The prediction input.

A base64-encoded string.

### Response body

Response message for `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/projects.locations.endpoints/directRawPredict#google.cloud.aiplatform.v1.PredictionService.DirectRawPredict`.

If successful, the response body contains data with the following structure:
Fields `output` `string (https://developers.google.com/discovery/v1/type-format format)` The prediction output.

A base64-encoded string.

| JSON representation |
|---|
| ``` { "output": string } ``` |

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `endpoint` resource:

- `aiplatform.endpoints.predict`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).