unittest_arena.proto 610 B

12345678910111213141516171819202122
  1. // Protocol Buffers - Google's data interchange format
  2. // Copyright 2008 Google Inc. All rights reserved.
  3. //
  4. // Use of this source code is governed by a BSD-style
  5. // license that can be found in the LICENSE file or at
  6. // https://developers.google.com/open-source/licenses/bsd
  7. edition = "2023";
  8. package proto2_arena_unittest;
  9. // Use expanded encoding for repeated fields by default (proto2 behavior).
  10. option features.repeated_field_encoding = EXPANDED;
  11. option cc_enable_arenas = true;
  12. message NestedMessage {
  13. int32 d = 1;
  14. }
  15. message ArenaMessage {
  16. repeated NestedMessage repeated_nested_message = 1;
  17. }