Skip to content
protobuf.com

Practice

Protobuf Practice

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

Progress

Exercise 5: Reserved Fields

5. Reserved Fields
Context
Removing a field frees its number and name for reuse, and reuse silently misreads old data. reserved blocks that.
Task

Reserve field number 3 and field name phone in UserAccount.

schema.proto
Valid Schema
syntax = "proto3";

package practice;

message UserAccount {
  string id = 1;
  string email = 2;
  // The field 'phone' at number 3 was removed. Protect it!
}
EVALUATION_CHECKS
Field number 3 is reserved.
Field name 'phone' is reserved.

Exercise Incomplete

Please satisfy all checks above