@@ -87,27 +87,27 @@ extension GRPCCore.ServiceDescriptor {
87
87
internal protocol Echo_Echo_StreamingServiceProtocol : GRPCCore . RegistrableRPCService {
88
88
/// Immediately returns an echo of a request.
89
89
func get(
90
- request: GRPCCore . ServerRequest . Stream < Echo_EchoRequest > ,
90
+ request: GRPCCore . StreamingServerRequest < Echo_EchoRequest > ,
91
91
context: GRPCCore . ServerContext
92
- ) async throws -> GRPCCore . ServerResponse . Stream < Echo_EchoResponse >
92
+ ) async throws -> GRPCCore . StreamingServerResponse < Echo_EchoResponse >
93
93
94
94
/// Splits a request into words and returns each word in a stream of messages.
95
95
func expand(
96
- request: GRPCCore . ServerRequest . Stream < Echo_EchoRequest > ,
96
+ request: GRPCCore . StreamingServerRequest < Echo_EchoRequest > ,
97
97
context: GRPCCore . ServerContext
98
- ) async throws -> GRPCCore . ServerResponse . Stream < Echo_EchoResponse >
98
+ ) async throws -> GRPCCore . StreamingServerResponse < Echo_EchoResponse >
99
99
100
100
/// Collects a stream of messages and returns them concatenated when the caller closes.
101
101
func collect(
102
- request: GRPCCore . ServerRequest . Stream < Echo_EchoRequest > ,
102
+ request: GRPCCore . StreamingServerRequest < Echo_EchoRequest > ,
103
103
context: GRPCCore . ServerContext
104
- ) async throws -> GRPCCore . ServerResponse . Stream < Echo_EchoResponse >
104
+ ) async throws -> GRPCCore . StreamingServerResponse < Echo_EchoResponse >
105
105
106
106
/// Streams back messages as they are received in an input stream.
107
107
func update(
108
- request: GRPCCore . ServerRequest . Stream < Echo_EchoRequest > ,
108
+ request: GRPCCore . StreamingServerRequest < Echo_EchoRequest > ,
109
109
context: GRPCCore . ServerContext
110
- ) async throws -> GRPCCore . ServerResponse . Stream < Echo_EchoResponse >
110
+ ) async throws -> GRPCCore . StreamingServerResponse < Echo_EchoResponse >
111
111
}
112
112
113
113
/// Conformance to `GRPCCore.RegistrableRPCService`.
@@ -166,111 +166,111 @@ extension Echo_Echo.StreamingServiceProtocol {
166
166
internal protocol Echo_Echo_ServiceProtocol : Echo_Echo . StreamingServiceProtocol {
167
167
/// Immediately returns an echo of a request.
168
168
func get(
169
- request: GRPCCore . ServerRequest . Single < Echo_EchoRequest > ,
169
+ request: GRPCCore . ServerRequest < Echo_EchoRequest > ,
170
170
context: GRPCCore . ServerContext
171
- ) async throws -> GRPCCore . ServerResponse . Single < Echo_EchoResponse >
171
+ ) async throws -> GRPCCore . ServerResponse < Echo_EchoResponse >
172
172
173
173
/// Splits a request into words and returns each word in a stream of messages.
174
174
func expand(
175
- request: GRPCCore . ServerRequest . Single < Echo_EchoRequest > ,
175
+ request: GRPCCore . ServerRequest < Echo_EchoRequest > ,
176
176
context: GRPCCore . ServerContext
177
- ) async throws -> GRPCCore . ServerResponse . Stream < Echo_EchoResponse >
177
+ ) async throws -> GRPCCore . StreamingServerResponse < Echo_EchoResponse >
178
178
179
179
/// Collects a stream of messages and returns them concatenated when the caller closes.
180
180
func collect(
181
- request: GRPCCore . ServerRequest . Stream < Echo_EchoRequest > ,
181
+ request: GRPCCore . StreamingServerRequest < Echo_EchoRequest > ,
182
182
context: GRPCCore . ServerContext
183
- ) async throws -> GRPCCore . ServerResponse . Single < Echo_EchoResponse >
183
+ ) async throws -> GRPCCore . ServerResponse < Echo_EchoResponse >
184
184
185
185
/// Streams back messages as they are received in an input stream.
186
186
func update(
187
- request: GRPCCore . ServerRequest . Stream < Echo_EchoRequest > ,
187
+ request: GRPCCore . StreamingServerRequest < Echo_EchoRequest > ,
188
188
context: GRPCCore . ServerContext
189
- ) async throws -> GRPCCore . ServerResponse . Stream < Echo_EchoResponse >
189
+ ) async throws -> GRPCCore . StreamingServerResponse < Echo_EchoResponse >
190
190
}
191
191
192
192
/// Partial conformance to `Echo_Echo_StreamingServiceProtocol`.
193
193
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
194
194
extension Echo_Echo . ServiceProtocol {
195
195
internal func get(
196
- request: GRPCCore . ServerRequest . Stream < Echo_EchoRequest > ,
196
+ request: GRPCCore . StreamingServerRequest < Echo_EchoRequest > ,
197
197
context: GRPCCore . ServerContext
198
- ) async throws -> GRPCCore . ServerResponse . Stream < Echo_EchoResponse > {
198
+ ) async throws -> GRPCCore . StreamingServerResponse < Echo_EchoResponse > {
199
199
let response = try await self . get (
200
- request: GRPCCore . ServerRequest. Single ( stream: request) ,
200
+ request: GRPCCore . ServerRequest ( stream: request) ,
201
201
context: context
202
202
)
203
- return GRPCCore . ServerResponse . Stream ( single: response)
203
+ return GRPCCore . StreamingServerResponse ( single: response)
204
204
}
205
205
206
206
internal func expand(
207
- request: GRPCCore . ServerRequest . Stream < Echo_EchoRequest > ,
207
+ request: GRPCCore . StreamingServerRequest < Echo_EchoRequest > ,
208
208
context: GRPCCore . ServerContext
209
- ) async throws -> GRPCCore . ServerResponse . Stream < Echo_EchoResponse > {
209
+ ) async throws -> GRPCCore . StreamingServerResponse < Echo_EchoResponse > {
210
210
let response = try await self . expand (
211
- request: GRPCCore . ServerRequest. Single ( stream: request) ,
211
+ request: GRPCCore . ServerRequest ( stream: request) ,
212
212
context: context
213
213
)
214
214
return response
215
215
}
216
216
217
217
internal func collect(
218
- request: GRPCCore . ServerRequest . Stream < Echo_EchoRequest > ,
218
+ request: GRPCCore . StreamingServerRequest < Echo_EchoRequest > ,
219
219
context: GRPCCore . ServerContext
220
- ) async throws -> GRPCCore . ServerResponse . Stream < Echo_EchoResponse > {
220
+ ) async throws -> GRPCCore . StreamingServerResponse < Echo_EchoResponse > {
221
221
let response = try await self . collect (
222
222
request: request,
223
223
context: context
224
224
)
225
- return GRPCCore . ServerResponse . Stream ( single: response)
225
+ return GRPCCore . StreamingServerResponse ( single: response)
226
226
}
227
227
}
228
228
229
229
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
230
230
internal protocol Echo_Echo_ClientProtocol : Sendable {
231
231
/// Immediately returns an echo of a request.
232
232
func get< R> (
233
- request: GRPCCore . ClientRequest . Single < Echo_EchoRequest > ,
233
+ request: GRPCCore . ClientRequest < Echo_EchoRequest > ,
234
234
serializer: some GRPCCore . MessageSerializer < Echo_EchoRequest > ,
235
235
deserializer: some GRPCCore . MessageDeserializer < Echo_EchoResponse > ,
236
236
options: GRPCCore . CallOptions ,
237
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Echo_EchoResponse > ) async throws -> R
237
+ _ body: @Sendable @escaping ( GRPCCore . ClientResponse < Echo_EchoResponse > ) async throws -> R
238
238
) async throws -> R where R: Sendable
239
239
240
240
/// Splits a request into words and returns each word in a stream of messages.
241
241
func expand< R> (
242
- request: GRPCCore . ClientRequest . Single < Echo_EchoRequest > ,
242
+ request: GRPCCore . ClientRequest < Echo_EchoRequest > ,
243
243
serializer: some GRPCCore . MessageSerializer < Echo_EchoRequest > ,
244
244
deserializer: some GRPCCore . MessageDeserializer < Echo_EchoResponse > ,
245
245
options: GRPCCore . CallOptions ,
246
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Echo_EchoResponse > ) async throws -> R
246
+ _ body: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Echo_EchoResponse > ) async throws -> R
247
247
) async throws -> R where R: Sendable
248
248
249
249
/// Collects a stream of messages and returns them concatenated when the caller closes.
250
250
func collect< R> (
251
- request: GRPCCore . ClientRequest . Stream < Echo_EchoRequest > ,
251
+ request: GRPCCore . StreamingClientRequest < Echo_EchoRequest > ,
252
252
serializer: some GRPCCore . MessageSerializer < Echo_EchoRequest > ,
253
253
deserializer: some GRPCCore . MessageDeserializer < Echo_EchoResponse > ,
254
254
options: GRPCCore . CallOptions ,
255
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Echo_EchoResponse > ) async throws -> R
255
+ _ body: @Sendable @escaping ( GRPCCore . ClientResponse < Echo_EchoResponse > ) async throws -> R
256
256
) async throws -> R where R: Sendable
257
257
258
258
/// Streams back messages as they are received in an input stream.
259
259
func update< R> (
260
- request: GRPCCore . ClientRequest . Stream < Echo_EchoRequest > ,
260
+ request: GRPCCore . StreamingClientRequest < Echo_EchoRequest > ,
261
261
serializer: some GRPCCore . MessageSerializer < Echo_EchoRequest > ,
262
262
deserializer: some GRPCCore . MessageDeserializer < Echo_EchoResponse > ,
263
263
options: GRPCCore . CallOptions ,
264
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Echo_EchoResponse > ) async throws -> R
264
+ _ body: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Echo_EchoResponse > ) async throws -> R
265
265
) async throws -> R where R: Sendable
266
266
}
267
267
268
268
@available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
269
269
extension Echo_Echo . ClientProtocol {
270
270
internal func get< R> (
271
- request: GRPCCore . ClientRequest . Single < Echo_EchoRequest > ,
271
+ request: GRPCCore . ClientRequest < Echo_EchoRequest > ,
272
272
options: GRPCCore . CallOptions = . defaults,
273
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Echo_EchoResponse > ) async throws -> R = {
273
+ _ body: @Sendable @escaping ( GRPCCore . ClientResponse < Echo_EchoResponse > ) async throws -> R = {
274
274
try $0. message
275
275
}
276
276
) async throws -> R where R: Sendable {
@@ -284,9 +284,9 @@ extension Echo_Echo.ClientProtocol {
284
284
}
285
285
286
286
internal func expand< R> (
287
- request: GRPCCore . ClientRequest . Single < Echo_EchoRequest > ,
287
+ request: GRPCCore . ClientRequest < Echo_EchoRequest > ,
288
288
options: GRPCCore . CallOptions = . defaults,
289
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Echo_EchoResponse > ) async throws -> R
289
+ _ body: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Echo_EchoResponse > ) async throws -> R
290
290
) async throws -> R where R: Sendable {
291
291
try await self . expand (
292
292
request: request,
@@ -298,9 +298,9 @@ extension Echo_Echo.ClientProtocol {
298
298
}
299
299
300
300
internal func collect< R> (
301
- request: GRPCCore . ClientRequest . Stream < Echo_EchoRequest > ,
301
+ request: GRPCCore . StreamingClientRequest < Echo_EchoRequest > ,
302
302
options: GRPCCore . CallOptions = . defaults,
303
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Echo_EchoResponse > ) async throws -> R = {
303
+ _ body: @Sendable @escaping ( GRPCCore . ClientResponse < Echo_EchoResponse > ) async throws -> R = {
304
304
try $0. message
305
305
}
306
306
) async throws -> R where R: Sendable {
@@ -314,9 +314,9 @@ extension Echo_Echo.ClientProtocol {
314
314
}
315
315
316
316
internal func update< R> (
317
- request: GRPCCore . ClientRequest . Stream < Echo_EchoRequest > ,
317
+ request: GRPCCore . StreamingClientRequest < Echo_EchoRequest > ,
318
318
options: GRPCCore . CallOptions = . defaults,
319
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Echo_EchoResponse > ) async throws -> R
319
+ _ body: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Echo_EchoResponse > ) async throws -> R
320
320
) async throws -> R where R: Sendable {
321
321
try await self . update (
322
322
request: request,
@@ -335,11 +335,11 @@ extension Echo_Echo.ClientProtocol {
335
335
_ message: Echo_EchoRequest ,
336
336
metadata: GRPCCore . Metadata = [ : ] ,
337
337
options: GRPCCore . CallOptions = . defaults,
338
- onResponse handleResponse: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Echo_EchoResponse > ) async throws -> Result = {
338
+ onResponse handleResponse: @Sendable @escaping ( GRPCCore . ClientResponse < Echo_EchoResponse > ) async throws -> Result = {
339
339
try $0. message
340
340
}
341
341
) async throws -> Result where Result: Sendable {
342
- let request = GRPCCore . ClientRequest. Single < Echo_EchoRequest> (
342
+ let request = GRPCCore . ClientRequest< Echo_EchoRequest> (
343
343
message: message,
344
344
metadata: metadata
345
345
)
@@ -355,9 +355,9 @@ extension Echo_Echo.ClientProtocol {
355
355
_ message: Echo_EchoRequest ,
356
356
metadata: GRPCCore . Metadata = [ : ] ,
357
357
options: GRPCCore . CallOptions = . defaults,
358
- onResponse handleResponse: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Echo_EchoResponse > ) async throws -> Result
358
+ onResponse handleResponse: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Echo_EchoResponse > ) async throws -> Result
359
359
) async throws -> Result where Result: Sendable {
360
- let request = GRPCCore . ClientRequest. Single < Echo_EchoRequest> (
360
+ let request = GRPCCore . ClientRequest< Echo_EchoRequest> (
361
361
message: message,
362
362
metadata: metadata
363
363
)
@@ -373,11 +373,11 @@ extension Echo_Echo.ClientProtocol {
373
373
metadata: GRPCCore . Metadata = [ : ] ,
374
374
options: GRPCCore . CallOptions = . defaults,
375
375
requestProducer: @Sendable @escaping ( GRPCCore . RPCWriter < Echo_EchoRequest > ) async throws -> Void ,
376
- onResponse handleResponse: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Echo_EchoResponse > ) async throws -> Result = {
376
+ onResponse handleResponse: @Sendable @escaping ( GRPCCore . ClientResponse < Echo_EchoResponse > ) async throws -> Result = {
377
377
try $0. message
378
378
}
379
379
) async throws -> Result where Result: Sendable {
380
- let request = GRPCCore . ClientRequest . Stream < Echo_EchoRequest> (
380
+ let request = GRPCCore . StreamingClientRequest < Echo_EchoRequest> (
381
381
metadata: metadata,
382
382
producer: requestProducer
383
383
)
@@ -393,9 +393,9 @@ extension Echo_Echo.ClientProtocol {
393
393
metadata: GRPCCore . Metadata = [ : ] ,
394
394
options: GRPCCore . CallOptions = . defaults,
395
395
requestProducer: @Sendable @escaping ( GRPCCore . RPCWriter < Echo_EchoRequest > ) async throws -> Void ,
396
- onResponse handleResponse: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Echo_EchoResponse > ) async throws -> Result
396
+ onResponse handleResponse: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Echo_EchoResponse > ) async throws -> Result
397
397
) async throws -> Result where Result: Sendable {
398
- let request = GRPCCore . ClientRequest . Stream < Echo_EchoRequest> (
398
+ let request = GRPCCore . StreamingClientRequest < Echo_EchoRequest> (
399
399
metadata: metadata,
400
400
producer: requestProducer
401
401
)
@@ -417,11 +417,11 @@ internal struct Echo_Echo_Client: Echo_Echo.ClientProtocol {
417
417
418
418
/// Immediately returns an echo of a request.
419
419
internal func get< R> (
420
- request: GRPCCore . ClientRequest . Single < Echo_EchoRequest > ,
420
+ request: GRPCCore . ClientRequest < Echo_EchoRequest > ,
421
421
serializer: some GRPCCore . MessageSerializer < Echo_EchoRequest > ,
422
422
deserializer: some GRPCCore . MessageDeserializer < Echo_EchoResponse > ,
423
423
options: GRPCCore . CallOptions = . defaults,
424
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Echo_EchoResponse > ) async throws -> R = {
424
+ _ body: @Sendable @escaping ( GRPCCore . ClientResponse < Echo_EchoResponse > ) async throws -> R = {
425
425
try $0. message
426
426
}
427
427
) async throws -> R where R: Sendable {
@@ -437,11 +437,11 @@ internal struct Echo_Echo_Client: Echo_Echo.ClientProtocol {
437
437
438
438
/// Splits a request into words and returns each word in a stream of messages.
439
439
internal func expand< R> (
440
- request: GRPCCore . ClientRequest . Single < Echo_EchoRequest > ,
440
+ request: GRPCCore . ClientRequest < Echo_EchoRequest > ,
441
441
serializer: some GRPCCore . MessageSerializer < Echo_EchoRequest > ,
442
442
deserializer: some GRPCCore . MessageDeserializer < Echo_EchoResponse > ,
443
443
options: GRPCCore . CallOptions = . defaults,
444
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Echo_EchoResponse > ) async throws -> R
444
+ _ body: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Echo_EchoResponse > ) async throws -> R
445
445
) async throws -> R where R: Sendable {
446
446
try await self . client. serverStreaming (
447
447
request: request,
@@ -455,11 +455,11 @@ internal struct Echo_Echo_Client: Echo_Echo.ClientProtocol {
455
455
456
456
/// Collects a stream of messages and returns them concatenated when the caller closes.
457
457
internal func collect< R> (
458
- request: GRPCCore . ClientRequest . Stream < Echo_EchoRequest > ,
458
+ request: GRPCCore . StreamingClientRequest < Echo_EchoRequest > ,
459
459
serializer: some GRPCCore . MessageSerializer < Echo_EchoRequest > ,
460
460
deserializer: some GRPCCore . MessageDeserializer < Echo_EchoResponse > ,
461
461
options: GRPCCore . CallOptions = . defaults,
462
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Single < Echo_EchoResponse > ) async throws -> R = {
462
+ _ body: @Sendable @escaping ( GRPCCore . ClientResponse < Echo_EchoResponse > ) async throws -> R = {
463
463
try $0. message
464
464
}
465
465
) async throws -> R where R: Sendable {
@@ -475,11 +475,11 @@ internal struct Echo_Echo_Client: Echo_Echo.ClientProtocol {
475
475
476
476
/// Streams back messages as they are received in an input stream.
477
477
internal func update< R> (
478
- request: GRPCCore . ClientRequest . Stream < Echo_EchoRequest > ,
478
+ request: GRPCCore . StreamingClientRequest < Echo_EchoRequest > ,
479
479
serializer: some GRPCCore . MessageSerializer < Echo_EchoRequest > ,
480
480
deserializer: some GRPCCore . MessageDeserializer < Echo_EchoResponse > ,
481
481
options: GRPCCore . CallOptions = . defaults,
482
- _ body: @Sendable @escaping ( GRPCCore . ClientResponse . Stream < Echo_EchoResponse > ) async throws -> R
482
+ _ body: @Sendable @escaping ( GRPCCore . StreamingClientResponse < Echo_EchoResponse > ) async throws -> R
483
483
) async throws -> R where R: Sendable {
484
484
try await self . client. bidirectionalStreaming (
485
485
request: request,
0 commit comments