@Deprecated
    public GsonGrpcJsonMarshallerBuilder jsonPrinterCustomizer(
            Consumer<? super JsonFormat.Printer> jsonPrinterCustomizer) {
        if (!loggedJsonPrinterCustomizerWarning) {
            logger.warn("{}.jsonPrinterCustomizer(Consumer) does not work as expected; " +
                        "use jsonPrinterCustomizer(Function).",
                        getClass().getSimpleName());
            loggedJsonPrinterCustomizerWarning = true;
        }

        requireNonNull(jsonPrinterCustomizer, "jsonPrinterCustomizer");
        if (this.jsonPrinterCustomizer == null) {
            @SuppressWarnings("unchecked")
            final Consumer<JsonFormat.Printer> cast = (Consumer<JsonFormat.Printer>) jsonPrinterCustomizer;
            this.jsonPrinterCustomizer = printer -> {
                cast.accept(printer);
                return printer;
            };
        } else {
            this.jsonPrinterCustomizer = this.jsonPrinterCustomizer.andThen(printer -> {
                jsonPrinterCustomizer.accept(printer);
                return printer;
            });
        }
        return this;
    }
Adds a {@link Consumer} that can customize the {@link JsonFormat.Printer}
used when serializing a {@link Message} into a JSON payload.

@deprecated {@link JsonFormat.Printer} is immutable so all changes applied in the {@link Consumer}
    will be lost. Please use the {@link #jsonPrinterCustomizer(Function) jsonParserCustomizer}
    which accepts {@link Function} parameter instead.
grpc/src/main/java/com/linecorp/armeria/common/grpc/GsonGrpcJsonMarshallerBuilder.java