pluginlib_descriptor_delimited.proto 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Protos/pluginlib_descriptor_test.proto - test proto
  2. //
  3. // This source file is part of the Swift.org open source project
  4. //
  5. // Copyright (c) 2014 - 2024 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 proto for Tests/SwiftProtobufPluginLibraryTests/Test_Descriptor.swift
  14. ///
  15. // -----------------------------------------------------------------------------
  16. edition = "2023";
  17. package swift_descriptor_test;
  18. option features.message_encoding = DELIMITED;
  19. message EditionsMessageForDelimited {
  20. int32 scalar_field = 1;
  21. map<int32, string> map_field = 2;
  22. map<int32, EditionsMessageForDelimited> message_map_field = 3;
  23. EditionsMessageForDelimited delimited_field = 4;
  24. EditionsMessageForDelimited length_prefixed_field = 5 [
  25. features.message_encoding = LENGTH_PREFIXED
  26. ];
  27. }