public final UnaryCallable<ExplainRequest, ExplainResponse> explainCallable() {
    return stub.explainCallable();
  }
Perform an online explanation.

<p>If [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] is
specified, the corresponding DeployModel must have
[explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] populated. If
[deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] is not
specified, all DeployedModels must have
[explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] populated.

<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()) {
  ExplainRequest request =
      ExplainRequest.newBuilder()
          .setEndpoint(
              EndpointName.ofProjectLocationEndpointName(
                      "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
                  .toString())
          .addAllInstances(new ArrayList<Value>())
          .setParameters(Value.newBuilder().setBoolValue(true).build())
          .setExplanationSpecOverride(ExplanationSpecOverride.newBuilder().build())
          .setDeployedModelId("deployedModelId-1817547906")
          .build();
  ApiFuture<ExplainResponse> future =
      predictionServiceClient.explainCallable().futureCall(request);
  // Do something.
  ExplainResponse response = future.get();
}
}</pre>
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java