default.txt 599 B

1234567891011121314151617181920212223
  1. package languages.protobuf;
  2. option java_package = "org.highlightjs.languages.protobuf";
  3. message Customer {
  4. required int64 customer_id = 1;
  5. optional string name = 2;
  6. optional string real_name = 3 [default = "Anonymous"];
  7. optional Gender gender = 4;
  8. repeated string email_addresses = 5;
  9. optional bool is_admin = 6 [default = false]; // or should this be a repeated field in Account?
  10. enum Gender {
  11. MALE = 1,
  12. FEMALE = 2
  13. }
  14. }
  15. service CustomerSearch {
  16. rpc FirstMatch(CustomerRequest) returns (CustomerResponse);
  17. rpc AllMatches(CustomerRequest) returns (CustomerResponse);
  18. }