@java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_PREDICT:
          serviceImpl.predict(
              (com.google.cloud.vertexai.api.PredictRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.PredictResponse>)
                  responseObserver);
          break;
        case METHODID_RAW_PREDICT:
          serviceImpl.rawPredict(
              (com.google.cloud.vertexai.api.RawPredictRequest) request,
              (io.grpc.stub.StreamObserver<com.google.api.HttpBody>) responseObserver);
          break;
        case METHODID_STREAM_RAW_PREDICT:
          serviceImpl.streamRawPredict(
              (com.google.cloud.vertexai.api.StreamRawPredictRequest) request,
              (io.grpc.stub.StreamObserver<com.google.api.HttpBody>) responseObserver);
          break;
        case METHODID_DIRECT_PREDICT:
          serviceImpl.directPredict(
              (com.google.cloud.vertexai.api.DirectPredictRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.DirectPredictResponse>)
                  responseObserver);
          break;
        case METHODID_DIRECT_RAW_PREDICT:
          serviceImpl.directRawPredict(
              (com.google.cloud.vertexai.api.DirectRawPredictRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.DirectRawPredictResponse>)
                  responseObserver);
          break;
        case METHODID_SERVER_STREAMING_PREDICT:
          serviceImpl.serverStreamingPredict(
              (com.google.cloud.vertexai.api.StreamingPredictRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.StreamingPredictResponse>)
                  responseObserver);
          break;
        case METHODID_EXPLAIN:
          serviceImpl.explain(
              (com.google.cloud.vertexai.api.ExplainRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.ExplainResponse>)
                  responseObserver);
          break;
        case METHODID_GENERATE_CONTENT:
          serviceImpl.generateContent(
              (com.google.cloud.vertexai.api.GenerateContentRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.GenerateContentResponse>)
                  responseObserver);
          break;
        case METHODID_STREAM_GENERATE_CONTENT:
          serviceImpl.streamGenerateContent(
              (com.google.cloud.vertexai.api.GenerateContentRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.vertexai.api.GenerateContentResponse>)
                  responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }
<pre>
Generate content with multimodal inputs.
</pre>
java-vertexai/grpc-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceGrpc.java