public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
        .addMethod(
            getPredictMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.PredictRequest,
                    com.google.cloud.vertexai.api.PredictResponse>(service, METHODID_PREDICT)))
        .addMethod(
            getRawPredictMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.RawPredictRequest, com.google.api.HttpBody>(
                    service, METHODID_RAW_PREDICT)))
        .addMethod(
            getStreamRawPredictMethod(),
            io.grpc.stub.ServerCalls.asyncServerStreamingCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.StreamRawPredictRequest, com.google.api.HttpBody>(
                    service, METHODID_STREAM_RAW_PREDICT)))
        .addMethod(
            getDirectPredictMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.DirectPredictRequest,
                    com.google.cloud.vertexai.api.DirectPredictResponse>(
                    service, METHODID_DIRECT_PREDICT)))
        .addMethod(
            getDirectRawPredictMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.DirectRawPredictRequest,
                    com.google.cloud.vertexai.api.DirectRawPredictResponse>(
                    service, METHODID_DIRECT_RAW_PREDICT)))
        .addMethod(
            getStreamDirectPredictMethod(),
            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.StreamDirectPredictRequest,
                    com.google.cloud.vertexai.api.StreamDirectPredictResponse>(
                    service, METHODID_STREAM_DIRECT_PREDICT)))
        .addMethod(
            getStreamDirectRawPredictMethod(),
            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.StreamDirectRawPredictRequest,
                    com.google.cloud.vertexai.api.StreamDirectRawPredictResponse>(
                    service, METHODID_STREAM_DIRECT_RAW_PREDICT)))
        .addMethod(
            getStreamingPredictMethod(),
            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.StreamingPredictRequest,
                    com.google.cloud.vertexai.api.StreamingPredictResponse>(
                    service, METHODID_STREAMING_PREDICT)))
        .addMethod(
            getServerStreamingPredictMethod(),
            io.grpc.stub.ServerCalls.asyncServerStreamingCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.StreamingPredictRequest,
                    com.google.cloud.vertexai.api.StreamingPredictResponse>(
                    service, METHODID_SERVER_STREAMING_PREDICT)))
        .addMethod(
            getStreamingRawPredictMethod(),
            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.StreamingRawPredictRequest,
                    com.google.cloud.vertexai.api.StreamingRawPredictResponse>(
                    service, METHODID_STREAMING_RAW_PREDICT)))
        .addMethod(
            getExplainMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.ExplainRequest,
                    com.google.cloud.vertexai.api.ExplainResponse>(service, METHODID_EXPLAIN)))
        .addMethod(
            getGenerateContentMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.GenerateContentRequest,
                    com.google.cloud.vertexai.api.GenerateContentResponse>(
                    service, METHODID_GENERATE_CONTENT)))
        .addMethod(
            getStreamGenerateContentMethod(),
            io.grpc.stub.ServerCalls.asyncServerStreamingCall(
                new MethodHandlers<
                    com.google.cloud.vertexai.api.GenerateContentRequest,
                    com.google.cloud.vertexai.api.GenerateContentResponse>(
                    service, METHODID_STREAM_GENERATE_CONTENT)))
        .build();
  }
<pre>
Generate content with multimodal inputs.
</pre>
java-vertexai/grpc-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceGrpc.java