2
0

grpc_testing_messages.pb.swift 87 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140
  1. // DO NOT EDIT.
  2. // swift-format-ignore-file
  3. // swiftlint:disable all
  4. //
  5. // Generated by the Swift generator plugin for the protocol buffer compiler.
  6. // Source: grpc/testing/messages.proto
  7. //
  8. // For information on using the generated types, please see the documentation:
  9. // https://github.com/apple/swift-protobuf/
  10. // Copyright 2015-2016 gRPC authors.
  11. //
  12. // Licensed under the Apache License, Version 2.0 (the "License");
  13. // you may not use this file except in compliance with the License.
  14. // You may obtain a copy of the License at
  15. //
  16. // http://www.apache.org/licenses/LICENSE-2.0
  17. //
  18. // Unless required by applicable law or agreed to in writing, software
  19. // distributed under the License is distributed on an "AS IS" BASIS,
  20. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. // See the License for the specific language governing permissions and
  22. // limitations under the License.
  23. // Message definitions to be used by integration test service definitions.
  24. import Foundation
  25. import SwiftProtobuf
  26. // If the compiler emits an error on this type, it is because this file
  27. // was generated by a version of the `protoc` Swift plug-in that is
  28. // incompatible with the version of SwiftProtobuf to which you are linking.
  29. // Please ensure that you are building against the same version of the API
  30. // that was used to generate this file.
  31. fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
  32. struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
  33. typealias Version = _2
  34. }
  35. /// The type of payload that should be returned.
  36. enum Grpc_Testing_PayloadType: SwiftProtobuf.Enum, Swift.CaseIterable {
  37. typealias RawValue = Int
  38. /// Compressable text format.
  39. case compressable // = 0
  40. case UNRECOGNIZED(Int)
  41. init() {
  42. self = .compressable
  43. }
  44. init?(rawValue: Int) {
  45. switch rawValue {
  46. case 0: self = .compressable
  47. default: self = .UNRECOGNIZED(rawValue)
  48. }
  49. }
  50. var rawValue: Int {
  51. switch self {
  52. case .compressable: return 0
  53. case .UNRECOGNIZED(let i): return i
  54. }
  55. }
  56. // The compiler won't synthesize support with the UNRECOGNIZED case.
  57. static let allCases: [Grpc_Testing_PayloadType] = [
  58. .compressable,
  59. ]
  60. }
  61. /// The type of route that a client took to reach a server w.r.t. gRPCLB.
  62. /// The server must fill in "fallback" if it detects that the RPC reached
  63. /// the server via the "gRPCLB fallback" path, and "backend" if it detects
  64. /// that the RPC reached the server via "gRPCLB backend" path (i.e. if it got
  65. /// the address of this server from the gRPCLB server BalanceLoad RPC). Exactly
  66. /// how this detection is done is context and server dependent.
  67. enum Grpc_Testing_GrpclbRouteType: SwiftProtobuf.Enum, Swift.CaseIterable {
  68. typealias RawValue = Int
  69. /// Server didn't detect the route that a client took to reach it.
  70. case unknown // = 0
  71. /// Indicates that a client reached a server via gRPCLB fallback.
  72. case fallback // = 1
  73. /// Indicates that a client reached a server as a gRPCLB-given backend.
  74. case backend // = 2
  75. case UNRECOGNIZED(Int)
  76. init() {
  77. self = .unknown
  78. }
  79. init?(rawValue: Int) {
  80. switch rawValue {
  81. case 0: self = .unknown
  82. case 1: self = .fallback
  83. case 2: self = .backend
  84. default: self = .UNRECOGNIZED(rawValue)
  85. }
  86. }
  87. var rawValue: Int {
  88. switch self {
  89. case .unknown: return 0
  90. case .fallback: return 1
  91. case .backend: return 2
  92. case .UNRECOGNIZED(let i): return i
  93. }
  94. }
  95. // The compiler won't synthesize support with the UNRECOGNIZED case.
  96. static let allCases: [Grpc_Testing_GrpclbRouteType] = [
  97. .unknown,
  98. .fallback,
  99. .backend,
  100. ]
  101. }
  102. /// TODO(dgq): Go back to using well-known types once
  103. /// https://github.com/grpc/grpc/issues/6980 has been fixed.
  104. /// import "google/protobuf/wrappers.proto";
  105. struct Grpc_Testing_BoolValue: Sendable {
  106. // SwiftProtobuf.Message conformance is added in an extension below. See the
  107. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  108. // methods supported on all messages.
  109. /// The bool value.
  110. var value: Bool = false
  111. var unknownFields = SwiftProtobuf.UnknownStorage()
  112. init() {}
  113. }
  114. /// A block of data, to simply increase gRPC message size.
  115. struct Grpc_Testing_Payload: @unchecked Sendable {
  116. // SwiftProtobuf.Message conformance is added in an extension below. See the
  117. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  118. // methods supported on all messages.
  119. /// The type of data in body.
  120. var type: Grpc_Testing_PayloadType = .compressable
  121. /// Primary contents of payload.
  122. var body: Data = Data()
  123. var unknownFields = SwiftProtobuf.UnknownStorage()
  124. init() {}
  125. }
  126. /// A protobuf representation for grpc status. This is used by test
  127. /// clients to specify a status that the server should attempt to return.
  128. struct Grpc_Testing_EchoStatus: Sendable {
  129. // SwiftProtobuf.Message conformance is added in an extension below. See the
  130. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  131. // methods supported on all messages.
  132. var code: Int32 = 0
  133. var message: String = String()
  134. var unknownFields = SwiftProtobuf.UnknownStorage()
  135. init() {}
  136. }
  137. /// Unary request.
  138. struct Grpc_Testing_SimpleRequest: Sendable {
  139. // SwiftProtobuf.Message conformance is added in an extension below. See the
  140. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  141. // methods supported on all messages.
  142. /// Desired payload type in the response from the server.
  143. /// If response_type is RANDOM, server randomly chooses one from other formats.
  144. var responseType: Grpc_Testing_PayloadType = .compressable
  145. /// Desired payload size in the response from the server.
  146. var responseSize: Int32 = 0
  147. /// Optional input payload sent along with the request.
  148. var payload: Grpc_Testing_Payload {
  149. get {return _payload ?? Grpc_Testing_Payload()}
  150. set {_payload = newValue}
  151. }
  152. /// Returns true if `payload` has been explicitly set.
  153. var hasPayload: Bool {return self._payload != nil}
  154. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  155. mutating func clearPayload() {self._payload = nil}
  156. /// Whether SimpleResponse should include username.
  157. var fillUsername: Bool = false
  158. /// Whether SimpleResponse should include OAuth scope.
  159. var fillOauthScope: Bool = false
  160. /// Whether to request the server to compress the response. This field is
  161. /// "nullable" in order to interoperate seamlessly with clients not able to
  162. /// implement the full compression tests by introspecting the call to verify
  163. /// the response's compression status.
  164. var responseCompressed: Grpc_Testing_BoolValue {
  165. get {return _responseCompressed ?? Grpc_Testing_BoolValue()}
  166. set {_responseCompressed = newValue}
  167. }
  168. /// Returns true if `responseCompressed` has been explicitly set.
  169. var hasResponseCompressed: Bool {return self._responseCompressed != nil}
  170. /// Clears the value of `responseCompressed`. Subsequent reads from it will return its default value.
  171. mutating func clearResponseCompressed() {self._responseCompressed = nil}
  172. /// Whether server should return a given status
  173. var responseStatus: Grpc_Testing_EchoStatus {
  174. get {return _responseStatus ?? Grpc_Testing_EchoStatus()}
  175. set {_responseStatus = newValue}
  176. }
  177. /// Returns true if `responseStatus` has been explicitly set.
  178. var hasResponseStatus: Bool {return self._responseStatus != nil}
  179. /// Clears the value of `responseStatus`. Subsequent reads from it will return its default value.
  180. mutating func clearResponseStatus() {self._responseStatus = nil}
  181. /// Whether the server should expect this request to be compressed.
  182. var expectCompressed: Grpc_Testing_BoolValue {
  183. get {return _expectCompressed ?? Grpc_Testing_BoolValue()}
  184. set {_expectCompressed = newValue}
  185. }
  186. /// Returns true if `expectCompressed` has been explicitly set.
  187. var hasExpectCompressed: Bool {return self._expectCompressed != nil}
  188. /// Clears the value of `expectCompressed`. Subsequent reads from it will return its default value.
  189. mutating func clearExpectCompressed() {self._expectCompressed = nil}
  190. /// Whether SimpleResponse should include server_id.
  191. var fillServerID: Bool = false
  192. /// Whether SimpleResponse should include grpclb_route_type.
  193. var fillGrpclbRouteType: Bool = false
  194. /// If set the server should record this metrics report data for the current RPC.
  195. var orcaPerQueryReport: Grpc_Testing_TestOrcaReport {
  196. get {return _orcaPerQueryReport ?? Grpc_Testing_TestOrcaReport()}
  197. set {_orcaPerQueryReport = newValue}
  198. }
  199. /// Returns true if `orcaPerQueryReport` has been explicitly set.
  200. var hasOrcaPerQueryReport: Bool {return self._orcaPerQueryReport != nil}
  201. /// Clears the value of `orcaPerQueryReport`. Subsequent reads from it will return its default value.
  202. mutating func clearOrcaPerQueryReport() {self._orcaPerQueryReport = nil}
  203. var unknownFields = SwiftProtobuf.UnknownStorage()
  204. init() {}
  205. fileprivate var _payload: Grpc_Testing_Payload? = nil
  206. fileprivate var _responseCompressed: Grpc_Testing_BoolValue? = nil
  207. fileprivate var _responseStatus: Grpc_Testing_EchoStatus? = nil
  208. fileprivate var _expectCompressed: Grpc_Testing_BoolValue? = nil
  209. fileprivate var _orcaPerQueryReport: Grpc_Testing_TestOrcaReport? = nil
  210. }
  211. /// Unary response, as configured by the request.
  212. struct Grpc_Testing_SimpleResponse: Sendable {
  213. // SwiftProtobuf.Message conformance is added in an extension below. See the
  214. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  215. // methods supported on all messages.
  216. /// Payload to increase message size.
  217. var payload: Grpc_Testing_Payload {
  218. get {return _payload ?? Grpc_Testing_Payload()}
  219. set {_payload = newValue}
  220. }
  221. /// Returns true if `payload` has been explicitly set.
  222. var hasPayload: Bool {return self._payload != nil}
  223. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  224. mutating func clearPayload() {self._payload = nil}
  225. /// The user the request came from, for verifying authentication was
  226. /// successful when the client expected it.
  227. var username: String = String()
  228. /// OAuth scope.
  229. var oauthScope: String = String()
  230. /// Server ID. This must be unique among different server instances,
  231. /// but the same across all RPC's made to a particular server instance.
  232. var serverID: String = String()
  233. /// gRPCLB Path.
  234. var grpclbRouteType: Grpc_Testing_GrpclbRouteType = .unknown
  235. /// Server hostname.
  236. var hostname: String = String()
  237. var unknownFields = SwiftProtobuf.UnknownStorage()
  238. init() {}
  239. fileprivate var _payload: Grpc_Testing_Payload? = nil
  240. }
  241. /// Client-streaming request.
  242. struct Grpc_Testing_StreamingInputCallRequest: Sendable {
  243. // SwiftProtobuf.Message conformance is added in an extension below. See the
  244. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  245. // methods supported on all messages.
  246. /// Optional input payload sent along with the request.
  247. var payload: Grpc_Testing_Payload {
  248. get {return _payload ?? Grpc_Testing_Payload()}
  249. set {_payload = newValue}
  250. }
  251. /// Returns true if `payload` has been explicitly set.
  252. var hasPayload: Bool {return self._payload != nil}
  253. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  254. mutating func clearPayload() {self._payload = nil}
  255. /// Whether the server should expect this request to be compressed. This field
  256. /// is "nullable" in order to interoperate seamlessly with servers not able to
  257. /// implement the full compression tests by introspecting the call to verify
  258. /// the request's compression status.
  259. var expectCompressed: Grpc_Testing_BoolValue {
  260. get {return _expectCompressed ?? Grpc_Testing_BoolValue()}
  261. set {_expectCompressed = newValue}
  262. }
  263. /// Returns true if `expectCompressed` has been explicitly set.
  264. var hasExpectCompressed: Bool {return self._expectCompressed != nil}
  265. /// Clears the value of `expectCompressed`. Subsequent reads from it will return its default value.
  266. mutating func clearExpectCompressed() {self._expectCompressed = nil}
  267. var unknownFields = SwiftProtobuf.UnknownStorage()
  268. init() {}
  269. fileprivate var _payload: Grpc_Testing_Payload? = nil
  270. fileprivate var _expectCompressed: Grpc_Testing_BoolValue? = nil
  271. }
  272. /// Client-streaming response.
  273. struct Grpc_Testing_StreamingInputCallResponse: Sendable {
  274. // SwiftProtobuf.Message conformance is added in an extension below. See the
  275. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  276. // methods supported on all messages.
  277. /// Aggregated size of payloads received from the client.
  278. var aggregatedPayloadSize: Int32 = 0
  279. var unknownFields = SwiftProtobuf.UnknownStorage()
  280. init() {}
  281. }
  282. /// Configuration for a particular response.
  283. struct Grpc_Testing_ResponseParameters: Sendable {
  284. // SwiftProtobuf.Message conformance is added in an extension below. See the
  285. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  286. // methods supported on all messages.
  287. /// Desired payload sizes in responses from the server.
  288. var size: Int32 = 0
  289. /// Desired interval between consecutive responses in the response stream in
  290. /// microseconds.
  291. var intervalUs: Int32 = 0
  292. /// Whether to request the server to compress the response. This field is
  293. /// "nullable" in order to interoperate seamlessly with clients not able to
  294. /// implement the full compression tests by introspecting the call to verify
  295. /// the response's compression status.
  296. var compressed: Grpc_Testing_BoolValue {
  297. get {return _compressed ?? Grpc_Testing_BoolValue()}
  298. set {_compressed = newValue}
  299. }
  300. /// Returns true if `compressed` has been explicitly set.
  301. var hasCompressed: Bool {return self._compressed != nil}
  302. /// Clears the value of `compressed`. Subsequent reads from it will return its default value.
  303. mutating func clearCompressed() {self._compressed = nil}
  304. var unknownFields = SwiftProtobuf.UnknownStorage()
  305. init() {}
  306. fileprivate var _compressed: Grpc_Testing_BoolValue? = nil
  307. }
  308. /// Server-streaming request.
  309. struct Grpc_Testing_StreamingOutputCallRequest: Sendable {
  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. /// Desired payload type in the response from the server.
  314. /// If response_type is RANDOM, the payload from each response in the stream
  315. /// might be of different types. This is to simulate a mixed type of payload
  316. /// stream.
  317. var responseType: Grpc_Testing_PayloadType = .compressable
  318. /// Configuration for each expected response message.
  319. var responseParameters: [Grpc_Testing_ResponseParameters] = []
  320. /// Optional input payload sent along with the request.
  321. var payload: Grpc_Testing_Payload {
  322. get {return _payload ?? Grpc_Testing_Payload()}
  323. set {_payload = newValue}
  324. }
  325. /// Returns true if `payload` has been explicitly set.
  326. var hasPayload: Bool {return self._payload != nil}
  327. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  328. mutating func clearPayload() {self._payload = nil}
  329. /// Whether server should return a given status
  330. var responseStatus: Grpc_Testing_EchoStatus {
  331. get {return _responseStatus ?? Grpc_Testing_EchoStatus()}
  332. set {_responseStatus = newValue}
  333. }
  334. /// Returns true if `responseStatus` has been explicitly set.
  335. var hasResponseStatus: Bool {return self._responseStatus != nil}
  336. /// Clears the value of `responseStatus`. Subsequent reads from it will return its default value.
  337. mutating func clearResponseStatus() {self._responseStatus = nil}
  338. /// If set the server should update this metrics report data at the OOB server.
  339. var orcaOobReport: Grpc_Testing_TestOrcaReport {
  340. get {return _orcaOobReport ?? Grpc_Testing_TestOrcaReport()}
  341. set {_orcaOobReport = newValue}
  342. }
  343. /// Returns true if `orcaOobReport` has been explicitly set.
  344. var hasOrcaOobReport: Bool {return self._orcaOobReport != nil}
  345. /// Clears the value of `orcaOobReport`. Subsequent reads from it will return its default value.
  346. mutating func clearOrcaOobReport() {self._orcaOobReport = nil}
  347. var unknownFields = SwiftProtobuf.UnknownStorage()
  348. init() {}
  349. fileprivate var _payload: Grpc_Testing_Payload? = nil
  350. fileprivate var _responseStatus: Grpc_Testing_EchoStatus? = nil
  351. fileprivate var _orcaOobReport: Grpc_Testing_TestOrcaReport? = nil
  352. }
  353. /// Server-streaming response, as configured by the request and parameters.
  354. struct Grpc_Testing_StreamingOutputCallResponse: Sendable {
  355. // SwiftProtobuf.Message conformance is added in an extension below. See the
  356. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  357. // methods supported on all messages.
  358. /// Payload to increase response size.
  359. var payload: Grpc_Testing_Payload {
  360. get {return _payload ?? Grpc_Testing_Payload()}
  361. set {_payload = newValue}
  362. }
  363. /// Returns true if `payload` has been explicitly set.
  364. var hasPayload: Bool {return self._payload != nil}
  365. /// Clears the value of `payload`. Subsequent reads from it will return its default value.
  366. mutating func clearPayload() {self._payload = nil}
  367. var unknownFields = SwiftProtobuf.UnknownStorage()
  368. init() {}
  369. fileprivate var _payload: Grpc_Testing_Payload? = nil
  370. }
  371. /// For reconnect interop test only.
  372. /// Client tells server what reconnection parameters it used.
  373. struct Grpc_Testing_ReconnectParams: Sendable {
  374. // SwiftProtobuf.Message conformance is added in an extension below. See the
  375. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  376. // methods supported on all messages.
  377. var maxReconnectBackoffMs: Int32 = 0
  378. var unknownFields = SwiftProtobuf.UnknownStorage()
  379. init() {}
  380. }
  381. /// For reconnect interop test only.
  382. /// Server tells client whether its reconnects are following the spec and the
  383. /// reconnect backoffs it saw.
  384. struct Grpc_Testing_ReconnectInfo: Sendable {
  385. // SwiftProtobuf.Message conformance is added in an extension below. See the
  386. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  387. // methods supported on all messages.
  388. var passed: Bool = false
  389. var backoffMs: [Int32] = []
  390. var unknownFields = SwiftProtobuf.UnknownStorage()
  391. init() {}
  392. }
  393. struct Grpc_Testing_LoadBalancerStatsRequest: Sendable {
  394. // SwiftProtobuf.Message conformance is added in an extension below. See the
  395. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  396. // methods supported on all messages.
  397. /// Request stats for the next num_rpcs sent by client.
  398. var numRpcs: Int32 = 0
  399. /// If num_rpcs have not completed within timeout_sec, return partial results.
  400. var timeoutSec: Int32 = 0
  401. /// Response header + trailer metadata entries we want the values of.
  402. /// Matching of the keys is case-insensitive as per rfc7540#section-8.1.2
  403. /// * (asterisk) is a special value that will return all metadata entries
  404. var metadataKeys: [String] = []
  405. var unknownFields = SwiftProtobuf.UnknownStorage()
  406. init() {}
  407. }
  408. struct Grpc_Testing_LoadBalancerStatsResponse: Sendable {
  409. // SwiftProtobuf.Message conformance is added in an extension below. See the
  410. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  411. // methods supported on all messages.
  412. /// The number of completed RPCs for each peer.
  413. var rpcsByPeer: Dictionary<String,Int32> = [:]
  414. /// The number of RPCs that failed to record a remote peer.
  415. var numFailures: Int32 = 0
  416. var rpcsByMethod: Dictionary<String,Grpc_Testing_LoadBalancerStatsResponse.RpcsByPeer> = [:]
  417. /// All the metadata of all RPCs for each peer.
  418. var metadatasByPeer: Dictionary<String,Grpc_Testing_LoadBalancerStatsResponse.MetadataByPeer> = [:]
  419. var unknownFields = SwiftProtobuf.UnknownStorage()
  420. enum MetadataType: SwiftProtobuf.Enum, Swift.CaseIterable {
  421. typealias RawValue = Int
  422. case unknown // = 0
  423. case initial // = 1
  424. case trailing // = 2
  425. case UNRECOGNIZED(Int)
  426. init() {
  427. self = .unknown
  428. }
  429. init?(rawValue: Int) {
  430. switch rawValue {
  431. case 0: self = .unknown
  432. case 1: self = .initial
  433. case 2: self = .trailing
  434. default: self = .UNRECOGNIZED(rawValue)
  435. }
  436. }
  437. var rawValue: Int {
  438. switch self {
  439. case .unknown: return 0
  440. case .initial: return 1
  441. case .trailing: return 2
  442. case .UNRECOGNIZED(let i): return i
  443. }
  444. }
  445. // The compiler won't synthesize support with the UNRECOGNIZED case.
  446. static let allCases: [Grpc_Testing_LoadBalancerStatsResponse.MetadataType] = [
  447. .unknown,
  448. .initial,
  449. .trailing,
  450. ]
  451. }
  452. struct MetadataEntry: Sendable {
  453. // SwiftProtobuf.Message conformance is added in an extension below. See the
  454. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  455. // methods supported on all messages.
  456. /// Key, exactly as received from the server. Case may be different from what
  457. /// was requested in the LoadBalancerStatsRequest)
  458. var key: String = String()
  459. /// Value, exactly as received from the server.
  460. var value: String = String()
  461. /// Metadata type
  462. var type: Grpc_Testing_LoadBalancerStatsResponse.MetadataType = .unknown
  463. var unknownFields = SwiftProtobuf.UnknownStorage()
  464. init() {}
  465. }
  466. struct RpcMetadata: Sendable {
  467. // SwiftProtobuf.Message conformance is added in an extension below. See the
  468. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  469. // methods supported on all messages.
  470. /// metadata values for each rpc for the keys specified in
  471. /// LoadBalancerStatsRequest.metadata_keys.
  472. var metadata: [Grpc_Testing_LoadBalancerStatsResponse.MetadataEntry] = []
  473. var unknownFields = SwiftProtobuf.UnknownStorage()
  474. init() {}
  475. }
  476. struct MetadataByPeer: Sendable {
  477. // SwiftProtobuf.Message conformance is added in an extension below. See the
  478. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  479. // methods supported on all messages.
  480. /// List of RpcMetadata in for each RPC with a given peer
  481. var rpcMetadata: [Grpc_Testing_LoadBalancerStatsResponse.RpcMetadata] = []
  482. var unknownFields = SwiftProtobuf.UnknownStorage()
  483. init() {}
  484. }
  485. struct RpcsByPeer: Sendable {
  486. // SwiftProtobuf.Message conformance is added in an extension below. See the
  487. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  488. // methods supported on all messages.
  489. /// The number of completed RPCs for each peer.
  490. var rpcsByPeer: Dictionary<String,Int32> = [:]
  491. var unknownFields = SwiftProtobuf.UnknownStorage()
  492. init() {}
  493. }
  494. init() {}
  495. }
  496. /// Request for retrieving a test client's accumulated stats.
  497. struct Grpc_Testing_LoadBalancerAccumulatedStatsRequest: Sendable {
  498. // SwiftProtobuf.Message conformance is added in an extension below. See the
  499. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  500. // methods supported on all messages.
  501. var unknownFields = SwiftProtobuf.UnknownStorage()
  502. init() {}
  503. }
  504. /// Accumulated stats for RPCs sent by a test client.
  505. struct Grpc_Testing_LoadBalancerAccumulatedStatsResponse: Sendable {
  506. // SwiftProtobuf.Message conformance is added in an extension below. See the
  507. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  508. // methods supported on all messages.
  509. /// The total number of RPCs have ever issued for each type.
  510. /// Deprecated: use stats_per_method.rpcs_started instead.
  511. ///
  512. /// NOTE: This field was marked as deprecated in the .proto file.
  513. var numRpcsStartedByMethod: Dictionary<String,Int32> = [:]
  514. /// The total number of RPCs have ever completed successfully for each type.
  515. /// Deprecated: use stats_per_method.result instead.
  516. ///
  517. /// NOTE: This field was marked as deprecated in the .proto file.
  518. var numRpcsSucceededByMethod: Dictionary<String,Int32> = [:]
  519. /// The total number of RPCs have ever failed for each type.
  520. /// Deprecated: use stats_per_method.result instead.
  521. ///
  522. /// NOTE: This field was marked as deprecated in the .proto file.
  523. var numRpcsFailedByMethod: Dictionary<String,Int32> = [:]
  524. /// Per-method RPC statistics. The key is the RpcType in string form; e.g.
  525. /// 'EMPTY_CALL' or 'UNARY_CALL'
  526. var statsPerMethod: Dictionary<String,Grpc_Testing_LoadBalancerAccumulatedStatsResponse.MethodStats> = [:]
  527. var unknownFields = SwiftProtobuf.UnknownStorage()
  528. struct MethodStats: Sendable {
  529. // SwiftProtobuf.Message conformance is added in an extension below. See the
  530. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  531. // methods supported on all messages.
  532. /// The number of RPCs that were started for this method.
  533. var rpcsStarted: Int32 = 0
  534. /// The number of RPCs that completed with each status for this method. The
  535. /// key is the integral value of a google.rpc.Code; the value is the count.
  536. var result: Dictionary<Int32,Int32> = [:]
  537. var unknownFields = SwiftProtobuf.UnknownStorage()
  538. init() {}
  539. }
  540. init() {}
  541. }
  542. /// Configurations for a test client.
  543. struct Grpc_Testing_ClientConfigureRequest: Sendable {
  544. // SwiftProtobuf.Message conformance is added in an extension below. See the
  545. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  546. // methods supported on all messages.
  547. /// The types of RPCs the client sends.
  548. var types: [Grpc_Testing_ClientConfigureRequest.RpcType] = []
  549. /// The collection of custom metadata to be attached to RPCs sent by the client.
  550. var metadata: [Grpc_Testing_ClientConfigureRequest.Metadata] = []
  551. /// The deadline to use, in seconds, for all RPCs. If unset or zero, the
  552. /// client will use the default from the command-line.
  553. var timeoutSec: Int32 = 0
  554. var unknownFields = SwiftProtobuf.UnknownStorage()
  555. /// Type of RPCs to send.
  556. enum RpcType: SwiftProtobuf.Enum, Swift.CaseIterable {
  557. typealias RawValue = Int
  558. case emptyCall // = 0
  559. case unaryCall // = 1
  560. case UNRECOGNIZED(Int)
  561. init() {
  562. self = .emptyCall
  563. }
  564. init?(rawValue: Int) {
  565. switch rawValue {
  566. case 0: self = .emptyCall
  567. case 1: self = .unaryCall
  568. default: self = .UNRECOGNIZED(rawValue)
  569. }
  570. }
  571. var rawValue: Int {
  572. switch self {
  573. case .emptyCall: return 0
  574. case .unaryCall: return 1
  575. case .UNRECOGNIZED(let i): return i
  576. }
  577. }
  578. // The compiler won't synthesize support with the UNRECOGNIZED case.
  579. static let allCases: [Grpc_Testing_ClientConfigureRequest.RpcType] = [
  580. .emptyCall,
  581. .unaryCall,
  582. ]
  583. }
  584. /// Metadata to be attached for the given type of RPCs.
  585. struct Metadata: Sendable {
  586. // SwiftProtobuf.Message conformance is added in an extension below. See the
  587. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  588. // methods supported on all messages.
  589. var type: Grpc_Testing_ClientConfigureRequest.RpcType = .emptyCall
  590. var key: String = String()
  591. var value: String = String()
  592. var unknownFields = SwiftProtobuf.UnknownStorage()
  593. init() {}
  594. }
  595. init() {}
  596. }
  597. /// Response for updating a test client's configuration.
  598. struct Grpc_Testing_ClientConfigureResponse: Sendable {
  599. // SwiftProtobuf.Message conformance is added in an extension below. See the
  600. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  601. // methods supported on all messages.
  602. var unknownFields = SwiftProtobuf.UnknownStorage()
  603. init() {}
  604. }
  605. struct Grpc_Testing_MemorySize: Sendable {
  606. // SwiftProtobuf.Message conformance is added in an extension below. See the
  607. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  608. // methods supported on all messages.
  609. var rss: Int64 = 0
  610. var unknownFields = SwiftProtobuf.UnknownStorage()
  611. init() {}
  612. }
  613. /// Metrics data the server will update and send to the client. It mirrors orca load report
  614. /// https://github.com/cncf/xds/blob/eded343319d09f30032952beda9840bbd3dcf7ac/xds/data/orca/v3/orca_load_report.proto#L15,
  615. /// but avoids orca dependency. Used by both per-query and out-of-band reporting tests.
  616. struct Grpc_Testing_TestOrcaReport: Sendable {
  617. // SwiftProtobuf.Message conformance is added in an extension below. See the
  618. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  619. // methods supported on all messages.
  620. var cpuUtilization: Double = 0
  621. var memoryUtilization: Double = 0
  622. var requestCost: Dictionary<String,Double> = [:]
  623. var utilization: Dictionary<String,Double> = [:]
  624. var unknownFields = SwiftProtobuf.UnknownStorage()
  625. init() {}
  626. }
  627. /// Status that will be return to callers of the Hook method
  628. struct Grpc_Testing_SetReturnStatusRequest: Sendable {
  629. // SwiftProtobuf.Message conformance is added in an extension below. See the
  630. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  631. // methods supported on all messages.
  632. var grpcCodeToReturn: Int32 = 0
  633. var grpcStatusDescription: String = String()
  634. var unknownFields = SwiftProtobuf.UnknownStorage()
  635. init() {}
  636. }
  637. struct Grpc_Testing_HookRequest: Sendable {
  638. // SwiftProtobuf.Message conformance is added in an extension below. See the
  639. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  640. // methods supported on all messages.
  641. var command: Grpc_Testing_HookRequest.HookRequestCommand = .unspecified
  642. var grpcCodeToReturn: Int32 = 0
  643. var grpcStatusDescription: String = String()
  644. /// Server port to listen to
  645. var serverPort: Int32 = 0
  646. var unknownFields = SwiftProtobuf.UnknownStorage()
  647. enum HookRequestCommand: SwiftProtobuf.Enum, Swift.CaseIterable {
  648. typealias RawValue = Int
  649. /// Default value
  650. case unspecified // = 0
  651. /// Start the HTTP endpoint
  652. case start // = 1
  653. /// Stop
  654. case stop // = 2
  655. /// Return from HTTP GET/POST
  656. case `return` // = 3
  657. case UNRECOGNIZED(Int)
  658. init() {
  659. self = .unspecified
  660. }
  661. init?(rawValue: Int) {
  662. switch rawValue {
  663. case 0: self = .unspecified
  664. case 1: self = .start
  665. case 2: self = .stop
  666. case 3: self = .return
  667. default: self = .UNRECOGNIZED(rawValue)
  668. }
  669. }
  670. var rawValue: Int {
  671. switch self {
  672. case .unspecified: return 0
  673. case .start: return 1
  674. case .stop: return 2
  675. case .return: return 3
  676. case .UNRECOGNIZED(let i): return i
  677. }
  678. }
  679. // The compiler won't synthesize support with the UNRECOGNIZED case.
  680. static let allCases: [Grpc_Testing_HookRequest.HookRequestCommand] = [
  681. .unspecified,
  682. .start,
  683. .stop,
  684. .return,
  685. ]
  686. }
  687. init() {}
  688. }
  689. struct Grpc_Testing_HookResponse: Sendable {
  690. // SwiftProtobuf.Message conformance is added in an extension below. See the
  691. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  692. // methods supported on all messages.
  693. var unknownFields = SwiftProtobuf.UnknownStorage()
  694. init() {}
  695. }
  696. // MARK: - Code below here is support for the SwiftProtobuf runtime.
  697. fileprivate let _protobuf_package = "grpc.testing"
  698. extension Grpc_Testing_PayloadType: SwiftProtobuf._ProtoNameProviding {
  699. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  700. 0: .same(proto: "COMPRESSABLE"),
  701. ]
  702. }
  703. extension Grpc_Testing_GrpclbRouteType: SwiftProtobuf._ProtoNameProviding {
  704. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  705. 0: .same(proto: "GRPCLB_ROUTE_TYPE_UNKNOWN"),
  706. 1: .same(proto: "GRPCLB_ROUTE_TYPE_FALLBACK"),
  707. 2: .same(proto: "GRPCLB_ROUTE_TYPE_BACKEND"),
  708. ]
  709. }
  710. extension Grpc_Testing_BoolValue: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  711. static let protoMessageName: String = _protobuf_package + ".BoolValue"
  712. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  713. 1: .same(proto: "value"),
  714. ]
  715. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  716. while let fieldNumber = try decoder.nextFieldNumber() {
  717. // The use of inline closures is to circumvent an issue where the compiler
  718. // allocates stack space for every case branch when no optimizations are
  719. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  720. switch fieldNumber {
  721. case 1: try { try decoder.decodeSingularBoolField(value: &self.value) }()
  722. default: break
  723. }
  724. }
  725. }
  726. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  727. if self.value != false {
  728. try visitor.visitSingularBoolField(value: self.value, fieldNumber: 1)
  729. }
  730. try unknownFields.traverse(visitor: &visitor)
  731. }
  732. static func ==(lhs: Grpc_Testing_BoolValue, rhs: Grpc_Testing_BoolValue) -> Bool {
  733. if lhs.value != rhs.value {return false}
  734. if lhs.unknownFields != rhs.unknownFields {return false}
  735. return true
  736. }
  737. }
  738. extension Grpc_Testing_Payload: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  739. static let protoMessageName: String = _protobuf_package + ".Payload"
  740. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  741. 1: .same(proto: "type"),
  742. 2: .same(proto: "body"),
  743. ]
  744. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  745. while let fieldNumber = try decoder.nextFieldNumber() {
  746. // The use of inline closures is to circumvent an issue where the compiler
  747. // allocates stack space for every case branch when no optimizations are
  748. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  749. switch fieldNumber {
  750. case 1: try { try decoder.decodeSingularEnumField(value: &self.type) }()
  751. case 2: try { try decoder.decodeSingularBytesField(value: &self.body) }()
  752. default: break
  753. }
  754. }
  755. }
  756. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  757. if self.type != .compressable {
  758. try visitor.visitSingularEnumField(value: self.type, fieldNumber: 1)
  759. }
  760. if !self.body.isEmpty {
  761. try visitor.visitSingularBytesField(value: self.body, fieldNumber: 2)
  762. }
  763. try unknownFields.traverse(visitor: &visitor)
  764. }
  765. static func ==(lhs: Grpc_Testing_Payload, rhs: Grpc_Testing_Payload) -> Bool {
  766. if lhs.type != rhs.type {return false}
  767. if lhs.body != rhs.body {return false}
  768. if lhs.unknownFields != rhs.unknownFields {return false}
  769. return true
  770. }
  771. }
  772. extension Grpc_Testing_EchoStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  773. static let protoMessageName: String = _protobuf_package + ".EchoStatus"
  774. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  775. 1: .same(proto: "code"),
  776. 2: .same(proto: "message"),
  777. ]
  778. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  779. while let fieldNumber = try decoder.nextFieldNumber() {
  780. // The use of inline closures is to circumvent an issue where the compiler
  781. // allocates stack space for every case branch when no optimizations are
  782. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  783. switch fieldNumber {
  784. case 1: try { try decoder.decodeSingularInt32Field(value: &self.code) }()
  785. case 2: try { try decoder.decodeSingularStringField(value: &self.message) }()
  786. default: break
  787. }
  788. }
  789. }
  790. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  791. if self.code != 0 {
  792. try visitor.visitSingularInt32Field(value: self.code, fieldNumber: 1)
  793. }
  794. if !self.message.isEmpty {
  795. try visitor.visitSingularStringField(value: self.message, fieldNumber: 2)
  796. }
  797. try unknownFields.traverse(visitor: &visitor)
  798. }
  799. static func ==(lhs: Grpc_Testing_EchoStatus, rhs: Grpc_Testing_EchoStatus) -> Bool {
  800. if lhs.code != rhs.code {return false}
  801. if lhs.message != rhs.message {return false}
  802. if lhs.unknownFields != rhs.unknownFields {return false}
  803. return true
  804. }
  805. }
  806. extension Grpc_Testing_SimpleRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  807. static let protoMessageName: String = _protobuf_package + ".SimpleRequest"
  808. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  809. 1: .standard(proto: "response_type"),
  810. 2: .standard(proto: "response_size"),
  811. 3: .same(proto: "payload"),
  812. 4: .standard(proto: "fill_username"),
  813. 5: .standard(proto: "fill_oauth_scope"),
  814. 6: .standard(proto: "response_compressed"),
  815. 7: .standard(proto: "response_status"),
  816. 8: .standard(proto: "expect_compressed"),
  817. 9: .standard(proto: "fill_server_id"),
  818. 10: .standard(proto: "fill_grpclb_route_type"),
  819. 11: .standard(proto: "orca_per_query_report"),
  820. ]
  821. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  822. while let fieldNumber = try decoder.nextFieldNumber() {
  823. // The use of inline closures is to circumvent an issue where the compiler
  824. // allocates stack space for every case branch when no optimizations are
  825. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  826. switch fieldNumber {
  827. case 1: try { try decoder.decodeSingularEnumField(value: &self.responseType) }()
  828. case 2: try { try decoder.decodeSingularInt32Field(value: &self.responseSize) }()
  829. case 3: try { try decoder.decodeSingularMessageField(value: &self._payload) }()
  830. case 4: try { try decoder.decodeSingularBoolField(value: &self.fillUsername) }()
  831. case 5: try { try decoder.decodeSingularBoolField(value: &self.fillOauthScope) }()
  832. case 6: try { try decoder.decodeSingularMessageField(value: &self._responseCompressed) }()
  833. case 7: try { try decoder.decodeSingularMessageField(value: &self._responseStatus) }()
  834. case 8: try { try decoder.decodeSingularMessageField(value: &self._expectCompressed) }()
  835. case 9: try { try decoder.decodeSingularBoolField(value: &self.fillServerID) }()
  836. case 10: try { try decoder.decodeSingularBoolField(value: &self.fillGrpclbRouteType) }()
  837. case 11: try { try decoder.decodeSingularMessageField(value: &self._orcaPerQueryReport) }()
  838. default: break
  839. }
  840. }
  841. }
  842. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  843. // The use of inline closures is to circumvent an issue where the compiler
  844. // allocates stack space for every if/case branch local when no optimizations
  845. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  846. // https://github.com/apple/swift-protobuf/issues/1182
  847. if self.responseType != .compressable {
  848. try visitor.visitSingularEnumField(value: self.responseType, fieldNumber: 1)
  849. }
  850. if self.responseSize != 0 {
  851. try visitor.visitSingularInt32Field(value: self.responseSize, fieldNumber: 2)
  852. }
  853. try { if let v = self._payload {
  854. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  855. } }()
  856. if self.fillUsername != false {
  857. try visitor.visitSingularBoolField(value: self.fillUsername, fieldNumber: 4)
  858. }
  859. if self.fillOauthScope != false {
  860. try visitor.visitSingularBoolField(value: self.fillOauthScope, fieldNumber: 5)
  861. }
  862. try { if let v = self._responseCompressed {
  863. try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
  864. } }()
  865. try { if let v = self._responseStatus {
  866. try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
  867. } }()
  868. try { if let v = self._expectCompressed {
  869. try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
  870. } }()
  871. if self.fillServerID != false {
  872. try visitor.visitSingularBoolField(value: self.fillServerID, fieldNumber: 9)
  873. }
  874. if self.fillGrpclbRouteType != false {
  875. try visitor.visitSingularBoolField(value: self.fillGrpclbRouteType, fieldNumber: 10)
  876. }
  877. try { if let v = self._orcaPerQueryReport {
  878. try visitor.visitSingularMessageField(value: v, fieldNumber: 11)
  879. } }()
  880. try unknownFields.traverse(visitor: &visitor)
  881. }
  882. static func ==(lhs: Grpc_Testing_SimpleRequest, rhs: Grpc_Testing_SimpleRequest) -> Bool {
  883. if lhs.responseType != rhs.responseType {return false}
  884. if lhs.responseSize != rhs.responseSize {return false}
  885. if lhs._payload != rhs._payload {return false}
  886. if lhs.fillUsername != rhs.fillUsername {return false}
  887. if lhs.fillOauthScope != rhs.fillOauthScope {return false}
  888. if lhs._responseCompressed != rhs._responseCompressed {return false}
  889. if lhs._responseStatus != rhs._responseStatus {return false}
  890. if lhs._expectCompressed != rhs._expectCompressed {return false}
  891. if lhs.fillServerID != rhs.fillServerID {return false}
  892. if lhs.fillGrpclbRouteType != rhs.fillGrpclbRouteType {return false}
  893. if lhs._orcaPerQueryReport != rhs._orcaPerQueryReport {return false}
  894. if lhs.unknownFields != rhs.unknownFields {return false}
  895. return true
  896. }
  897. }
  898. extension Grpc_Testing_SimpleResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  899. static let protoMessageName: String = _protobuf_package + ".SimpleResponse"
  900. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  901. 1: .same(proto: "payload"),
  902. 2: .same(proto: "username"),
  903. 3: .standard(proto: "oauth_scope"),
  904. 4: .standard(proto: "server_id"),
  905. 5: .standard(proto: "grpclb_route_type"),
  906. 6: .same(proto: "hostname"),
  907. ]
  908. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  909. while let fieldNumber = try decoder.nextFieldNumber() {
  910. // The use of inline closures is to circumvent an issue where the compiler
  911. // allocates stack space for every case branch when no optimizations are
  912. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  913. switch fieldNumber {
  914. case 1: try { try decoder.decodeSingularMessageField(value: &self._payload) }()
  915. case 2: try { try decoder.decodeSingularStringField(value: &self.username) }()
  916. case 3: try { try decoder.decodeSingularStringField(value: &self.oauthScope) }()
  917. case 4: try { try decoder.decodeSingularStringField(value: &self.serverID) }()
  918. case 5: try { try decoder.decodeSingularEnumField(value: &self.grpclbRouteType) }()
  919. case 6: try { try decoder.decodeSingularStringField(value: &self.hostname) }()
  920. default: break
  921. }
  922. }
  923. }
  924. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  925. // The use of inline closures is to circumvent an issue where the compiler
  926. // allocates stack space for every if/case branch local when no optimizations
  927. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  928. // https://github.com/apple/swift-protobuf/issues/1182
  929. try { if let v = self._payload {
  930. try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
  931. } }()
  932. if !self.username.isEmpty {
  933. try visitor.visitSingularStringField(value: self.username, fieldNumber: 2)
  934. }
  935. if !self.oauthScope.isEmpty {
  936. try visitor.visitSingularStringField(value: self.oauthScope, fieldNumber: 3)
  937. }
  938. if !self.serverID.isEmpty {
  939. try visitor.visitSingularStringField(value: self.serverID, fieldNumber: 4)
  940. }
  941. if self.grpclbRouteType != .unknown {
  942. try visitor.visitSingularEnumField(value: self.grpclbRouteType, fieldNumber: 5)
  943. }
  944. if !self.hostname.isEmpty {
  945. try visitor.visitSingularStringField(value: self.hostname, fieldNumber: 6)
  946. }
  947. try unknownFields.traverse(visitor: &visitor)
  948. }
  949. static func ==(lhs: Grpc_Testing_SimpleResponse, rhs: Grpc_Testing_SimpleResponse) -> Bool {
  950. if lhs._payload != rhs._payload {return false}
  951. if lhs.username != rhs.username {return false}
  952. if lhs.oauthScope != rhs.oauthScope {return false}
  953. if lhs.serverID != rhs.serverID {return false}
  954. if lhs.grpclbRouteType != rhs.grpclbRouteType {return false}
  955. if lhs.hostname != rhs.hostname {return false}
  956. if lhs.unknownFields != rhs.unknownFields {return false}
  957. return true
  958. }
  959. }
  960. extension Grpc_Testing_StreamingInputCallRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  961. static let protoMessageName: String = _protobuf_package + ".StreamingInputCallRequest"
  962. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  963. 1: .same(proto: "payload"),
  964. 2: .standard(proto: "expect_compressed"),
  965. ]
  966. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  967. while let fieldNumber = try decoder.nextFieldNumber() {
  968. // The use of inline closures is to circumvent an issue where the compiler
  969. // allocates stack space for every case branch when no optimizations are
  970. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  971. switch fieldNumber {
  972. case 1: try { try decoder.decodeSingularMessageField(value: &self._payload) }()
  973. case 2: try { try decoder.decodeSingularMessageField(value: &self._expectCompressed) }()
  974. default: break
  975. }
  976. }
  977. }
  978. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  979. // The use of inline closures is to circumvent an issue where the compiler
  980. // allocates stack space for every if/case branch local when no optimizations
  981. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  982. // https://github.com/apple/swift-protobuf/issues/1182
  983. try { if let v = self._payload {
  984. try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
  985. } }()
  986. try { if let v = self._expectCompressed {
  987. try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
  988. } }()
  989. try unknownFields.traverse(visitor: &visitor)
  990. }
  991. static func ==(lhs: Grpc_Testing_StreamingInputCallRequest, rhs: Grpc_Testing_StreamingInputCallRequest) -> Bool {
  992. if lhs._payload != rhs._payload {return false}
  993. if lhs._expectCompressed != rhs._expectCompressed {return false}
  994. if lhs.unknownFields != rhs.unknownFields {return false}
  995. return true
  996. }
  997. }
  998. extension Grpc_Testing_StreamingInputCallResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  999. static let protoMessageName: String = _protobuf_package + ".StreamingInputCallResponse"
  1000. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1001. 1: .standard(proto: "aggregated_payload_size"),
  1002. ]
  1003. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1004. while let fieldNumber = try decoder.nextFieldNumber() {
  1005. // The use of inline closures is to circumvent an issue where the compiler
  1006. // allocates stack space for every case branch when no optimizations are
  1007. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1008. switch fieldNumber {
  1009. case 1: try { try decoder.decodeSingularInt32Field(value: &self.aggregatedPayloadSize) }()
  1010. default: break
  1011. }
  1012. }
  1013. }
  1014. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1015. if self.aggregatedPayloadSize != 0 {
  1016. try visitor.visitSingularInt32Field(value: self.aggregatedPayloadSize, fieldNumber: 1)
  1017. }
  1018. try unknownFields.traverse(visitor: &visitor)
  1019. }
  1020. static func ==(lhs: Grpc_Testing_StreamingInputCallResponse, rhs: Grpc_Testing_StreamingInputCallResponse) -> Bool {
  1021. if lhs.aggregatedPayloadSize != rhs.aggregatedPayloadSize {return false}
  1022. if lhs.unknownFields != rhs.unknownFields {return false}
  1023. return true
  1024. }
  1025. }
  1026. extension Grpc_Testing_ResponseParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1027. static let protoMessageName: String = _protobuf_package + ".ResponseParameters"
  1028. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1029. 1: .same(proto: "size"),
  1030. 2: .standard(proto: "interval_us"),
  1031. 3: .same(proto: "compressed"),
  1032. ]
  1033. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1034. while let fieldNumber = try decoder.nextFieldNumber() {
  1035. // The use of inline closures is to circumvent an issue where the compiler
  1036. // allocates stack space for every case branch when no optimizations are
  1037. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1038. switch fieldNumber {
  1039. case 1: try { try decoder.decodeSingularInt32Field(value: &self.size) }()
  1040. case 2: try { try decoder.decodeSingularInt32Field(value: &self.intervalUs) }()
  1041. case 3: try { try decoder.decodeSingularMessageField(value: &self._compressed) }()
  1042. default: break
  1043. }
  1044. }
  1045. }
  1046. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1047. // The use of inline closures is to circumvent an issue where the compiler
  1048. // allocates stack space for every if/case branch local when no optimizations
  1049. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  1050. // https://github.com/apple/swift-protobuf/issues/1182
  1051. if self.size != 0 {
  1052. try visitor.visitSingularInt32Field(value: self.size, fieldNumber: 1)
  1053. }
  1054. if self.intervalUs != 0 {
  1055. try visitor.visitSingularInt32Field(value: self.intervalUs, fieldNumber: 2)
  1056. }
  1057. try { if let v = self._compressed {
  1058. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  1059. } }()
  1060. try unknownFields.traverse(visitor: &visitor)
  1061. }
  1062. static func ==(lhs: Grpc_Testing_ResponseParameters, rhs: Grpc_Testing_ResponseParameters) -> Bool {
  1063. if lhs.size != rhs.size {return false}
  1064. if lhs.intervalUs != rhs.intervalUs {return false}
  1065. if lhs._compressed != rhs._compressed {return false}
  1066. if lhs.unknownFields != rhs.unknownFields {return false}
  1067. return true
  1068. }
  1069. }
  1070. extension Grpc_Testing_StreamingOutputCallRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1071. static let protoMessageName: String = _protobuf_package + ".StreamingOutputCallRequest"
  1072. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1073. 1: .standard(proto: "response_type"),
  1074. 2: .standard(proto: "response_parameters"),
  1075. 3: .same(proto: "payload"),
  1076. 7: .standard(proto: "response_status"),
  1077. 8: .standard(proto: "orca_oob_report"),
  1078. ]
  1079. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1080. while let fieldNumber = try decoder.nextFieldNumber() {
  1081. // The use of inline closures is to circumvent an issue where the compiler
  1082. // allocates stack space for every case branch when no optimizations are
  1083. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1084. switch fieldNumber {
  1085. case 1: try { try decoder.decodeSingularEnumField(value: &self.responseType) }()
  1086. case 2: try { try decoder.decodeRepeatedMessageField(value: &self.responseParameters) }()
  1087. case 3: try { try decoder.decodeSingularMessageField(value: &self._payload) }()
  1088. case 7: try { try decoder.decodeSingularMessageField(value: &self._responseStatus) }()
  1089. case 8: try { try decoder.decodeSingularMessageField(value: &self._orcaOobReport) }()
  1090. default: break
  1091. }
  1092. }
  1093. }
  1094. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1095. // The use of inline closures is to circumvent an issue where the compiler
  1096. // allocates stack space for every if/case branch local when no optimizations
  1097. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  1098. // https://github.com/apple/swift-protobuf/issues/1182
  1099. if self.responseType != .compressable {
  1100. try visitor.visitSingularEnumField(value: self.responseType, fieldNumber: 1)
  1101. }
  1102. if !self.responseParameters.isEmpty {
  1103. try visitor.visitRepeatedMessageField(value: self.responseParameters, fieldNumber: 2)
  1104. }
  1105. try { if let v = self._payload {
  1106. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  1107. } }()
  1108. try { if let v = self._responseStatus {
  1109. try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
  1110. } }()
  1111. try { if let v = self._orcaOobReport {
  1112. try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
  1113. } }()
  1114. try unknownFields.traverse(visitor: &visitor)
  1115. }
  1116. static func ==(lhs: Grpc_Testing_StreamingOutputCallRequest, rhs: Grpc_Testing_StreamingOutputCallRequest) -> Bool {
  1117. if lhs.responseType != rhs.responseType {return false}
  1118. if lhs.responseParameters != rhs.responseParameters {return false}
  1119. if lhs._payload != rhs._payload {return false}
  1120. if lhs._responseStatus != rhs._responseStatus {return false}
  1121. if lhs._orcaOobReport != rhs._orcaOobReport {return false}
  1122. if lhs.unknownFields != rhs.unknownFields {return false}
  1123. return true
  1124. }
  1125. }
  1126. extension Grpc_Testing_StreamingOutputCallResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1127. static let protoMessageName: String = _protobuf_package + ".StreamingOutputCallResponse"
  1128. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1129. 1: .same(proto: "payload"),
  1130. ]
  1131. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1132. while let fieldNumber = try decoder.nextFieldNumber() {
  1133. // The use of inline closures is to circumvent an issue where the compiler
  1134. // allocates stack space for every case branch when no optimizations are
  1135. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1136. switch fieldNumber {
  1137. case 1: try { try decoder.decodeSingularMessageField(value: &self._payload) }()
  1138. default: break
  1139. }
  1140. }
  1141. }
  1142. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1143. // The use of inline closures is to circumvent an issue where the compiler
  1144. // allocates stack space for every if/case branch local when no optimizations
  1145. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  1146. // https://github.com/apple/swift-protobuf/issues/1182
  1147. try { if let v = self._payload {
  1148. try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
  1149. } }()
  1150. try unknownFields.traverse(visitor: &visitor)
  1151. }
  1152. static func ==(lhs: Grpc_Testing_StreamingOutputCallResponse, rhs: Grpc_Testing_StreamingOutputCallResponse) -> Bool {
  1153. if lhs._payload != rhs._payload {return false}
  1154. if lhs.unknownFields != rhs.unknownFields {return false}
  1155. return true
  1156. }
  1157. }
  1158. extension Grpc_Testing_ReconnectParams: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1159. static let protoMessageName: String = _protobuf_package + ".ReconnectParams"
  1160. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1161. 1: .standard(proto: "max_reconnect_backoff_ms"),
  1162. ]
  1163. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1164. while let fieldNumber = try decoder.nextFieldNumber() {
  1165. // The use of inline closures is to circumvent an issue where the compiler
  1166. // allocates stack space for every case branch when no optimizations are
  1167. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1168. switch fieldNumber {
  1169. case 1: try { try decoder.decodeSingularInt32Field(value: &self.maxReconnectBackoffMs) }()
  1170. default: break
  1171. }
  1172. }
  1173. }
  1174. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1175. if self.maxReconnectBackoffMs != 0 {
  1176. try visitor.visitSingularInt32Field(value: self.maxReconnectBackoffMs, fieldNumber: 1)
  1177. }
  1178. try unknownFields.traverse(visitor: &visitor)
  1179. }
  1180. static func ==(lhs: Grpc_Testing_ReconnectParams, rhs: Grpc_Testing_ReconnectParams) -> Bool {
  1181. if lhs.maxReconnectBackoffMs != rhs.maxReconnectBackoffMs {return false}
  1182. if lhs.unknownFields != rhs.unknownFields {return false}
  1183. return true
  1184. }
  1185. }
  1186. extension Grpc_Testing_ReconnectInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1187. static let protoMessageName: String = _protobuf_package + ".ReconnectInfo"
  1188. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1189. 1: .same(proto: "passed"),
  1190. 2: .standard(proto: "backoff_ms"),
  1191. ]
  1192. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1193. while let fieldNumber = try decoder.nextFieldNumber() {
  1194. // The use of inline closures is to circumvent an issue where the compiler
  1195. // allocates stack space for every case branch when no optimizations are
  1196. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1197. switch fieldNumber {
  1198. case 1: try { try decoder.decodeSingularBoolField(value: &self.passed) }()
  1199. case 2: try { try decoder.decodeRepeatedInt32Field(value: &self.backoffMs) }()
  1200. default: break
  1201. }
  1202. }
  1203. }
  1204. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1205. if self.passed != false {
  1206. try visitor.visitSingularBoolField(value: self.passed, fieldNumber: 1)
  1207. }
  1208. if !self.backoffMs.isEmpty {
  1209. try visitor.visitPackedInt32Field(value: self.backoffMs, fieldNumber: 2)
  1210. }
  1211. try unknownFields.traverse(visitor: &visitor)
  1212. }
  1213. static func ==(lhs: Grpc_Testing_ReconnectInfo, rhs: Grpc_Testing_ReconnectInfo) -> Bool {
  1214. if lhs.passed != rhs.passed {return false}
  1215. if lhs.backoffMs != rhs.backoffMs {return false}
  1216. if lhs.unknownFields != rhs.unknownFields {return false}
  1217. return true
  1218. }
  1219. }
  1220. extension Grpc_Testing_LoadBalancerStatsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1221. static let protoMessageName: String = _protobuf_package + ".LoadBalancerStatsRequest"
  1222. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1223. 1: .standard(proto: "num_rpcs"),
  1224. 2: .standard(proto: "timeout_sec"),
  1225. 3: .standard(proto: "metadata_keys"),
  1226. ]
  1227. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1228. while let fieldNumber = try decoder.nextFieldNumber() {
  1229. // The use of inline closures is to circumvent an issue where the compiler
  1230. // allocates stack space for every case branch when no optimizations are
  1231. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1232. switch fieldNumber {
  1233. case 1: try { try decoder.decodeSingularInt32Field(value: &self.numRpcs) }()
  1234. case 2: try { try decoder.decodeSingularInt32Field(value: &self.timeoutSec) }()
  1235. case 3: try { try decoder.decodeRepeatedStringField(value: &self.metadataKeys) }()
  1236. default: break
  1237. }
  1238. }
  1239. }
  1240. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1241. if self.numRpcs != 0 {
  1242. try visitor.visitSingularInt32Field(value: self.numRpcs, fieldNumber: 1)
  1243. }
  1244. if self.timeoutSec != 0 {
  1245. try visitor.visitSingularInt32Field(value: self.timeoutSec, fieldNumber: 2)
  1246. }
  1247. if !self.metadataKeys.isEmpty {
  1248. try visitor.visitRepeatedStringField(value: self.metadataKeys, fieldNumber: 3)
  1249. }
  1250. try unknownFields.traverse(visitor: &visitor)
  1251. }
  1252. static func ==(lhs: Grpc_Testing_LoadBalancerStatsRequest, rhs: Grpc_Testing_LoadBalancerStatsRequest) -> Bool {
  1253. if lhs.numRpcs != rhs.numRpcs {return false}
  1254. if lhs.timeoutSec != rhs.timeoutSec {return false}
  1255. if lhs.metadataKeys != rhs.metadataKeys {return false}
  1256. if lhs.unknownFields != rhs.unknownFields {return false}
  1257. return true
  1258. }
  1259. }
  1260. extension Grpc_Testing_LoadBalancerStatsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1261. static let protoMessageName: String = _protobuf_package + ".LoadBalancerStatsResponse"
  1262. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1263. 1: .standard(proto: "rpcs_by_peer"),
  1264. 2: .standard(proto: "num_failures"),
  1265. 3: .standard(proto: "rpcs_by_method"),
  1266. 4: .standard(proto: "metadatas_by_peer"),
  1267. ]
  1268. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1269. while let fieldNumber = try decoder.nextFieldNumber() {
  1270. // The use of inline closures is to circumvent an issue where the compiler
  1271. // allocates stack space for every case branch when no optimizations are
  1272. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1273. switch fieldNumber {
  1274. case 1: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: &self.rpcsByPeer) }()
  1275. case 2: try { try decoder.decodeSingularInt32Field(value: &self.numFailures) }()
  1276. case 3: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,Grpc_Testing_LoadBalancerStatsResponse.RpcsByPeer>.self, value: &self.rpcsByMethod) }()
  1277. case 4: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,Grpc_Testing_LoadBalancerStatsResponse.MetadataByPeer>.self, value: &self.metadatasByPeer) }()
  1278. default: break
  1279. }
  1280. }
  1281. }
  1282. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1283. if !self.rpcsByPeer.isEmpty {
  1284. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: self.rpcsByPeer, fieldNumber: 1)
  1285. }
  1286. if self.numFailures != 0 {
  1287. try visitor.visitSingularInt32Field(value: self.numFailures, fieldNumber: 2)
  1288. }
  1289. if !self.rpcsByMethod.isEmpty {
  1290. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,Grpc_Testing_LoadBalancerStatsResponse.RpcsByPeer>.self, value: self.rpcsByMethod, fieldNumber: 3)
  1291. }
  1292. if !self.metadatasByPeer.isEmpty {
  1293. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,Grpc_Testing_LoadBalancerStatsResponse.MetadataByPeer>.self, value: self.metadatasByPeer, fieldNumber: 4)
  1294. }
  1295. try unknownFields.traverse(visitor: &visitor)
  1296. }
  1297. static func ==(lhs: Grpc_Testing_LoadBalancerStatsResponse, rhs: Grpc_Testing_LoadBalancerStatsResponse) -> Bool {
  1298. if lhs.rpcsByPeer != rhs.rpcsByPeer {return false}
  1299. if lhs.numFailures != rhs.numFailures {return false}
  1300. if lhs.rpcsByMethod != rhs.rpcsByMethod {return false}
  1301. if lhs.metadatasByPeer != rhs.metadatasByPeer {return false}
  1302. if lhs.unknownFields != rhs.unknownFields {return false}
  1303. return true
  1304. }
  1305. }
  1306. extension Grpc_Testing_LoadBalancerStatsResponse.MetadataType: SwiftProtobuf._ProtoNameProviding {
  1307. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1308. 0: .same(proto: "UNKNOWN"),
  1309. 1: .same(proto: "INITIAL"),
  1310. 2: .same(proto: "TRAILING"),
  1311. ]
  1312. }
  1313. extension Grpc_Testing_LoadBalancerStatsResponse.MetadataEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1314. static let protoMessageName: String = Grpc_Testing_LoadBalancerStatsResponse.protoMessageName + ".MetadataEntry"
  1315. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1316. 1: .same(proto: "key"),
  1317. 2: .same(proto: "value"),
  1318. 3: .same(proto: "type"),
  1319. ]
  1320. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1321. while let fieldNumber = try decoder.nextFieldNumber() {
  1322. // The use of inline closures is to circumvent an issue where the compiler
  1323. // allocates stack space for every case branch when no optimizations are
  1324. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1325. switch fieldNumber {
  1326. case 1: try { try decoder.decodeSingularStringField(value: &self.key) }()
  1327. case 2: try { try decoder.decodeSingularStringField(value: &self.value) }()
  1328. case 3: try { try decoder.decodeSingularEnumField(value: &self.type) }()
  1329. default: break
  1330. }
  1331. }
  1332. }
  1333. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1334. if !self.key.isEmpty {
  1335. try visitor.visitSingularStringField(value: self.key, fieldNumber: 1)
  1336. }
  1337. if !self.value.isEmpty {
  1338. try visitor.visitSingularStringField(value: self.value, fieldNumber: 2)
  1339. }
  1340. if self.type != .unknown {
  1341. try visitor.visitSingularEnumField(value: self.type, fieldNumber: 3)
  1342. }
  1343. try unknownFields.traverse(visitor: &visitor)
  1344. }
  1345. static func ==(lhs: Grpc_Testing_LoadBalancerStatsResponse.MetadataEntry, rhs: Grpc_Testing_LoadBalancerStatsResponse.MetadataEntry) -> Bool {
  1346. if lhs.key != rhs.key {return false}
  1347. if lhs.value != rhs.value {return false}
  1348. if lhs.type != rhs.type {return false}
  1349. if lhs.unknownFields != rhs.unknownFields {return false}
  1350. return true
  1351. }
  1352. }
  1353. extension Grpc_Testing_LoadBalancerStatsResponse.RpcMetadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1354. static let protoMessageName: String = Grpc_Testing_LoadBalancerStatsResponse.protoMessageName + ".RpcMetadata"
  1355. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1356. 1: .same(proto: "metadata"),
  1357. ]
  1358. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1359. while let fieldNumber = try decoder.nextFieldNumber() {
  1360. // The use of inline closures is to circumvent an issue where the compiler
  1361. // allocates stack space for every case branch when no optimizations are
  1362. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1363. switch fieldNumber {
  1364. case 1: try { try decoder.decodeRepeatedMessageField(value: &self.metadata) }()
  1365. default: break
  1366. }
  1367. }
  1368. }
  1369. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1370. if !self.metadata.isEmpty {
  1371. try visitor.visitRepeatedMessageField(value: self.metadata, fieldNumber: 1)
  1372. }
  1373. try unknownFields.traverse(visitor: &visitor)
  1374. }
  1375. static func ==(lhs: Grpc_Testing_LoadBalancerStatsResponse.RpcMetadata, rhs: Grpc_Testing_LoadBalancerStatsResponse.RpcMetadata) -> Bool {
  1376. if lhs.metadata != rhs.metadata {return false}
  1377. if lhs.unknownFields != rhs.unknownFields {return false}
  1378. return true
  1379. }
  1380. }
  1381. extension Grpc_Testing_LoadBalancerStatsResponse.MetadataByPeer: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1382. static let protoMessageName: String = Grpc_Testing_LoadBalancerStatsResponse.protoMessageName + ".MetadataByPeer"
  1383. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1384. 1: .standard(proto: "rpc_metadata"),
  1385. ]
  1386. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1387. while let fieldNumber = try decoder.nextFieldNumber() {
  1388. // The use of inline closures is to circumvent an issue where the compiler
  1389. // allocates stack space for every case branch when no optimizations are
  1390. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1391. switch fieldNumber {
  1392. case 1: try { try decoder.decodeRepeatedMessageField(value: &self.rpcMetadata) }()
  1393. default: break
  1394. }
  1395. }
  1396. }
  1397. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1398. if !self.rpcMetadata.isEmpty {
  1399. try visitor.visitRepeatedMessageField(value: self.rpcMetadata, fieldNumber: 1)
  1400. }
  1401. try unknownFields.traverse(visitor: &visitor)
  1402. }
  1403. static func ==(lhs: Grpc_Testing_LoadBalancerStatsResponse.MetadataByPeer, rhs: Grpc_Testing_LoadBalancerStatsResponse.MetadataByPeer) -> Bool {
  1404. if lhs.rpcMetadata != rhs.rpcMetadata {return false}
  1405. if lhs.unknownFields != rhs.unknownFields {return false}
  1406. return true
  1407. }
  1408. }
  1409. extension Grpc_Testing_LoadBalancerStatsResponse.RpcsByPeer: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1410. static let protoMessageName: String = Grpc_Testing_LoadBalancerStatsResponse.protoMessageName + ".RpcsByPeer"
  1411. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1412. 1: .standard(proto: "rpcs_by_peer"),
  1413. ]
  1414. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1415. while let fieldNumber = try decoder.nextFieldNumber() {
  1416. // The use of inline closures is to circumvent an issue where the compiler
  1417. // allocates stack space for every case branch when no optimizations are
  1418. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1419. switch fieldNumber {
  1420. case 1: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: &self.rpcsByPeer) }()
  1421. default: break
  1422. }
  1423. }
  1424. }
  1425. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1426. if !self.rpcsByPeer.isEmpty {
  1427. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: self.rpcsByPeer, fieldNumber: 1)
  1428. }
  1429. try unknownFields.traverse(visitor: &visitor)
  1430. }
  1431. static func ==(lhs: Grpc_Testing_LoadBalancerStatsResponse.RpcsByPeer, rhs: Grpc_Testing_LoadBalancerStatsResponse.RpcsByPeer) -> Bool {
  1432. if lhs.rpcsByPeer != rhs.rpcsByPeer {return false}
  1433. if lhs.unknownFields != rhs.unknownFields {return false}
  1434. return true
  1435. }
  1436. }
  1437. extension Grpc_Testing_LoadBalancerAccumulatedStatsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1438. static let protoMessageName: String = _protobuf_package + ".LoadBalancerAccumulatedStatsRequest"
  1439. static let _protobuf_nameMap = SwiftProtobuf._NameMap()
  1440. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1441. // Load everything into unknown fields
  1442. while try decoder.nextFieldNumber() != nil {}
  1443. }
  1444. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1445. try unknownFields.traverse(visitor: &visitor)
  1446. }
  1447. static func ==(lhs: Grpc_Testing_LoadBalancerAccumulatedStatsRequest, rhs: Grpc_Testing_LoadBalancerAccumulatedStatsRequest) -> Bool {
  1448. if lhs.unknownFields != rhs.unknownFields {return false}
  1449. return true
  1450. }
  1451. }
  1452. extension Grpc_Testing_LoadBalancerAccumulatedStatsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1453. static let protoMessageName: String = _protobuf_package + ".LoadBalancerAccumulatedStatsResponse"
  1454. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1455. 1: .standard(proto: "num_rpcs_started_by_method"),
  1456. 2: .standard(proto: "num_rpcs_succeeded_by_method"),
  1457. 3: .standard(proto: "num_rpcs_failed_by_method"),
  1458. 4: .standard(proto: "stats_per_method"),
  1459. ]
  1460. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1461. while let fieldNumber = try decoder.nextFieldNumber() {
  1462. // The use of inline closures is to circumvent an issue where the compiler
  1463. // allocates stack space for every case branch when no optimizations are
  1464. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1465. switch fieldNumber {
  1466. case 1: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: &self.numRpcsStartedByMethod) }()
  1467. case 2: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: &self.numRpcsSucceededByMethod) }()
  1468. case 3: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: &self.numRpcsFailedByMethod) }()
  1469. case 4: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,Grpc_Testing_LoadBalancerAccumulatedStatsResponse.MethodStats>.self, value: &self.statsPerMethod) }()
  1470. default: break
  1471. }
  1472. }
  1473. }
  1474. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1475. if !self.numRpcsStartedByMethod.isEmpty {
  1476. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: self.numRpcsStartedByMethod, fieldNumber: 1)
  1477. }
  1478. if !self.numRpcsSucceededByMethod.isEmpty {
  1479. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: self.numRpcsSucceededByMethod, fieldNumber: 2)
  1480. }
  1481. if !self.numRpcsFailedByMethod.isEmpty {
  1482. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufInt32>.self, value: self.numRpcsFailedByMethod, fieldNumber: 3)
  1483. }
  1484. if !self.statsPerMethod.isEmpty {
  1485. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMessageMap<SwiftProtobuf.ProtobufString,Grpc_Testing_LoadBalancerAccumulatedStatsResponse.MethodStats>.self, value: self.statsPerMethod, fieldNumber: 4)
  1486. }
  1487. try unknownFields.traverse(visitor: &visitor)
  1488. }
  1489. static func ==(lhs: Grpc_Testing_LoadBalancerAccumulatedStatsResponse, rhs: Grpc_Testing_LoadBalancerAccumulatedStatsResponse) -> Bool {
  1490. if lhs.numRpcsStartedByMethod != rhs.numRpcsStartedByMethod {return false}
  1491. if lhs.numRpcsSucceededByMethod != rhs.numRpcsSucceededByMethod {return false}
  1492. if lhs.numRpcsFailedByMethod != rhs.numRpcsFailedByMethod {return false}
  1493. if lhs.statsPerMethod != rhs.statsPerMethod {return false}
  1494. if lhs.unknownFields != rhs.unknownFields {return false}
  1495. return true
  1496. }
  1497. }
  1498. extension Grpc_Testing_LoadBalancerAccumulatedStatsResponse.MethodStats: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1499. static let protoMessageName: String = Grpc_Testing_LoadBalancerAccumulatedStatsResponse.protoMessageName + ".MethodStats"
  1500. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1501. 1: .standard(proto: "rpcs_started"),
  1502. 2: .same(proto: "result"),
  1503. ]
  1504. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1505. while let fieldNumber = try decoder.nextFieldNumber() {
  1506. // The use of inline closures is to circumvent an issue where the compiler
  1507. // allocates stack space for every case branch when no optimizations are
  1508. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1509. switch fieldNumber {
  1510. case 1: try { try decoder.decodeSingularInt32Field(value: &self.rpcsStarted) }()
  1511. case 2: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufInt32>.self, value: &self.result) }()
  1512. default: break
  1513. }
  1514. }
  1515. }
  1516. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1517. if self.rpcsStarted != 0 {
  1518. try visitor.visitSingularInt32Field(value: self.rpcsStarted, fieldNumber: 1)
  1519. }
  1520. if !self.result.isEmpty {
  1521. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufInt32>.self, value: self.result, fieldNumber: 2)
  1522. }
  1523. try unknownFields.traverse(visitor: &visitor)
  1524. }
  1525. static func ==(lhs: Grpc_Testing_LoadBalancerAccumulatedStatsResponse.MethodStats, rhs: Grpc_Testing_LoadBalancerAccumulatedStatsResponse.MethodStats) -> Bool {
  1526. if lhs.rpcsStarted != rhs.rpcsStarted {return false}
  1527. if lhs.result != rhs.result {return false}
  1528. if lhs.unknownFields != rhs.unknownFields {return false}
  1529. return true
  1530. }
  1531. }
  1532. extension Grpc_Testing_ClientConfigureRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1533. static let protoMessageName: String = _protobuf_package + ".ClientConfigureRequest"
  1534. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1535. 1: .same(proto: "types"),
  1536. 2: .same(proto: "metadata"),
  1537. 3: .standard(proto: "timeout_sec"),
  1538. ]
  1539. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1540. while let fieldNumber = try decoder.nextFieldNumber() {
  1541. // The use of inline closures is to circumvent an issue where the compiler
  1542. // allocates stack space for every case branch when no optimizations are
  1543. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1544. switch fieldNumber {
  1545. case 1: try { try decoder.decodeRepeatedEnumField(value: &self.types) }()
  1546. case 2: try { try decoder.decodeRepeatedMessageField(value: &self.metadata) }()
  1547. case 3: try { try decoder.decodeSingularInt32Field(value: &self.timeoutSec) }()
  1548. default: break
  1549. }
  1550. }
  1551. }
  1552. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1553. if !self.types.isEmpty {
  1554. try visitor.visitPackedEnumField(value: self.types, fieldNumber: 1)
  1555. }
  1556. if !self.metadata.isEmpty {
  1557. try visitor.visitRepeatedMessageField(value: self.metadata, fieldNumber: 2)
  1558. }
  1559. if self.timeoutSec != 0 {
  1560. try visitor.visitSingularInt32Field(value: self.timeoutSec, fieldNumber: 3)
  1561. }
  1562. try unknownFields.traverse(visitor: &visitor)
  1563. }
  1564. static func ==(lhs: Grpc_Testing_ClientConfigureRequest, rhs: Grpc_Testing_ClientConfigureRequest) -> Bool {
  1565. if lhs.types != rhs.types {return false}
  1566. if lhs.metadata != rhs.metadata {return false}
  1567. if lhs.timeoutSec != rhs.timeoutSec {return false}
  1568. if lhs.unknownFields != rhs.unknownFields {return false}
  1569. return true
  1570. }
  1571. }
  1572. extension Grpc_Testing_ClientConfigureRequest.RpcType: SwiftProtobuf._ProtoNameProviding {
  1573. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1574. 0: .same(proto: "EMPTY_CALL"),
  1575. 1: .same(proto: "UNARY_CALL"),
  1576. ]
  1577. }
  1578. extension Grpc_Testing_ClientConfigureRequest.Metadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1579. static let protoMessageName: String = Grpc_Testing_ClientConfigureRequest.protoMessageName + ".Metadata"
  1580. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1581. 1: .same(proto: "type"),
  1582. 2: .same(proto: "key"),
  1583. 3: .same(proto: "value"),
  1584. ]
  1585. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1586. while let fieldNumber = try decoder.nextFieldNumber() {
  1587. // The use of inline closures is to circumvent an issue where the compiler
  1588. // allocates stack space for every case branch when no optimizations are
  1589. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1590. switch fieldNumber {
  1591. case 1: try { try decoder.decodeSingularEnumField(value: &self.type) }()
  1592. case 2: try { try decoder.decodeSingularStringField(value: &self.key) }()
  1593. case 3: try { try decoder.decodeSingularStringField(value: &self.value) }()
  1594. default: break
  1595. }
  1596. }
  1597. }
  1598. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1599. if self.type != .emptyCall {
  1600. try visitor.visitSingularEnumField(value: self.type, fieldNumber: 1)
  1601. }
  1602. if !self.key.isEmpty {
  1603. try visitor.visitSingularStringField(value: self.key, fieldNumber: 2)
  1604. }
  1605. if !self.value.isEmpty {
  1606. try visitor.visitSingularStringField(value: self.value, fieldNumber: 3)
  1607. }
  1608. try unknownFields.traverse(visitor: &visitor)
  1609. }
  1610. static func ==(lhs: Grpc_Testing_ClientConfigureRequest.Metadata, rhs: Grpc_Testing_ClientConfigureRequest.Metadata) -> Bool {
  1611. if lhs.type != rhs.type {return false}
  1612. if lhs.key != rhs.key {return false}
  1613. if lhs.value != rhs.value {return false}
  1614. if lhs.unknownFields != rhs.unknownFields {return false}
  1615. return true
  1616. }
  1617. }
  1618. extension Grpc_Testing_ClientConfigureResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1619. static let protoMessageName: String = _protobuf_package + ".ClientConfigureResponse"
  1620. static let _protobuf_nameMap = SwiftProtobuf._NameMap()
  1621. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1622. // Load everything into unknown fields
  1623. while try decoder.nextFieldNumber() != nil {}
  1624. }
  1625. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1626. try unknownFields.traverse(visitor: &visitor)
  1627. }
  1628. static func ==(lhs: Grpc_Testing_ClientConfigureResponse, rhs: Grpc_Testing_ClientConfigureResponse) -> Bool {
  1629. if lhs.unknownFields != rhs.unknownFields {return false}
  1630. return true
  1631. }
  1632. }
  1633. extension Grpc_Testing_MemorySize: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1634. static let protoMessageName: String = _protobuf_package + ".MemorySize"
  1635. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1636. 1: .same(proto: "rss"),
  1637. ]
  1638. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1639. while let fieldNumber = try decoder.nextFieldNumber() {
  1640. // The use of inline closures is to circumvent an issue where the compiler
  1641. // allocates stack space for every case branch when no optimizations are
  1642. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1643. switch fieldNumber {
  1644. case 1: try { try decoder.decodeSingularInt64Field(value: &self.rss) }()
  1645. default: break
  1646. }
  1647. }
  1648. }
  1649. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1650. if self.rss != 0 {
  1651. try visitor.visitSingularInt64Field(value: self.rss, fieldNumber: 1)
  1652. }
  1653. try unknownFields.traverse(visitor: &visitor)
  1654. }
  1655. static func ==(lhs: Grpc_Testing_MemorySize, rhs: Grpc_Testing_MemorySize) -> Bool {
  1656. if lhs.rss != rhs.rss {return false}
  1657. if lhs.unknownFields != rhs.unknownFields {return false}
  1658. return true
  1659. }
  1660. }
  1661. extension Grpc_Testing_TestOrcaReport: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1662. static let protoMessageName: String = _protobuf_package + ".TestOrcaReport"
  1663. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1664. 1: .standard(proto: "cpu_utilization"),
  1665. 2: .standard(proto: "memory_utilization"),
  1666. 3: .standard(proto: "request_cost"),
  1667. 4: .same(proto: "utilization"),
  1668. ]
  1669. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1670. while let fieldNumber = try decoder.nextFieldNumber() {
  1671. // The use of inline closures is to circumvent an issue where the compiler
  1672. // allocates stack space for every case branch when no optimizations are
  1673. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1674. switch fieldNumber {
  1675. case 1: try { try decoder.decodeSingularDoubleField(value: &self.cpuUtilization) }()
  1676. case 2: try { try decoder.decodeSingularDoubleField(value: &self.memoryUtilization) }()
  1677. case 3: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufDouble>.self, value: &self.requestCost) }()
  1678. case 4: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufDouble>.self, value: &self.utilization) }()
  1679. default: break
  1680. }
  1681. }
  1682. }
  1683. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1684. if self.cpuUtilization.bitPattern != 0 {
  1685. try visitor.visitSingularDoubleField(value: self.cpuUtilization, fieldNumber: 1)
  1686. }
  1687. if self.memoryUtilization.bitPattern != 0 {
  1688. try visitor.visitSingularDoubleField(value: self.memoryUtilization, fieldNumber: 2)
  1689. }
  1690. if !self.requestCost.isEmpty {
  1691. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufDouble>.self, value: self.requestCost, fieldNumber: 3)
  1692. }
  1693. if !self.utilization.isEmpty {
  1694. try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufDouble>.self, value: self.utilization, fieldNumber: 4)
  1695. }
  1696. try unknownFields.traverse(visitor: &visitor)
  1697. }
  1698. static func ==(lhs: Grpc_Testing_TestOrcaReport, rhs: Grpc_Testing_TestOrcaReport) -> Bool {
  1699. if lhs.cpuUtilization != rhs.cpuUtilization {return false}
  1700. if lhs.memoryUtilization != rhs.memoryUtilization {return false}
  1701. if lhs.requestCost != rhs.requestCost {return false}
  1702. if lhs.utilization != rhs.utilization {return false}
  1703. if lhs.unknownFields != rhs.unknownFields {return false}
  1704. return true
  1705. }
  1706. }
  1707. extension Grpc_Testing_SetReturnStatusRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1708. static let protoMessageName: String = _protobuf_package + ".SetReturnStatusRequest"
  1709. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1710. 1: .standard(proto: "grpc_code_to_return"),
  1711. 2: .standard(proto: "grpc_status_description"),
  1712. ]
  1713. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1714. while let fieldNumber = try decoder.nextFieldNumber() {
  1715. // The use of inline closures is to circumvent an issue where the compiler
  1716. // allocates stack space for every case branch when no optimizations are
  1717. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1718. switch fieldNumber {
  1719. case 1: try { try decoder.decodeSingularInt32Field(value: &self.grpcCodeToReturn) }()
  1720. case 2: try { try decoder.decodeSingularStringField(value: &self.grpcStatusDescription) }()
  1721. default: break
  1722. }
  1723. }
  1724. }
  1725. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1726. if self.grpcCodeToReturn != 0 {
  1727. try visitor.visitSingularInt32Field(value: self.grpcCodeToReturn, fieldNumber: 1)
  1728. }
  1729. if !self.grpcStatusDescription.isEmpty {
  1730. try visitor.visitSingularStringField(value: self.grpcStatusDescription, fieldNumber: 2)
  1731. }
  1732. try unknownFields.traverse(visitor: &visitor)
  1733. }
  1734. static func ==(lhs: Grpc_Testing_SetReturnStatusRequest, rhs: Grpc_Testing_SetReturnStatusRequest) -> Bool {
  1735. if lhs.grpcCodeToReturn != rhs.grpcCodeToReturn {return false}
  1736. if lhs.grpcStatusDescription != rhs.grpcStatusDescription {return false}
  1737. if lhs.unknownFields != rhs.unknownFields {return false}
  1738. return true
  1739. }
  1740. }
  1741. extension Grpc_Testing_HookRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1742. static let protoMessageName: String = _protobuf_package + ".HookRequest"
  1743. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1744. 1: .same(proto: "command"),
  1745. 2: .standard(proto: "grpc_code_to_return"),
  1746. 3: .standard(proto: "grpc_status_description"),
  1747. 4: .standard(proto: "server_port"),
  1748. ]
  1749. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1750. while let fieldNumber = try decoder.nextFieldNumber() {
  1751. // The use of inline closures is to circumvent an issue where the compiler
  1752. // allocates stack space for every case branch when no optimizations are
  1753. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  1754. switch fieldNumber {
  1755. case 1: try { try decoder.decodeSingularEnumField(value: &self.command) }()
  1756. case 2: try { try decoder.decodeSingularInt32Field(value: &self.grpcCodeToReturn) }()
  1757. case 3: try { try decoder.decodeSingularStringField(value: &self.grpcStatusDescription) }()
  1758. case 4: try { try decoder.decodeSingularInt32Field(value: &self.serverPort) }()
  1759. default: break
  1760. }
  1761. }
  1762. }
  1763. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1764. if self.command != .unspecified {
  1765. try visitor.visitSingularEnumField(value: self.command, fieldNumber: 1)
  1766. }
  1767. if self.grpcCodeToReturn != 0 {
  1768. try visitor.visitSingularInt32Field(value: self.grpcCodeToReturn, fieldNumber: 2)
  1769. }
  1770. if !self.grpcStatusDescription.isEmpty {
  1771. try visitor.visitSingularStringField(value: self.grpcStatusDescription, fieldNumber: 3)
  1772. }
  1773. if self.serverPort != 0 {
  1774. try visitor.visitSingularInt32Field(value: self.serverPort, fieldNumber: 4)
  1775. }
  1776. try unknownFields.traverse(visitor: &visitor)
  1777. }
  1778. static func ==(lhs: Grpc_Testing_HookRequest, rhs: Grpc_Testing_HookRequest) -> Bool {
  1779. if lhs.command != rhs.command {return false}
  1780. if lhs.grpcCodeToReturn != rhs.grpcCodeToReturn {return false}
  1781. if lhs.grpcStatusDescription != rhs.grpcStatusDescription {return false}
  1782. if lhs.serverPort != rhs.serverPort {return false}
  1783. if lhs.unknownFields != rhs.unknownFields {return false}
  1784. return true
  1785. }
  1786. }
  1787. extension Grpc_Testing_HookRequest.HookRequestCommand: SwiftProtobuf._ProtoNameProviding {
  1788. static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
  1789. 0: .same(proto: "UNSPECIFIED"),
  1790. 1: .same(proto: "START"),
  1791. 2: .same(proto: "STOP"),
  1792. 3: .same(proto: "RETURN"),
  1793. ]
  1794. }
  1795. extension Grpc_Testing_HookResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  1796. static let protoMessageName: String = _protobuf_package + ".HookResponse"
  1797. static let _protobuf_nameMap = SwiftProtobuf._NameMap()
  1798. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  1799. // Load everything into unknown fields
  1800. while try decoder.nextFieldNumber() != nil {}
  1801. }
  1802. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  1803. try unknownFields.traverse(visitor: &visitor)
  1804. }
  1805. static func ==(lhs: Grpc_Testing_HookResponse, rhs: Grpc_Testing_HookResponse) -> Bool {
  1806. if lhs.unknownFields != rhs.unknownFields {return false}
  1807. return true
  1808. }
  1809. }