FirebaseSDKs.pb.swift 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. /*
  2. * Copyright 2019 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // DO NOT EDIT.
  17. //
  18. // Generated by the Swift generator plugin for the protocol buffer compiler.
  19. // Source: FirebaseSDKs.proto
  20. //
  21. // For information on using the generated types, please see the documentation:
  22. // https://github.com/apple/swift-protobuf/
  23. import Foundation
  24. import SwiftProtobuf
  25. // If the compiler emits an error on this type, it is because this file
  26. // was generated by a version of the `protoc` Swift plug-in that is
  27. // incompatible with the version of SwiftProtobuf to which you are linking.
  28. // Please ensure that your are building against the same version of the API
  29. // that was used to generate this file.
  30. fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
  31. struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
  32. typealias Version = _2
  33. }
  34. public struct ZipBuilder_FirebaseSDKs {
  35. // SwiftProtobuf.Message conformance is added in an extension below. See the
  36. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  37. // methods supported on all messages.
  38. public var sdk: [ZipBuilder_SDK] = []
  39. public var unknownFields = SwiftProtobuf.UnknownStorage()
  40. public init() {}
  41. }
  42. public struct ZipBuilder_SDK {
  43. // SwiftProtobuf.Message conformance is added in an extension below. See the
  44. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  45. // methods supported on all messages.
  46. /// SDK name.
  47. public var name: String {
  48. get {return _storage._name}
  49. set {_uniqueStorage()._name = newValue}
  50. }
  51. /// MPM name for the blueprint.
  52. var mpmName: String {
  53. get {return _storage._mpmName}
  54. set {_uniqueStorage()._mpmName = newValue}
  55. }
  56. /// Public version.
  57. public var publicVersion: String {
  58. get {return _storage._publicVersion}
  59. set {_uniqueStorage()._publicVersion = newValue}
  60. }
  61. /// List of MPM patterns to build.
  62. var mpmPattern: [String] {
  63. get {return _storage._mpmPattern}
  64. set {_uniqueStorage()._mpmPattern = newValue}
  65. }
  66. /// An optional list of additional blaze flags.
  67. var blazeFlags: ZipBuilder_BlazeFlag {
  68. get {return _storage._blazeFlags ?? ZipBuilder_BlazeFlag()}
  69. set {_uniqueStorage()._blazeFlags = newValue}
  70. }
  71. /// Returns true if `blazeFlags` has been explicitly set.
  72. var hasBlazeFlags: Bool {return _storage._blazeFlags != nil}
  73. /// Clears the value of `blazeFlags`. Subsequent reads from it will return its default value.
  74. mutating func clearBlazeFlags() {_uniqueStorage()._blazeFlags = nil}
  75. /// List of MPM patterns to build (optional nightly override).
  76. var nightlyMpmPattern: [String] {
  77. get {return _storage._nightlyMpmPattern}
  78. set {_uniqueStorage()._nightlyMpmPattern = newValue}
  79. }
  80. /// Whether or not the SDK is built from open-source.
  81. var openSource: Bool {
  82. get {return _storage._openSource}
  83. set {_uniqueStorage()._openSource = newValue}
  84. }
  85. /// Whether or not to strip the i386 architecture from the build.
  86. var stripI386: Bool {
  87. get {return _storage._stripI386}
  88. set {_uniqueStorage()._stripI386 = newValue}
  89. }
  90. /// List of build targets to build the SDK - used for collecting licenses.
  91. var buildTarget: [String] {
  92. get {return _storage._buildTarget}
  93. set {_uniqueStorage()._buildTarget = newValue}
  94. }
  95. /// Whether or not to strip both the i386 and armv7 architectures from the
  96. /// build.
  97. var strip32Bits: Bool {
  98. get {return _storage._strip32Bits}
  99. set {_uniqueStorage()._strip32Bits = newValue}
  100. }
  101. /// Specifies if the provided pod should be fetched from public repo.
  102. /// Mainly use for clash testing.
  103. var publicPod: Bool {
  104. get {return _storage._publicPod}
  105. set {_uniqueStorage()._publicPod = newValue}
  106. }
  107. /// Whether or not to use the builtin flags.
  108. var noBuiltinFlags: Bool {
  109. get {return _storage._noBuiltinFlags}
  110. set {_uniqueStorage()._noBuiltinFlags = newValue}
  111. }
  112. /// Whether or not to build arm64e slice.
  113. var buildArm64E: Bool {
  114. get {return _storage._buildArm64E}
  115. set {_uniqueStorage()._buildArm64E = newValue}
  116. }
  117. public var unknownFields = SwiftProtobuf.UnknownStorage()
  118. public init() {}
  119. fileprivate var _storage = _StorageClass.defaultInstance
  120. }
  121. struct ZipBuilder_BlazeFlag {
  122. // SwiftProtobuf.Message conformance is added in an extension below. See the
  123. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  124. // methods supported on all messages.
  125. /// An additional blaze flag needed to build the SDK
  126. var flag: [String] = []
  127. var unknownFields = SwiftProtobuf.UnknownStorage()
  128. init() {}
  129. }
  130. // MARK: - Code below here is support for the SwiftProtobuf runtime.
  131. fileprivate let _protobuf_package = "ZipBuilder"
  132. extension ZipBuilder_FirebaseSDKs: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  133. public static let protoMessageName: String = _protobuf_package + ".FirebaseSDKs"
  134. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  135. 1: .same(proto: "sdk"),
  136. ]
  137. mutating public func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  138. while let fieldNumber = try decoder.nextFieldNumber() {
  139. switch fieldNumber {
  140. case 1: try decoder.decodeRepeatedMessageField(value: &self.sdk)
  141. default: break
  142. }
  143. }
  144. }
  145. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  146. if !self.sdk.isEmpty {
  147. try visitor.visitRepeatedMessageField(value: self.sdk, fieldNumber: 1)
  148. }
  149. try unknownFields.traverse(visitor: &visitor)
  150. }
  151. public static func ==(lhs: ZipBuilder_FirebaseSDKs, rhs: ZipBuilder_FirebaseSDKs) -> Bool {
  152. if lhs.sdk != rhs.sdk {return false}
  153. if lhs.unknownFields != rhs.unknownFields {return false}
  154. return true
  155. }
  156. }
  157. extension ZipBuilder_SDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  158. public static let protoMessageName: String = _protobuf_package + ".SDK"
  159. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  160. 1: .same(proto: "name"),
  161. 2: .standard(proto: "mpm_name"),
  162. 3: .standard(proto: "public_version"),
  163. 4: .standard(proto: "mpm_pattern"),
  164. 5: .standard(proto: "blaze_flags"),
  165. 6: .standard(proto: "nightly_mpm_pattern"),
  166. 7: .standard(proto: "open_source"),
  167. 8: .standard(proto: "strip_i386"),
  168. 9: .standard(proto: "build_target"),
  169. 10: .standard(proto: "strip_32bits"),
  170. 11: .standard(proto: "public_pod"),
  171. 12: .standard(proto: "no_builtin_flags"),
  172. 13: .standard(proto: "build_arm64e"),
  173. ]
  174. fileprivate class _StorageClass {
  175. var _name: String = String()
  176. var _mpmName: String = String()
  177. var _publicVersion: String = String()
  178. var _mpmPattern: [String] = []
  179. var _blazeFlags: ZipBuilder_BlazeFlag? = nil
  180. var _nightlyMpmPattern: [String] = []
  181. var _openSource: Bool = false
  182. var _stripI386: Bool = false
  183. var _buildTarget: [String] = []
  184. var _strip32Bits: Bool = false
  185. var _publicPod: Bool = false
  186. var _noBuiltinFlags: Bool = false
  187. var _buildArm64E: Bool = false
  188. static let defaultInstance = _StorageClass()
  189. private init() {}
  190. init(copying source: _StorageClass) {
  191. _name = source._name
  192. _mpmName = source._mpmName
  193. _publicVersion = source._publicVersion
  194. _mpmPattern = source._mpmPattern
  195. _blazeFlags = source._blazeFlags
  196. _nightlyMpmPattern = source._nightlyMpmPattern
  197. _openSource = source._openSource
  198. _stripI386 = source._stripI386
  199. _buildTarget = source._buildTarget
  200. _strip32Bits = source._strip32Bits
  201. _publicPod = source._publicPod
  202. _noBuiltinFlags = source._noBuiltinFlags
  203. _buildArm64E = source._buildArm64E
  204. }
  205. }
  206. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  207. if !isKnownUniquelyReferenced(&_storage) {
  208. _storage = _StorageClass(copying: _storage)
  209. }
  210. return _storage
  211. }
  212. mutating public func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  213. _ = _uniqueStorage()
  214. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  215. while let fieldNumber = try decoder.nextFieldNumber() {
  216. switch fieldNumber {
  217. case 1: try decoder.decodeSingularStringField(value: &_storage._name)
  218. case 2: try decoder.decodeSingularStringField(value: &_storage._mpmName)
  219. case 3: try decoder.decodeSingularStringField(value: &_storage._publicVersion)
  220. case 4: try decoder.decodeRepeatedStringField(value: &_storage._mpmPattern)
  221. case 5: try decoder.decodeSingularMessageField(value: &_storage._blazeFlags)
  222. case 6: try decoder.decodeRepeatedStringField(value: &_storage._nightlyMpmPattern)
  223. case 7: try decoder.decodeSingularBoolField(value: &_storage._openSource)
  224. case 8: try decoder.decodeSingularBoolField(value: &_storage._stripI386)
  225. case 9: try decoder.decodeRepeatedStringField(value: &_storage._buildTarget)
  226. case 10: try decoder.decodeSingularBoolField(value: &_storage._strip32Bits)
  227. case 11: try decoder.decodeSingularBoolField(value: &_storage._publicPod)
  228. case 12: try decoder.decodeSingularBoolField(value: &_storage._noBuiltinFlags)
  229. case 13: try decoder.decodeSingularBoolField(value: &_storage._buildArm64E)
  230. default: break
  231. }
  232. }
  233. }
  234. }
  235. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  236. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  237. if !_storage._name.isEmpty {
  238. try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
  239. }
  240. if !_storage._mpmName.isEmpty {
  241. try visitor.visitSingularStringField(value: _storage._mpmName, fieldNumber: 2)
  242. }
  243. if !_storage._publicVersion.isEmpty {
  244. try visitor.visitSingularStringField(value: _storage._publicVersion, fieldNumber: 3)
  245. }
  246. if !_storage._mpmPattern.isEmpty {
  247. try visitor.visitRepeatedStringField(value: _storage._mpmPattern, fieldNumber: 4)
  248. }
  249. if let v = _storage._blazeFlags {
  250. try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
  251. }
  252. if !_storage._nightlyMpmPattern.isEmpty {
  253. try visitor.visitRepeatedStringField(value: _storage._nightlyMpmPattern, fieldNumber: 6)
  254. }
  255. if _storage._openSource != false {
  256. try visitor.visitSingularBoolField(value: _storage._openSource, fieldNumber: 7)
  257. }
  258. if _storage._stripI386 != false {
  259. try visitor.visitSingularBoolField(value: _storage._stripI386, fieldNumber: 8)
  260. }
  261. if !_storage._buildTarget.isEmpty {
  262. try visitor.visitRepeatedStringField(value: _storage._buildTarget, fieldNumber: 9)
  263. }
  264. if _storage._strip32Bits != false {
  265. try visitor.visitSingularBoolField(value: _storage._strip32Bits, fieldNumber: 10)
  266. }
  267. if _storage._publicPod != false {
  268. try visitor.visitSingularBoolField(value: _storage._publicPod, fieldNumber: 11)
  269. }
  270. if _storage._noBuiltinFlags != false {
  271. try visitor.visitSingularBoolField(value: _storage._noBuiltinFlags, fieldNumber: 12)
  272. }
  273. if _storage._buildArm64E != false {
  274. try visitor.visitSingularBoolField(value: _storage._buildArm64E, fieldNumber: 13)
  275. }
  276. }
  277. try unknownFields.traverse(visitor: &visitor)
  278. }
  279. public static func ==(lhs: ZipBuilder_SDK, rhs: ZipBuilder_SDK) -> Bool {
  280. if lhs._storage !== rhs._storage {
  281. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  282. let _storage = _args.0
  283. let rhs_storage = _args.1
  284. if _storage._name != rhs_storage._name {return false}
  285. if _storage._mpmName != rhs_storage._mpmName {return false}
  286. if _storage._publicVersion != rhs_storage._publicVersion {return false}
  287. if _storage._mpmPattern != rhs_storage._mpmPattern {return false}
  288. if _storage._blazeFlags != rhs_storage._blazeFlags {return false}
  289. if _storage._nightlyMpmPattern != rhs_storage._nightlyMpmPattern {return false}
  290. if _storage._openSource != rhs_storage._openSource {return false}
  291. if _storage._stripI386 != rhs_storage._stripI386 {return false}
  292. if _storage._buildTarget != rhs_storage._buildTarget {return false}
  293. if _storage._strip32Bits != rhs_storage._strip32Bits {return false}
  294. if _storage._publicPod != rhs_storage._publicPod {return false}
  295. if _storage._noBuiltinFlags != rhs_storage._noBuiltinFlags {return false}
  296. if _storage._buildArm64E != rhs_storage._buildArm64E {return false}
  297. return true
  298. }
  299. if !storagesAreEqual {return false}
  300. }
  301. if lhs.unknownFields != rhs.unknownFields {return false}
  302. return true
  303. }
  304. }
  305. extension ZipBuilder_BlazeFlag: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  306. static let protoMessageName: String = _protobuf_package + ".BlazeFlag"
  307. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  308. 1: .same(proto: "flag"),
  309. ]
  310. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  311. while let fieldNumber = try decoder.nextFieldNumber() {
  312. switch fieldNumber {
  313. case 1: try decoder.decodeRepeatedStringField(value: &self.flag)
  314. default: break
  315. }
  316. }
  317. }
  318. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  319. if !self.flag.isEmpty {
  320. try visitor.visitRepeatedStringField(value: self.flag, fieldNumber: 1)
  321. }
  322. try unknownFields.traverse(visitor: &visitor)
  323. }
  324. static func ==(lhs: ZipBuilder_BlazeFlag, rhs: ZipBuilder_BlazeFlag) -> Bool {
  325. if lhs.flag != rhs.flag {return false}
  326. if lhs.unknownFields != rhs.unknownFields {return false}
  327. return true
  328. }
  329. }