@java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_CREATE_ENDPOINT:
          serviceImpl.createEndpoint(
              (com.google.cloud.vertexai.api.CreateEndpointRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GET_ENDPOINT:
          serviceImpl.getEndpoint(
              (com.google.cloud.vertexai.api.GetEndpointRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.Endpoint>)
                  responseObserver);
          break;
        case METHODID_LIST_ENDPOINTS:
          serviceImpl.listEndpoints(
              (com.google.cloud.vertexai.api.ListEndpointsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.ListEndpointsResponse>)
                  responseObserver);
          break;
        case METHODID_UPDATE_ENDPOINT:
          serviceImpl.updateEndpoint(
              (com.google.cloud.vertexai.api.UpdateEndpointRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.Endpoint>)
                  responseObserver);
          break;
        case METHODID_UPDATE_ENDPOINT_LONG_RUNNING:
          serviceImpl.updateEndpointLongRunning(
              (com.google.cloud.vertexai.api.UpdateEndpointLongRunningRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_ENDPOINT:
          serviceImpl.deleteEndpoint(
              (com.google.cloud.vertexai.api.DeleteEndpointRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DEPLOY_MODEL:
          serviceImpl.deployModel(
              (com.google.cloud.vertexai.api.DeployModelRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UNDEPLOY_MODEL:
          serviceImpl.undeployModel(
              (com.google.cloud.vertexai.api.UndeployModelRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_MUTATE_DEPLOYED_MODEL:
          serviceImpl.mutateDeployedModel(
              (com.google.cloud.vertexai.api.MutateDeployedModelRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }
<pre>
Updates an existing deployed model. Updatable fields include
`min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`,
`disable_container_logging` (v1 only), and `enable_container_logging`
(v1beta1 only).
</pre>
java-vertexai/grpc-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointServiceGrpc.java