unittest_swift_reserved.proto 942 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Protos/unittest_swift_reserved.proto - test proto
  2. //
  3. // This source file is part of the Swift.org open source project
  4. //
  5. // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
  6. // Licensed under Apache License v2.0 with Runtime Library Exception
  7. //
  8. // See http://swift.org/LICENSE.txt for license information
  9. // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
  10. //
  11. // -----------------------------------------------------------------------------
  12. ///
  13. /// Test Swift reserved words used as enum or message names
  14. ///
  15. // -----------------------------------------------------------------------------
  16. syntax = "proto2";
  17. package protobuf_unittest;
  18. message SwiftReservedTest {
  19. enum Enum {
  20. DOUBLE = 1;
  21. JSON = 2;
  22. CLASS = 3;
  23. _ = 4;
  24. SELF = 5;
  25. TYPE = 6;
  26. }
  27. enum Protocol { a = 1; }
  28. message class {}
  29. message Type {}
  30. message isEqual {}
  31. }