Skip to content

Protobuf Practice

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

Progress

Exercise 3: Repeated Fields

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

Checks remaining above