simple_types.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (C) 2020 Embedded AMS B.V. - All Rights Reserved
  3. *
  4. * This file is part of Embedded Proto.
  5. *
  6. * Embedded Proto is open source software: you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as published
  8. * by the Free Software Foundation, version 3 of the license.
  9. *
  10. * Embedded Proto is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with Embedded Proto. If not, see <https://www.gnu.org/licenses/>.
  17. *
  18. * For commercial and closed source application please visit:
  19. * <https://EmbeddedProto.com/license/>.
  20. *
  21. * Embedded AMS B.V.
  22. * Info:
  23. * info at EmbeddedProto dot com
  24. *
  25. * Postal address:
  26. * Johan Huizingalaan 763a
  27. * 1066 VH, Amsterdam
  28. * the Netherlands
  29. */
  30. // This file is used to test the wire formatter class.
  31. syntax = "proto3";
  32. enum Test_Enum {
  33. ZERO = 0;
  34. ONE = 1;
  35. TWO = 2;
  36. ONEHUNDERTTWENTYSEVEN = 127;
  37. ONEHUNDERTTWENTYEIGHT = 128;
  38. TWOHUNDERDFIFTYFIVE = 255;
  39. TWOBILLION = 2000000000;
  40. }
  41. message Test_Simple_Types {
  42. int32 a_int32 = 1;
  43. int64 a_int64 = 2;
  44. uint32 a_uint32 = 3;
  45. uint64 a_uint64 = 4;
  46. sint32 a_sint32 = 5;
  47. sint64 a_sint64 = 6;
  48. bool a_bool = 7;
  49. Test_Enum a_enum = 8;
  50. fixed64 a_fixed64 = 9;
  51. sfixed64 a_sfixed64 = 10;
  52. double a_double = 11;
  53. fixed32 a_fixed32 = 12;
  54. sfixed32 a_sfixed32 = 13;
  55. float a_float = 14;
  56. }