tests/indent/protobuf.proto
raw| 1 | syntax = "proto3"; |
| 2 | |
| 3 | message Person { |
| 4 | string name = 1; |
| 5 | |
| 6 | enum PhoneType { |
| 7 | MOBILE = 0; |
| 8 | HOME = 1; |
| 9 | } |
| 10 | |
| 11 | oneof contact { |
| 12 | string email = 3; |
| 13 | string phone = 4; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | service AddressBook { |
| 18 | rpc GetPerson(PersonRequest) returns (Person) { |
| 19 | option idempotency_level = NO_SIDE_EFFECTS; |
| 20 | } |
| 21 | } |