public final BidiStreamingCallable<StreamDirectPredictRequest, StreamDirectPredictResponse>
      streamDirectPredictCallable() {
    return stub.streamDirectPredictCallable();
  }
Perform a streaming online prediction request to a gRPC model server for Vertex first-party
products and frameworks.

<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()) {
  BidiStream<StreamDirectPredictRequest, StreamDirectPredictResponse> bidiStream =
      predictionServiceClient.streamDirectPredictCallable().call();
  StreamDirectPredictRequest request =
      StreamDirectPredictRequest.newBuilder()
          .setEndpoint(
              EndpointName.ofProjectLocationEndpointName(
                      "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
                  .toString())
          .addAllInputs(new ArrayList<Tensor>())
          .setParameters(Tensor.newBuilder().build())
          .build();
  bidiStream.send(request);
  for (StreamDirectPredictResponse response : bidiStream) {
    // Do something when a response is received.
  }
}
}</pre>
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java