io.vertx.grpc.common

## Interface GrpcMessageEncoder<T>

-     public interface GrpcMessageEncoder<T>

- - ### Field Summary

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

  - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `GrpcMessage` | `encode(T msg)`
    `static <T extends com.google.protobuf.MessageLite> GrpcMessageEncoder<T>` | `encoder()` Create an encoder for arbitrary message extending `MessageLite`.
    `static <T> GrpcMessageEncoder<T>` | `marshaller(io.grpc.MethodDescriptor.Marshaller<T> desc)`

- - ### Field Detail

    - #### IDENTITY

          static final GrpcMessageEncoder<Buffer> IDENTITY

    - #### GZIP

          static final GrpcMessageEncoder<Buffer> GZIP

  - ### Method Detail

    - #### encoder

          static <T extends com.google.protobuf.MessageLite> GrpcMessageEncoder<T> encoder()

      Create an encoder for arbitrary message extending `MessageLite`.
      Returns:
        the message encoder

    - #### marshaller

          static <T> GrpcMessageEncoder<T> marshaller(io.grpc.MethodDescriptor.Marshaller<T> desc)

    - #### encode

          GrpcMessage encode(T msg)

Copyright © 2025 Eclipse. All rights reserved.