ProtobufMessageCodec.encode
- ProtobufMessageCodec.encode(message)[source]
Encode a message to Protocol Buffers binary format.
- Parameters:
- message
Messageor dict or object Message to encode. Can be a Message instance, a dict, or an object implementing the COMPAS data framework.
- message
- Returns:
- bytes
Protocol Buffers binary representation of the message.