io.vertx.grpc.common

## Interface GrpcMessageDecoder<T>

-     public interface GrpcMessageDecoder<T>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static GrpcMessageDecoder<Buffer>` | `GZIP`
    `static GrpcMessageDecoder<Buffer>` | `IDENTITY`

  - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `decode(GrpcMessage msg)`
    `static <T> GrpcMessageDecoder<T>` | `decoder(com.google.protobuf.Parser<T> parser)` Create a decoder for a given protobuf `Parser`.
    `static <T> GrpcMessageDecoder<T>` | `unmarshaller(io.grpc.MethodDescriptor.Marshaller<T> desc)`

- - ### Field Detail

    - #### IDENTITY

          static final GrpcMessageDecoder<Buffer> IDENTITY

    - #### GZIP

          static final GrpcMessageDecoder<Buffer> GZIP

  - ### Method Detail

    - #### decoder

          static <T> GrpcMessageDecoder<T> decoder(com.google.protobuf.Parser<T> parser)

      Create a decoder for a given protobuf `Parser`.
      Parameters:
        `parser` - the parser that returns decoded messages of type `<T>`
      Returns:
        the message decoder

    - #### unmarshaller

          static <T> GrpcMessageDecoder<T> unmarshaller(io.grpc.MethodDescriptor.Marshaller<T> desc)

    - #### decode

          T decode(GrpcMessage msg)
            throws CodecException

      Throws:
        `CodecException`

Copyright © 2025 Eclipse. All rights reserved.