unittest_mset_wire_format.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. // Author: kenton@google.com (Kenton Varda)
  8. // Based on original Protocol Buffers design by
  9. // Sanjay Ghemawat, Jeff Dean, and others.
  10. //
  11. // This file contains messages for testing message_set_wire_format.
  12. syntax = "proto2";
  13. package proto2_wireformat_unittest;
  14. option cc_enable_arenas = true;
  15. option optimize_for = SPEED;
  16. option csharp_namespace = "Google.ProtocolBuffers.TestProtos";
  17. // A message with message_set_wire_format.
  18. message TestMessageSet {
  19. option message_set_wire_format = true;
  20. extensions 4 to 529999999;
  21. extensions 530000000 to max
  22. [declaration = {
  23. number: 1952731290,
  24. full_name: ".protobuf_unittest_v1api.TestMessageSetExtension3.message_set_extension",
  25. type: ".protobuf_unittest_v1api.TestMessageSetExtension3"
  26. }];
  27. }
  28. message TestMessageSetWireFormatContainer {
  29. optional TestMessageSet message_set = 1;
  30. }