public final UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable() {
    return stub.rawPredictCallable();
  }
Perform an online prediction with an arbitrary HTTP payload.

<p>The response includes the following HTTP headers:

<ul>
  <li>`X-Vertex-AI-Endpoint-Id`: ID of the [Endpoint][google.cloud.aiplatform.v1.Endpoint] that
      served this prediction.
</ul>

<ul>
  <li>`X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's
      [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] that served this prediction.
</ul>

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
  RawPredictRequest request =
      RawPredictRequest.newBuilder()
          .setEndpoint(
              EndpointName.ofProjectLocationEndpointName(
                      "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
                  .toString())
          .setHttpBody(HttpBody.newBuilder().build())
          .build();
  ApiFuture<HttpBody> future = predictionServiceClient.rawPredictCallable().futureCall(request);
  // Do something.
  HttpBody response = future.get();
}
}</pre>
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java