Skip to content

Protobuf Practice

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

Progress

Exercise 2: Naming

2. Naming

Context
Convention is PascalCase for messages, snake_case for fields. This schema follows neither, and the generated API will show it.
Task

Rename the message to UserProfile and the fields to user_id, email_address, and profile_image.

schema.proto
Valid Schema
syntax = "proto3";

package practice;

message user_profile {
  string userId = 1;
  string emailAddress = 2;
  string profileImage = 3;
}
Evaluation checks
Message 'UserProfile' is defined.
The old snake_case message name 'user_profile' is removed.
Field names use snake_case (user_id, email_address, profile_image).

Exercise Incomplete

Checks remaining above