addressbook_encode_decode.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 ExtEncDec {
  19. optional fixed32 Aa_ge_Z040_ = 2;
  20. optional bytes databyte_Z040_std_Z058__Z058_string_Z041_ = 3;
  21. enum PhoneTypeEncDec {
  22. MOBILE = 0;
  23. HOME = 1;
  24. WORK = 2;
  25. }
  26. optional PhoneTypeEncDec enum_Z045__Z045_type = 4 [default = HOME];
  27. }
  28. message ContentEncDec {
  29. optional string uid_Z042_ = 1;
  30. required float Distance_info_ = 16;
  31. optional ExtEncDec _ext_Z037_T_ = 17;
  32. }
  33. message JsonContextBodyEncDec {
  34. repeated string info = 6;
  35. optional int64 type = 1;
  36. repeated int32 data_Z058_array = 5;
  37. required bool judge = 2;
  38. optional double spur = 3;
  39. repeated ContentEncDec _Z064_Content_Test_Z037__Z064_ = 4;
  40. }
  41. message PersonEncDec {
  42. optional string name = 1;
  43. optional int32 id = 2; // Unique ID number for this person.
  44. optional JsonContextBodyEncDec json_body = 18;
  45. }
  46. message AddressBookEncDec {
  47. repeated PersonEncDec person = 1;
  48. }