Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
syntax = "proto3";
package publicobject.example;
option java_package = "com.publicobject.example";
option java_multiple_files = true;
message Person {
// The customer's full name.
optional string name = 1;
// The customer's ID number.
optional int32 id = 2;
// Email address for the customer.
optional string email = 3;
enum PhoneType {
UNKNOWN = 0;
MOBILE = 1;
HOME = 2;
WORK = 3;
}
message PhoneNumber {
// The user's phone number.
optional string number = 1;
// The type of phone stored here.
optional PhoneType type = 2;
}
// A list of the user's phone numbers.
repeated PhoneNumber phone = 4;
map<string, string> social_network_identities = 5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.