- Overview
- API reference
- Decode protobuf
Decode protobuf
Use the installed SDK decoder functions rather than generated classes. The runnable decoder example accepts a payload file, integration, category, and bounded maximum payload size.
python examples/decode_public_protobuf.py --checkexport ECN_PROTOBUF_PAYLOAD_FILE=/path/to/public-payload.binexport ECN_INTEGRATION_NAME=authorized-sourceexport ECN_ENTITY_CATEGORY=detectionexport ECN_MAXIMUM_PAYLOAD_SIZE=1048576python examples/decode_public_protobuf.pydecode_entity_event_protobuf needs the topic-derived integration and category.
decode_entity_location_protobuf needs the topic-derived integration; it decodes the
entity UUID from the payload’s 16 raw UUID bytes. Unknown fields are ignored and
future category numbers become OTHER. Strict topic agreement remains: a future
payload category on a known topic is rejected, and OTHER passes only when the topic
category is also unknown.
Entity category is derived from the protobuf topic; publication omits its optional numeric field. The descriptor field remains available for inbound compatibility. See wire formats.
Version 0.2.0 · branch main
