normalization.grpc.swift 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. //
  2. // DO NOT EDIT.
  3. //
  4. // Generated by the protocol buffer compiler.
  5. // Source: normalization.proto
  6. //
  7. //
  8. // Copyright 2018, gRPC Authors All rights reserved.
  9. //
  10. // Licensed under the Apache License, Version 2.0 (the "License");
  11. // you may not use this file except in compliance with the License.
  12. // You may obtain a copy of the License at
  13. //
  14. // http://www.apache.org/licenses/LICENSE-2.0
  15. //
  16. // Unless required by applicable law or agreed to in writing, software
  17. // distributed under the License is distributed on an "AS IS" BASIS,
  18. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. // See the License for the specific language governing permissions and
  20. // limitations under the License.
  21. //
  22. import GRPC
  23. import NIO
  24. import SwiftProtobuf
  25. /// Usage: instantiate `Normalization_NormalizationClient`, then call methods of this protocol to make API calls.
  26. internal protocol Normalization_NormalizationClientProtocol: GRPCClient {
  27. var serviceName: String { get }
  28. var interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol? { get }
  29. func Unary(
  30. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  31. callOptions: CallOptions?
  32. ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  33. func unary(
  34. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  35. callOptions: CallOptions?
  36. ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  37. func ServerStreaming(
  38. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  39. callOptions: CallOptions?,
  40. handler: @escaping (Normalization_FunctionName) -> Void
  41. ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  42. func serverStreaming(
  43. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  44. callOptions: CallOptions?,
  45. handler: @escaping (Normalization_FunctionName) -> Void
  46. ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  47. func ClientStreaming(
  48. callOptions: CallOptions?
  49. ) -> ClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  50. func clientStreaming(
  51. callOptions: CallOptions?
  52. ) -> ClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  53. func BidirectionalStreaming(
  54. callOptions: CallOptions?,
  55. handler: @escaping (Normalization_FunctionName) -> Void
  56. ) -> BidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  57. func bidirectionalStreaming(
  58. callOptions: CallOptions?,
  59. handler: @escaping (Normalization_FunctionName) -> Void
  60. ) -> BidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>
  61. }
  62. extension Normalization_NormalizationClientProtocol {
  63. internal var serviceName: String {
  64. return "normalization.Normalization"
  65. }
  66. /// Unary call to Unary
  67. ///
  68. /// - Parameters:
  69. /// - request: Request to send to Unary.
  70. /// - callOptions: Call options.
  71. /// - Returns: A `UnaryCall` with futures for the metadata, status and response.
  72. internal func Unary(
  73. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  74. callOptions: CallOptions? = nil
  75. ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  76. return self.makeUnaryCall(
  77. path: Normalization_NormalizationClientMetadata.Methods.Unary.path,
  78. request: request,
  79. callOptions: callOptions ?? self.defaultCallOptions,
  80. interceptors: self.interceptors?.makeUnaryInterceptors() ?? []
  81. )
  82. }
  83. /// Unary call to unary
  84. ///
  85. /// - Parameters:
  86. /// - request: Request to send to unary.
  87. /// - callOptions: Call options.
  88. /// - Returns: A `UnaryCall` with futures for the metadata, status and response.
  89. internal func unary(
  90. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  91. callOptions: CallOptions? = nil
  92. ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  93. return self.makeUnaryCall(
  94. path: Normalization_NormalizationClientMetadata.Methods.unary.path,
  95. request: request,
  96. callOptions: callOptions ?? self.defaultCallOptions,
  97. interceptors: self.interceptors?.makeunaryInterceptors() ?? []
  98. )
  99. }
  100. /// Server streaming call to ServerStreaming
  101. ///
  102. /// - Parameters:
  103. /// - request: Request to send to ServerStreaming.
  104. /// - callOptions: Call options.
  105. /// - handler: A closure called when each response is received from the server.
  106. /// - Returns: A `ServerStreamingCall` with futures for the metadata and status.
  107. internal func ServerStreaming(
  108. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  109. callOptions: CallOptions? = nil,
  110. handler: @escaping (Normalization_FunctionName) -> Void
  111. ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  112. return self.makeServerStreamingCall(
  113. path: Normalization_NormalizationClientMetadata.Methods.ServerStreaming.path,
  114. request: request,
  115. callOptions: callOptions ?? self.defaultCallOptions,
  116. interceptors: self.interceptors?.makeServerStreamingInterceptors() ?? [],
  117. handler: handler
  118. )
  119. }
  120. /// Server streaming call to serverStreaming
  121. ///
  122. /// - Parameters:
  123. /// - request: Request to send to serverStreaming.
  124. /// - callOptions: Call options.
  125. /// - handler: A closure called when each response is received from the server.
  126. /// - Returns: A `ServerStreamingCall` with futures for the metadata and status.
  127. internal func serverStreaming(
  128. _ request: SwiftProtobuf.Google_Protobuf_Empty,
  129. callOptions: CallOptions? = nil,
  130. handler: @escaping (Normalization_FunctionName) -> Void
  131. ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  132. return self.makeServerStreamingCall(
  133. path: Normalization_NormalizationClientMetadata.Methods.serverStreaming.path,
  134. request: request,
  135. callOptions: callOptions ?? self.defaultCallOptions,
  136. interceptors: self.interceptors?.makeserverStreamingInterceptors() ?? [],
  137. handler: handler
  138. )
  139. }
  140. /// Client streaming call to ClientStreaming
  141. ///
  142. /// Callers should use the `send` method on the returned object to send messages
  143. /// to the server. The caller should send an `.end` after the final message has been sent.
  144. ///
  145. /// - Parameters:
  146. /// - callOptions: Call options.
  147. /// - Returns: A `ClientStreamingCall` with futures for the metadata, status and response.
  148. internal func ClientStreaming(
  149. callOptions: CallOptions? = nil
  150. ) -> ClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  151. return self.makeClientStreamingCall(
  152. path: Normalization_NormalizationClientMetadata.Methods.ClientStreaming.path,
  153. callOptions: callOptions ?? self.defaultCallOptions,
  154. interceptors: self.interceptors?.makeClientStreamingInterceptors() ?? []
  155. )
  156. }
  157. /// Client streaming call to clientStreaming
  158. ///
  159. /// Callers should use the `send` method on the returned object to send messages
  160. /// to the server. The caller should send an `.end` after the final message has been sent.
  161. ///
  162. /// - Parameters:
  163. /// - callOptions: Call options.
  164. /// - Returns: A `ClientStreamingCall` with futures for the metadata, status and response.
  165. internal func clientStreaming(
  166. callOptions: CallOptions? = nil
  167. ) -> ClientStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  168. return self.makeClientStreamingCall(
  169. path: Normalization_NormalizationClientMetadata.Methods.clientStreaming.path,
  170. callOptions: callOptions ?? self.defaultCallOptions,
  171. interceptors: self.interceptors?.makeclientStreamingInterceptors() ?? []
  172. )
  173. }
  174. /// Bidirectional streaming call to BidirectionalStreaming
  175. ///
  176. /// Callers should use the `send` method on the returned object to send messages
  177. /// to the server. The caller should send an `.end` after the final message has been sent.
  178. ///
  179. /// - Parameters:
  180. /// - callOptions: Call options.
  181. /// - handler: A closure called when each response is received from the server.
  182. /// - Returns: A `ClientStreamingCall` with futures for the metadata and status.
  183. internal func BidirectionalStreaming(
  184. callOptions: CallOptions? = nil,
  185. handler: @escaping (Normalization_FunctionName) -> Void
  186. ) -> BidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  187. return self.makeBidirectionalStreamingCall(
  188. path: Normalization_NormalizationClientMetadata.Methods.BidirectionalStreaming.path,
  189. callOptions: callOptions ?? self.defaultCallOptions,
  190. interceptors: self.interceptors?.makeBidirectionalStreamingInterceptors() ?? [],
  191. handler: handler
  192. )
  193. }
  194. /// Bidirectional streaming call to bidirectionalStreaming
  195. ///
  196. /// Callers should use the `send` method on the returned object to send messages
  197. /// to the server. The caller should send an `.end` after the final message has been sent.
  198. ///
  199. /// - Parameters:
  200. /// - callOptions: Call options.
  201. /// - handler: A closure called when each response is received from the server.
  202. /// - Returns: A `ClientStreamingCall` with futures for the metadata and status.
  203. internal func bidirectionalStreaming(
  204. callOptions: CallOptions? = nil,
  205. handler: @escaping (Normalization_FunctionName) -> Void
  206. ) -> BidirectionalStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName> {
  207. return self.makeBidirectionalStreamingCall(
  208. path: Normalization_NormalizationClientMetadata.Methods.bidirectionalStreaming.path,
  209. callOptions: callOptions ?? self.defaultCallOptions,
  210. interceptors: self.interceptors?.makebidirectionalStreamingInterceptors() ?? [],
  211. handler: handler
  212. )
  213. }
  214. }
  215. internal final class Normalization_NormalizationClient: Normalization_NormalizationClientProtocol {
  216. internal let channel: GRPCChannel
  217. internal var defaultCallOptions: CallOptions
  218. internal var interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol?
  219. /// Creates a client for the normalization.Normalization service.
  220. ///
  221. /// - Parameters:
  222. /// - channel: `GRPCChannel` to the service host.
  223. /// - defaultCallOptions: Options to use for each service call if the user doesn't provide them.
  224. /// - interceptors: A factory providing interceptors for each RPC.
  225. internal init(
  226. channel: GRPCChannel,
  227. defaultCallOptions: CallOptions = CallOptions(),
  228. interceptors: Normalization_NormalizationClientInterceptorFactoryProtocol? = nil
  229. ) {
  230. self.channel = channel
  231. self.defaultCallOptions = defaultCallOptions
  232. self.interceptors = interceptors
  233. }
  234. }
  235. internal protocol Normalization_NormalizationClientInterceptorFactoryProtocol {
  236. /// - Returns: Interceptors to use when invoking 'Unary'.
  237. func makeUnaryInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  238. /// - Returns: Interceptors to use when invoking 'unary'.
  239. func makeunaryInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  240. /// - Returns: Interceptors to use when invoking 'ServerStreaming'.
  241. func makeServerStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  242. /// - Returns: Interceptors to use when invoking 'serverStreaming'.
  243. func makeserverStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  244. /// - Returns: Interceptors to use when invoking 'ClientStreaming'.
  245. func makeClientStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  246. /// - Returns: Interceptors to use when invoking 'clientStreaming'.
  247. func makeclientStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  248. /// - Returns: Interceptors to use when invoking 'BidirectionalStreaming'.
  249. func makeBidirectionalStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  250. /// - Returns: Interceptors to use when invoking 'bidirectionalStreaming'.
  251. func makebidirectionalStreamingInterceptors() -> [ClientInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  252. }
  253. internal enum Normalization_NormalizationClientMetadata {
  254. internal static let serviceDescriptor = GRPCServiceDescriptor(
  255. name: "Normalization",
  256. fullName: "normalization.Normalization",
  257. methods: [
  258. Normalization_NormalizationClientMetadata.Methods.Unary,
  259. Normalization_NormalizationClientMetadata.Methods.unary,
  260. Normalization_NormalizationClientMetadata.Methods.ServerStreaming,
  261. Normalization_NormalizationClientMetadata.Methods.serverStreaming,
  262. Normalization_NormalizationClientMetadata.Methods.ClientStreaming,
  263. Normalization_NormalizationClientMetadata.Methods.clientStreaming,
  264. Normalization_NormalizationClientMetadata.Methods.BidirectionalStreaming,
  265. Normalization_NormalizationClientMetadata.Methods.bidirectionalStreaming,
  266. ]
  267. )
  268. internal enum Methods {
  269. internal static let Unary = GRPCMethodDescriptor(
  270. name: "Unary",
  271. path: "/normalization.Normalization/Unary",
  272. type: GRPCCallType.unary
  273. )
  274. internal static let unary = GRPCMethodDescriptor(
  275. name: "unary",
  276. path: "/normalization.Normalization/unary",
  277. type: GRPCCallType.unary
  278. )
  279. internal static let ServerStreaming = GRPCMethodDescriptor(
  280. name: "ServerStreaming",
  281. path: "/normalization.Normalization/ServerStreaming",
  282. type: GRPCCallType.serverStreaming
  283. )
  284. internal static let serverStreaming = GRPCMethodDescriptor(
  285. name: "serverStreaming",
  286. path: "/normalization.Normalization/serverStreaming",
  287. type: GRPCCallType.serverStreaming
  288. )
  289. internal static let ClientStreaming = GRPCMethodDescriptor(
  290. name: "ClientStreaming",
  291. path: "/normalization.Normalization/ClientStreaming",
  292. type: GRPCCallType.clientStreaming
  293. )
  294. internal static let clientStreaming = GRPCMethodDescriptor(
  295. name: "clientStreaming",
  296. path: "/normalization.Normalization/clientStreaming",
  297. type: GRPCCallType.clientStreaming
  298. )
  299. internal static let BidirectionalStreaming = GRPCMethodDescriptor(
  300. name: "BidirectionalStreaming",
  301. path: "/normalization.Normalization/BidirectionalStreaming",
  302. type: GRPCCallType.bidirectionalStreaming
  303. )
  304. internal static let bidirectionalStreaming = GRPCMethodDescriptor(
  305. name: "bidirectionalStreaming",
  306. path: "/normalization.Normalization/bidirectionalStreaming",
  307. type: GRPCCallType.bidirectionalStreaming
  308. )
  309. }
  310. }
  311. /// To build a server, implement a class that conforms to this protocol.
  312. internal protocol Normalization_NormalizationProvider: CallHandlerProvider {
  313. var interceptors: Normalization_NormalizationServerInterceptorFactoryProtocol? { get }
  314. func Unary(request: SwiftProtobuf.Google_Protobuf_Empty, context: StatusOnlyCallContext) -> EventLoopFuture<Normalization_FunctionName>
  315. func unary(request: SwiftProtobuf.Google_Protobuf_Empty, context: StatusOnlyCallContext) -> EventLoopFuture<Normalization_FunctionName>
  316. func ServerStreaming(request: SwiftProtobuf.Google_Protobuf_Empty, context: StreamingResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<GRPCStatus>
  317. func serverStreaming(request: SwiftProtobuf.Google_Protobuf_Empty, context: StreamingResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<GRPCStatus>
  318. func ClientStreaming(context: UnaryResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<(StreamEvent<SwiftProtobuf.Google_Protobuf_Empty>) -> Void>
  319. func clientStreaming(context: UnaryResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<(StreamEvent<SwiftProtobuf.Google_Protobuf_Empty>) -> Void>
  320. func BidirectionalStreaming(context: StreamingResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<(StreamEvent<SwiftProtobuf.Google_Protobuf_Empty>) -> Void>
  321. func bidirectionalStreaming(context: StreamingResponseCallContext<Normalization_FunctionName>) -> EventLoopFuture<(StreamEvent<SwiftProtobuf.Google_Protobuf_Empty>) -> Void>
  322. }
  323. extension Normalization_NormalizationProvider {
  324. internal var serviceName: Substring {
  325. return Normalization_NormalizationServerMetadata.serviceDescriptor.fullName[...]
  326. }
  327. /// Determines, calls and returns the appropriate request handler, depending on the request's method.
  328. /// Returns nil for methods not handled by this service.
  329. internal func handle(
  330. method name: Substring,
  331. context: CallHandlerContext
  332. ) -> GRPCServerHandlerProtocol? {
  333. switch name {
  334. case "Unary":
  335. return UnaryServerHandler(
  336. context: context,
  337. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  338. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  339. interceptors: self.interceptors?.makeUnaryInterceptors() ?? [],
  340. userFunction: self.Unary(request:context:)
  341. )
  342. case "unary":
  343. return UnaryServerHandler(
  344. context: context,
  345. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  346. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  347. interceptors: self.interceptors?.makeunaryInterceptors() ?? [],
  348. userFunction: self.unary(request:context:)
  349. )
  350. case "ServerStreaming":
  351. return ServerStreamingServerHandler(
  352. context: context,
  353. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  354. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  355. interceptors: self.interceptors?.makeServerStreamingInterceptors() ?? [],
  356. userFunction: self.ServerStreaming(request:context:)
  357. )
  358. case "serverStreaming":
  359. return ServerStreamingServerHandler(
  360. context: context,
  361. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  362. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  363. interceptors: self.interceptors?.makeserverStreamingInterceptors() ?? [],
  364. userFunction: self.serverStreaming(request:context:)
  365. )
  366. case "ClientStreaming":
  367. return ClientStreamingServerHandler(
  368. context: context,
  369. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  370. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  371. interceptors: self.interceptors?.makeClientStreamingInterceptors() ?? [],
  372. observerFactory: self.ClientStreaming(context:)
  373. )
  374. case "clientStreaming":
  375. return ClientStreamingServerHandler(
  376. context: context,
  377. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  378. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  379. interceptors: self.interceptors?.makeclientStreamingInterceptors() ?? [],
  380. observerFactory: self.clientStreaming(context:)
  381. )
  382. case "BidirectionalStreaming":
  383. return BidirectionalStreamingServerHandler(
  384. context: context,
  385. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  386. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  387. interceptors: self.interceptors?.makeBidirectionalStreamingInterceptors() ?? [],
  388. observerFactory: self.BidirectionalStreaming(context:)
  389. )
  390. case "bidirectionalStreaming":
  391. return BidirectionalStreamingServerHandler(
  392. context: context,
  393. requestDeserializer: ProtobufDeserializer<SwiftProtobuf.Google_Protobuf_Empty>(),
  394. responseSerializer: ProtobufSerializer<Normalization_FunctionName>(),
  395. interceptors: self.interceptors?.makebidirectionalStreamingInterceptors() ?? [],
  396. observerFactory: self.bidirectionalStreaming(context:)
  397. )
  398. default:
  399. return nil
  400. }
  401. }
  402. }
  403. internal protocol Normalization_NormalizationServerInterceptorFactoryProtocol {
  404. /// - Returns: Interceptors to use when handling 'Unary'.
  405. /// Defaults to calling `self.makeInterceptors()`.
  406. func makeUnaryInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  407. /// - Returns: Interceptors to use when handling 'unary'.
  408. /// Defaults to calling `self.makeInterceptors()`.
  409. func makeunaryInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  410. /// - Returns: Interceptors to use when handling 'ServerStreaming'.
  411. /// Defaults to calling `self.makeInterceptors()`.
  412. func makeServerStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  413. /// - Returns: Interceptors to use when handling 'serverStreaming'.
  414. /// Defaults to calling `self.makeInterceptors()`.
  415. func makeserverStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  416. /// - Returns: Interceptors to use when handling 'ClientStreaming'.
  417. /// Defaults to calling `self.makeInterceptors()`.
  418. func makeClientStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  419. /// - Returns: Interceptors to use when handling 'clientStreaming'.
  420. /// Defaults to calling `self.makeInterceptors()`.
  421. func makeclientStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  422. /// - Returns: Interceptors to use when handling 'BidirectionalStreaming'.
  423. /// Defaults to calling `self.makeInterceptors()`.
  424. func makeBidirectionalStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  425. /// - Returns: Interceptors to use when handling 'bidirectionalStreaming'.
  426. /// Defaults to calling `self.makeInterceptors()`.
  427. func makebidirectionalStreamingInterceptors() -> [ServerInterceptor<SwiftProtobuf.Google_Protobuf_Empty, Normalization_FunctionName>]
  428. }
  429. internal enum Normalization_NormalizationServerMetadata {
  430. internal static let serviceDescriptor = GRPCServiceDescriptor(
  431. name: "Normalization",
  432. fullName: "normalization.Normalization",
  433. methods: [
  434. Normalization_NormalizationServerMetadata.Methods.Unary,
  435. Normalization_NormalizationServerMetadata.Methods.unary,
  436. Normalization_NormalizationServerMetadata.Methods.ServerStreaming,
  437. Normalization_NormalizationServerMetadata.Methods.serverStreaming,
  438. Normalization_NormalizationServerMetadata.Methods.ClientStreaming,
  439. Normalization_NormalizationServerMetadata.Methods.clientStreaming,
  440. Normalization_NormalizationServerMetadata.Methods.BidirectionalStreaming,
  441. Normalization_NormalizationServerMetadata.Methods.bidirectionalStreaming,
  442. ]
  443. )
  444. internal enum Methods {
  445. internal static let Unary = GRPCMethodDescriptor(
  446. name: "Unary",
  447. path: "/normalization.Normalization/Unary",
  448. type: GRPCCallType.unary
  449. )
  450. internal static let unary = GRPCMethodDescriptor(
  451. name: "unary",
  452. path: "/normalization.Normalization/unary",
  453. type: GRPCCallType.unary
  454. )
  455. internal static let ServerStreaming = GRPCMethodDescriptor(
  456. name: "ServerStreaming",
  457. path: "/normalization.Normalization/ServerStreaming",
  458. type: GRPCCallType.serverStreaming
  459. )
  460. internal static let serverStreaming = GRPCMethodDescriptor(
  461. name: "serverStreaming",
  462. path: "/normalization.Normalization/serverStreaming",
  463. type: GRPCCallType.serverStreaming
  464. )
  465. internal static let ClientStreaming = GRPCMethodDescriptor(
  466. name: "ClientStreaming",
  467. path: "/normalization.Normalization/ClientStreaming",
  468. type: GRPCCallType.clientStreaming
  469. )
  470. internal static let clientStreaming = GRPCMethodDescriptor(
  471. name: "clientStreaming",
  472. path: "/normalization.Normalization/clientStreaming",
  473. type: GRPCCallType.clientStreaming
  474. )
  475. internal static let BidirectionalStreaming = GRPCMethodDescriptor(
  476. name: "BidirectionalStreaming",
  477. path: "/normalization.Normalization/BidirectionalStreaming",
  478. type: GRPCCallType.bidirectionalStreaming
  479. )
  480. internal static let bidirectionalStreaming = GRPCMethodDescriptor(
  481. name: "bidirectionalStreaming",
  482. path: "/normalization.Normalization/bidirectionalStreaming",
  483. type: GRPCCallType.bidirectionalStreaming
  484. )
  485. }
  486. }