@@ -52,13 +52,13 @@ package enum Grpc_Health_V1_Health {
52
52
]
53
53
}
54
54
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
55
- package typealias StreamingServiceProtocol = Grpc_Health_V1_HealthStreamingServiceProtocol
55
+ package typealias StreamingServiceProtocol = Grpc_Health_V1_Health_StreamingServiceProtocol
56
56
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
57
- package typealias ServiceProtocol = Grpc_Health_V1_HealthServiceProtocol
57
+ package typealias ServiceProtocol = Grpc_Health_V1_Health_ServiceProtocol
58
58
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
59
- package typealias ClientProtocol = Grpc_Health_V1_HealthClientProtocol
59
+ package typealias ClientProtocol = Grpc_Health_V1_Health_ClientProtocol
60
60
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
61
- package typealias Client = Grpc_Health_V1_HealthClient
61
+ package typealias Client = Grpc_Health_V1_Health_Client
62
62
}
63
63
64
64
extension GRPCCore . ServiceDescriptor {
@@ -72,7 +72,7 @@ extension GRPCCore.ServiceDescriptor {
72
72
/// RPCs. Its semantics are documented in
73
73
/// https://github.com/grpc/grpc/blob/master/doc/health-checking.md.
74
74
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
75
- package protocol Grpc_Health_V1_HealthStreamingServiceProtocol : GRPCCore . RegistrableRPCService {
75
+ package protocol Grpc_Health_V1_Health_StreamingServiceProtocol : GRPCCore . RegistrableRPCService {
76
76
/// Check gets the health of the specified service. If the requested service
77
77
/// is unknown, the call will fail with status NOT_FOUND. If the caller does
78
78
/// not specify a service name, the server should respond with its overall
@@ -83,9 +83,9 @@ package protocol Grpc_Health_V1_HealthStreamingServiceProtocol: GRPCCore.Registr
83
83
///
84
84
/// Check implementations should be idempotent and side effect free.
85
85
func check(
86
- request: GRPCCore . ServerRequest . Stream < Grpc_Health_V1_HealthCheckRequest > ,
86
+ request: GRPCCore . StreamingServerRequest < Grpc_Health_V1_HealthCheckRequest > ,
87
87
context: GRPCCore . ServerContext
88
- ) async throws -> GRPCCore . ServerResponse . Stream < Grpc_Health_V1_HealthCheckResponse >
88
+ ) async throws -> GRPCCore . StreamingServerResponse < Grpc_Health_V1_HealthCheckResponse >
89
89
90
90
/// Performs a watch for the serving status of the requested service.
91
91
/// The server will immediately send back a message indicating the current
@@ -103,9 +103,9 @@ package protocol Grpc_Health_V1_HealthStreamingServiceProtocol: GRPCCore.Registr
103
103
/// call. If the call terminates with any other status (including OK),
104
104
/// clients should retry the call with appropriate exponential backoff.
105
105
func watch(
106
- request: GRPCCore . ServerRequest . Stream < Grpc_Health_V1_HealthCheckRequest > ,
106
+ request: GRPCCore . StreamingServerRequest < Grpc_Health_V1_HealthCheckRequest > ,
107
107
context: GRPCCore . ServerContext
108
- ) async throws -> GRPCCore . ServerResponse . Stream < Grpc_Health_V1_HealthCheckResponse >
108
+ ) async throws -> GRPCCore . StreamingServerResponse < Grpc_Health_V1_HealthCheckResponse >
109
109
}
110
110
111
111
/// Conformance to `GRPCCore.RegistrableRPCService`.
@@ -142,7 +142,7 @@ extension Grpc_Health_V1_Health.StreamingServiceProtocol {
142
142
/// RPCs. Its semantics are documented in
143
143
/// https://github.com/grpc/grpc/blob/master/doc/health-checking.md.
144
144
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
145
- package protocol Grpc_Health_V1_HealthServiceProtocol : Grpc_Health_V1_Health . StreamingServiceProtocol {
145
+ package protocol Grpc_Health_V1_Health_ServiceProtocol : Grpc_Health_V1_Health . StreamingServiceProtocol {
146
146
/// Check gets the health of the specified service. If the requested service
147
147
/// is unknown, the call will fail with status NOT_FOUND. If the caller does
148
148
/// not specify a service name, the server should respond with its overall
@@ -153,9 +153,9 @@ package protocol Grpc_Health_V1_HealthServiceProtocol: Grpc_Health_V1_Health.Str
153
153
///
154
154
/// Check implementations should be idempotent and side effect free.
155
155
func check(
156
- request: GRPCCore . ServerRequest . Single < Grpc_Health_V1_HealthCheckRequest > ,
156
+ request: GRPCCore . ServerRequest < Grpc_Health_V1_HealthCheckRequest > ,
157
157
context: GRPCCore . ServerContext
158
- ) async throws -> GRPCCore . ServerResponse . Single < Grpc_Health_V1_HealthCheckResponse >
158
+ ) async throws -> GRPCCore . ServerResponse < Grpc_Health_V1_HealthCheckResponse >
159
159
160
160
/// Performs a watch for the serving status of the requested service.
161
161
/// The server will immediately send back a message indicating the current
@@ -173,31 +173,31 @@ package protocol Grpc_Health_V1_HealthServiceProtocol: Grpc_Health_V1_Health.Str
173
173
/// call. If the call terminates with any other status (including OK),
174
174
/// clients should retry the call with appropriate exponential backoff.
175
175
func watch(
176
- request: GRPCCore . ServerRequest . Single < Grpc_Health_V1_HealthCheckRequest > ,
176
+ request: GRPCCore . ServerRequest < Grpc_Health_V1_HealthCheckRequest > ,
177
177
context: GRPCCore . ServerContext
178
- ) async throws -> GRPCCore . ServerResponse . Stream < Grpc_Health_V1_HealthCheckResponse >
178
+ ) async throws -> GRPCCore . StreamingServerResponse < Grpc_Health_V1_HealthCheckResponse >
179
179
}
180
180
181
- /// Partial conformance to `Grpc_Health_V1_HealthStreamingServiceProtocol `.
181
+ /// Partial conformance to `Grpc_Health_V1_Health_StreamingServiceProtocol `.
182
182
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
183
183
extension Grpc_Health_V1_Health . ServiceProtocol {
184
184
package func check(
185
- request: GRPCCore . ServerRequest . Stream < Grpc_Health_V1_HealthCheckRequest > ,
185
+ request: GRPCCore . StreamingServerRequest < Grpc_Health_V1_HealthCheckRequest > ,
186
186
context: GRPCCore . ServerContext
187
- ) async throws -> GRPCCore . ServerResponse . Stream < Grpc_Health_V1_HealthCheckResponse > {
187
+ ) async throws -> GRPCCore . StreamingServerResponse < Grpc_Health_V1_HealthCheckResponse > {
188
188
let response = try await self . check (
189
- request: GRPCCore . ServerRequest. Single ( stream: request) ,
189
+ request: GRPCCore . ServerRequest ( stream: request) ,
190
190
context: context
191
191
)
192
- return GRPCCore . ServerResponse . Stream ( single: response)
192
+ return GRPCCore . StreamingServerResponse ( single: response)
193
193
}
194
194
195
195
package func watch(
196
- request: GRPCCore . ServerRequest . Stream < Grpc_Health_V1_HealthCheckRequest > ,
196
+ request: GRPCCore . StreamingServerRequest < Grpc_Health_V1_HealthCheckRequest > ,
197
197
context: GRPCCore . ServerContext
198
- ) async throws -> GRPCCore . ServerResponse . Stream < Grpc_Health_V1_HealthCheckResponse > {
198
+ ) async throws -> GRPCCore . StreamingServerResponse < Grpc_Health_V1_HealthCheckResponse > {
199
199
let response = try await self . watch (
200
- request: GRPCCore . ServerRequest. Single ( stream: request) ,
200
+ request: GRPCCore . ServerRequest ( stream: request) ,
201
201
context: context
202
202
)
203
203
return response
@@ -208,7 +208,7 @@ extension Grpc_Health_V1_Health.ServiceProtocol {
208
208
/// RPCs. Its semantics are documented in
209
209
/// https://github.com/grpc/grpc/blob/master/doc/health-checking.md.
210
210
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
211
- package protocol Grpc_Health_V1_HealthClientProtocol : Sendable {
211
+ package protocol Grpc_Health_V1_Health_ClientProtocol : Sendable {
212
212
/// Check gets the health of the specified service. If the requested service
213
213
/// is unknown, the call will fail with status NOT_FOUND. If the caller does
214
214
/// not specify a service name, the server should respond with its overall
@@ -219,11 +219,11 @@ package protocol Grpc_Health_V1_HealthClientProtocol: Sendable {
219
219
///
220
220
/// Check implementations should be idempotent and side effect free.
221
221
func check< R> (
222
- request: GRPCCore . ClientRequest . Single < Grpc_Health_V1_HealthCheckRequest > ,
222
+ request: GRPCCore . ClientRequest < Grpc_Health_V1_HealthCheckRequest > ,
223
223
serializer: some GRPCCore . MessageSerializer < Grpc_Health_V1_HealthCheckRequest > ,
224
224
deserializer: some GRPCCore . MessageDeserializer < Grpc_Health_V1_HealthCheckResponse > ,
225
225
options: GRPCCore . CallOptions ,
226
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R
226
+ _ body: @Sendable @escaping ( GRPCCore . ClientResponse < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R
227
227
) async throws -> R where R: Sendable
228
228
229
229
/// Performs a watch for the serving status of the requested service.
@@ -242,20 +242,20 @@ package protocol Grpc_Health_V1_HealthClientProtocol: Sendable {
242
242
/// call. If the call terminates with any other status (including OK),
243
243
/// clients should retry the call with appropriate exponential backoff.
244
244
func watch< R> (
245
- request: GRPCCore . ClientRequest . Single < Grpc_Health_V1_HealthCheckRequest > ,
245
+ request: GRPCCore . ClientRequest < Grpc_Health_V1_HealthCheckRequest > ,
246
246
serializer: some GRPCCore . MessageSerializer < Grpc_Health_V1_HealthCheckRequest > ,
247
247
deserializer: some GRPCCore . MessageDeserializer < Grpc_Health_V1_HealthCheckResponse > ,
248
248
options: GRPCCore . CallOptions ,
249
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R
249
+ _ body: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R
250
250
) async throws -> R where R: Sendable
251
251
}
252
252
253
253
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
254
254
extension Grpc_Health_V1_Health . ClientProtocol {
255
255
package func check< R> (
256
- request: GRPCCore . ClientRequest . Single < Grpc_Health_V1_HealthCheckRequest > ,
256
+ request: GRPCCore . ClientRequest < Grpc_Health_V1_HealthCheckRequest > ,
257
257
options: GRPCCore . CallOptions = . defaults,
258
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R = {
258
+ _ body: @Sendable @escaping ( GRPCCore . ClientResponse < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R = {
259
259
try $0. message
260
260
}
261
261
) async throws -> R where R: Sendable {
@@ -269,9 +269,9 @@ extension Grpc_Health_V1_Health.ClientProtocol {
269
269
}
270
270
271
271
package func watch< R> (
272
- request: GRPCCore . ClientRequest . Single < Grpc_Health_V1_HealthCheckRequest > ,
272
+ request: GRPCCore . ClientRequest < Grpc_Health_V1_HealthCheckRequest > ,
273
273
options: GRPCCore . CallOptions = . defaults,
274
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R
274
+ _ body: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R
275
275
) async throws -> R where R: Sendable {
276
276
try await self . watch (
277
277
request: request,
@@ -298,11 +298,11 @@ extension Grpc_Health_V1_Health.ClientProtocol {
298
298
_ message: Grpc_Health_V1_HealthCheckRequest ,
299
299
metadata: GRPCCore . Metadata = [ : ] ,
300
300
options: GRPCCore . CallOptions = . defaults,
301
- onResponse handleResponse: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Grpc_Health_V1_HealthCheckResponse > ) async throws -> Result = {
301
+ onResponse handleResponse: @Sendable @escaping ( GRPCCore . ClientResponse < Grpc_Health_V1_HealthCheckResponse > ) async throws -> Result = {
302
302
try $0. message
303
303
}
304
304
) async throws -> Result where Result: Sendable {
305
- let request = GRPCCore . ClientRequest. Single < Grpc_Health_V1_HealthCheckRequest> (
305
+ let request = GRPCCore . ClientRequest< Grpc_Health_V1_HealthCheckRequest> (
306
306
message: message,
307
307
metadata: metadata
308
308
)
@@ -332,9 +332,9 @@ extension Grpc_Health_V1_Health.ClientProtocol {
332
332
_ message: Grpc_Health_V1_HealthCheckRequest ,
333
333
metadata: GRPCCore . Metadata = [ : ] ,
334
334
options: GRPCCore . CallOptions = . defaults,
335
- onResponse handleResponse: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Grpc_Health_V1_HealthCheckResponse > ) async throws -> Result
335
+ onResponse handleResponse: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Grpc_Health_V1_HealthCheckResponse > ) async throws -> Result
336
336
) async throws -> Result where Result: Sendable {
337
- let request = GRPCCore . ClientRequest. Single < Grpc_Health_V1_HealthCheckRequest> (
337
+ let request = GRPCCore . ClientRequest< Grpc_Health_V1_HealthCheckRequest> (
338
338
message: message,
339
339
metadata: metadata
340
340
)
@@ -350,7 +350,7 @@ extension Grpc_Health_V1_Health.ClientProtocol {
350
350
/// RPCs. Its semantics are documented in
351
351
/// https://github.com/grpc/grpc/blob/master/doc/health-checking.md.
352
352
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
353
- package struct Grpc_Health_V1_HealthClient : Grpc_Health_V1_Health . ClientProtocol {
353
+ package struct Grpc_Health_V1_Health_Client : Grpc_Health_V1_Health . ClientProtocol {
354
354
private let client : GRPCCore . GRPCClient
355
355
356
356
package init ( wrapping client: GRPCCore . GRPCClient ) {
@@ -367,11 +367,11 @@ package struct Grpc_Health_V1_HealthClient: Grpc_Health_V1_Health.ClientProtocol
367
367
///
368
368
/// Check implementations should be idempotent and side effect free.
369
369
package func check< R> (
370
- request: GRPCCore . ClientRequest . Single < Grpc_Health_V1_HealthCheckRequest > ,
370
+ request: GRPCCore . ClientRequest < Grpc_Health_V1_HealthCheckRequest > ,
371
371
serializer: some GRPCCore . MessageSerializer < Grpc_Health_V1_HealthCheckRequest > ,
372
372
deserializer: some GRPCCore . MessageDeserializer < Grpc_Health_V1_HealthCheckResponse > ,
373
373
options: GRPCCore . CallOptions = . defaults,
374
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R = {
374
+ _ body: @Sendable @escaping ( GRPCCore . ClientResponse < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R = {
375
375
try $0. message
376
376
}
377
377
) async throws -> R where R: Sendable {
@@ -401,11 +401,11 @@ package struct Grpc_Health_V1_HealthClient: Grpc_Health_V1_Health.ClientProtocol
401
401
/// call. If the call terminates with any other status (including OK),
402
402
/// clients should retry the call with appropriate exponential backoff.
403
403
package func watch< R> (
404
- request: GRPCCore . ClientRequest . Single < Grpc_Health_V1_HealthCheckRequest > ,
404
+ request: GRPCCore . ClientRequest < Grpc_Health_V1_HealthCheckRequest > ,
405
405
serializer: some GRPCCore . MessageSerializer < Grpc_Health_V1_HealthCheckRequest > ,
406
406
deserializer: some GRPCCore . MessageDeserializer < Grpc_Health_V1_HealthCheckResponse > ,
407
407
options: GRPCCore . CallOptions = . defaults,
408
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R
408
+ _ body: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Grpc_Health_V1_HealthCheckResponse > ) async throws -> R
409
409
) async throws -> R where R: Sendable {
410
410
try await self . client. serverStreaming (
411
411
request: request,
0 commit comments