addressbook_map.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Licensed to the Apache Software Foundation (ASF) under one
  2. // or more contributor license agreements. See the NOTICE file
  3. // distributed with this work for additional information
  4. // regarding copyright ownership. The ASF licenses this file
  5. // to you under the Apache License, Version 2.0 (the
  6. // "License"); you may not use this file except in compliance
  7. // with the License. You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing,
  12. // software distributed under the License is distributed on an
  13. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. // KIND, either express or implied. See the License for the
  15. // specific language governing permissions and limitations
  16. // under the License.
  17. syntax="proto2";
  18. message AddressNoMap {
  19. required string addr = 1;
  20. }
  21. message AddressIntMap {
  22. required string addr = 1;
  23. message MapFieldEntry {
  24. required string key = 1;
  25. required int32 value = 2;
  26. }
  27. repeated MapFieldEntry numbers = 2;
  28. }
  29. message AddressStringMap {
  30. required string addr = 1;
  31. message MapFieldEntry {
  32. required string key = 1;
  33. required string value = 2;
  34. }
  35. repeated MapFieldEntry contacts = 2;
  36. }
  37. message AddressComplex {
  38. required string addr = 1;
  39. message FriendEntry {
  40. required string key = 1;
  41. message Education {
  42. required string school = 1;
  43. required int32 year = 2;
  44. }
  45. repeated Education value = 2;
  46. }
  47. repeated FriendEntry friends = 2;
  48. }
  49. message haha {
  50. repeated int32 a = 1;
  51. }