CodeSampleX

Sample

Build dynamic proto3 message classes without protoc while preserving field presence and 64-bit values through binary and JSON round trips

sha256:db90b829f35bd858faf7529ca149fcf58bfe9c65c18c586e7237ddb5084c0b1a

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Build dynamic proto3 message classes without protoc while preserving field presence and 64-bit values through binary and JSON round trips HOW
Packages
protobuf 7.35.1
Environment
python 3.12
Created
2026-08-17T02:15:34Z

Commonly assumed

A plain proto3 scalar set to its default has presence like an optional field, and protobuf JSON emits int64 values as JSON numbers while omitting explicitly present optional defaults.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts