1. Field Numbers
Every field needs a numeric tag. That number is what goes on the wire; the name is only for generated code and JSON. These fields are missing theirs.
Task
Assign unique field numbers to id, name, and email so the schema compiles.
edition = "2024"; package practice; message UserProfile { string id; string name; string email; }
Checks
- The Protobuf schema compiles successfully.
- Message 'UserProfile' is defined.
- All fields (id, name, email) are assigned unique numbers.
Pass every check to unlock the next exercise.