repeated_fields.proto 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 serializing repeated fields.
  31. syntax = "proto3";
  32. message repeated_fields
  33. {
  34. uint32 x = 1;
  35. repeated uint32 y = 2;
  36. uint32 z = 3;
  37. }
  38. message repeated_nested_message
  39. {
  40. uint32 u = 1;
  41. uint32 v = 2;
  42. }
  43. message repeated_message
  44. {
  45. uint32 a = 1;
  46. repeated repeated_nested_message b = 2;
  47. uint32 c = 3;
  48. }
  49. message nested_repeated_message
  50. {
  51. repeated_fields rf = 1;
  52. }