Make message decoding in ProtobufDecoder more extensible

Author: dsyerCreated Sep 10, 2026Updated Sep 16, 2026
Labelsstatus: waiting-for-triage

Recent changes in ProtobufDecoder have made it more open to extension. One thing that is missing still is the ability to override the Message creation step. The base class does all the interesting stuff, and comes up with a byte buffer with the message contents, but then doesn't allow you to insert your own logic for decoding. A protected method in ProtobufDecoder would be great, or a helper interface like MessageSizeReader.

Would enable us to more easily (without copy-pasting the whole of ProtobufDecoder) support grpc-web in https://github.com/spring-projects/spring-grpc/issues/427.

Source: spring-projects/spring-framework