Skip to content

Protobuf Practice

Edit the schema and the descriptor checks run as you type. Continue when everything passes.

Progress

Exercise 1: Field Numbers

1. Field Numbers

Context
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.

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

Checks remaining above