/
service_grpc.pb.go
610 lines (562 loc) · 25.9 KB
/
service_grpc.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
// Copyright 2023-2024 The Connect Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: connectrpc/conformance/v1/service.proto
package conformancev1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
ConformanceService_Unary_FullMethodName = "/connectrpc.conformance.v1.ConformanceService/Unary"
ConformanceService_ServerStream_FullMethodName = "/connectrpc.conformance.v1.ConformanceService/ServerStream"
ConformanceService_ClientStream_FullMethodName = "/connectrpc.conformance.v1.ConformanceService/ClientStream"
ConformanceService_BidiStream_FullMethodName = "/connectrpc.conformance.v1.ConformanceService/BidiStream"
ConformanceService_Unimplemented_FullMethodName = "/connectrpc.conformance.v1.ConformanceService/Unimplemented"
ConformanceService_IdempotentUnary_FullMethodName = "/connectrpc.conformance.v1.ConformanceService/IdempotentUnary"
)
// ConformanceServiceClient is the client API for ConformanceService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ConformanceServiceClient interface {
// A unary operation. The request indicates the response headers and trailers
// and also indicates either a response message or an error to send back.
//
// Response message data is specified as bytes. The service should echo back
// request properties in the ConformancePayload and then include the message
// data in the data field.
//
// If the response_delay_ms duration is specified, the server should wait the
// given duration after reading the request before sending the corresponding
// response.
//
// Servers should allow the response definition to be unset in the request and
// if it is, set no response headers or trailers and return no response data.
// The returned payload should only contain the request info.
Unary(ctx context.Context, in *UnaryRequest, opts ...grpc.CallOption) (*UnaryResponse, error)
// A server-streaming operation. The request indicates the response headers,
// response messages, trailers, and an optional error to send back. The
// response data should be sent in the order indicated, and the server should
// wait between sending response messages as indicated.
//
// Response message data is specified as bytes. The service should echo back
// request properties in the first ConformancePayload, and then include the
// message data in the data field. Subsequent messages after the first one
// should contain only the data field.
//
// Servers should immediately send response headers on the stream before sleeping
// for any specified response delay and/or sending the first message so that
// clients can be unblocked reading response headers.
//
// If a response definition is not specified OR is specified, but response data
// is empty, the server should skip sending anything on the stream. When there
// are no responses to send, servers should throw an error if one is provided
// and return without error if one is not. Stream headers and trailers should
// still be set on the stream if provided regardless of whether a response is
// sent or an error is thrown.
ServerStream(ctx context.Context, in *ServerStreamRequest, opts ...grpc.CallOption) (ConformanceService_ServerStreamClient, error)
// A client-streaming operation. The first request indicates the response
// headers and trailers and also indicates either a response message or an
// error to send back.
//
// Response message data is specified as bytes. The service should echo back
// request properties, including all request messages in the order they were
// received, in the ConformancePayload and then include the message data in
// the data field.
//
// If the input stream is empty, the server's response will include no data,
// only the request properties (headers, timeout).
//
// Servers should only read the response definition from the first message in
// the stream and should ignore any definition set in subsequent messages.
//
// Servers should allow the response definition to be unset in the request and
// if it is, set no response headers or trailers and return no response data.
// The returned payload should only contain the request info.
ClientStream(ctx context.Context, opts ...grpc.CallOption) (ConformanceService_ClientStreamClient, error)
// A bidirectional-streaming operation. The first request indicates the response
// headers, response messages, trailers, and an optional error to send back.
// The response data should be sent in the order indicated, and the server
// should wait between sending response messages as indicated.
//
// Response message data is specified as bytes and should be included in the
// data field of the ConformancePayload in each response.
//
// Servers should send responses indicated according to the rules of half duplex
// vs. full duplex streams. Once all responses are sent, the server should either
// return an error if specified or close the stream without error.
//
// Servers should immediately send response headers on the stream before sleeping
// for any specified response delay and/or sending the first message so that
// clients can be unblocked reading response headers.
//
// If a response definition is not specified OR is specified, but response data
// is empty, the server should skip sending anything on the stream. Stream
// headers and trailers should always be set on the stream if provided
// regardless of whether a response is sent or an error is thrown.
//
// If the full_duplex field is true:
// - the handler should read one request and then send back one response, and
// then alternate, reading another request and then sending back another response, etc.
//
// - if the server receives a request and has no responses to send, it
// should throw the error specified in the request.
//
// - the service should echo back all request properties in the first response
// including the last received request. Subsequent responses should only
// echo back the last received request.
//
// - if the response_delay_ms duration is specified, the server should wait the given
// duration after reading the request before sending the corresponding
// response.
//
// If the full_duplex field is false:
// - the handler should read all requests until the client is done sending.
// Once all requests are read, the server should then send back any responses
// specified in the response definition.
//
// - the server should echo back all request properties, including all request
// messages in the order they were received, in the first response. Subsequent
// responses should only include the message data in the data field.
//
// - if the response_delay_ms duration is specified, the server should wait that
// long in between sending each response message.
BidiStream(ctx context.Context, opts ...grpc.CallOption) (ConformanceService_BidiStreamClient, error)
// A unary endpoint that the server should not implement and should instead
// return an unimplemented error when invoked.
Unimplemented(ctx context.Context, in *UnimplementedRequest, opts ...grpc.CallOption) (*UnimplementedResponse, error)
// A unary endpoint denoted as having no side effects (i.e. idempotent).
// Implementations should use an HTTP GET when invoking this endpoint and
// leverage query parameters to send data.
IdempotentUnary(ctx context.Context, in *IdempotentUnaryRequest, opts ...grpc.CallOption) (*IdempotentUnaryResponse, error)
}
type conformanceServiceClient struct {
cc grpc.ClientConnInterface
}
func NewConformanceServiceClient(cc grpc.ClientConnInterface) ConformanceServiceClient {
return &conformanceServiceClient{cc}
}
func (c *conformanceServiceClient) Unary(ctx context.Context, in *UnaryRequest, opts ...grpc.CallOption) (*UnaryResponse, error) {
out := new(UnaryResponse)
err := c.cc.Invoke(ctx, ConformanceService_Unary_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *conformanceServiceClient) ServerStream(ctx context.Context, in *ServerStreamRequest, opts ...grpc.CallOption) (ConformanceService_ServerStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &ConformanceService_ServiceDesc.Streams[0], ConformanceService_ServerStream_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &conformanceServiceServerStreamClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type ConformanceService_ServerStreamClient interface {
Recv() (*ServerStreamResponse, error)
grpc.ClientStream
}
type conformanceServiceServerStreamClient struct {
grpc.ClientStream
}
func (x *conformanceServiceServerStreamClient) Recv() (*ServerStreamResponse, error) {
m := new(ServerStreamResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *conformanceServiceClient) ClientStream(ctx context.Context, opts ...grpc.CallOption) (ConformanceService_ClientStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &ConformanceService_ServiceDesc.Streams[1], ConformanceService_ClientStream_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &conformanceServiceClientStreamClient{stream}
return x, nil
}
type ConformanceService_ClientStreamClient interface {
Send(*ClientStreamRequest) error
CloseAndRecv() (*ClientStreamResponse, error)
grpc.ClientStream
}
type conformanceServiceClientStreamClient struct {
grpc.ClientStream
}
func (x *conformanceServiceClientStreamClient) Send(m *ClientStreamRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *conformanceServiceClientStreamClient) CloseAndRecv() (*ClientStreamResponse, error) {
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
m := new(ClientStreamResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *conformanceServiceClient) BidiStream(ctx context.Context, opts ...grpc.CallOption) (ConformanceService_BidiStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &ConformanceService_ServiceDesc.Streams[2], ConformanceService_BidiStream_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &conformanceServiceBidiStreamClient{stream}
return x, nil
}
type ConformanceService_BidiStreamClient interface {
Send(*BidiStreamRequest) error
Recv() (*BidiStreamResponse, error)
grpc.ClientStream
}
type conformanceServiceBidiStreamClient struct {
grpc.ClientStream
}
func (x *conformanceServiceBidiStreamClient) Send(m *BidiStreamRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *conformanceServiceBidiStreamClient) Recv() (*BidiStreamResponse, error) {
m := new(BidiStreamResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *conformanceServiceClient) Unimplemented(ctx context.Context, in *UnimplementedRequest, opts ...grpc.CallOption) (*UnimplementedResponse, error) {
out := new(UnimplementedResponse)
err := c.cc.Invoke(ctx, ConformanceService_Unimplemented_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *conformanceServiceClient) IdempotentUnary(ctx context.Context, in *IdempotentUnaryRequest, opts ...grpc.CallOption) (*IdempotentUnaryResponse, error) {
out := new(IdempotentUnaryResponse)
err := c.cc.Invoke(ctx, ConformanceService_IdempotentUnary_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ConformanceServiceServer is the server API for ConformanceService service.
// All implementations must embed UnimplementedConformanceServiceServer
// for forward compatibility
type ConformanceServiceServer interface {
// A unary operation. The request indicates the response headers and trailers
// and also indicates either a response message or an error to send back.
//
// Response message data is specified as bytes. The service should echo back
// request properties in the ConformancePayload and then include the message
// data in the data field.
//
// If the response_delay_ms duration is specified, the server should wait the
// given duration after reading the request before sending the corresponding
// response.
//
// Servers should allow the response definition to be unset in the request and
// if it is, set no response headers or trailers and return no response data.
// The returned payload should only contain the request info.
Unary(context.Context, *UnaryRequest) (*UnaryResponse, error)
// A server-streaming operation. The request indicates the response headers,
// response messages, trailers, and an optional error to send back. The
// response data should be sent in the order indicated, and the server should
// wait between sending response messages as indicated.
//
// Response message data is specified as bytes. The service should echo back
// request properties in the first ConformancePayload, and then include the
// message data in the data field. Subsequent messages after the first one
// should contain only the data field.
//
// Servers should immediately send response headers on the stream before sleeping
// for any specified response delay and/or sending the first message so that
// clients can be unblocked reading response headers.
//
// If a response definition is not specified OR is specified, but response data
// is empty, the server should skip sending anything on the stream. When there
// are no responses to send, servers should throw an error if one is provided
// and return without error if one is not. Stream headers and trailers should
// still be set on the stream if provided regardless of whether a response is
// sent or an error is thrown.
ServerStream(*ServerStreamRequest, ConformanceService_ServerStreamServer) error
// A client-streaming operation. The first request indicates the response
// headers and trailers and also indicates either a response message or an
// error to send back.
//
// Response message data is specified as bytes. The service should echo back
// request properties, including all request messages in the order they were
// received, in the ConformancePayload and then include the message data in
// the data field.
//
// If the input stream is empty, the server's response will include no data,
// only the request properties (headers, timeout).
//
// Servers should only read the response definition from the first message in
// the stream and should ignore any definition set in subsequent messages.
//
// Servers should allow the response definition to be unset in the request and
// if it is, set no response headers or trailers and return no response data.
// The returned payload should only contain the request info.
ClientStream(ConformanceService_ClientStreamServer) error
// A bidirectional-streaming operation. The first request indicates the response
// headers, response messages, trailers, and an optional error to send back.
// The response data should be sent in the order indicated, and the server
// should wait between sending response messages as indicated.
//
// Response message data is specified as bytes and should be included in the
// data field of the ConformancePayload in each response.
//
// Servers should send responses indicated according to the rules of half duplex
// vs. full duplex streams. Once all responses are sent, the server should either
// return an error if specified or close the stream without error.
//
// Servers should immediately send response headers on the stream before sleeping
// for any specified response delay and/or sending the first message so that
// clients can be unblocked reading response headers.
//
// If a response definition is not specified OR is specified, but response data
// is empty, the server should skip sending anything on the stream. Stream
// headers and trailers should always be set on the stream if provided
// regardless of whether a response is sent or an error is thrown.
//
// If the full_duplex field is true:
// - the handler should read one request and then send back one response, and
// then alternate, reading another request and then sending back another response, etc.
//
// - if the server receives a request and has no responses to send, it
// should throw the error specified in the request.
//
// - the service should echo back all request properties in the first response
// including the last received request. Subsequent responses should only
// echo back the last received request.
//
// - if the response_delay_ms duration is specified, the server should wait the given
// duration after reading the request before sending the corresponding
// response.
//
// If the full_duplex field is false:
// - the handler should read all requests until the client is done sending.
// Once all requests are read, the server should then send back any responses
// specified in the response definition.
//
// - the server should echo back all request properties, including all request
// messages in the order they were received, in the first response. Subsequent
// responses should only include the message data in the data field.
//
// - if the response_delay_ms duration is specified, the server should wait that
// long in between sending each response message.
BidiStream(ConformanceService_BidiStreamServer) error
// A unary endpoint that the server should not implement and should instead
// return an unimplemented error when invoked.
Unimplemented(context.Context, *UnimplementedRequest) (*UnimplementedResponse, error)
// A unary endpoint denoted as having no side effects (i.e. idempotent).
// Implementations should use an HTTP GET when invoking this endpoint and
// leverage query parameters to send data.
IdempotentUnary(context.Context, *IdempotentUnaryRequest) (*IdempotentUnaryResponse, error)
mustEmbedUnimplementedConformanceServiceServer()
}
// UnimplementedConformanceServiceServer must be embedded to have forward compatible implementations.
type UnimplementedConformanceServiceServer struct {
}
func (UnimplementedConformanceServiceServer) Unary(context.Context, *UnaryRequest) (*UnaryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Unary not implemented")
}
func (UnimplementedConformanceServiceServer) ServerStream(*ServerStreamRequest, ConformanceService_ServerStreamServer) error {
return status.Errorf(codes.Unimplemented, "method ServerStream not implemented")
}
func (UnimplementedConformanceServiceServer) ClientStream(ConformanceService_ClientStreamServer) error {
return status.Errorf(codes.Unimplemented, "method ClientStream not implemented")
}
func (UnimplementedConformanceServiceServer) BidiStream(ConformanceService_BidiStreamServer) error {
return status.Errorf(codes.Unimplemented, "method BidiStream not implemented")
}
func (UnimplementedConformanceServiceServer) Unimplemented(context.Context, *UnimplementedRequest) (*UnimplementedResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Unimplemented not implemented")
}
func (UnimplementedConformanceServiceServer) IdempotentUnary(context.Context, *IdempotentUnaryRequest) (*IdempotentUnaryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IdempotentUnary not implemented")
}
func (UnimplementedConformanceServiceServer) mustEmbedUnimplementedConformanceServiceServer() {}
// UnsafeConformanceServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ConformanceServiceServer will
// result in compilation errors.
type UnsafeConformanceServiceServer interface {
mustEmbedUnimplementedConformanceServiceServer()
}
func RegisterConformanceServiceServer(s grpc.ServiceRegistrar, srv ConformanceServiceServer) {
s.RegisterService(&ConformanceService_ServiceDesc, srv)
}
func _ConformanceService_Unary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UnaryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConformanceServiceServer).Unary(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ConformanceService_Unary_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConformanceServiceServer).Unary(ctx, req.(*UnaryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ConformanceService_ServerStream_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ServerStreamRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ConformanceServiceServer).ServerStream(m, &conformanceServiceServerStreamServer{stream})
}
type ConformanceService_ServerStreamServer interface {
Send(*ServerStreamResponse) error
grpc.ServerStream
}
type conformanceServiceServerStreamServer struct {
grpc.ServerStream
}
func (x *conformanceServiceServerStreamServer) Send(m *ServerStreamResponse) error {
return x.ServerStream.SendMsg(m)
}
func _ConformanceService_ClientStream_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(ConformanceServiceServer).ClientStream(&conformanceServiceClientStreamServer{stream})
}
type ConformanceService_ClientStreamServer interface {
SendAndClose(*ClientStreamResponse) error
Recv() (*ClientStreamRequest, error)
grpc.ServerStream
}
type conformanceServiceClientStreamServer struct {
grpc.ServerStream
}
func (x *conformanceServiceClientStreamServer) SendAndClose(m *ClientStreamResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *conformanceServiceClientStreamServer) Recv() (*ClientStreamRequest, error) {
m := new(ClientStreamRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _ConformanceService_BidiStream_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(ConformanceServiceServer).BidiStream(&conformanceServiceBidiStreamServer{stream})
}
type ConformanceService_BidiStreamServer interface {
Send(*BidiStreamResponse) error
Recv() (*BidiStreamRequest, error)
grpc.ServerStream
}
type conformanceServiceBidiStreamServer struct {
grpc.ServerStream
}
func (x *conformanceServiceBidiStreamServer) Send(m *BidiStreamResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *conformanceServiceBidiStreamServer) Recv() (*BidiStreamRequest, error) {
m := new(BidiStreamRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _ConformanceService_Unimplemented_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UnimplementedRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConformanceServiceServer).Unimplemented(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ConformanceService_Unimplemented_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConformanceServiceServer).Unimplemented(ctx, req.(*UnimplementedRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ConformanceService_IdempotentUnary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IdempotentUnaryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConformanceServiceServer).IdempotentUnary(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ConformanceService_IdempotentUnary_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConformanceServiceServer).IdempotentUnary(ctx, req.(*IdempotentUnaryRequest))
}
return interceptor(ctx, in, info, handler)
}
// ConformanceService_ServiceDesc is the grpc.ServiceDesc for ConformanceService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ConformanceService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "connectrpc.conformance.v1.ConformanceService",
HandlerType: (*ConformanceServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Unary",
Handler: _ConformanceService_Unary_Handler,
},
{
MethodName: "Unimplemented",
Handler: _ConformanceService_Unimplemented_Handler,
},
{
MethodName: "IdempotentUnary",
Handler: _ConformanceService_IdempotentUnary_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "ServerStream",
Handler: _ConformanceService_ServerStream_Handler,
ServerStreams: true,
},
{
StreamName: "ClientStream",
Handler: _ConformanceService_ClientStream_Handler,
ClientStreams: true,
},
{
StreamName: "BidiStream",
Handler: _ConformanceService_BidiStream_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "connectrpc/conformance/v1/service.proto",
}