empty_service.grpc.swift 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. public import GRPCCore
  23. internal import GRPCProtobuf
  24. public enum Grpc_Testing_EmptyService {
  25. public static let descriptor = GRPCCore.ServiceDescriptor.grpc_testing_EmptyService
  26. public enum Method {
  27. public static let descriptors: [GRPCCore.MethodDescriptor] = []
  28. }
  29. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  30. public typealias StreamingServiceProtocol = Grpc_Testing_EmptyServiceStreamingServiceProtocol
  31. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  32. public typealias ServiceProtocol = Grpc_Testing_EmptyServiceServiceProtocol
  33. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  34. public typealias ClientProtocol = Grpc_Testing_EmptyServiceClientProtocol
  35. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  36. public typealias Client = Grpc_Testing_EmptyServiceClient
  37. }
  38. extension GRPCCore.ServiceDescriptor {
  39. public static let grpc_testing_EmptyService = Self(
  40. package: "grpc.testing",
  41. service: "EmptyService"
  42. )
  43. }
  44. /// A service that has zero methods.
  45. /// See https://github.com/grpc/grpc/issues/15574
  46. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  47. public protocol Grpc_Testing_EmptyServiceStreamingServiceProtocol: GRPCCore.RegistrableRPCService {}
  48. /// Conformance to `GRPCCore.RegistrableRPCService`.
  49. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  50. extension Grpc_Testing_EmptyService.StreamingServiceProtocol {
  51. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  52. public func registerMethods(with router: inout GRPCCore.RPCRouter) {}
  53. }
  54. /// A service that has zero methods.
  55. /// See https://github.com/grpc/grpc/issues/15574
  56. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  57. public protocol Grpc_Testing_EmptyServiceServiceProtocol: Grpc_Testing_EmptyService.StreamingServiceProtocol {}
  58. /// Partial conformance to `Grpc_Testing_EmptyServiceStreamingServiceProtocol`.
  59. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  60. extension Grpc_Testing_EmptyService.ServiceProtocol {
  61. }
  62. /// A service that has zero methods.
  63. /// See https://github.com/grpc/grpc/issues/15574
  64. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  65. public protocol Grpc_Testing_EmptyServiceClientProtocol: Sendable {}
  66. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  67. extension Grpc_Testing_EmptyService.ClientProtocol {
  68. }
  69. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  70. extension Grpc_Testing_EmptyService.ClientProtocol {
  71. }
  72. /// A service that has zero methods.
  73. /// See https://github.com/grpc/grpc/issues/15574
  74. @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
  75. public struct Grpc_Testing_EmptyServiceClient: Grpc_Testing_EmptyService.ClientProtocol {
  76. private let client: GRPCCore.GRPCClient
  77. public init(wrapping client: GRPCCore.GRPCClient) {
  78. self.client = client
  79. }
  80. }