@@ -53,7 +53,7 @@ public final class Grpc_Testing_TestServiceClient: GRPCClient, Grpc_Testing_Test
53
53
self . defaultCallOptions = defaultCallOptions
54
54
}
55
55
56
- /// Asynchronous unary call to EmptyCall .
56
+ /// One empty request followed by one empty response .
57
57
///
58
58
/// - Parameters:
59
59
/// - request: Request to send to EmptyCall.
@@ -65,7 +65,7 @@ public final class Grpc_Testing_TestServiceClient: GRPCClient, Grpc_Testing_Test
65
65
callOptions: callOptions ?? self . defaultCallOptions)
66
66
}
67
67
68
- /// Asynchronous unary call to UnaryCall .
68
+ /// One request followed by one response .
69
69
///
70
70
/// - Parameters:
71
71
/// - request: Request to send to UnaryCall.
@@ -77,7 +77,9 @@ public final class Grpc_Testing_TestServiceClient: GRPCClient, Grpc_Testing_Test
77
77
callOptions: callOptions ?? self . defaultCallOptions)
78
78
}
79
79
80
- /// Asynchronous unary call to CacheableUnaryCall.
80
+ /// One request followed by one response. Response has cache control
81
+ /// headers set such that a caching HTTP proxy (such as GFE) can
82
+ /// satisfy subsequent requests.
81
83
///
82
84
/// - Parameters:
83
85
/// - request: Request to send to CacheableUnaryCall.
@@ -89,7 +91,8 @@ public final class Grpc_Testing_TestServiceClient: GRPCClient, Grpc_Testing_Test
89
91
callOptions: callOptions ?? self . defaultCallOptions)
90
92
}
91
93
92
- /// Asynchronous server-streaming call to StreamingOutputCall.
94
+ /// One request followed by a sequence of responses (streamed download).
95
+ /// The server returns the payload with client desired type and sizes.
93
96
///
94
97
/// - Parameters:
95
98
/// - request: Request to send to StreamingOutputCall.
@@ -103,7 +106,8 @@ public final class Grpc_Testing_TestServiceClient: GRPCClient, Grpc_Testing_Test
103
106
handler: handler)
104
107
}
105
108
106
- /// Asynchronous client-streaming call to StreamingInputCall.
109
+ /// A sequence of requests followed by one response (streamed upload).
110
+ /// The server returns the aggregated size of client payload as the result.
107
111
///
108
112
/// Callers should use the `send` method on the returned object to send messages
109
113
/// to the server. The caller should send an `.end` after the final message has been sent.
@@ -116,7 +120,9 @@ public final class Grpc_Testing_TestServiceClient: GRPCClient, Grpc_Testing_Test
116
120
callOptions: callOptions ?? self . defaultCallOptions)
117
121
}
118
122
119
- /// Asynchronous bidirectional-streaming call to FullDuplexCall.
123
+ /// A sequence of requests with each request served by the server immediately.
124
+ /// As one request could lead to multiple responses, this interface
125
+ /// demonstrates the idea of full duplexing.
120
126
///
121
127
/// Callers should use the `send` method on the returned object to send messages
122
128
/// to the server. The caller should send an `.end` after the final message has been sent.
@@ -131,7 +137,10 @@ public final class Grpc_Testing_TestServiceClient: GRPCClient, Grpc_Testing_Test
131
137
handler: handler)
132
138
}
133
139
134
- /// Asynchronous bidirectional-streaming call to HalfDuplexCall.
140
+ /// A sequence of requests followed by a sequence of responses.
141
+ /// The server buffers all the client requests and then serves them in order. A
142
+ /// stream of responses are returned to the client when the server starts with
143
+ /// first request.
135
144
///
136
145
/// Callers should use the `send` method on the returned object to send messages
137
146
/// to the server. The caller should send an `.end` after the final message has been sent.
@@ -146,7 +155,8 @@ public final class Grpc_Testing_TestServiceClient: GRPCClient, Grpc_Testing_Test
146
155
handler: handler)
147
156
}
148
157
149
- /// Asynchronous unary call to UnimplementedCall.
158
+ /// The test server will not implement this method. It will be used
159
+ /// to test the behavior when clients call unimplemented methods.
150
160
///
151
161
/// - Parameters:
152
162
/// - request: Request to send to UnimplementedCall.
@@ -179,7 +189,7 @@ public final class Grpc_Testing_UnimplementedServiceClient: GRPCClient, Grpc_Tes
179
189
self . defaultCallOptions = defaultCallOptions
180
190
}
181
191
182
- /// Asynchronous unary call to UnimplementedCall.
192
+ /// A call that no server should implement
183
193
///
184
194
/// - Parameters:
185
195
/// - request: Request to send to UnimplementedCall.
@@ -213,7 +223,7 @@ public final class Grpc_Testing_ReconnectServiceClient: GRPCClient, Grpc_Testing
213
223
self . defaultCallOptions = defaultCallOptions
214
224
}
215
225
216
- /// Asynchronous unary call to Start.
226
+ /// Unary call to Start
217
227
///
218
228
/// - Parameters:
219
229
/// - request: Request to send to Start.
@@ -225,7 +235,7 @@ public final class Grpc_Testing_ReconnectServiceClient: GRPCClient, Grpc_Testing
225
235
callOptions: callOptions ?? self . defaultCallOptions)
226
236
}
227
237
228
- /// Asynchronous unary call to Stop.
238
+ /// Unary call to Stop
229
239
///
230
240
/// - Parameters:
231
241
/// - request: Request to send to Stop.
@@ -241,12 +251,28 @@ public final class Grpc_Testing_ReconnectServiceClient: GRPCClient, Grpc_Testing
241
251
242
252
/// To build a server, implement a class that conforms to this protocol.
243
253
public protocol Grpc_Testing_TestServiceProvider : CallHandlerProvider {
254
+ /// One empty request followed by one empty response.
244
255
func emptyCall( request: Grpc_Testing_Empty , context: StatusOnlyCallContext ) -> EventLoopFuture < Grpc_Testing_Empty >
256
+ /// One request followed by one response.
245
257
func unaryCall( request: Grpc_Testing_SimpleRequest , context: StatusOnlyCallContext ) -> EventLoopFuture < Grpc_Testing_SimpleResponse >
258
+ /// One request followed by one response. Response has cache control
259
+ /// headers set such that a caching HTTP proxy (such as GFE) can
260
+ /// satisfy subsequent requests.
246
261
func cacheableUnaryCall( request: Grpc_Testing_SimpleRequest , context: StatusOnlyCallContext ) -> EventLoopFuture < Grpc_Testing_SimpleResponse >
262
+ /// One request followed by a sequence of responses (streamed download).
263
+ /// The server returns the payload with client desired type and sizes.
247
264
func streamingOutputCall( request: Grpc_Testing_StreamingOutputCallRequest , context: StreamingResponseCallContext < Grpc_Testing_StreamingOutputCallResponse > ) -> EventLoopFuture < GRPCStatus >
265
+ /// A sequence of requests followed by one response (streamed upload).
266
+ /// The server returns the aggregated size of client payload as the result.
248
267
func streamingInputCall( context: UnaryResponseCallContext < Grpc_Testing_StreamingInputCallResponse > ) -> EventLoopFuture < ( StreamEvent < Grpc_Testing_StreamingInputCallRequest > ) -> Void >
268
+ /// A sequence of requests with each request served by the server immediately.
269
+ /// As one request could lead to multiple responses, this interface
270
+ /// demonstrates the idea of full duplexing.
249
271
func fullDuplexCall( context: StreamingResponseCallContext < Grpc_Testing_StreamingOutputCallResponse > ) -> EventLoopFuture < ( StreamEvent < Grpc_Testing_StreamingOutputCallRequest > ) -> Void >
272
+ /// A sequence of requests followed by a sequence of responses.
273
+ /// The server buffers all the client requests and then serves them in order. A
274
+ /// stream of responses are returned to the client when the server starts with
275
+ /// first request.
250
276
func halfDuplexCall( context: StreamingResponseCallContext < Grpc_Testing_StreamingOutputCallResponse > ) -> EventLoopFuture < ( StreamEvent < Grpc_Testing_StreamingOutputCallRequest > ) -> Void >
251
277
}
252
278
@@ -307,6 +333,7 @@ extension Grpc_Testing_TestServiceProvider {
307
333
308
334
/// To build a server, implement a class that conforms to this protocol.
309
335
public protocol Grpc_Testing_UnimplementedServiceProvider : CallHandlerProvider {
336
+ /// A call that no server should implement
310
337
func unimplementedCall( request: Grpc_Testing_Empty , context: StatusOnlyCallContext ) -> EventLoopFuture < Grpc_Testing_Empty >
311
338
}
312
339
@@ -362,7 +389,7 @@ extension Grpc_Testing_ReconnectServiceProvider {
362
389
}
363
390
364
391
365
- /// Provides conformance to `GRPCPayload` for the request and response messages
392
+ // Provides conformance to `GRPCPayload` for request and response messages
366
393
extension Grpc_Testing_Empty : GRPCProtobufPayload { }
367
394
extension Grpc_Testing_SimpleRequest : GRPCProtobufPayload { }
368
395
extension Grpc_Testing_SimpleResponse : GRPCProtobufPayload { }
0 commit comments