messages.pb.swift 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120
  1. // DO NOT EDIT.
  2. //
  3. // Generated by the Swift generator plugin for the protocol buffer compiler.
  4. // Source: src/proto/grpc/testing/messages.proto
  5. //
  6. // For information on using the generated types, please see the documenation:
  7. // https://github.com/apple/swift-protobuf/
  8. // Copyright 2015-2016 gRPC authors.
  9. //
  10. // Licensed under the Apache License, Version 2.0 (the "License");
  11. // you may not use this file except in compliance with the License.
  12. // You may obtain a copy of the License at
  13. //
  14. // http://www.apache.org/licenses/LICENSE-2.0
  15. //
  16. // Unless required by applicable law or agreed to in writing, software
  17. // distributed under the License is distributed on an "AS IS" BASIS,
  18. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. // See the License for the specific language governing permissions and
  20. // limitations under the License.
  21. // Message definitions to be used by integration test service definitions.
  22. import Foundation
  23. import SwiftProtobuf
  24. // If the compiler emits an error on this type, it is because this file
  25. // was generated by a version of the `protoc` Swift plug-in that is
  26. // incompatible with the version of SwiftProtobuf to which you are linking.
  27. // Please ensure that your are building against the same version of the API
  28. // that was used to generate this file.
  29. fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
  30. struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
  31. typealias Version = _2
  32. }
  33. /// The type of payload that should be returned.
  34. public enum Grpc_Testing_PayloadType: SwiftProtobuf.Enum {
  35. public typealias RawValue = Int
  36. /// Compressable text format.
  37. case compressable // = 0
  38. case UNRECOGNIZED(Int)
  39. public init() {
  40. self = .compressable
  41. }
  42. public init?(rawValue: Int) {
  43. switch rawValue {
  44. case 0: self = .compressable
  45. default: self = .UNRECOGNIZED(rawValue)
  46. }
  47. }
  48. public var rawValue: Int {
  49. switch self {
  50. case .compressable: return 0
  51. case .UNRECOGNIZED(let i): return i
  52. }
  53. }
  54. }
  55. #if swift(>=4.2)
  56. extension Grpc_Testing_PayloadType: CaseIterable {
  57. // The compiler won't synthesize support with the UNRECOGNIZED case.
  58. public static var allCases: [Grpc_Testing_PayloadType] = [
  59. .compressable,
  60. ]
  61. }
  62. #endif // swift(>=4.2)
  63. /// TODO(dgq): Go back to using well-known types once
  64. /// https://github.com/grpc/grpc/issues/6980 has been fixed.
  65. /// import "google/protobuf/wrappers.proto";
  66. public struct Grpc_Testing_BoolValue {
  67. // SwiftProtobuf.Message conformance is added in an extension below. See the
  68. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  69. // methods supported on all messages.
  70. /// The bool value.
  71. public var value: Bool = false
  72. public var unknownFields = SwiftProtobuf.UnknownStorage()
  73. public init() {}
  74. }
  75. /// A block of data, to simply increase gRPC message size.
  76. public struct Grpc_Testing_Payload {
  77. // SwiftProtobuf.Message conformance is added in an extension below. See the
  78. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  79. // methods supported on all messages.
  80. /// The type of data in body.
  81. public var type: Grpc_Testing_PayloadType = .compressable
  82. /// Primary contents of payload.
  83. public var body: Data = SwiftProtobuf.Internal.emptyData
  84. public var unknownFields = SwiftProtobuf.UnknownStorage()
  85. public init() {}
  86. }
  87. /// A protobuf representation for grpc status. This is used by test
  88. /// clients to specify a status that the server should attempt to return.
  89. public struct Grpc_Testing_EchoStatus {
  90. // SwiftProtobuf.Message conformance is added in an extension below. See the
  91. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  92. // methods supported on all messages.
  93. public var code: Int32 = 0
  94. public var message: String = String()
  95. public var unknownFields = SwiftProtobuf.UnknownStorage()
  96. public init() {}
  97. }
  98. /// Unary request.
  99. public struct Grpc_Testing_SimpleRequest {
  100. // SwiftProtobuf.Message conformance is added in an extension below. See the
  101. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  102. // methods supported on all messages.
  103. /// Desired payload type in the response from the server.
  104. /// If response_type is RANDOM, server randomly chooses one from other formats.
  105. public var responseType: Grpc_Testing_PayloadType {
  106. get {return _storage._responseType}
  107. set {_uniqueStorage()._responseType = newValue}
  108. }
  109. /// Desired payload size in the response from the server.
  110. public var responseSize: Int32 {
  111. get {return _storage._responseSize}
  112. set {_uniqueStorage()._responseSize = newValue}
  113. }
  114. /// Optional input payload sent along with the request.
  115. public var payload: Grpc_Testing_Payload {
  116. get {return _storage._payload ?? Grpc_Testing_Payload()}
  117. set {_uniqueStorage()._payload = newValue}
  118. }
  119. /// Returns true if `payload` has been explicitly set.
  120. public var hasPayload: Bool {return _storage._payload != nil}
  121. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  122. public mutating func clearPayload() {_uniqueStorage()._payload = nil}
  123. /// Whether SimpleResponse should include username.
  124. public var fillUsername: Bool {
  125. get {return _storage._fillUsername}
  126. set {_uniqueStorage()._fillUsername = newValue}
  127. }
  128. /// Whether SimpleResponse should include OAuth scope.
  129. public var fillOauthScope: Bool {
  130. get {return _storage._fillOauthScope}
  131. set {_uniqueStorage()._fillOauthScope = newValue}
  132. }
  133. /// Whether to request the server to compress the response. This field is
  134. /// "nullable" in order to interoperate seamlessly with clients not able to
  135. /// implement the full compression tests by introspecting the call to verify
  136. /// the response's compression status.
  137. public var responseCompressed: Grpc_Testing_BoolValue {
  138. get {return _storage._responseCompressed ?? Grpc_Testing_BoolValue()}
  139. set {_uniqueStorage()._responseCompressed = newValue}
  140. }
  141. /// Returns true if `responseCompressed` has been explicitly set.
  142. public var hasResponseCompressed: Bool {return _storage._responseCompressed != nil}
  143. /// Clears the value of `responseCompressed`. Subsequent reads from it will return its default value.
  144. public mutating func clearResponseCompressed() {_uniqueStorage()._responseCompressed = nil}
  145. /// Whether server should return a given status
  146. public var responseStatus: Grpc_Testing_EchoStatus {
  147. get {return _storage._responseStatus ?? Grpc_Testing_EchoStatus()}
  148. set {_uniqueStorage()._responseStatus = newValue}
  149. }
  150. /// Returns true if `responseStatus` has been explicitly set.
  151. public var hasResponseStatus: Bool {return _storage._responseStatus != nil}
  152. /// Clears the value of `responseStatus`. Subsequent reads from it will return its default value.
  153. public mutating func clearResponseStatus() {_uniqueStorage()._responseStatus = nil}
  154. /// Whether the server should expect this request to be compressed.
  155. public var expectCompressed: Grpc_Testing_BoolValue {
  156. get {return _storage._expectCompressed ?? Grpc_Testing_BoolValue()}
  157. set {_uniqueStorage()._expectCompressed = newValue}
  158. }
  159. /// Returns true if `expectCompressed` has been explicitly set.
  160. public var hasExpectCompressed: Bool {return _storage._expectCompressed != nil}
  161. /// Clears the value of `expectCompressed`. Subsequent reads from it will return its default value.
  162. public mutating func clearExpectCompressed() {_uniqueStorage()._expectCompressed = nil}
  163. public var unknownFields = SwiftProtobuf.UnknownStorage()
  164. public init() {}
  165. fileprivate var _storage = _StorageClass.defaultInstance
  166. }
  167. /// Unary response, as configured by the request.
  168. public struct Grpc_Testing_SimpleResponse {
  169. // SwiftProtobuf.Message conformance is added in an extension below. See the
  170. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  171. // methods supported on all messages.
  172. /// Payload to increase message size.
  173. public var payload: Grpc_Testing_Payload {
  174. get {return _storage._payload ?? Grpc_Testing_Payload()}
  175. set {_uniqueStorage()._payload = newValue}
  176. }
  177. /// Returns true if `payload` has been explicitly set.
  178. public var hasPayload: Bool {return _storage._payload != nil}
  179. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  180. public mutating func clearPayload() {_uniqueStorage()._payload = nil}
  181. /// The user the request came from, for verifying authentication was
  182. /// successful when the client expected it.
  183. public var username: String {
  184. get {return _storage._username}
  185. set {_uniqueStorage()._username = newValue}
  186. }
  187. /// OAuth scope.
  188. public var oauthScope: String {
  189. get {return _storage._oauthScope}
  190. set {_uniqueStorage()._oauthScope = newValue}
  191. }
  192. public var unknownFields = SwiftProtobuf.UnknownStorage()
  193. public init() {}
  194. fileprivate var _storage = _StorageClass.defaultInstance
  195. }
  196. /// Client-streaming request.
  197. public struct Grpc_Testing_StreamingInputCallRequest {
  198. // SwiftProtobuf.Message conformance is added in an extension below. See the
  199. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  200. // methods supported on all messages.
  201. /// Optional input payload sent along with the request.
  202. public var payload: Grpc_Testing_Payload {
  203. get {return _storage._payload ?? Grpc_Testing_Payload()}
  204. set {_uniqueStorage()._payload = newValue}
  205. }
  206. /// Returns true if `payload` has been explicitly set.
  207. public var hasPayload: Bool {return _storage._payload != nil}
  208. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  209. public mutating func clearPayload() {_uniqueStorage()._payload = nil}
  210. /// Whether the server should expect this request to be compressed. This field
  211. /// is "nullable" in order to interoperate seamlessly with servers not able to
  212. /// implement the full compression tests by introspecting the call to verify
  213. /// the request's compression status.
  214. public var expectCompressed: Grpc_Testing_BoolValue {
  215. get {return _storage._expectCompressed ?? Grpc_Testing_BoolValue()}
  216. set {_uniqueStorage()._expectCompressed = newValue}
  217. }
  218. /// Returns true if `expectCompressed` has been explicitly set.
  219. public var hasExpectCompressed: Bool {return _storage._expectCompressed != nil}
  220. /// Clears the value of `expectCompressed`. Subsequent reads from it will return its default value.
  221. public mutating func clearExpectCompressed() {_uniqueStorage()._expectCompressed = nil}
  222. public var unknownFields = SwiftProtobuf.UnknownStorage()
  223. public init() {}
  224. fileprivate var _storage = _StorageClass.defaultInstance
  225. }
  226. /// Client-streaming response.
  227. public struct Grpc_Testing_StreamingInputCallResponse {
  228. // SwiftProtobuf.Message conformance is added in an extension below. See the
  229. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  230. // methods supported on all messages.
  231. /// Aggregated size of payloads received from the client.
  232. public var aggregatedPayloadSize: Int32 = 0
  233. public var unknownFields = SwiftProtobuf.UnknownStorage()
  234. public init() {}
  235. }
  236. /// Configuration for a particular response.
  237. public struct Grpc_Testing_ResponseParameters {
  238. // SwiftProtobuf.Message conformance is added in an extension below. See the
  239. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  240. // methods supported on all messages.
  241. /// Desired payload sizes in responses from the server.
  242. public var size: Int32 {
  243. get {return _storage._size}
  244. set {_uniqueStorage()._size = newValue}
  245. }
  246. /// Desired interval between consecutive responses in the response stream in
  247. /// microseconds.
  248. public var intervalUs: Int32 {
  249. get {return _storage._intervalUs}
  250. set {_uniqueStorage()._intervalUs = newValue}
  251. }
  252. /// Whether to request the server to compress the response. This field is
  253. /// "nullable" in order to interoperate seamlessly with clients not able to
  254. /// implement the full compression tests by introspecting the call to verify
  255. /// the response's compression status.
  256. public var compressed: Grpc_Testing_BoolValue {
  257. get {return _storage._compressed ?? Grpc_Testing_BoolValue()}
  258. set {_uniqueStorage()._compressed = newValue}
  259. }
  260. /// Returns true if `compressed` has been explicitly set.
  261. public var hasCompressed: Bool {return _storage._compressed != nil}
  262. /// Clears the value of `compressed`. Subsequent reads from it will return its default value.
  263. public mutating func clearCompressed() {_uniqueStorage()._compressed = nil}
  264. public var unknownFields = SwiftProtobuf.UnknownStorage()
  265. public init() {}
  266. fileprivate var _storage = _StorageClass.defaultInstance
  267. }
  268. /// Server-streaming request.
  269. public struct Grpc_Testing_StreamingOutputCallRequest {
  270. // SwiftProtobuf.Message conformance is added in an extension below. See the
  271. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  272. // methods supported on all messages.
  273. /// Desired payload type in the response from the server.
  274. /// If response_type is RANDOM, the payload from each response in the stream
  275. /// might be of different types. This is to simulate a mixed type of payload
  276. /// stream.
  277. public var responseType: Grpc_Testing_PayloadType {
  278. get {return _storage._responseType}
  279. set {_uniqueStorage()._responseType = newValue}
  280. }
  281. /// Configuration for each expected response message.
  282. public var responseParameters: [Grpc_Testing_ResponseParameters] {
  283. get {return _storage._responseParameters}
  284. set {_uniqueStorage()._responseParameters = newValue}
  285. }
  286. /// Optional input payload sent along with the request.
  287. public var payload: Grpc_Testing_Payload {
  288. get {return _storage._payload ?? Grpc_Testing_Payload()}
  289. set {_uniqueStorage()._payload = newValue}
  290. }
  291. /// Returns true if `payload` has been explicitly set.
  292. public var hasPayload: Bool {return _storage._payload != nil}
  293. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  294. public mutating func clearPayload() {_uniqueStorage()._payload = nil}
  295. /// Whether server should return a given status
  296. public var responseStatus: Grpc_Testing_EchoStatus {
  297. get {return _storage._responseStatus ?? Grpc_Testing_EchoStatus()}
  298. set {_uniqueStorage()._responseStatus = newValue}
  299. }
  300. /// Returns true if `responseStatus` has been explicitly set.
  301. public var hasResponseStatus: Bool {return _storage._responseStatus != nil}
  302. /// Clears the value of `responseStatus`. Subsequent reads from it will return its default value.
  303. public mutating func clearResponseStatus() {_uniqueStorage()._responseStatus = nil}
  304. public var unknownFields = SwiftProtobuf.UnknownStorage()
  305. public init() {}
  306. fileprivate var _storage = _StorageClass.defaultInstance
  307. }
  308. /// Server-streaming response, as configured by the request and parameters.
  309. public struct Grpc_Testing_StreamingOutputCallResponse {
  310. // SwiftProtobuf.Message conformance is added in an extension below. See the
  311. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  312. // methods supported on all messages.
  313. /// Payload to increase response size.
  314. public var payload: Grpc_Testing_Payload {
  315. get {return _storage._payload ?? Grpc_Testing_Payload()}
  316. set {_uniqueStorage()._payload = newValue}
  317. }
  318. /// Returns true if `payload` has been explicitly set.
  319. public var hasPayload: Bool {return _storage._payload != nil}
  320. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  321. public mutating func clearPayload() {_uniqueStorage()._payload = nil}
  322. public var unknownFields = SwiftProtobuf.UnknownStorage()
  323. public init() {}
  324. fileprivate var _storage = _StorageClass.defaultInstance
  325. }
  326. /// For reconnect interop test only.
  327. /// Client tells server what reconnection parameters it used.
  328. public struct Grpc_Testing_ReconnectParams {
  329. // SwiftProtobuf.Message conformance is added in an extension below. See the
  330. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  331. // methods supported on all messages.
  332. public var maxReconnectBackoffMs: Int32 = 0
  333. public var unknownFields = SwiftProtobuf.UnknownStorage()
  334. public init() {}
  335. }
  336. /// For reconnect interop test only.
  337. /// Server tells client whether its reconnects are following the spec and the
  338. /// reconnect backoffs it saw.
  339. public struct Grpc_Testing_ReconnectInfo {
  340. // SwiftProtobuf.Message conformance is added in an extension below. See the
  341. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  342. // methods supported on all messages.
  343. public var passed: Bool = false
  344. public var backoffMs: [Int32] = []
  345. public var unknownFields = SwiftProtobuf.UnknownStorage()
  346. public init() {}
  347. }
  348. // MARK: - Code below here is support for the SwiftProtobuf runtime.
  349. fileprivate let _protobuf_package = "grpc.testing"
  350. extension Grpc_Testing_PayloadType: SwiftProtobuf._ProtoNameProviding {
  351. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  352. 0: .same(proto: "COMPRESSABLE"),
  353. ]
  354. }
  355. extension Grpc_Testing_BoolValue: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  356. public static let protoMessageName: String = _protobuf_package + ".BoolValue"
  357. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  358. 1: .same(proto: "value"),
  359. ]
  360. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  361. while let fieldNumber = try decoder.nextFieldNumber() {
  362. switch fieldNumber {
  363. case 1: try decoder.decodeSingularBoolField(value: &self.value)
  364. default: break
  365. }
  366. }
  367. }
  368. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  369. if self.value != false {
  370. try visitor.visitSingularBoolField(value: self.value, fieldNumber: 1)
  371. }
  372. try unknownFields.traverse(visitor: &visitor)
  373. }
  374. public static func ==(lhs: Grpc_Testing_BoolValue, rhs: Grpc_Testing_BoolValue) -> Bool {
  375. if lhs.value != rhs.value {return false}
  376. if lhs.unknownFields != rhs.unknownFields {return false}
  377. return true
  378. }
  379. }
  380. extension Grpc_Testing_Payload: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  381. public static let protoMessageName: String = _protobuf_package + ".Payload"
  382. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  383. 1: .same(proto: "type"),
  384. 2: .same(proto: "body"),
  385. ]
  386. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  387. while let fieldNumber = try decoder.nextFieldNumber() {
  388. switch fieldNumber {
  389. case 1: try decoder.decodeSingularEnumField(value: &self.type)
  390. case 2: try decoder.decodeSingularBytesField(value: &self.body)
  391. default: break
  392. }
  393. }
  394. }
  395. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  396. if self.type != .compressable {
  397. try visitor.visitSingularEnumField(value: self.type, fieldNumber: 1)
  398. }
  399. if !self.body.isEmpty {
  400. try visitor.visitSingularBytesField(value: self.body, fieldNumber: 2)
  401. }
  402. try unknownFields.traverse(visitor: &visitor)
  403. }
  404. public static func ==(lhs: Grpc_Testing_Payload, rhs: Grpc_Testing_Payload) -> Bool {
  405. if lhs.type != rhs.type {return false}
  406. if lhs.body != rhs.body {return false}
  407. if lhs.unknownFields != rhs.unknownFields {return false}
  408. return true
  409. }
  410. }
  411. extension Grpc_Testing_EchoStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  412. public static let protoMessageName: String = _protobuf_package + ".EchoStatus"
  413. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  414. 1: .same(proto: "code"),
  415. 2: .same(proto: "message"),
  416. ]
  417. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  418. while let fieldNumber = try decoder.nextFieldNumber() {
  419. switch fieldNumber {
  420. case 1: try decoder.decodeSingularInt32Field(value: &self.code)
  421. case 2: try decoder.decodeSingularStringField(value: &self.message)
  422. default: break
  423. }
  424. }
  425. }
  426. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  427. if self.code != 0 {
  428. try visitor.visitSingularInt32Field(value: self.code, fieldNumber: 1)
  429. }
  430. if !self.message.isEmpty {
  431. try visitor.visitSingularStringField(value: self.message, fieldNumber: 2)
  432. }
  433. try unknownFields.traverse(visitor: &visitor)
  434. }
  435. public static func ==(lhs: Grpc_Testing_EchoStatus, rhs: Grpc_Testing_EchoStatus) -> Bool {
  436. if lhs.code != rhs.code {return false}
  437. if lhs.message != rhs.message {return false}
  438. if lhs.unknownFields != rhs.unknownFields {return false}
  439. return true
  440. }
  441. }
  442. extension Grpc_Testing_SimpleRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  443. public static let protoMessageName: String = _protobuf_package + ".SimpleRequest"
  444. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  445. 1: .standard(proto: "response_type"),
  446. 2: .standard(proto: "response_size"),
  447. 3: .same(proto: "payload"),
  448. 4: .standard(proto: "fill_username"),
  449. 5: .standard(proto: "fill_oauth_scope"),
  450. 6: .standard(proto: "response_compressed"),
  451. 7: .standard(proto: "response_status"),
  452. 8: .standard(proto: "expect_compressed"),
  453. ]
  454. fileprivate class _StorageClass {
  455. var _responseType: Grpc_Testing_PayloadType = .compressable
  456. var _responseSize: Int32 = 0
  457. var _payload: Grpc_Testing_Payload? = nil
  458. var _fillUsername: Bool = false
  459. var _fillOauthScope: Bool = false
  460. var _responseCompressed: Grpc_Testing_BoolValue? = nil
  461. var _responseStatus: Grpc_Testing_EchoStatus? = nil
  462. var _expectCompressed: Grpc_Testing_BoolValue? = nil
  463. static let defaultInstance = _StorageClass()
  464. private init() {}
  465. init(copying source: _StorageClass) {
  466. _responseType = source._responseType
  467. _responseSize = source._responseSize
  468. _payload = source._payload
  469. _fillUsername = source._fillUsername
  470. _fillOauthScope = source._fillOauthScope
  471. _responseCompressed = source._responseCompressed
  472. _responseStatus = source._responseStatus
  473. _expectCompressed = source._expectCompressed
  474. }
  475. }
  476. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  477. if !isKnownUniquelyReferenced(&_storage) {
  478. _storage = _StorageClass(copying: _storage)
  479. }
  480. return _storage
  481. }
  482. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  483. _ = _uniqueStorage()
  484. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  485. while let fieldNumber = try decoder.nextFieldNumber() {
  486. switch fieldNumber {
  487. case 1: try decoder.decodeSingularEnumField(value: &_storage._responseType)
  488. case 2: try decoder.decodeSingularInt32Field(value: &_storage._responseSize)
  489. case 3: try decoder.decodeSingularMessageField(value: &_storage._payload)
  490. case 4: try decoder.decodeSingularBoolField(value: &_storage._fillUsername)
  491. case 5: try decoder.decodeSingularBoolField(value: &_storage._fillOauthScope)
  492. case 6: try decoder.decodeSingularMessageField(value: &_storage._responseCompressed)
  493. case 7: try decoder.decodeSingularMessageField(value: &_storage._responseStatus)
  494. case 8: try decoder.decodeSingularMessageField(value: &_storage._expectCompressed)
  495. default: break
  496. }
  497. }
  498. }
  499. }
  500. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  501. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  502. if _storage._responseType != .compressable {
  503. try visitor.visitSingularEnumField(value: _storage._responseType, fieldNumber: 1)
  504. }
  505. if _storage._responseSize != 0 {
  506. try visitor.visitSingularInt32Field(value: _storage._responseSize, fieldNumber: 2)
  507. }
  508. if let v = _storage._payload {
  509. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  510. }
  511. if _storage._fillUsername != false {
  512. try visitor.visitSingularBoolField(value: _storage._fillUsername, fieldNumber: 4)
  513. }
  514. if _storage._fillOauthScope != false {
  515. try visitor.visitSingularBoolField(value: _storage._fillOauthScope, fieldNumber: 5)
  516. }
  517. if let v = _storage._responseCompressed {
  518. try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
  519. }
  520. if let v = _storage._responseStatus {
  521. try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
  522. }
  523. if let v = _storage._expectCompressed {
  524. try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
  525. }
  526. }
  527. try unknownFields.traverse(visitor: &visitor)
  528. }
  529. public static func ==(lhs: Grpc_Testing_SimpleRequest, rhs: Grpc_Testing_SimpleRequest) -> Bool {
  530. if lhs._storage !== rhs._storage {
  531. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  532. let _storage = _args.0
  533. let rhs_storage = _args.1
  534. if _storage._responseType != rhs_storage._responseType {return false}
  535. if _storage._responseSize != rhs_storage._responseSize {return false}
  536. if _storage._payload != rhs_storage._payload {return false}
  537. if _storage._fillUsername != rhs_storage._fillUsername {return false}
  538. if _storage._fillOauthScope != rhs_storage._fillOauthScope {return false}
  539. if _storage._responseCompressed != rhs_storage._responseCompressed {return false}
  540. if _storage._responseStatus != rhs_storage._responseStatus {return false}
  541. if _storage._expectCompressed != rhs_storage._expectCompressed {return false}
  542. return true
  543. }
  544. if !storagesAreEqual {return false}
  545. }
  546. if lhs.unknownFields != rhs.unknownFields {return false}
  547. return true
  548. }
  549. }
  550. extension Grpc_Testing_SimpleResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  551. public static let protoMessageName: String = _protobuf_package + ".SimpleResponse"
  552. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  553. 1: .same(proto: "payload"),
  554. 2: .same(proto: "username"),
  555. 3: .standard(proto: "oauth_scope"),
  556. ]
  557. fileprivate class _StorageClass {
  558. var _payload: Grpc_Testing_Payload? = nil
  559. var _username: String = String()
  560. var _oauthScope: String = String()
  561. static let defaultInstance = _StorageClass()
  562. private init() {}
  563. init(copying source: _StorageClass) {
  564. _payload = source._payload
  565. _username = source._username
  566. _oauthScope = source._oauthScope
  567. }
  568. }
  569. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  570. if !isKnownUniquelyReferenced(&_storage) {
  571. _storage = _StorageClass(copying: _storage)
  572. }
  573. return _storage
  574. }
  575. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  576. _ = _uniqueStorage()
  577. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  578. while let fieldNumber = try decoder.nextFieldNumber() {
  579. switch fieldNumber {
  580. case 1: try decoder.decodeSingularMessageField(value: &_storage._payload)
  581. case 2: try decoder.decodeSingularStringField(value: &_storage._username)
  582. case 3: try decoder.decodeSingularStringField(value: &_storage._oauthScope)
  583. default: break
  584. }
  585. }
  586. }
  587. }
  588. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  589. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  590. if let v = _storage._payload {
  591. try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
  592. }
  593. if !_storage._username.isEmpty {
  594. try visitor.visitSingularStringField(value: _storage._username, fieldNumber: 2)
  595. }
  596. if !_storage._oauthScope.isEmpty {
  597. try visitor.visitSingularStringField(value: _storage._oauthScope, fieldNumber: 3)
  598. }
  599. }
  600. try unknownFields.traverse(visitor: &visitor)
  601. }
  602. public static func ==(lhs: Grpc_Testing_SimpleResponse, rhs: Grpc_Testing_SimpleResponse) -> Bool {
  603. if lhs._storage !== rhs._storage {
  604. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  605. let _storage = _args.0
  606. let rhs_storage = _args.1
  607. if _storage._payload != rhs_storage._payload {return false}
  608. if _storage._username != rhs_storage._username {return false}
  609. if _storage._oauthScope != rhs_storage._oauthScope {return false}
  610. return true
  611. }
  612. if !storagesAreEqual {return false}
  613. }
  614. if lhs.unknownFields != rhs.unknownFields {return false}
  615. return true
  616. }
  617. }
  618. extension Grpc_Testing_StreamingInputCallRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  619. public static let protoMessageName: String = _protobuf_package + ".StreamingInputCallRequest"
  620. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  621. 1: .same(proto: "payload"),
  622. 2: .standard(proto: "expect_compressed"),
  623. ]
  624. fileprivate class _StorageClass {
  625. var _payload: Grpc_Testing_Payload? = nil
  626. var _expectCompressed: Grpc_Testing_BoolValue? = nil
  627. static let defaultInstance = _StorageClass()
  628. private init() {}
  629. init(copying source: _StorageClass) {
  630. _payload = source._payload
  631. _expectCompressed = source._expectCompressed
  632. }
  633. }
  634. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  635. if !isKnownUniquelyReferenced(&_storage) {
  636. _storage = _StorageClass(copying: _storage)
  637. }
  638. return _storage
  639. }
  640. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  641. _ = _uniqueStorage()
  642. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  643. while let fieldNumber = try decoder.nextFieldNumber() {
  644. switch fieldNumber {
  645. case 1: try decoder.decodeSingularMessageField(value: &_storage._payload)
  646. case 2: try decoder.decodeSingularMessageField(value: &_storage._expectCompressed)
  647. default: break
  648. }
  649. }
  650. }
  651. }
  652. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  653. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  654. if let v = _storage._payload {
  655. try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
  656. }
  657. if let v = _storage._expectCompressed {
  658. try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
  659. }
  660. }
  661. try unknownFields.traverse(visitor: &visitor)
  662. }
  663. public static func ==(lhs: Grpc_Testing_StreamingInputCallRequest, rhs: Grpc_Testing_StreamingInputCallRequest) -> Bool {
  664. if lhs._storage !== rhs._storage {
  665. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  666. let _storage = _args.0
  667. let rhs_storage = _args.1
  668. if _storage._payload != rhs_storage._payload {return false}
  669. if _storage._expectCompressed != rhs_storage._expectCompressed {return false}
  670. return true
  671. }
  672. if !storagesAreEqual {return false}
  673. }
  674. if lhs.unknownFields != rhs.unknownFields {return false}
  675. return true
  676. }
  677. }
  678. extension Grpc_Testing_StreamingInputCallResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  679. public static let protoMessageName: String = _protobuf_package + ".StreamingInputCallResponse"
  680. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  681. 1: .standard(proto: "aggregated_payload_size"),
  682. ]
  683. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  684. while let fieldNumber = try decoder.nextFieldNumber() {
  685. switch fieldNumber {
  686. case 1: try decoder.decodeSingularInt32Field(value: &self.aggregatedPayloadSize)
  687. default: break
  688. }
  689. }
  690. }
  691. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  692. if self.aggregatedPayloadSize != 0 {
  693. try visitor.visitSingularInt32Field(value: self.aggregatedPayloadSize, fieldNumber: 1)
  694. }
  695. try unknownFields.traverse(visitor: &visitor)
  696. }
  697. public static func ==(lhs: Grpc_Testing_StreamingInputCallResponse, rhs: Grpc_Testing_StreamingInputCallResponse) -> Bool {
  698. if lhs.aggregatedPayloadSize != rhs.aggregatedPayloadSize {return false}
  699. if lhs.unknownFields != rhs.unknownFields {return false}
  700. return true
  701. }
  702. }
  703. extension Grpc_Testing_ResponseParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  704. public static let protoMessageName: String = _protobuf_package + ".ResponseParameters"
  705. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  706. 1: .same(proto: "size"),
  707. 2: .standard(proto: "interval_us"),
  708. 3: .same(proto: "compressed"),
  709. ]
  710. fileprivate class _StorageClass {
  711. var _size: Int32 = 0
  712. var _intervalUs: Int32 = 0
  713. var _compressed: Grpc_Testing_BoolValue? = nil
  714. static let defaultInstance = _StorageClass()
  715. private init() {}
  716. init(copying source: _StorageClass) {
  717. _size = source._size
  718. _intervalUs = source._intervalUs
  719. _compressed = source._compressed
  720. }
  721. }
  722. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  723. if !isKnownUniquelyReferenced(&_storage) {
  724. _storage = _StorageClass(copying: _storage)
  725. }
  726. return _storage
  727. }
  728. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  729. _ = _uniqueStorage()
  730. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  731. while let fieldNumber = try decoder.nextFieldNumber() {
  732. switch fieldNumber {
  733. case 1: try decoder.decodeSingularInt32Field(value: &_storage._size)
  734. case 2: try decoder.decodeSingularInt32Field(value: &_storage._intervalUs)
  735. case 3: try decoder.decodeSingularMessageField(value: &_storage._compressed)
  736. default: break
  737. }
  738. }
  739. }
  740. }
  741. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  742. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  743. if _storage._size != 0 {
  744. try visitor.visitSingularInt32Field(value: _storage._size, fieldNumber: 1)
  745. }
  746. if _storage._intervalUs != 0 {
  747. try visitor.visitSingularInt32Field(value: _storage._intervalUs, fieldNumber: 2)
  748. }
  749. if let v = _storage._compressed {
  750. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  751. }
  752. }
  753. try unknownFields.traverse(visitor: &visitor)
  754. }
  755. public static func ==(lhs: Grpc_Testing_ResponseParameters, rhs: Grpc_Testing_ResponseParameters) -> Bool {
  756. if lhs._storage !== rhs._storage {
  757. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  758. let _storage = _args.0
  759. let rhs_storage = _args.1
  760. if _storage._size != rhs_storage._size {return false}
  761. if _storage._intervalUs != rhs_storage._intervalUs {return false}
  762. if _storage._compressed != rhs_storage._compressed {return false}
  763. return true
  764. }
  765. if !storagesAreEqual {return false}
  766. }
  767. if lhs.unknownFields != rhs.unknownFields {return false}
  768. return true
  769. }
  770. }
  771. extension Grpc_Testing_StreamingOutputCallRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  772. public static let protoMessageName: String = _protobuf_package + ".StreamingOutputCallRequest"
  773. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  774. 1: .standard(proto: "response_type"),
  775. 2: .standard(proto: "response_parameters"),
  776. 3: .same(proto: "payload"),
  777. 7: .standard(proto: "response_status"),
  778. ]
  779. fileprivate class _StorageClass {
  780. var _responseType: Grpc_Testing_PayloadType = .compressable
  781. var _responseParameters: [Grpc_Testing_ResponseParameters] = []
  782. var _payload: Grpc_Testing_Payload? = nil
  783. var _responseStatus: Grpc_Testing_EchoStatus? = nil
  784. static let defaultInstance = _StorageClass()
  785. private init() {}
  786. init(copying source: _StorageClass) {
  787. _responseType = source._responseType
  788. _responseParameters = source._responseParameters
  789. _payload = source._payload
  790. _responseStatus = source._responseStatus
  791. }
  792. }
  793. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  794. if !isKnownUniquelyReferenced(&_storage) {
  795. _storage = _StorageClass(copying: _storage)
  796. }
  797. return _storage
  798. }
  799. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  800. _ = _uniqueStorage()
  801. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  802. while let fieldNumber = try decoder.nextFieldNumber() {
  803. switch fieldNumber {
  804. case 1: try decoder.decodeSingularEnumField(value: &_storage._responseType)
  805. case 2: try decoder.decodeRepeatedMessageField(value: &_storage._responseParameters)
  806. case 3: try decoder.decodeSingularMessageField(value: &_storage._payload)
  807. case 7: try decoder.decodeSingularMessageField(value: &_storage._responseStatus)
  808. default: break
  809. }
  810. }
  811. }
  812. }
  813. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  814. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  815. if _storage._responseType != .compressable {
  816. try visitor.visitSingularEnumField(value: _storage._responseType, fieldNumber: 1)
  817. }
  818. if !_storage._responseParameters.isEmpty {
  819. try visitor.visitRepeatedMessageField(value: _storage._responseParameters, fieldNumber: 2)
  820. }
  821. if let v = _storage._payload {
  822. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  823. }
  824. if let v = _storage._responseStatus {
  825. try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
  826. }
  827. }
  828. try unknownFields.traverse(visitor: &visitor)
  829. }
  830. public static func ==(lhs: Grpc_Testing_StreamingOutputCallRequest, rhs: Grpc_Testing_StreamingOutputCallRequest) -> Bool {
  831. if lhs._storage !== rhs._storage {
  832. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  833. let _storage = _args.0
  834. let rhs_storage = _args.1
  835. if _storage._responseType != rhs_storage._responseType {return false}
  836. if _storage._responseParameters != rhs_storage._responseParameters {return false}
  837. if _storage._payload != rhs_storage._payload {return false}
  838. if _storage._responseStatus != rhs_storage._responseStatus {return false}
  839. return true
  840. }
  841. if !storagesAreEqual {return false}
  842. }
  843. if lhs.unknownFields != rhs.unknownFields {return false}
  844. return true
  845. }
  846. }
  847. extension Grpc_Testing_StreamingOutputCallResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  848. public static let protoMessageName: String = _protobuf_package + ".StreamingOutputCallResponse"
  849. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  850. 1: .same(proto: "payload"),
  851. ]
  852. fileprivate class _StorageClass {
  853. var _payload: Grpc_Testing_Payload? = nil
  854. static let defaultInstance = _StorageClass()
  855. private init() {}
  856. init(copying source: _StorageClass) {
  857. _payload = source._payload
  858. }
  859. }
  860. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  861. if !isKnownUniquelyReferenced(&_storage) {
  862. _storage = _StorageClass(copying: _storage)
  863. }
  864. return _storage
  865. }
  866. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  867. _ = _uniqueStorage()
  868. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  869. while let fieldNumber = try decoder.nextFieldNumber() {
  870. switch fieldNumber {
  871. case 1: try decoder.decodeSingularMessageField(value: &_storage._payload)
  872. default: break
  873. }
  874. }
  875. }
  876. }
  877. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  878. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  879. if let v = _storage._payload {
  880. try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
  881. }
  882. }
  883. try unknownFields.traverse(visitor: &visitor)
  884. }
  885. public static func ==(lhs: Grpc_Testing_StreamingOutputCallResponse, rhs: Grpc_Testing_StreamingOutputCallResponse) -> Bool {
  886. if lhs._storage !== rhs._storage {
  887. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  888. let _storage = _args.0
  889. let rhs_storage = _args.1
  890. if _storage._payload != rhs_storage._payload {return false}
  891. return true
  892. }
  893. if !storagesAreEqual {return false}
  894. }
  895. if lhs.unknownFields != rhs.unknownFields {return false}
  896. return true
  897. }
  898. }
  899. extension Grpc_Testing_ReconnectParams: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  900. public static let protoMessageName: String = _protobuf_package + ".ReconnectParams"
  901. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  902. 1: .standard(proto: "max_reconnect_backoff_ms"),
  903. ]
  904. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  905. while let fieldNumber = try decoder.nextFieldNumber() {
  906. switch fieldNumber {
  907. case 1: try decoder.decodeSingularInt32Field(value: &self.maxReconnectBackoffMs)
  908. default: break
  909. }
  910. }
  911. }
  912. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  913. if self.maxReconnectBackoffMs != 0 {
  914. try visitor.visitSingularInt32Field(value: self.maxReconnectBackoffMs, fieldNumber: 1)
  915. }
  916. try unknownFields.traverse(visitor: &visitor)
  917. }
  918. public static func ==(lhs: Grpc_Testing_ReconnectParams, rhs: Grpc_Testing_ReconnectParams) -> Bool {
  919. if lhs.maxReconnectBackoffMs != rhs.maxReconnectBackoffMs {return false}
  920. if lhs.unknownFields != rhs.unknownFields {return false}
  921. return true
  922. }
  923. }
  924. extension Grpc_Testing_ReconnectInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  925. public static let protoMessageName: String = _protobuf_package + ".ReconnectInfo"
  926. public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  927. 1: .same(proto: "passed"),
  928. 2: .standard(proto: "backoff_ms"),
  929. ]
  930. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  931. while let fieldNumber = try decoder.nextFieldNumber() {
  932. switch fieldNumber {
  933. case 1: try decoder.decodeSingularBoolField(value: &self.passed)
  934. case 2: try decoder.decodeRepeatedInt32Field(value: &self.backoffMs)
  935. default: break
  936. }
  937. }
  938. }
  939. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  940. if self.passed != false {
  941. try visitor.visitSingularBoolField(value: self.passed, fieldNumber: 1)
  942. }
  943. if !self.backoffMs.isEmpty {
  944. try visitor.visitPackedInt32Field(value: self.backoffMs, fieldNumber: 2)
  945. }
  946. try unknownFields.traverse(visitor: &visitor)
  947. }
  948. public static func ==(lhs: Grpc_Testing_ReconnectInfo, rhs: Grpc_Testing_ReconnectInfo) -> Bool {
  949. if lhs.passed != rhs.passed {return false}
  950. if lhs.backoffMs != rhs.backoffMs {return false}
  951. if lhs.unknownFields != rhs.unknownFields {return false}
  952. return true
  953. }
  954. }