2
0

grpc_testing_messages.pb.swift 87 KB

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