@java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_STREAM_DIRECT_PREDICT:
          return (io.grpc.stub.StreamObserver<Req>)
              serviceImpl.streamDirectPredict(
                  (io.grpc.stub.StreamObserver<
                          com.google.cloud.vertexai.api.StreamDirectPredictResponse>)
                      responseObserver);
        case METHODID_STREAM_DIRECT_RAW_PREDICT:
          return (io.grpc.stub.StreamObserver<Req>)
              serviceImpl.streamDirectRawPredict(
                  (io.grpc.stub.StreamObserver<
                          com.google.cloud.vertexai.api.StreamDirectRawPredictResponse>)
                      responseObserver);
        case METHODID_STREAMING_PREDICT:
          return (io.grpc.stub.StreamObserver<Req>)
              serviceImpl.streamingPredict(
                  (io.grpc.stub.StreamObserver<
                          com.google.cloud.vertexai.api.StreamingPredictResponse>)
                      responseObserver);
        case METHODID_STREAMING_RAW_PREDICT:
          return (io.grpc.stub.StreamObserver<Req>)
              serviceImpl.streamingRawPredict(
                  (io.grpc.stub.StreamObserver<
                          com.google.cloud.vertexai.api.StreamingRawPredictResponse>)
                      responseObserver);
        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