Skip to content
protobuf.kmcd.dev

Practice

Protobuf Practice

Edit the schema, wait for the descriptor checks, and continue when everything passes.

Progress

Exercise 1: Field Numbers

1. Field Numbers
Context
Every protobuf field needs a numeric tag. The tag is what appears in the binary payload; the field name is for generated code and JSON. A valid field declaration looks like this:
message Example {
  string some_field = 1;
}
This schema defines `UserProfile`, but its fields are missing tag numbers.
Task

Assign unique field numbers to id, name, and email so the schema compiles.

schema.proto
Valid Schema
syntax = "proto3";

package practice;

message UserProfile {
  string id;
  string name;
  string email;
}
EVALUATION_CHECKS
The Protobuf schema compiles successfully.
Message 'UserProfile' is defined.
All fields (id, name, email) are assigned unique numbers.

Exercise Incomplete

Please satisfy all checks above