-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrgrpc.pb.go
846 lines (747 loc) · 30.1 KB
/
rgrpc.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
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.12.4
// source: rgrpc.proto
package rgrpc
import (
empty "github.com/golang/protobuf/ptypes/empty"
status "google.golang.org/genproto/googleapis/rpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// ClientToServer is the message a client sends to a server.
//
// For a single stream ID, the first such message must include the new_stream
// field. After that, there can be any number of requests sent, via the
// request_message field and additional messages thereafter that use the
// more_request_data field (for requests that are larger than 16kb). And
// finally, the RPC ends with either the half_close or cancel fields. If the
// half_close field is used, the RPC stream remains active so the server may
// continue to send response data. But, if the cancel field is used, the RPC
// stream is aborted and thus closed on both client and server ends. If a stream
// has been half-closed, the only allowed message from the client for that
// stream ID is one with the cancel field, to abort the remainder of the
// operation.
type ClientToServer struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The ID of the stream. Stream IDs must be used in increasing order and
// cannot be re-used. Unlike in the HTTP/2 protocol, the stream ID is 64-bit
// so overflow in a long-lived channel is excessively unlikely. (If the
// channel were used for a stream every nanosecond, it would take close to
// 300 years to exhaust every ID and reach an overflow situation.)
StreamId int64 `protobuf:"varint,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
// Types that are assignable to Frame:
// *ClientToServer_NewStream
// *ClientToServer_RequestMessage
// *ClientToServer_MoreRequestData
// *ClientToServer_HalfClose
// *ClientToServer_Cancel
Frame isClientToServer_Frame `protobuf_oneof:"frame"`
}
func (x *ClientToServer) Reset() {
*x = ClientToServer{}
if protoimpl.UnsafeEnabled {
mi := &file_rgrpc_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClientToServer) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientToServer) ProtoMessage() {}
func (x *ClientToServer) ProtoReflect() protoreflect.Message {
mi := &file_rgrpc_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClientToServer.ProtoReflect.Descriptor instead.
func (*ClientToServer) Descriptor() ([]byte, []int) {
return file_rgrpc_proto_rawDescGZIP(), []int{0}
}
func (x *ClientToServer) GetStreamId() int64 {
if x != nil {
return x.StreamId
}
return 0
}
func (m *ClientToServer) GetFrame() isClientToServer_Frame {
if m != nil {
return m.Frame
}
return nil
}
func (x *ClientToServer) GetNewStream() *NewStream {
if x, ok := x.GetFrame().(*ClientToServer_NewStream); ok {
return x.NewStream
}
return nil
}
func (x *ClientToServer) GetRequestMessage() *MessageData {
if x, ok := x.GetFrame().(*ClientToServer_RequestMessage); ok {
return x.RequestMessage
}
return nil
}
func (x *ClientToServer) GetMoreRequestData() []byte {
if x, ok := x.GetFrame().(*ClientToServer_MoreRequestData); ok {
return x.MoreRequestData
}
return nil
}
func (x *ClientToServer) GetHalfClose() *empty.Empty {
if x, ok := x.GetFrame().(*ClientToServer_HalfClose); ok {
return x.HalfClose
}
return nil
}
func (x *ClientToServer) GetCancel() *empty.Empty {
if x, ok := x.GetFrame().(*ClientToServer_Cancel); ok {
return x.Cancel
}
return nil
}
type isClientToServer_Frame interface {
isClientToServer_Frame()
}
type ClientToServer_NewStream struct {
// Creates a new RPC stream, which includes request header metadata. The
// stream ID must not be an already active stream.
NewStream *NewStream `protobuf:"bytes,2,opt,name=new_stream,json=newStream,proto3,oneof"`
}
type ClientToServer_RequestMessage struct {
// Sends a message on the RPC stream. If the message is larger than 16k,
// the rest of the message should be sent in chunks using the
// more_request_data field (up to 16kb of data in each chunk).
RequestMessage *MessageData `protobuf:"bytes,3,opt,name=request_message,json=requestMessage,proto3,oneof"`
}
type ClientToServer_MoreRequestData struct {
// Sends a chunk of request data, for a request message that could not
// wholly fit in a request_message field (e.g. > 16kb).
MoreRequestData []byte `protobuf:"bytes,4,opt,name=more_request_data,json=moreRequestData,proto3,oneof"`
}
type ClientToServer_HalfClose struct {
// Half-closes the stream, signaling that no more request messages will
// be sent. No other messages, other than one with the cancel field set,
// should be sent for this stream (at least not until it is terminated
// by the server, after which the ID can be re-used).
HalfClose *empty.Empty `protobuf:"bytes,5,opt,name=half_close,json=halfClose,proto3,oneof"`
}
type ClientToServer_Cancel struct {
// Aborts the stream. No other messages should be sent for this stream
// (unless the ID is being re-used after the stream is terminated on the
// server side).
Cancel *empty.Empty `protobuf:"bytes,6,opt,name=cancel,proto3,oneof"`
}
func (*ClientToServer_NewStream) isClientToServer_Frame() {}
func (*ClientToServer_RequestMessage) isClientToServer_Frame() {}
func (*ClientToServer_MoreRequestData) isClientToServer_Frame() {}
func (*ClientToServer_HalfClose) isClientToServer_Frame() {}
func (*ClientToServer_Cancel) isClientToServer_Frame() {}
// ServerToClient is the message a server sends to a client.
//
// For a single stream ID, the first such message should include the
// response_headers field unless no headers are to be sent. After the headers,
// the server can send any number of responses, via the response_message field
// and additional messages thereafter that use the more_response_data field (for
// responses that are larger than 16kb). A message with the close_stream field
// concludes the stream, whether it terminates successfully or with an error.
type ServerToClient struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The ID of the stream. Stream IDs are defined by the client and should be
// used in monotonically increasing order. They cannot be re-used. Unlike
// HTTP/2, the ID is 64-bit, so overflow/re-use should not be an issue. (If
// the channel were used for a stream every nanosecond, it would take close
// to 300 years to exhaust every ID and reach an overflow situation.)
StreamId int64 `protobuf:"varint,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
// Types that are assignable to Frame:
// *ServerToClient_ResponseHeaders
// *ServerToClient_ResponseMessage
// *ServerToClient_MoreResponseData
// *ServerToClient_CloseStream
Frame isServerToClient_Frame `protobuf_oneof:"frame"`
}
func (x *ServerToClient) Reset() {
*x = ServerToClient{}
if protoimpl.UnsafeEnabled {
mi := &file_rgrpc_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerToClient) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerToClient) ProtoMessage() {}
func (x *ServerToClient) ProtoReflect() protoreflect.Message {
mi := &file_rgrpc_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ServerToClient.ProtoReflect.Descriptor instead.
func (*ServerToClient) Descriptor() ([]byte, []int) {
return file_rgrpc_proto_rawDescGZIP(), []int{1}
}
func (x *ServerToClient) GetStreamId() int64 {
if x != nil {
return x.StreamId
}
return 0
}
func (m *ServerToClient) GetFrame() isServerToClient_Frame {
if m != nil {
return m.Frame
}
return nil
}
func (x *ServerToClient) GetResponseHeaders() *Metadata {
if x, ok := x.GetFrame().(*ServerToClient_ResponseHeaders); ok {
return x.ResponseHeaders
}
return nil
}
func (x *ServerToClient) GetResponseMessage() *MessageData {
if x, ok := x.GetFrame().(*ServerToClient_ResponseMessage); ok {
return x.ResponseMessage
}
return nil
}
func (x *ServerToClient) GetMoreResponseData() []byte {
if x, ok := x.GetFrame().(*ServerToClient_MoreResponseData); ok {
return x.MoreResponseData
}
return nil
}
func (x *ServerToClient) GetCloseStream() *CloseStream {
if x, ok := x.GetFrame().(*ServerToClient_CloseStream); ok {
return x.CloseStream
}
return nil
}
type isServerToClient_Frame interface {
isServerToClient_Frame()
}
type ServerToClient_ResponseHeaders struct {
// Sends response headers for this stream. If headers are sent at all,
// they must be sent before any response message data.
ResponseHeaders *Metadata `protobuf:"bytes,2,opt,name=response_headers,json=responseHeaders,proto3,oneof"`
}
type ServerToClient_ResponseMessage struct {
// Sends a message on the RPC stream. If the message is larger than 16k,
// the rest of the message should be sent in chunks using the
// more_response_data field (up to 16kb of data in each chunk).
ResponseMessage *MessageData `protobuf:"bytes,3,opt,name=response_message,json=responseMessage,proto3,oneof"`
}
type ServerToClient_MoreResponseData struct {
// Sends a chunk of response data, for a response message that could not
// wholly fit in a response_message field (e.g. > 16kb).
MoreResponseData []byte `protobuf:"bytes,4,opt,name=more_response_data,json=moreResponseData,proto3,oneof"`
}
type ServerToClient_CloseStream struct {
// Terminates the stream and communicates the final disposition to the
// client. After the stream is closed, no other messages should use the
// given stream ID until the ID is re-used (e.g. a NewStream message is
// received that creates another stream with the same ID).
CloseStream *CloseStream `protobuf:"bytes,5,opt,name=close_stream,json=closeStream,proto3,oneof"`
}
func (*ServerToClient_ResponseHeaders) isServerToClient_Frame() {}
func (*ServerToClient_ResponseMessage) isServerToClient_Frame() {}
func (*ServerToClient_MoreResponseData) isServerToClient_Frame() {}
func (*ServerToClient_CloseStream) isServerToClient_Frame() {}
type NewStream struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MethodName string `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
RequestHeaders *Metadata `protobuf:"bytes,2,opt,name=request_headers,json=requestHeaders,proto3" json:"request_headers,omitempty"`
}
func (x *NewStream) Reset() {
*x = NewStream{}
if protoimpl.UnsafeEnabled {
mi := &file_rgrpc_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NewStream) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NewStream) ProtoMessage() {}
func (x *NewStream) ProtoReflect() protoreflect.Message {
mi := &file_rgrpc_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NewStream.ProtoReflect.Descriptor instead.
func (*NewStream) Descriptor() ([]byte, []int) {
return file_rgrpc_proto_rawDescGZIP(), []int{2}
}
func (x *NewStream) GetMethodName() string {
if x != nil {
return x.MethodName
}
return ""
}
func (x *NewStream) GetRequestHeaders() *Metadata {
if x != nil {
return x.RequestHeaders
}
return nil
}
type MessageData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The full size of the message.
Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
// The message data. This field should not be longer than 16kb (16,384
// bytes). If the full size of the message is larger then it should be
// split into multiple chunks. The chunking is done to allow multiple
// access to the underlying gRPC stream by concurrent tunneled streams.
// If very large messages were sent via a single chunk, it could cause
// head-of-line blocking and starvation when multiple streams need to send
// data on the one underlying gRPC stream.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}
func (x *MessageData) Reset() {
*x = MessageData{}
if protoimpl.UnsafeEnabled {
mi := &file_rgrpc_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MessageData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MessageData) ProtoMessage() {}
func (x *MessageData) ProtoReflect() protoreflect.Message {
mi := &file_rgrpc_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MessageData.ProtoReflect.Descriptor instead.
func (*MessageData) Descriptor() ([]byte, []int) {
return file_rgrpc_proto_rawDescGZIP(), []int{3}
}
func (x *MessageData) GetSize() int32 {
if x != nil {
return x.Size
}
return 0
}
func (x *MessageData) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
type CloseStream struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ResponseTrailers *Metadata `protobuf:"bytes,1,opt,name=response_trailers,json=responseTrailers,proto3" json:"response_trailers,omitempty"`
Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
}
func (x *CloseStream) Reset() {
*x = CloseStream{}
if protoimpl.UnsafeEnabled {
mi := &file_rgrpc_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CloseStream) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CloseStream) ProtoMessage() {}
func (x *CloseStream) ProtoReflect() protoreflect.Message {
mi := &file_rgrpc_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CloseStream.ProtoReflect.Descriptor instead.
func (*CloseStream) Descriptor() ([]byte, []int) {
return file_rgrpc_proto_rawDescGZIP(), []int{4}
}
func (x *CloseStream) GetResponseTrailers() *Metadata {
if x != nil {
return x.ResponseTrailers
}
return nil
}
func (x *CloseStream) GetStatus() *status.Status {
if x != nil {
return x.Status
}
return nil
}
type Metadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Md map[string]*Metadata_Values `protobuf:"bytes,1,rep,name=md,proto3" json:"md,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Metadata) Reset() {
*x = Metadata{}
if protoimpl.UnsafeEnabled {
mi := &file_rgrpc_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Metadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Metadata) ProtoMessage() {}
func (x *Metadata) ProtoReflect() protoreflect.Message {
mi := &file_rgrpc_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Metadata.ProtoReflect.Descriptor instead.
func (*Metadata) Descriptor() ([]byte, []int) {
return file_rgrpc_proto_rawDescGZIP(), []int{5}
}
func (x *Metadata) GetMd() map[string]*Metadata_Values {
if x != nil {
return x.Md
}
return nil
}
type Metadata_Values struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Val []string `protobuf:"bytes,1,rep,name=val,proto3" json:"val,omitempty"`
}
func (x *Metadata_Values) Reset() {
*x = Metadata_Values{}
if protoimpl.UnsafeEnabled {
mi := &file_rgrpc_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Metadata_Values) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Metadata_Values) ProtoMessage() {}
func (x *Metadata_Values) ProtoReflect() protoreflect.Message {
mi := &file_rgrpc_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Metadata_Values.ProtoReflect.Descriptor instead.
func (*Metadata_Values) Descriptor() ([]byte, []int) {
return file_rgrpc_proto_rawDescGZIP(), []int{5, 0}
}
func (x *Metadata_Values) GetVal() []string {
if x != nil {
return x.Val
}
return nil
}
var File_rgrpc_proto protoreflect.FileDescriptor
var file_rgrpc_proto_rawDesc = []byte{
0x0a, 0x0b, 0x72, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x72,
0x67, 0x72, 0x70, 0x63, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x02, 0x0a, 0x0e, 0x43,
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1b, 0x0a,
0x09, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x08, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x31, 0x0a, 0x0a, 0x6e, 0x65,
0x77, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
0x2e, 0x72, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x65, 0x77, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
0x48, 0x00, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x3d, 0x0a,
0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x72, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2c, 0x0a, 0x11,
0x6d, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x61, 0x74,
0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x6f, 0x72, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x37, 0x0a, 0x0a, 0x68, 0x61,
0x6c, 0x66, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x09, 0x68, 0x61, 0x6c, 0x66, 0x43, 0x6c,
0x6f, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x18, 0x06, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x06, 0x63,
0x61, 0x6e, 0x63, 0x65, 0x6c, 0x42, 0x07, 0x0a, 0x05, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x22, 0x9e,
0x02, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x6f, 0x43, 0x6c, 0x69, 0x65, 0x6e,
0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x3c,
0x0a, 0x10, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65,
0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x67, 0x72, 0x70, 0x63,
0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x10,
0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x72, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a,
0x12, 0x6d, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x64,
0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x6f, 0x72,
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x37, 0x0a,
0x0c, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x05, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x72, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6c, 0x6f, 0x73,
0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6c, 0x6f, 0x73, 0x65,
0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x07, 0x0a, 0x05, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x22,
0x66, 0x0a, 0x09, 0x4e, 0x65, 0x77, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1f, 0x0a, 0x0b,
0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a,
0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4d,
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x22, 0x35, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61,
0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x77,
0x0a, 0x0b, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x3c, 0x0a,
0x11, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65,
0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x67, 0x72, 0x70, 0x63,
0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x10, 0x72, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x12, 0x2a, 0x0a, 0x06, 0x73,
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61,
0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x0a, 0x02, 0x6d, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x17, 0x2e, 0x72, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
0x61, 0x2e, 0x4d, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x02, 0x6d, 0x64, 0x1a, 0x1a, 0x0a,
0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x01,
0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x1a, 0x4d, 0x0a, 0x07, 0x4d, 0x64, 0x45,
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x65,
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x4d, 0x0a, 0x0c, 0x52, 0x67, 0x72, 0x70,
0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x6e,
0x52, 0x67, 0x72, 0x70, 0x63, 0x12, 0x15, 0x2e, 0x72, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65,
0x72, 0x76, 0x65, 0x72, 0x54, 0x6f, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x1a, 0x15, 0x2e, 0x72,
0x67, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x53, 0x65, 0x72,
0x76, 0x65, 0x72, 0x28, 0x01, 0x30, 0x01, 0x42, 0x1e, 0x5a, 0x1c, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6e, 0x70, 0x6c, 0x65, 0x2f, 0x72, 0x67, 0x72, 0x70,
0x63, 0x3b, 0x72, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_rgrpc_proto_rawDescOnce sync.Once
file_rgrpc_proto_rawDescData = file_rgrpc_proto_rawDesc
)
func file_rgrpc_proto_rawDescGZIP() []byte {
file_rgrpc_proto_rawDescOnce.Do(func() {
file_rgrpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_rgrpc_proto_rawDescData)
})
return file_rgrpc_proto_rawDescData
}
var file_rgrpc_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_rgrpc_proto_goTypes = []interface{}{
(*ClientToServer)(nil), // 0: rgrpc.ClientToServer
(*ServerToClient)(nil), // 1: rgrpc.ServerToClient
(*NewStream)(nil), // 2: rgrpc.NewStream
(*MessageData)(nil), // 3: rgrpc.MessageData
(*CloseStream)(nil), // 4: rgrpc.CloseStream
(*Metadata)(nil), // 5: rgrpc.Metadata
(*Metadata_Values)(nil), // 6: rgrpc.Metadata.Values
nil, // 7: rgrpc.Metadata.MdEntry
(*empty.Empty)(nil), // 8: google.protobuf.Empty
(*status.Status)(nil), // 9: google.rpc.Status
}
var file_rgrpc_proto_depIdxs = []int32{
2, // 0: rgrpc.ClientToServer.new_stream:type_name -> rgrpc.NewStream
3, // 1: rgrpc.ClientToServer.request_message:type_name -> rgrpc.MessageData
8, // 2: rgrpc.ClientToServer.half_close:type_name -> google.protobuf.Empty
8, // 3: rgrpc.ClientToServer.cancel:type_name -> google.protobuf.Empty
5, // 4: rgrpc.ServerToClient.response_headers:type_name -> rgrpc.Metadata
3, // 5: rgrpc.ServerToClient.response_message:type_name -> rgrpc.MessageData
4, // 6: rgrpc.ServerToClient.close_stream:type_name -> rgrpc.CloseStream
5, // 7: rgrpc.NewStream.request_headers:type_name -> rgrpc.Metadata
5, // 8: rgrpc.CloseStream.response_trailers:type_name -> rgrpc.Metadata
9, // 9: rgrpc.CloseStream.status:type_name -> google.rpc.Status
7, // 10: rgrpc.Metadata.md:type_name -> rgrpc.Metadata.MdEntry
6, // 11: rgrpc.Metadata.MdEntry.value:type_name -> rgrpc.Metadata.Values
1, // 12: rgrpc.RgrpcService.OpenRgrpc:input_type -> rgrpc.ServerToClient
0, // 13: rgrpc.RgrpcService.OpenRgrpc:output_type -> rgrpc.ClientToServer
13, // [13:14] is the sub-list for method output_type
12, // [12:13] is the sub-list for method input_type
12, // [12:12] is the sub-list for extension type_name
12, // [12:12] is the sub-list for extension extendee
0, // [0:12] is the sub-list for field type_name
}
func init() { file_rgrpc_proto_init() }
func file_rgrpc_proto_init() {
if File_rgrpc_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_rgrpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ClientToServer); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_rgrpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ServerToClient); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_rgrpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NewStream); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_rgrpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MessageData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_rgrpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CloseStream); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_rgrpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Metadata); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_rgrpc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Metadata_Values); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_rgrpc_proto_msgTypes[0].OneofWrappers = []interface{}{
(*ClientToServer_NewStream)(nil),
(*ClientToServer_RequestMessage)(nil),
(*ClientToServer_MoreRequestData)(nil),
(*ClientToServer_HalfClose)(nil),
(*ClientToServer_Cancel)(nil),
}
file_rgrpc_proto_msgTypes[1].OneofWrappers = []interface{}{
(*ServerToClient_ResponseHeaders)(nil),
(*ServerToClient_ResponseMessage)(nil),
(*ServerToClient_MoreResponseData)(nil),
(*ServerToClient_CloseStream)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_rgrpc_proto_rawDesc,
NumEnums: 0,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_rgrpc_proto_goTypes,
DependencyIndexes: file_rgrpc_proto_depIdxs,
MessageInfos: file_rgrpc_proto_msgTypes,
}.Build()
File_rgrpc_proto = out.File
file_rgrpc_proto_rawDesc = nil
file_rgrpc_proto_goTypes = nil
file_rgrpc_proto_depIdxs = nil
}