github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/booking/srv/profile/proto/profile.proto (about) 1 syntax = "proto3"; 2 3 package profile; 4 5 service Profile { 6 rpc GetProfiles(Request) returns (Result); 7 } 8 9 message Request { 10 repeated string hotelIds = 1; 11 string locale = 2; 12 } 13 14 message Result { 15 repeated Hotel hotels = 1; 16 } 17 18 message Hotel { 19 string id = 1; 20 string name = 2; 21 string phoneNumber = 3; 22 string description = 4; 23 Address address = 5; 24 repeated Image images = 6; 25 } 26 27 message Address { 28 string streetNumber = 1; 29 string streetName = 2; 30 string city = 3; 31 string state = 4; 32 string country = 5; 33 string postalCode = 6; 34 } 35 36 message Image { 37 string url = 1; 38 bool default = 2; 39 }