@@ -30,6 +30,7 @@ internal import SwiftProtobuf
30
30
// MARK: - ErrorService
31
31
32
32
/// Namespace containing generated types for the "ErrorService" service.
33
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
33
34
internal enum ErrorService {
34
35
/// Service descriptor for the "ErrorService" service.
35
36
internal static let descriptor = GRPCCore . ServiceDescriptor ( fullyQualifiedService: " ErrorService " )
@@ -54,13 +55,15 @@ internal enum ErrorService {
54
55
}
55
56
}
56
57
58
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
57
59
extension GRPCCore . ServiceDescriptor {
58
60
/// Service descriptor for the "ErrorService" service.
59
61
internal static let ErrorService = GRPCCore . ServiceDescriptor ( fullyQualifiedService: " ErrorService " )
60
62
}
61
63
62
64
// MARK: ErrorService (server)
63
65
66
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
64
67
extension ErrorService {
65
68
/// Streaming variant of the service protocol for the "ErrorService" service.
66
69
///
@@ -134,6 +137,7 @@ extension ErrorService {
134
137
}
135
138
136
139
// Default implementation of 'registerMethods(with:)'.
140
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
137
141
extension ErrorService . StreamingServiceProtocol {
138
142
internal func registerMethods< Transport> ( with router: inout GRPCCore . RPCRouter < Transport > ) where Transport: GRPCCore . ServerTransport {
139
143
router. registerHandler (
@@ -151,6 +155,7 @@ extension ErrorService.StreamingServiceProtocol {
151
155
}
152
156
153
157
// Default implementation of streaming methods from 'StreamingServiceProtocol'.
158
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
154
159
extension ErrorService . ServiceProtocol {
155
160
internal func throwError(
156
161
request: GRPCCore . StreamingServerRequest < ThrowInput > ,
@@ -165,6 +170,7 @@ extension ErrorService.ServiceProtocol {
165
170
}
166
171
167
172
// Default implementation of methods from 'ServiceProtocol'.
173
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
168
174
extension ErrorService . SimpleServiceProtocol {
169
175
internal func throwError(
170
176
request: GRPCCore . ServerRequest < ThrowInput > ,
@@ -182,6 +188,7 @@ extension ErrorService.SimpleServiceProtocol {
182
188
183
189
// MARK: ErrorService (client)
184
190
191
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
185
192
extension ErrorService {
186
193
/// Generated client protocol for the "ErrorService" service.
187
194
///
@@ -257,6 +264,7 @@ extension ErrorService {
257
264
}
258
265
259
266
// Helpers providing default arguments to 'ClientProtocol' methods.
267
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
260
268
extension ErrorService . ClientProtocol {
261
269
/// Call the "ThrowError" method.
262
270
///
@@ -285,6 +293,7 @@ extension ErrorService.ClientProtocol {
285
293
}
286
294
287
295
// Helpers providing sugared APIs for 'ClientProtocol' methods.
296
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
288
297
extension ErrorService . ClientProtocol {
289
298
/// Call the "ThrowError" method.
290
299
///
0 commit comments