Skip to content
protobuf.kmcd.dev

Practice

Protobuf Practice

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

Progress

Exercise 4: Repeated Fields

4. Repeated Fields
Context
Use `repeated` for lists. Repeated field names are usually plural, because generated code exposes them as collections.
Task

Change tag into a repeated string field named tags.

schema.proto
Valid Schema
syntax = "proto3";

package practice;

message BlogPost {
  string id = 1;
  string title = 2;
  string tag = 3;
}
EVALUATION_CHECKS
Field name is renamed to plural 'tags'.
Field 'tags' uses the 'repeated' keyword.

Exercise Incomplete

Please satisfy all checks above