normalization.grpc.swift 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037
  1. //
  2. // DO NOT EDIT.
  3. // swift-format-ignore-file
  4. //
  5. // Generated by the protocol buffer compiler.
  6. // Source: normalization.proto
  7. //
  8. import GRPC
  9. import NIO
  10. import NIOConcurrencyHelpers
  11. import SwiftProtobuf
  12. /// Usage: instantiate `Normalization_NormalizationClient`, then call methods of this protocol to make API calls.
  13. internal protocol Normalization_NormalizationClientProtocol: GRPCClient {
  14. var serviceName: String { get }
  15. var interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol? { get }
  16. func Unary(
  17. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  18. callOptions: CallOptions?
  19. ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  20. func unary(
  21. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  22. callOptions: CallOptions?
  23. ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  24. func ServerStreaming(
  25. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  26. callOptions: CallOptions?,
  27. handler: @escaping (Normalization_FunctionName) -> Void
  28. ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  29. func serverStreaming(
  30. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  31. callOptions: CallOptions?,
  32. handler: @escaping (Normalization_FunctionName) -> Void
  33. ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  34. func ClientStreaming(
  35. callOptions: CallOptions?
  36. ) -> ClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  37. func clientStreaming(
  38. callOptions: CallOptions?
  39. ) -> ClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  40. func BidirectionalStreaming(
  41. callOptions: CallOptions?,
  42. handler: @escaping (Normalization_FunctionName) -> Void
  43. ) -> BidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  44. func bidirectionalStreaming(
  45. callOptions: CallOptions?,
  46. handler: @escaping (Normalization_FunctionName) -> Void
  47. ) -> BidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  48. }
  49. extension Normalization_NormalizationClientProtocol {
  50. internal var serviceName: String {
  51. return "normalization.Normalization"
  52. }
  53. /// Unary call to Unary
  54. ///
  55. /// - Parameters:
  56. /// - request: Request to send to Unary.
  57. /// - callOptions: Call options.
  58. /// - Returns: A `UnaryCall` with futures for the metadata, status and response.
  59. internal func Unary(
  60. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  61. callOptions: CallOptions? = nil
  62. ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  63. return self.makeUnaryCall(
  64. path: Normalization_NormalizationClientMetadata.Methods.Unary.path,
  65. request: request,
  66. callOptions: callOptions ?? self.defaultCallOptions,
  67. interceptors: self.interceptors?.makeUnaryInterceptors() ?? []
  68. )
  69. }
  70. /// Unary call to unary
  71. ///
  72. /// - Parameters:
  73. /// - request: Request to send to unary.
  74. /// - callOptions: Call options.
  75. /// - Returns: A `UnaryCall` with futures for the metadata, status and response.
  76. internal func unary(
  77. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  78. callOptions: CallOptions? = nil
  79. ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  80. return self.makeUnaryCall(
  81. path: Normalization_NormalizationClientMetadata.Methods.unary.path,
  82. request: request,
  83. callOptions: callOptions ?? self.defaultCallOptions,
  84. interceptors: self.interceptors?.makeunaryInterceptors() ?? []
  85. )
  86. }
  87. /// Server streaming call to ServerStreaming
  88. ///
  89. /// - Parameters:
  90. /// - request: Request to send to ServerStreaming.
  91. /// - callOptions: Call options.
  92. /// - handler: A closure called when each response is received from the server.
  93. /// - Returns: A `ServerStreamingCall` with futures for the metadata and status.
  94. internal func ServerStreaming(
  95. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  96. callOptions: CallOptions? = nil,
  97. handler: @escaping (Normalization_FunctionName) -> Void
  98. ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  99. return self.makeServerStreamingCall(
  100. path: Normalization_NormalizationClientMetadata.Methods.ServerStreaming.path,
  101. request: request,
  102. callOptions: callOptions ?? self.defaultCallOptions,
  103. interceptors: self.interceptors?.makeServerStreamingInterceptors() ?? [],
  104. handler: handler
  105. )
  106. }
  107. /// Server streaming call to serverStreaming
  108. ///
  109. /// - Parameters:
  110. /// - request: Request to send to serverStreaming.
  111. /// - callOptions: Call options.
  112. /// - handler: A closure called when each response is received from the server.
  113. /// - Returns: A `ServerStreamingCall` with futures for the metadata and status.
  114. internal func serverStreaming(
  115. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  116. callOptions: CallOptions? = nil,
  117. handler: @escaping (Normalization_FunctionName) -> Void
  118. ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  119. return self.makeServerStreamingCall(
  120. path: Normalization_NormalizationClientMetadata.Methods.serverStreaming.path,
  121. request: request,
  122. callOptions: callOptions ?? self.defaultCallOptions,
  123. interceptors: self.interceptors?.makeserverStreamingInterceptors() ?? [],
  124. handler: handler
  125. )
  126. }
  127. /// Client streaming call to ClientStreaming
  128. ///
  129. /// Callers should use the `send` method on the returned object to send messages
  130. /// to the server. The caller should send an `.end` after the final message has been sent.
  131. ///
  132. /// - Parameters:
  133. /// - callOptions: Call options.
  134. /// - Returns: A `ClientStreamingCall` with futures for the metadata, status and response.
  135. internal func ClientStreaming(
  136. callOptions: CallOptions? = nil
  137. ) -> ClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  138. return self.makeClientStreamingCall(
  139. path: Normalization_NormalizationClientMetadata.Methods.ClientStreaming.path,
  140. callOptions: callOptions ?? self.defaultCallOptions,
  141. interceptors: self.interceptors?.makeClientStreamingInterceptors() ?? []
  142. )
  143. }
  144. /// Client streaming call to clientStreaming
  145. ///
  146. /// Callers should use the `send` method on the returned object to send messages
  147. /// to the server. The caller should send an `.end` after the final message has been sent.
  148. ///
  149. /// - Parameters:
  150. /// - callOptions: Call options.
  151. /// - Returns: A `ClientStreamingCall` with futures for the metadata, status and response.
  152. internal func clientStreaming(
  153. callOptions: CallOptions? = nil
  154. ) -> ClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  155. return self.makeClientStreamingCall(
  156. path: Normalization_NormalizationClientMetadata.Methods.clientStreaming.path,
  157. callOptions: callOptions ?? self.defaultCallOptions,
  158. interceptors: self.interceptors?.makeclientStreamingInterceptors() ?? []
  159. )
  160. }
  161. /// Bidirectional streaming call to BidirectionalStreaming
  162. ///
  163. /// Callers should use the `send` method on the returned object to send messages
  164. /// to the server. The caller should send an `.end` after the final message has been sent.
  165. ///
  166. /// - Parameters:
  167. /// - callOptions: Call options.
  168. /// - handler: A closure called when each response is received from the server.
  169. /// - Returns: A `ClientStreamingCall` with futures for the metadata and status.
  170. internal func BidirectionalStreaming(
  171. callOptions: CallOptions? = nil,
  172. handler: @escaping (Normalization_FunctionName) -> Void
  173. ) -> BidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  174. return self.makeBidirectionalStreamingCall(
  175. path: Normalization_NormalizationClientMetadata.Methods.BidirectionalStreaming.path,
  176. callOptions: callOptions ?? self.defaultCallOptions,
  177. interceptors: self.interceptors?.makeBidirectionalStreamingInterceptors() ?? [],
  178. handler: handler
  179. )
  180. }
  181. /// Bidirectional streaming call to bidirectionalStreaming
  182. ///
  183. /// Callers should use the `send` method on the returned object to send messages
  184. /// to the server. The caller should send an `.end` after the final message has been sent.
  185. ///
  186. /// - Parameters:
  187. /// - callOptions: Call options.
  188. /// - handler: A closure called when each response is received from the server.
  189. /// - Returns: A `ClientStreamingCall` with futures for the metadata and status.
  190. internal func bidirectionalStreaming(
  191. callOptions: CallOptions? = nil,
  192. handler: @escaping (Normalization_FunctionName) -> Void
  193. ) -> BidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  194. return self.makeBidirectionalStreamingCall(
  195. path: Normalization_NormalizationClientMetadata.Methods.bidirectionalStreaming.path,
  196. callOptions: callOptions ?? self.defaultCallOptions,
  197. interceptors: self.interceptors?.makebidirectionalStreamingInterceptors() ?? [],
  198. handler: handler
  199. )
  200. }
  201. }
  202. @available(*, deprecated)
  203. extension Normalization_NormalizationClient: @unchecked Sendable {}
  204. @available(*, deprecated, renamed: "Normalization_NormalizationNIOClient")
  205. internal final class Normalization_NormalizationClient: Normalization_NormalizationClientProtocol {
  206. private let lock = Lock()
  207. private var _defaultCallOptions: CallOptions
  208. private var _interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol?
  209. internal let channel: GRPCChannel
  210. internal var defaultCallOptions: CallOptions {
  211. get { self.lock.withLock { return self._defaultCallOptions } }
  212. set { self.lock.withLockVoid { self._defaultCallOptions = newValue } }
  213. }
  214. internal var interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol? {
  215. get { self.lock.withLock { return self._interceptors } }
  216. set { self.lock.withLockVoid { self._interceptors = newValue } }
  217. }
  218. /// Creates a client for the normalization.Normalization service.
  219. ///
  220. /// - Parameters:
  221. /// - channel: `GRPCChannel` to the service host.
  222. /// - defaultCallOptions: Options to use for each service call if the user doesn't provide them.
  223. /// - interceptors: A factory providing interceptors for each RPC.
  224. internal init(
  225. channel: GRPCChannel,
  226. defaultCallOptions: CallOptions = CallOptions(),
  227. interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol? = nil
  228. ) {
  229. self.channel = channel
  230. self._defaultCallOptions = defaultCallOptions
  231. self._interceptors = interceptors
  232. }
  233. }
  234. internal struct Normalization_NormalizationNIOClient: Normalization_NormalizationClientProtocol {
  235. internal var channel: GRPCChannel
  236. internal var defaultCallOptions: CallOptions
  237. internal var interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol?
  238. /// Creates a client for the normalization.Normalization service.
  239. ///
  240. /// - Parameters:
  241. /// - channel: `GRPCChannel` to the service host.
  242. /// - defaultCallOptions: Options to use for each service call if the user doesn't provide them.
  243. /// - interceptors: A factory providing interceptors for each RPC.
  244. internal init(
  245. channel: GRPCChannel,
  246. defaultCallOptions: CallOptions = CallOptions(),
  247. interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol? = nil
  248. ) {
  249. self.channel = channel
  250. self.defaultCallOptions = defaultCallOptions
  251. self.interceptors = interceptors
  252. }
  253. }
  254. @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
  255. internal protocol Normalization_NormalizationAsyncClientProtocol: GRPCClient {
  256. static var serviceDescriptor: GRPCServiceDescriptor { get }
  257. var interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol? { get }
  258. func makeUnaryCall(
  259. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  260. callOptions: CallOptions?
  261. ) -> GRPCAsyncUnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  262. func makeunaryCall(
  263. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  264. callOptions: CallOptions?
  265. ) -> GRPCAsyncUnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  266. func makeServerStreamingCall(
  267. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  268. callOptions: CallOptions?
  269. ) -> GRPCAsyncServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  270. func makeserverStreamingCall(
  271. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  272. callOptions: CallOptions?
  273. ) -> GRPCAsyncServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  274. func makeClientStreamingCall(
  275. callOptions: CallOptions?
  276. ) -> GRPCAsyncClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  277. func makeclientStreamingCall(
  278. callOptions: CallOptions?
  279. ) -> GRPCAsyncClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  280. func makeBidirectionalStreamingCall(
  281. callOptions: CallOptions?
  282. ) -> GRPCAsyncBidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  283. func makebidirectionalStreamingCall(
  284. callOptions: CallOptions?
  285. ) -> GRPCAsyncBidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  286. }
  287. @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
  288. extension Normalization_NormalizationAsyncClientProtocol {
  289. internal static var serviceDescriptor: GRPCServiceDescriptor {
  290. return Normalization_NormalizationClientMetadata.serviceDescriptor
  291. }
  292. internal var interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol? {
  293. return nil
  294. }
  295. internal func makeUnaryCall(
  296. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  297. callOptions: CallOptions? = nil
  298. ) -> GRPCAsyncUnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  299. return self.makeAsyncUnaryCall(
  300. path: Normalization_NormalizationClientMetadata.Methods.Unary.path,
  301. request: request,
  302. callOptions: callOptions ?? self.defaultCallOptions,
  303. interceptors: self.interceptors?.makeUnaryInterceptors() ?? []
  304. )
  305. }
  306. internal func makeunaryCall(
  307. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  308. callOptions: CallOptions? = nil
  309. ) -> GRPCAsyncUnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  310. return self.makeAsyncUnaryCall(
  311. path: Normalization_NormalizationClientMetadata.Methods.unary.path,
  312. request: request,
  313. callOptions: callOptions ?? self.defaultCallOptions,
  314. interceptors: self.interceptors?.makeunaryInterceptors() ?? []
  315. )
  316. }
  317. internal func makeServerStreamingCall(
  318. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  319. callOptions: CallOptions? = nil
  320. ) -> GRPCAsyncServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  321. return self.makeAsyncServerStreamingCall(
  322. path: Normalization_NormalizationClientMetadata.Methods.ServerStreaming.path,
  323. request: request,
  324. callOptions: callOptions ?? self.defaultCallOptions,
  325. interceptors: self.interceptors?.makeServerStreamingInterceptors() ?? []
  326. )
  327. }
  328. internal func makeserverStreamingCall(
  329. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  330. callOptions: CallOptions? = nil
  331. ) -> GRPCAsyncServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  332. return self.makeAsyncServerStreamingCall(
  333. path: Normalization_NormalizationClientMetadata.Methods.serverStreaming.path,
  334. request: request,
  335. callOptions: callOptions ?? self.defaultCallOptions,
  336. interceptors: self.interceptors?.makeserverStreamingInterceptors() ?? []
  337. )
  338. }
  339. internal func makeClientStreamingCall(
  340. callOptions: CallOptions? = nil
  341. ) -> GRPCAsyncClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  342. return self.makeAsyncClientStreamingCall(
  343. path: Normalization_NormalizationClientMetadata.Methods.ClientStreaming.path,
  344. callOptions: callOptions ?? self.defaultCallOptions,
  345. interceptors: self.interceptors?.makeClientStreamingInterceptors() ?? []
  346. )
  347. }
  348. internal func makeclientStreamingCall(
  349. callOptions: CallOptions? = nil
  350. ) -> GRPCAsyncClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  351. return self.makeAsyncClientStreamingCall(
  352. path: Normalization_NormalizationClientMetadata.Methods.clientStreaming.path,
  353. callOptions: callOptions ?? self.defaultCallOptions,
  354. interceptors: self.interceptors?.makeclientStreamingInterceptors() ?? []
  355. )
  356. }
  357. internal func makeBidirectionalStreamingCall(
  358. callOptions: CallOptions? = nil
  359. ) -> GRPCAsyncBidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  360. return self.makeAsyncBidirectionalStreamingCall(
  361. path: Normalization_NormalizationClientMetadata.Methods.BidirectionalStreaming.path,
  362. callOptions: callOptions ?? self.defaultCallOptions,
  363. interceptors: self.interceptors?.makeBidirectionalStreamingInterceptors() ?? []
  364. )
  365. }
  366. internal func makebidirectionalStreamingCall(
  367. callOptions: CallOptions? = nil
  368. ) -> GRPCAsyncBidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  369. return self.makeAsyncBidirectionalStreamingCall(
  370. path: Normalization_NormalizationClientMetadata.Methods.bidirectionalStreaming.path,
  371. callOptions: callOptions ?? self.defaultCallOptions,
  372. interceptors: self.interceptors?.makebidirectionalStreamingInterceptors() ?? []
  373. )
  374. }
  375. }
  376. @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
  377. extension Normalization_NormalizationAsyncClientProtocol {
  378. internal func Unary(
  379. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  380. callOptions: CallOptions? = nil
  381. ) async throws -> Normalization_FunctionName {
  382. return try await self.performAsyncUnaryCall(
  383. path: Normalization_NormalizationClientMetadata.Methods.Unary.path,
  384. request: request,
  385. callOptions: callOptions ?? self.defaultCallOptions,
  386. interceptors: self.interceptors?.makeUnaryInterceptors() ?? []
  387. )
  388. }
  389. internal func unary(
  390. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  391. callOptions: CallOptions? = nil
  392. ) async throws -> Normalization_FunctionName {
  393. return try await self.performAsyncUnaryCall(
  394. path: Normalization_NormalizationClientMetadata.Methods.unary.path,
  395. request: request,
  396. callOptions: callOptions ?? self.defaultCallOptions,
  397. interceptors: self.interceptors?.makeunaryInterceptors() ?? []
  398. )
  399. }
  400. internal func ServerStreaming(
  401. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  402. callOptions: CallOptions? = nil
  403. ) -> GRPCAsyncResponseStream<Normalization_FunctionName> {
  404. return self.performAsyncServerStreamingCall(
  405. path: Normalization_NormalizationClientMetadata.Methods.ServerStreaming.path,
  406. request: request,
  407. callOptions: callOptions ?? self.defaultCallOptions,
  408. interceptors: self.interceptors?.makeServerStreamingInterceptors() ?? []
  409. )
  410. }
  411. internal func serverStreaming(
  412. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  413. callOptions: CallOptions? = nil
  414. ) -> GRPCAsyncResponseStream<Normalization_FunctionName> {
  415. return self.performAsyncServerStreamingCall(
  416. path: Normalization_NormalizationClientMetadata.Methods.serverStreaming.path,
  417. request: request,
  418. callOptions: callOptions ?? self.defaultCallOptions,
  419. interceptors: self.interceptors?.makeserverStreamingInterceptors() ?? []
  420. )
  421. }
  422. internal func ClientStreaming<RequestStream>(
  423. _ requests: RequestStream,
  424. callOptions: CallOptions? = nil
  425. ) async throws -> Normalization_FunctionName where RequestStream: Sequence, RequestStream.Element == SwiftProtobuf.Google_Protobuf_Empty {
  426. return try await self.performAsyncClientStreamingCall(
  427. path: Normalization_NormalizationClientMetadata.Methods.ClientStreaming.path,
  428. requests: requests,
  429. callOptions: callOptions ?? self.defaultCallOptions,
  430. interceptors: self.interceptors?.makeClientStreamingInterceptors() ?? []
  431. )
  432. }
  433. internal func ClientStreaming<RequestStream>(
  434. _ requests: RequestStream,
  435. callOptions: CallOptions? = nil
  436. ) async throws -> Normalization_FunctionName where RequestStream: AsyncSequence & Sendable, RequestStream.Element == SwiftProtobuf.Google_Protobuf_Empty {
  437. return try await self.performAsyncClientStreamingCall(
  438. path: Normalization_NormalizationClientMetadata.Methods.ClientStreaming.path,
  439. requests: requests,
  440. callOptions: callOptions ?? self.defaultCallOptions,
  441. interceptors: self.interceptors?.makeClientStreamingInterceptors() ?? []
  442. )
  443. }
  444. internal func clientStreaming<RequestStream>(
  445. _ requests: RequestStream,
  446. callOptions: CallOptions? = nil
  447. ) async throws -> Normalization_FunctionName where RequestStream: Sequence, RequestStream.Element == SwiftProtobuf.Google_Protobuf_Empty {
  448. return try await self.performAsyncClientStreamingCall(
  449. path: Normalization_NormalizationClientMetadata.Methods.clientStreaming.path,
  450. requests: requests,
  451. callOptions: callOptions ?? self.defaultCallOptions,
  452. interceptors: self.interceptors?.makeclientStreamingInterceptors() ?? []
  453. )
  454. }
  455. internal func clientStreaming<RequestStream>(
  456. _ requests: RequestStream,
  457. callOptions: CallOptions? = nil
  458. ) async throws -> Normalization_FunctionName where RequestStream: AsyncSequence & Sendable, RequestStream.Element == SwiftProtobuf.Google_Protobuf_Empty {
  459. return try await self.performAsyncClientStreamingCall(
  460. path: Normalization_NormalizationClientMetadata.Methods.clientStreaming.path,
  461. requests: requests,
  462. callOptions: callOptions ?? self.defaultCallOptions,
  463. interceptors: self.interceptors?.makeclientStreamingInterceptors() ?? []
  464. )
  465. }
  466. internal func BidirectionalStreaming<RequestStream>(
  467. _ requests: RequestStream,
  468. callOptions: CallOptions? = nil
  469. ) -> GRPCAsyncResponseStream<Normalization_FunctionName> where RequestStream: Sequence, RequestStream.Element == SwiftProtobuf.Google_Protobuf_Empty {
  470. return self.performAsyncBidirectionalStreamingCall(
  471. path: Normalization_NormalizationClientMetadata.Methods.BidirectionalStreaming.path,
  472. requests: requests,
  473. callOptions: callOptions ?? self.defaultCallOptions,
  474. interceptors: self.interceptors?.makeBidirectionalStreamingInterceptors() ?? []
  475. )
  476. }
  477. internal func BidirectionalStreaming<RequestStream>(
  478. _ requests: RequestStream,
  479. callOptions: CallOptions? = nil
  480. ) -> GRPCAsyncResponseStream<Normalization_FunctionName> where RequestStream: AsyncSequence & Sendable, RequestStream.Element == SwiftProtobuf.Google_Protobuf_Empty {
  481. return self.performAsyncBidirectionalStreamingCall(
  482. path: Normalization_NormalizationClientMetadata.Methods.BidirectionalStreaming.path,
  483. requests: requests,
  484. callOptions: callOptions ?? self.defaultCallOptions,
  485. interceptors: self.interceptors?.makeBidirectionalStreamingInterceptors() ?? []
  486. )
  487. }
  488. internal func bidirectionalStreaming<RequestStream>(
  489. _ requests: RequestStream,
  490. callOptions: CallOptions? = nil
  491. ) -> GRPCAsyncResponseStream<Normalization_FunctionName> where RequestStream: Sequence, RequestStream.Element == SwiftProtobuf.Google_Protobuf_Empty {
  492. return self.performAsyncBidirectionalStreamingCall(
  493. path: Normalization_NormalizationClientMetadata.Methods.bidirectionalStreaming.path,
  494. requests: requests,
  495. callOptions: callOptions ?? self.defaultCallOptions,
  496. interceptors: self.interceptors?.makebidirectionalStreamingInterceptors() ?? []
  497. )
  498. }
  499. internal func bidirectionalStreaming<RequestStream>(
  500. _ requests: RequestStream,
  501. callOptions: CallOptions? = nil
  502. ) -> GRPCAsyncResponseStream<Normalization_FunctionName> where RequestStream: AsyncSequence & Sendable, RequestStream.Element == SwiftProtobuf.Google_Protobuf_Empty {
  503. return self.performAsyncBidirectionalStreamingCall(
  504. path: Normalization_NormalizationClientMetadata.Methods.bidirectionalStreaming.path,
  505. requests: requests,
  506. callOptions: callOptions ?? self.defaultCallOptions,
  507. interceptors: self.interceptors?.makebidirectionalStreamingInterceptors() ?? []
  508. )
  509. }
  510. }
  511. @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
  512. internal struct Normalization_NormalizationAsyncClient: Normalization_NormalizationAsyncClientProtocol {
  513. internal var channel: GRPCChannel
  514. internal var defaultCallOptions: CallOptions
  515. internal var interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol?
  516. internal init(
  517. channel: GRPCChannel,
  518. defaultCallOptions: CallOptions = CallOptions(),
  519. interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol? = nil
  520. ) {
  521. self.channel = channel
  522. self.defaultCallOptions = defaultCallOptions
  523. self.interceptors = interceptors
  524. }
  525. }
  526. internal protocol Normalization_NormalizationClientInterceptorFactoryProtocol: Sendable {
  527. /// - Returns: Interceptors to use when invoking 'Unary'.
  528. func makeUnaryInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  529. /// - Returns: Interceptors to use when invoking 'unary'.
  530. func makeunaryInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  531. /// - Returns: Interceptors to use when invoking 'ServerStreaming'.
  532. func makeServerStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  533. /// - Returns: Interceptors to use when invoking 'serverStreaming'.
  534. func makeserverStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  535. /// - Returns: Interceptors to use when invoking 'ClientStreaming'.
  536. func makeClientStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  537. /// - Returns: Interceptors to use when invoking 'clientStreaming'.
  538. func makeclientStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  539. /// - Returns: Interceptors to use when invoking 'BidirectionalStreaming'.
  540. func makeBidirectionalStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  541. /// - Returns: Interceptors to use when invoking 'bidirectionalStreaming'.
  542. func makebidirectionalStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  543. }
  544. internal enum Normalization_NormalizationClientMetadata {
  545. internal static let serviceDescriptor = GRPCServiceDescriptor(
  546. name: "Normalization",
  547. fullName: "normalization.Normalization",
  548. methods: [
  549. Normalization_NormalizationClientMetadata.Methods.Unary,
  550. Normalization_NormalizationClientMetadata.Methods.unary,
  551. Normalization_NormalizationClientMetadata.Methods.ServerStreaming,
  552. Normalization_NormalizationClientMetadata.Methods.serverStreaming,
  553. Normalization_NormalizationClientMetadata.Methods.ClientStreaming,
  554. Normalization_NormalizationClientMetadata.Methods.clientStreaming,
  555. Normalization_NormalizationClientMetadata.Methods.BidirectionalStreaming,
  556. Normalization_NormalizationClientMetadata.Methods.bidirectionalStreaming,
  557. ]
  558. )
  559. internal enum Methods {
  560. internal static let Unary = GRPCMethodDescriptor(
  561. name: "Unary",
  562. path: "/normalization.Normalization/Unary",
  563. type: GRPCCallType.unary
  564. )
  565. internal static let unary = GRPCMethodDescriptor(
  566. name: "unary",
  567. path: "/normalization.Normalization/unary",
  568. type: GRPCCallType.unary
  569. )
  570. internal static let ServerStreaming = GRPCMethodDescriptor(
  571. name: "ServerStreaming",
  572. path: "/normalization.Normalization/ServerStreaming",
  573. type: GRPCCallType.serverStreaming
  574. )
  575. internal static let serverStreaming = GRPCMethodDescriptor(
  576. name: "serverStreaming",
  577. path: "/normalization.Normalization/serverStreaming",
  578. type: GRPCCallType.serverStreaming
  579. )
  580. internal static let ClientStreaming = GRPCMethodDescriptor(
  581. name: "ClientStreaming",
  582. path: "/normalization.Normalization/ClientStreaming",
  583. type: GRPCCallType.clientStreaming
  584. )
  585. internal static let clientStreaming = GRPCMethodDescriptor(
  586. name: "clientStreaming",
  587. path: "/normalization.Normalization/clientStreaming",
  588. type: GRPCCallType.clientStreaming
  589. )
  590. internal static let BidirectionalStreaming = GRPCMethodDescriptor(
  591. name: "BidirectionalStreaming",
  592. path: "/normalization.Normalization/BidirectionalStreaming",
  593. type: GRPCCallType.bidirectionalStreaming
  594. )
  595. internal static let bidirectionalStreaming = GRPCMethodDescriptor(
  596. name: "bidirectionalStreaming",
  597. path: "/normalization.Normalization/bidirectionalStreaming",
  598. type: GRPCCallType.bidirectionalStreaming
  599. )
  600. }
  601. }
  602. /// To build a server, implement a class that conforms to this protocol.
  603. internal protocol Normalization_NormalizationProvider: CallHandlerProvider {
  604. var interceptors: Normalization_NormalizationServerInterceptorFactoryProtocol? { get }
  605. func Unary(request: SwiftProtobuf.Google_Protobuf_Empty, context: StatusOnlyCallContext) -> EventLoopFuture<Normalization_FunctionName>
  606. func unary(request: SwiftProtobuf.Google_Protobuf_Empty, context: StatusOnlyCallContext) -> EventLoopFuture<Normalization_FunctionName>
  607. func ServerStreaming(request: SwiftProtobuf.Google_Protobuf_Empty, context: StreamingResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<GRPCStatus>
  608. func serverStreaming(request: SwiftProtobuf.Google_Protobuf_Empty, context: StreamingResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<GRPCStatus>
  609. func ClientStreaming(context: UnaryResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<(StreamEvent<SwiftProtobuf.Google_Protobuf_Empty>) -> Void>
  610. func clientStreaming(context: UnaryResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<(StreamEvent<SwiftProtobuf.Google_Protobuf_Empty>) -> Void>
  611. func BidirectionalStreaming(context: StreamingResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<(StreamEvent<SwiftProtobuf.Google_Protobuf_Empty>) -> Void>
  612. func bidirectionalStreaming(context: StreamingResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<(StreamEvent<SwiftProtobuf.Google_Protobuf_Empty>) -> Void>
  613. }
  614. extension Normalization_NormalizationProvider {
  615. internal var serviceName: Substring {
  616. return Normalization_NormalizationServerMetadata.serviceDescriptor.fullName[...]
  617. }
  618. /// Determines, calls and returns the appropriate request handler, depending on the request's method.
  619. /// Returns nil for methods not handled by this service.
  620. internal func handle(
  621. method name: Substring,
  622. context: CallHandlerContext
  623. ) -> GRPCServerHandlerProtocol? {
  624. switch name {
  625. case "Unary":
  626. return UnaryServerHandler(
  627. context: context,
  628. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  629. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  630. interceptors: self.interceptors?.makeUnaryInterceptors() ?? [],
  631. userFunction: self.Unary(request:context:)
  632. )
  633. case "unary":
  634. return UnaryServerHandler(
  635. context: context,
  636. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  637. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  638. interceptors: self.interceptors?.makeunaryInterceptors() ?? [],
  639. userFunction: self.unary(request:context:)
  640. )
  641. case "ServerStreaming":
  642. return ServerStreamingServerHandler(
  643. context: context,
  644. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  645. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  646. interceptors: self.interceptors?.makeServerStreamingInterceptors() ?? [],
  647. userFunction: self.ServerStreaming(request:context:)
  648. )
  649. case "serverStreaming":
  650. return ServerStreamingServerHandler(
  651. context: context,
  652. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  653. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  654. interceptors: self.interceptors?.makeserverStreamingInterceptors() ?? [],
  655. userFunction: self.serverStreaming(request:context:)
  656. )
  657. case "ClientStreaming":
  658. return ClientStreamingServerHandler(
  659. context: context,
  660. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  661. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  662. interceptors: self.interceptors?.makeClientStreamingInterceptors() ?? [],
  663. observerFactory: self.ClientStreaming(context:)
  664. )
  665. case "clientStreaming":
  666. return ClientStreamingServerHandler(
  667. context: context,
  668. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  669. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  670. interceptors: self.interceptors?.makeclientStreamingInterceptors() ?? [],
  671. observerFactory: self.clientStreaming(context:)
  672. )
  673. case "BidirectionalStreaming":
  674. return BidirectionalStreamingServerHandler(
  675. context: context,
  676. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  677. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  678. interceptors: self.interceptors?.makeBidirectionalStreamingInterceptors() ?? [],
  679. observerFactory: self.BidirectionalStreaming(context:)
  680. )
  681. case "bidirectionalStreaming":
  682. return BidirectionalStreamingServerHandler(
  683. context: context,
  684. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  685. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  686. interceptors: self.interceptors?.makebidirectionalStreamingInterceptors() ?? [],
  687. observerFactory: self.bidirectionalStreaming(context:)
  688. )
  689. default:
  690. return nil
  691. }
  692. }
  693. }
  694. /// To implement a server, implement an object which conforms to this protocol.
  695. @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
  696. internal protocol Normalization_NormalizationAsyncProvider: CallHandlerProvider, Sendable {
  697. static var serviceDescriptor: GRPCServiceDescriptor { get }
  698. var interceptors: Normalization_NormalizationServerInterceptorFactoryProtocol? { get }
  699. func Unary(
  700. request: SwiftProtobuf.Google_Protobuf_Empty,
  701. context: GRPCAsyncServerCallContext
  702. ) async throws -> Normalization_FunctionName
  703. func unary(
  704. request: SwiftProtobuf.Google_Protobuf_Empty,
  705. context: GRPCAsyncServerCallContext
  706. ) async throws -> Normalization_FunctionName
  707. func ServerStreaming(
  708. request: SwiftProtobuf.Google_Protobuf_Empty,
  709. responseStream: GRPCAsyncResponseStreamWriter<Normalization_FunctionName>,
  710. context: GRPCAsyncServerCallContext
  711. ) async throws
  712. func serverStreaming(
  713. request: SwiftProtobuf.Google_Protobuf_Empty,
  714. responseStream: GRPCAsyncResponseStreamWriter<Normalization_FunctionName>,
  715. context: GRPCAsyncServerCallContext
  716. ) async throws
  717. func ClientStreaming(
  718. requestStream: GRPCAsyncRequestStream<SwiftProtobuf.Google_Protobuf_Empty>,
  719. context: GRPCAsyncServerCallContext
  720. ) async throws -> Normalization_FunctionName
  721. func clientStreaming(
  722. requestStream: GRPCAsyncRequestStream<SwiftProtobuf.Google_Protobuf_Empty>,
  723. context: GRPCAsyncServerCallContext
  724. ) async throws -> Normalization_FunctionName
  725. func BidirectionalStreaming(
  726. requestStream: GRPCAsyncRequestStream<SwiftProtobuf.Google_Protobuf_Empty>,
  727. responseStream: GRPCAsyncResponseStreamWriter<Normalization_FunctionName>,
  728. context: GRPCAsyncServerCallContext
  729. ) async throws
  730. func bidirectionalStreaming(
  731. requestStream: GRPCAsyncRequestStream<SwiftProtobuf.Google_Protobuf_Empty>,
  732. responseStream: GRPCAsyncResponseStreamWriter<Normalization_FunctionName>,
  733. context: GRPCAsyncServerCallContext
  734. ) async throws
  735. }
  736. @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
  737. extension Normalization_NormalizationAsyncProvider {
  738. internal static var serviceDescriptor: GRPCServiceDescriptor {
  739. return Normalization_NormalizationServerMetadata.serviceDescriptor
  740. }
  741. internal var serviceName: Substring {
  742. return Normalization_NormalizationServerMetadata.serviceDescriptor.fullName[...]
  743. }
  744. internal var interceptors: Normalization_NormalizationServerInterceptorFactoryProtocol? {
  745. return nil
  746. }
  747. internal func handle(
  748. method name: Substring,
  749. context: CallHandlerContext
  750. ) -> GRPCServerHandlerProtocol? {
  751. switch name {
  752. case "Unary":
  753. return GRPCAsyncServerHandler(
  754. context: context,
  755. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  756. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  757. interceptors: self.interceptors?.makeUnaryInterceptors() ?? [],
  758. wrapping: { try await self.Unary(request: $0, context: $1) }
  759. )
  760. case "unary":
  761. return GRPCAsyncServerHandler(
  762. context: context,
  763. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  764. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  765. interceptors: self.interceptors?.makeunaryInterceptors() ?? [],
  766. wrapping: { try await self.unary(request: $0, context: $1) }
  767. )
  768. case "ServerStreaming":
  769. return GRPCAsyncServerHandler(
  770. context: context,
  771. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  772. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  773. interceptors: self.interceptors?.makeServerStreamingInterceptors() ?? [],
  774. wrapping: { try await self.ServerStreaming(request: $0, responseStream: $1, context: $2) }
  775. )
  776. case "serverStreaming":
  777. return GRPCAsyncServerHandler(
  778. context: context,
  779. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  780. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  781. interceptors: self.interceptors?.makeserverStreamingInterceptors() ?? [],
  782. wrapping: { try await self.serverStreaming(request: $0, responseStream: $1, context: $2) }
  783. )
  784. case "ClientStreaming":
  785. return GRPCAsyncServerHandler(
  786. context: context,
  787. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  788. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  789. interceptors: self.interceptors?.makeClientStreamingInterceptors() ?? [],
  790. wrapping: { try await self.ClientStreaming(requestStream: $0, context: $1) }
  791. )
  792. case "clientStreaming":
  793. return GRPCAsyncServerHandler(
  794. context: context,
  795. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  796. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  797. interceptors: self.interceptors?.makeclientStreamingInterceptors() ?? [],
  798. wrapping: { try await self.clientStreaming(requestStream: $0, context: $1) }
  799. )
  800. case "BidirectionalStreaming":
  801. return GRPCAsyncServerHandler(
  802. context: context,
  803. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  804. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  805. interceptors: self.interceptors?.makeBidirectionalStreamingInterceptors() ?? [],
  806. wrapping: { try await self.BidirectionalStreaming(requestStream: $0, responseStream: $1, context: $2) }
  807. )
  808. case "bidirectionalStreaming":
  809. return GRPCAsyncServerHandler(
  810. context: context,
  811. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  812. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  813. interceptors: self.interceptors?.makebidirectionalStreamingInterceptors() ?? [],
  814. wrapping: { try await self.bidirectionalStreaming(requestStream: $0, responseStream: $1, context: $2) }
  815. )
  816. default:
  817. return nil
  818. }
  819. }
  820. }
  821. internal protocol Normalization_NormalizationServerInterceptorFactoryProtocol: Sendable {
  822. /// - Returns: Interceptors to use when handling 'Unary'.
  823. /// Defaults to calling `self.makeInterceptors()`.
  824. func makeUnaryInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  825. /// - Returns: Interceptors to use when handling 'unary'.
  826. /// Defaults to calling `self.makeInterceptors()`.
  827. func makeunaryInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  828. /// - Returns: Interceptors to use when handling 'ServerStreaming'.
  829. /// Defaults to calling `self.makeInterceptors()`.
  830. func makeServerStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  831. /// - Returns: Interceptors to use when handling 'serverStreaming'.
  832. /// Defaults to calling `self.makeInterceptors()`.
  833. func makeserverStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  834. /// - Returns: Interceptors to use when handling 'ClientStreaming'.
  835. /// Defaults to calling `self.makeInterceptors()`.
  836. func makeClientStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  837. /// - Returns: Interceptors to use when handling 'clientStreaming'.
  838. /// Defaults to calling `self.makeInterceptors()`.
  839. func makeclientStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  840. /// - Returns: Interceptors to use when handling 'BidirectionalStreaming'.
  841. /// Defaults to calling `self.makeInterceptors()`.
  842. func makeBidirectionalStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  843. /// - Returns: Interceptors to use when handling 'bidirectionalStreaming'.
  844. /// Defaults to calling `self.makeInterceptors()`.
  845. func makebidirectionalStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  846. }
  847. internal enum Normalization_NormalizationServerMetadata {
  848. internal static let serviceDescriptor = GRPCServiceDescriptor(
  849. name: "Normalization",
  850. fullName: "normalization.Normalization",
  851. methods: [
  852. Normalization_NormalizationServerMetadata.Methods.Unary,
  853. Normalization_NormalizationServerMetadata.Methods.unary,
  854. Normalization_NormalizationServerMetadata.Methods.ServerStreaming,
  855. Normalization_NormalizationServerMetadata.Methods.serverStreaming,
  856. Normalization_NormalizationServerMetadata.Methods.ClientStreaming,
  857. Normalization_NormalizationServerMetadata.Methods.clientStreaming,
  858. Normalization_NormalizationServerMetadata.Methods.BidirectionalStreaming,
  859. Normalization_NormalizationServerMetadata.Methods.bidirectionalStreaming,
  860. ]
  861. )
  862. internal enum Methods {
  863. internal static let Unary = GRPCMethodDescriptor(
  864. name: "Unary",
  865. path: "/normalization.Normalization/Unary",
  866. type: GRPCCallType.unary
  867. )
  868. internal static let unary = GRPCMethodDescriptor(
  869. name: "unary",
  870. path: "/normalization.Normalization/unary",
  871. type: GRPCCallType.unary
  872. )
  873. internal static let ServerStreaming = GRPCMethodDescriptor(
  874. name: "ServerStreaming",
  875. path: "/normalization.Normalization/ServerStreaming",
  876. type: GRPCCallType.serverStreaming
  877. )
  878. internal static let serverStreaming = GRPCMethodDescriptor(
  879. name: "serverStreaming",
  880. path: "/normalization.Normalization/serverStreaming",
  881. type: GRPCCallType.serverStreaming
  882. )
  883. internal static let ClientStreaming = GRPCMethodDescriptor(
  884. name: "ClientStreaming",
  885. path: "/normalization.Normalization/ClientStreaming",
  886. type: GRPCCallType.clientStreaming
  887. )
  888. internal static let clientStreaming = GRPCMethodDescriptor(
  889. name: "clientStreaming",
  890. path: "/normalization.Normalization/clientStreaming",
  891. type: GRPCCallType.clientStreaming
  892. )
  893. internal static let BidirectionalStreaming = GRPCMethodDescriptor(
  894. name: "BidirectionalStreaming",
  895. path: "/normalization.Normalization/BidirectionalStreaming",
  896. type: GRPCCallType.bidirectionalStreaming
  897. )
  898. internal static let bidirectionalStreaming = GRPCMethodDescriptor(
  899. name: "bidirectionalStreaming",
  900. path: "/normalization.Normalization/bidirectionalStreaming",
  901. type: GRPCCallType.bidirectionalStreaming
  902. )
  903. }
  904. }