Release.pb.swift 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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: Release.proto
  20. //
  21. // For information on using the generated types, please see the documenation:
  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_Release {
  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. /// Targeted release date
  39. public var targetDate: String = String()
  40. /// Release name (e.g. M15 - Beryllium)
  41. public var name: String = String()
  42. /// Release code (e.g. M15)
  43. public var code: String = String()
  44. /// Whether or not the release went out
  45. public var released: Bool = false
  46. /// List of SDKs that are part of the release
  47. public var sdk: [ZipBuilder_ReleasingSDK] = []
  48. public var unknownFields = SwiftProtobuf.UnknownStorage()
  49. public init() {}
  50. }
  51. public struct ZipBuilder_ReleasingSDK {
  52. // SwiftProtobuf.Message conformance is added in an extension below. See the
  53. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  54. // methods supported on all messages.
  55. /// SDK name as from all_firebase_ios_sdks.textproto
  56. public var sdkName: String = String()
  57. /// The version of SDK to release
  58. public var sdkVersion: String = String()
  59. /// Whether or not a launchal is required for this release
  60. public var launchcalRequired: Bool = false
  61. /// Ariane link
  62. public var launchcalLink: String = String()
  63. /// An link to the change log
  64. public var changelogLink: String = String()
  65. /// A link to the release hotlist
  66. public var hotlistLink: String = String()
  67. public var unknownFields = SwiftProtobuf.UnknownStorage()
  68. public init() {}
  69. }
  70. // MARK: - Code below here is support for the SwiftProtobuf runtime.
  71. fileprivate let _protobuf_package = "ZipBuilder"
  72. extension ZipBuilder_Release: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  73. public static let protoMessageName: String = _protobuf_package + ".Release"
  74. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  75. 1: .standard(proto: "target_date"),
  76. 2: .same(proto: "name"),
  77. 3: .same(proto: "code"),
  78. 4: .same(proto: "released"),
  79. 5: .same(proto: "sdk"),
  80. ]
  81. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  82. while let fieldNumber = try decoder.nextFieldNumber() {
  83. switch fieldNumber {
  84. case 1: try decoder.decodeSingularStringField(value: &self.targetDate)
  85. case 2: try decoder.decodeSingularStringField(value: &self.name)
  86. case 3: try decoder.decodeSingularStringField(value: &self.code)
  87. case 4: try decoder.decodeSingularBoolField(value: &self.released)
  88. case 5: try decoder.decodeRepeatedMessageField(value: &self.sdk)
  89. default: break
  90. }
  91. }
  92. }
  93. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  94. if !self.targetDate.isEmpty {
  95. try visitor.visitSingularStringField(value: self.targetDate, fieldNumber: 1)
  96. }
  97. if !self.name.isEmpty {
  98. try visitor.visitSingularStringField(value: self.name, fieldNumber: 2)
  99. }
  100. if !self.code.isEmpty {
  101. try visitor.visitSingularStringField(value: self.code, fieldNumber: 3)
  102. }
  103. if self.released != false {
  104. try visitor.visitSingularBoolField(value: self.released, fieldNumber: 4)
  105. }
  106. if !self.sdk.isEmpty {
  107. try visitor.visitRepeatedMessageField(value: self.sdk, fieldNumber: 5)
  108. }
  109. try unknownFields.traverse(visitor: &visitor)
  110. }
  111. public static func ==(lhs: ZipBuilder_Release, rhs: ZipBuilder_Release) -> Bool {
  112. if lhs.targetDate != rhs.targetDate {return false}
  113. if lhs.name != rhs.name {return false}
  114. if lhs.code != rhs.code {return false}
  115. if lhs.released != rhs.released {return false}
  116. if lhs.sdk != rhs.sdk {return false}
  117. if lhs.unknownFields != rhs.unknownFields {return false}
  118. return true
  119. }
  120. }
  121. extension ZipBuilder_ReleasingSDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  122. public static let protoMessageName: String = _protobuf_package + ".ReleasingSDK"
  123. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  124. 1: .standard(proto: "sdk_name"),
  125. 2: .standard(proto: "sdk_version"),
  126. 3: .standard(proto: "launchcal_required"),
  127. 4: .standard(proto: "launchcal_link"),
  128. 5: .standard(proto: "changelog_link"),
  129. 6: .standard(proto: "hotlist_link"),
  130. ]
  131. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  132. while let fieldNumber = try decoder.nextFieldNumber() {
  133. switch fieldNumber {
  134. case 1: try decoder.decodeSingularStringField(value: &self.sdkName)
  135. case 2: try decoder.decodeSingularStringField(value: &self.sdkVersion)
  136. case 3: try decoder.decodeSingularBoolField(value: &self.launchcalRequired)
  137. case 4: try decoder.decodeSingularStringField(value: &self.launchcalLink)
  138. case 5: try decoder.decodeSingularStringField(value: &self.changelogLink)
  139. case 6: try decoder.decodeSingularStringField(value: &self.hotlistLink)
  140. default: break
  141. }
  142. }
  143. }
  144. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  145. if !self.sdkName.isEmpty {
  146. try visitor.visitSingularStringField(value: self.sdkName, fieldNumber: 1)
  147. }
  148. if !self.sdkVersion.isEmpty {
  149. try visitor.visitSingularStringField(value: self.sdkVersion, fieldNumber: 2)
  150. }
  151. if self.launchcalRequired != false {
  152. try visitor.visitSingularBoolField(value: self.launchcalRequired, fieldNumber: 3)
  153. }
  154. if !self.launchcalLink.isEmpty {
  155. try visitor.visitSingularStringField(value: self.launchcalLink, fieldNumber: 4)
  156. }
  157. if !self.changelogLink.isEmpty {
  158. try visitor.visitSingularStringField(value: self.changelogLink, fieldNumber: 5)
  159. }
  160. if !self.hotlistLink.isEmpty {
  161. try visitor.visitSingularStringField(value: self.hotlistLink, fieldNumber: 6)
  162. }
  163. try unknownFields.traverse(visitor: &visitor)
  164. }
  165. public static func ==(lhs: ZipBuilder_ReleasingSDK, rhs: ZipBuilder_ReleasingSDK) -> Bool {
  166. if lhs.sdkName != rhs.sdkName {return false}
  167. if lhs.sdkVersion != rhs.sdkVersion {return false}
  168. if lhs.launchcalRequired != rhs.launchcalRequired {return false}
  169. if lhs.launchcalLink != rhs.launchcalLink {return false}
  170. if lhs.changelogLink != rhs.changelogLink {return false}
  171. if lhs.hotlistLink != rhs.hotlistLink {return false}
  172. if lhs.unknownFields != rhs.unknownFields {return false}
  173. return true
  174. }
  175. }