class
GRPC::ProtoMarshaller(T)
- GRPC::ProtoMarshaller(T)
- GRPC::Marshaller(T)
- Reference
- Object
Overview
Default proto marshaller. It delegates to generated message APIs.
Defined in:
grpc/marshaller.crConstructors
- .new
-
.new(*, encode_options : E, decode_options : D) forall E, D
The options are generic so existing applications using older generated messages remain compatible with the default constructor.
- .new(*, options : ProtobufOptions)
Instance Method Summary
Instance methods inherited from class GRPC::Marshaller(T)
decode(bytes : Bytes) : T
decode,
encode(value : T) : Bytes
encode
Constructor Detail
def self.new(*, encode_options : E, decode_options : D) forall E, D
#
The options are generic so existing applications using older generated messages remain compatible with the default constructor.