FieldNumbers.swift 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Sources/SwiftProtobufPluginLibrary/FieldNumbers.swift - Proto Field numbers
  2. //
  3. // Copyright (c) 2014 - 2017 Apple Inc. and the project authors
  4. // Licensed under Apache License v2.0 with Runtime Library Exception
  5. //
  6. // See LICENSE.txt for license information:
  7. // https://github.com/apple/swift-protobuf/blob/main/LICENSE.txt
  8. //
  9. // -----------------------------------------------------------------------------
  10. ///
  11. /// Field numbers needed by SwiftProtobufPluginLibrary since they currently aren't generated.
  12. ///
  13. // -----------------------------------------------------------------------------
  14. import Foundation
  15. import SwiftProtobuf
  16. extension Google_Protobuf_FileDescriptorProto {
  17. struct FieldNumbers {
  18. static let messageType: Int = 4
  19. static let enumType: Int = 5
  20. static let service: Int = 6
  21. static let `extension`: Int = 7
  22. }
  23. }
  24. extension Google_Protobuf_DescriptorProto {
  25. struct FieldNumbers {
  26. static let field: Int = 2
  27. static let nestedType: Int = 3
  28. static let enumType: Int = 4
  29. static let `extension`: Int = 6
  30. static let oneofDecl: Int = 8
  31. }
  32. }
  33. extension Google_Protobuf_EnumDescriptorProto {
  34. struct FieldNumbers {
  35. static let value: Int = 2
  36. }
  37. }
  38. extension Google_Protobuf_ServiceDescriptorProto {
  39. struct FieldNumbers {
  40. static let method: Int = 2
  41. }
  42. }