empty_service.grpc.swift 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // Copyright 2018 gRPC authors.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // DO NOT EDIT.
  15. // swift-format-ignore-file
  16. //
  17. // Generated by the gRPC Swift generator plugin for the protocol buffer compiler.
  18. // Source: src/proto/grpc/testing/empty_service.proto
  19. //
  20. // For information on using the generated types, please see the documentation:
  21. // https://github.com/grpc/grpc-swift
  22. import GRPCCore
  23. import GRPCProtobuf
  24. public enum Grpc_Testing_EmptyService {
  25. public enum Method {
  26. public static let descriptors: [MethodDescriptor] = []
  27. }
  28. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  29. public typealias StreamingServiceProtocol = Grpc_Testing_EmptyServiceStreamingServiceProtocol
  30. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  31. public typealias ServiceProtocol = Grpc_Testing_EmptyServiceServiceProtocol
  32. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  33. public typealias ClientProtocol = Grpc_Testing_EmptyServiceClientProtocol
  34. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  35. public typealias Client = Grpc_Testing_EmptyServiceClient
  36. }
  37. /// A service that has zero methods.
  38. /// See https://github.com/grpc/grpc/issues/15574
  39. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  40. public protocol Grpc_Testing_EmptyServiceStreamingServiceProtocol: GRPCCore.RegistrableRPCService {}
  41. /// Conformance to `GRPCCore.RegistrableRPCService`.
  42. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  43. extension Grpc_Testing_EmptyService.StreamingServiceProtocol {
  44. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  45. public func registerMethods(with router: inout GRPCCore.RPCRouter) {}
  46. }
  47. /// A service that has zero methods.
  48. /// See https://github.com/grpc/grpc/issues/15574
  49. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  50. public protocol Grpc_Testing_EmptyServiceServiceProtocol: Grpc_Testing_EmptyService.StreamingServiceProtocol {}
  51. /// Partial conformance to `Grpc_Testing_EmptyServiceStreamingServiceProtocol`.
  52. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  53. extension Grpc_Testing_EmptyService.ServiceProtocol {
  54. }
  55. /// A service that has zero methods.
  56. /// See https://github.com/grpc/grpc/issues/15574
  57. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  58. public protocol Grpc_Testing_EmptyServiceClientProtocol: Sendable {}
  59. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  60. extension Grpc_Testing_EmptyService.ClientProtocol {
  61. }
  62. /// A service that has zero methods.
  63. /// See https://github.com/grpc/grpc/issues/15574
  64. @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
  65. public struct Grpc_Testing_EmptyServiceClient: Grpc_Testing_EmptyService.ClientProtocol {
  66. private let client: GRPCCore.GRPCClient
  67. public init(client: GRPCCore.GRPCClient) {
  68. self.client = client
  69. }
  70. }