public final OperationFuture<UndeployModelResponse, UndeployModelOperationMetadata>
      undeployModelAsync(
          EndpointName endpoint, String deployedModelId, Map<String, Integer> trafficSplit) {
    UndeployModelRequest request =
        UndeployModelRequest.newBuilder()
            .setEndpoint(endpoint == null ? null : endpoint.toString())
            .setDeployedModelId(deployedModelId)
            .putAllTrafficSplit(trafficSplit)
            .build();
    return undeployModelAsync(request);
  }
Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources
it's using.

<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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
  EndpointName endpoint =
      EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
  String deployedModelId = "deployedModelId-1817547906";
  Map<String, Integer> trafficSplit = new HashMap<>();
  UndeployModelResponse response =
      endpointServiceClient.undeployModelAsync(endpoint, deployedModelId, trafficSplit).get();
}
}</pre>

@param endpoint Required. The name of the Endpoint resource from which to undeploy a Model.
    Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
@param deployedModelId Required. The ID of the DeployedModel to be undeployed from the
    Endpoint.
@param trafficSplit If this field is provided, then the Endpoint's
    [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be overwritten with
    it. If last DeployedModel is being undeployed from the Endpoint, the
    [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel
    will be successfully undeployed only if it doesn't have any traffic assigned to it when
    this method executes, or if this field unassigns any traffic to it.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/EndpointServiceClient.java