Debian Codegraph @

konnectivity-client/proto/client/client.pb.go

raw
1 // Copyright The Kubernetes Authors.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.27.1
18 // protoc v3.21.12
19 // source: konnectivity-client/proto/client/client.proto
20
21 package client
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 type PacketType int32
38
39 const (
40 PacketType_DIAL_REQ PacketType = 0
41 PacketType_DIAL_RSP PacketType = 1
42 PacketType_CLOSE_REQ PacketType = 2
43 PacketType_CLOSE_RSP PacketType = 3
44 PacketType_DATA PacketType = 4
45 PacketType_DIAL_CLS PacketType = 5
46 PacketType_DRAIN PacketType = 6
47 )
48
49 // Enum value maps for PacketType.
50 var (
51 PacketType_name = map[int32]string{
52 0: "DIAL_REQ",
53 1: "DIAL_RSP",
54 2: "CLOSE_REQ",
55 3: "CLOSE_RSP",
56 4: "DATA",
57 5: "DIAL_CLS",
58 6: "DRAIN",
59 }
60 PacketType_value = map[string]int32{
61 "DIAL_REQ": 0,
62 "DIAL_RSP": 1,
63 "CLOSE_REQ": 2,
64 "CLOSE_RSP": 3,
65 "DATA": 4,
66 "DIAL_CLS": 5,
67 "DRAIN": 6,
68 }
69 )
70
71 func (x PacketType) Enum() *PacketType {
72 p := new(PacketType)
73 *p = x
74 return p
75 }
76
77 func (x PacketType) String() string {
78 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
79 }
80
81 func (PacketType) Descriptor() protoreflect.EnumDescriptor {
82 return file_konnectivity_client_proto_client_client_proto_enumTypes[0].Descriptor()
83 }
84
85 func (PacketType) Type() protoreflect.EnumType {
86 return &file_konnectivity_client_proto_client_client_proto_enumTypes[0]
87 }
88
89 func (x PacketType) Number() protoreflect.EnumNumber {
90 return protoreflect.EnumNumber(x)
91 }
92
93 // Deprecated: Use PacketType.Descriptor instead.
94 func (PacketType) EnumDescriptor() ([]byte, []int) {
95 return file_konnectivity_client_proto_client_client_proto_rawDescGZIP(), []int{0}
96 }
97
98 type Packet struct {
99 state protoimpl.MessageState
100 sizeCache protoimpl.SizeCache
101 unknownFields protoimpl.UnknownFields
102
103 Type PacketType `protobuf:"varint,1,opt,name=type,proto3,enum=PacketType" json:"type,omitempty"`
104 // Types that are assignable to Payload:
105 // *Packet_DialRequest
106 // *Packet_DialResponse
107 // *Packet_Data
108 // *Packet_CloseRequest
109 // *Packet_CloseResponse
110 // *Packet_CloseDial
111 // *Packet_Drain
112 Payload isPacket_Payload `protobuf_oneof:"payload"`
113 }
114
115 func (x *Packet) Reset() {
116 *x = Packet{}
117 if protoimpl.UnsafeEnabled {
118 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[0]
119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120 ms.StoreMessageInfo(mi)
121 }
122 }
123
124 func (x *Packet) String() string {
125 return protoimpl.X.MessageStringOf(x)
126 }
127
128 func (*Packet) ProtoMessage() {}
129
130 func (x *Packet) ProtoReflect() protoreflect.Message {
131 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[0]
132 if protoimpl.UnsafeEnabled && x != nil {
133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
134 if ms.LoadMessageInfo() == nil {
135 ms.StoreMessageInfo(mi)
136 }
137 return ms
138 }
139 return mi.MessageOf(x)
140 }
141
142 // Deprecated: Use Packet.ProtoReflect.Descriptor instead.
143 func (*Packet) Descriptor() ([]byte, []int) {
144 return file_konnectivity_client_proto_client_client_proto_rawDescGZIP(), []int{0}
145 }
146
147 func (x *Packet) GetType() PacketType {
148 if x != nil {
149 return x.Type
150 }
151 return PacketType_DIAL_REQ
152 }
153
154 func (m *Packet) GetPayload() isPacket_Payload {
155 if m != nil {
156 return m.Payload
157 }
158 return nil
159 }
160
161 func (x *Packet) GetDialRequest() *DialRequest {
162 if x, ok := x.GetPayload().(*Packet_DialRequest); ok {
163 return x.DialRequest
164 }
165 return nil
166 }
167
168 func (x *Packet) GetDialResponse() *DialResponse {
169 if x, ok := x.GetPayload().(*Packet_DialResponse); ok {
170 return x.DialResponse
171 }
172 return nil
173 }
174
175 func (x *Packet) GetData() *Data {
176 if x, ok := x.GetPayload().(*Packet_Data); ok {
177 return x.Data
178 }
179 return nil
180 }
181
182 func (x *Packet) GetCloseRequest() *CloseRequest {
183 if x, ok := x.GetPayload().(*Packet_CloseRequest); ok {
184 return x.CloseRequest
185 }
186 return nil
187 }
188
189 func (x *Packet) GetCloseResponse() *CloseResponse {
190 if x, ok := x.GetPayload().(*Packet_CloseResponse); ok {
191 return x.CloseResponse
192 }
193 return nil
194 }
195
196 func (x *Packet) GetCloseDial() *CloseDial {
197 if x, ok := x.GetPayload().(*Packet_CloseDial); ok {
198 return x.CloseDial
199 }
200 return nil
201 }
202
203 func (x *Packet) GetDrain() *Drain {
204 if x, ok := x.GetPayload().(*Packet_Drain); ok {
205 return x.Drain
206 }
207 return nil
208 }
209
210 type isPacket_Payload interface {
211 isPacket_Payload()
212 }
213
214 type Packet_DialRequest struct {
215 DialRequest *DialRequest `protobuf:"bytes,2,opt,name=dialRequest,proto3,oneof"`
216 }
217
218 type Packet_DialResponse struct {
219 DialResponse *DialResponse `protobuf:"bytes,3,opt,name=dialResponse,proto3,oneof"`
220 }
221
222 type Packet_Data struct {
223 Data *Data `protobuf:"bytes,4,opt,name=data,proto3,oneof"`
224 }
225
226 type Packet_CloseRequest struct {
227 CloseRequest *CloseRequest `protobuf:"bytes,5,opt,name=closeRequest,proto3,oneof"`
228 }
229
230 type Packet_CloseResponse struct {
231 CloseResponse *CloseResponse `protobuf:"bytes,6,opt,name=closeResponse,proto3,oneof"`
232 }
233
234 type Packet_CloseDial struct {
235 CloseDial *CloseDial `protobuf:"bytes,7,opt,name=closeDial,proto3,oneof"`
236 }
237
238 type Packet_Drain struct {
239 Drain *Drain `protobuf:"bytes,8,opt,name=drain,proto3,oneof"`
240 }
241
242 func (*Packet_DialRequest) isPacket_Payload() {}
243
244 func (*Packet_DialResponse) isPacket_Payload() {}
245
246 func (*Packet_Data) isPacket_Payload() {}
247
248 func (*Packet_CloseRequest) isPacket_Payload() {}
249
250 func (*Packet_CloseResponse) isPacket_Payload() {}
251
252 func (*Packet_CloseDial) isPacket_Payload() {}
253
254 func (*Packet_Drain) isPacket_Payload() {}
255
256 type DialRequest struct {
257 state protoimpl.MessageState
258 sizeCache protoimpl.SizeCache
259 unknownFields protoimpl.UnknownFields
260
261 // tcp or udp?
262 Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
263 // node:port
264 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
265 // random id for client, maybe should be longer
266 Random int64 `protobuf:"varint,3,opt,name=random,proto3" json:"random,omitempty"`
267 }
268
269 func (x *DialRequest) Reset() {
270 *x = DialRequest{}
271 if protoimpl.UnsafeEnabled {
272 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[1]
273 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
274 ms.StoreMessageInfo(mi)
275 }
276 }
277
278 func (x *DialRequest) String() string {
279 return protoimpl.X.MessageStringOf(x)
280 }
281
282 func (*DialRequest) ProtoMessage() {}
283
284 func (x *DialRequest) ProtoReflect() protoreflect.Message {
285 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[1]
286 if protoimpl.UnsafeEnabled && x != nil {
287 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
288 if ms.LoadMessageInfo() == nil {
289 ms.StoreMessageInfo(mi)
290 }
291 return ms
292 }
293 return mi.MessageOf(x)
294 }
295
296 // Deprecated: Use DialRequest.ProtoReflect.Descriptor instead.
297 func (*DialRequest) Descriptor() ([]byte, []int) {
298 return file_konnectivity_client_proto_client_client_proto_rawDescGZIP(), []int{1}
299 }
300
301 func (x *DialRequest) GetProtocol() string {
302 if x != nil {
303 return x.Protocol
304 }
305 return ""
306 }
307
308 func (x *DialRequest) GetAddress() string {
309 if x != nil {
310 return x.Address
311 }
312 return ""
313 }
314
315 func (x *DialRequest) GetRandom() int64 {
316 if x != nil {
317 return x.Random
318 }
319 return 0
320 }
321
322 type DialResponse struct {
323 state protoimpl.MessageState
324 sizeCache protoimpl.SizeCache
325 unknownFields protoimpl.UnknownFields
326
327 // error failed reason; enum?
328 Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
329 // connectID indicates the identifier of the connection
330 ConnectID int64 `protobuf:"varint,2,opt,name=connectID,proto3" json:"connectID,omitempty"`
331 // random copied from DialRequest
332 Random int64 `protobuf:"varint,3,opt,name=random,proto3" json:"random,omitempty"`
333 }
334
335 func (x *DialResponse) Reset() {
336 *x = DialResponse{}
337 if protoimpl.UnsafeEnabled {
338 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[2]
339 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
340 ms.StoreMessageInfo(mi)
341 }
342 }
343
344 func (x *DialResponse) String() string {
345 return protoimpl.X.MessageStringOf(x)
346 }
347
348 func (*DialResponse) ProtoMessage() {}
349
350 func (x *DialResponse) ProtoReflect() protoreflect.Message {
351 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[2]
352 if protoimpl.UnsafeEnabled && x != nil {
353 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
354 if ms.LoadMessageInfo() == nil {
355 ms.StoreMessageInfo(mi)
356 }
357 return ms
358 }
359 return mi.MessageOf(x)
360 }
361
362 // Deprecated: Use DialResponse.ProtoReflect.Descriptor instead.
363 func (*DialResponse) Descriptor() ([]byte, []int) {
364 return file_konnectivity_client_proto_client_client_proto_rawDescGZIP(), []int{2}
365 }
366
367 func (x *DialResponse) GetError() string {
368 if x != nil {
369 return x.Error
370 }
371 return ""
372 }
373
374 func (x *DialResponse) GetConnectID() int64 {
375 if x != nil {
376 return x.ConnectID
377 }
378 return 0
379 }
380
381 func (x *DialResponse) GetRandom() int64 {
382 if x != nil {
383 return x.Random
384 }
385 return 0
386 }
387
388 type CloseRequest struct {
389 state protoimpl.MessageState
390 sizeCache protoimpl.SizeCache
391 unknownFields protoimpl.UnknownFields
392
393 // connectID of the stream to close
394 ConnectID int64 `protobuf:"varint,1,opt,name=connectID,proto3" json:"connectID,omitempty"`
395 }
396
397 func (x *CloseRequest) Reset() {
398 *x = CloseRequest{}
399 if protoimpl.UnsafeEnabled {
400 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[3]
401 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
402 ms.StoreMessageInfo(mi)
403 }
404 }
405
406 func (x *CloseRequest) String() string {
407 return protoimpl.X.MessageStringOf(x)
408 }
409
410 func (*CloseRequest) ProtoMessage() {}
411
412 func (x *CloseRequest) ProtoReflect() protoreflect.Message {
413 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[3]
414 if protoimpl.UnsafeEnabled && x != nil {
415 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
416 if ms.LoadMessageInfo() == nil {
417 ms.StoreMessageInfo(mi)
418 }
419 return ms
420 }
421 return mi.MessageOf(x)
422 }
423
424 // Deprecated: Use CloseRequest.ProtoReflect.Descriptor instead.
425 func (*CloseRequest) Descriptor() ([]byte, []int) {
426 return file_konnectivity_client_proto_client_client_proto_rawDescGZIP(), []int{3}
427 }
428
429 func (x *CloseRequest) GetConnectID() int64 {
430 if x != nil {
431 return x.ConnectID
432 }
433 return 0
434 }
435
436 type CloseResponse struct {
437 state protoimpl.MessageState
438 sizeCache protoimpl.SizeCache
439 unknownFields protoimpl.UnknownFields
440
441 // error message
442 Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
443 // connectID indicates the identifier of the connection
444 ConnectID int64 `protobuf:"varint,2,opt,name=connectID,proto3" json:"connectID,omitempty"`
445 }
446
447 func (x *CloseResponse) Reset() {
448 *x = CloseResponse{}
449 if protoimpl.UnsafeEnabled {
450 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[4]
451 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
452 ms.StoreMessageInfo(mi)
453 }
454 }
455
456 func (x *CloseResponse) String() string {
457 return protoimpl.X.MessageStringOf(x)
458 }
459
460 func (*CloseResponse) ProtoMessage() {}
461
462 func (x *CloseResponse) ProtoReflect() protoreflect.Message {
463 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[4]
464 if protoimpl.UnsafeEnabled && x != nil {
465 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
466 if ms.LoadMessageInfo() == nil {
467 ms.StoreMessageInfo(mi)
468 }
469 return ms
470 }
471 return mi.MessageOf(x)
472 }
473
474 // Deprecated: Use CloseResponse.ProtoReflect.Descriptor instead.
475 func (*CloseResponse) Descriptor() ([]byte, []int) {
476 return file_konnectivity_client_proto_client_client_proto_rawDescGZIP(), []int{4}
477 }
478
479 func (x *CloseResponse) GetError() string {
480 if x != nil {
481 return x.Error
482 }
483 return ""
484 }
485
486 func (x *CloseResponse) GetConnectID() int64 {
487 if x != nil {
488 return x.ConnectID
489 }
490 return 0
491 }
492
493 type CloseDial struct {
494 state protoimpl.MessageState
495 sizeCache protoimpl.SizeCache
496 unknownFields protoimpl.UnknownFields
497
498 // random id of the DialRequest
499 Random int64 `protobuf:"varint,1,opt,name=random,proto3" json:"random,omitempty"`
500 }
501
502 func (x *CloseDial) Reset() {
503 *x = CloseDial{}
504 if protoimpl.UnsafeEnabled {
505 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[5]
506 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
507 ms.StoreMessageInfo(mi)
508 }
509 }
510
511 func (x *CloseDial) String() string {
512 return protoimpl.X.MessageStringOf(x)
513 }
514
515 func (*CloseDial) ProtoMessage() {}
516
517 func (x *CloseDial) ProtoReflect() protoreflect.Message {
518 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[5]
519 if protoimpl.UnsafeEnabled && x != nil {
520 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
521 if ms.LoadMessageInfo() == nil {
522 ms.StoreMessageInfo(mi)
523 }
524 return ms
525 }
526 return mi.MessageOf(x)
527 }
528
529 // Deprecated: Use CloseDial.ProtoReflect.Descriptor instead.
530 func (*CloseDial) Descriptor() ([]byte, []int) {
531 return file_konnectivity_client_proto_client_client_proto_rawDescGZIP(), []int{5}
532 }
533
534 func (x *CloseDial) GetRandom() int64 {
535 if x != nil {
536 return x.Random
537 }
538 return 0
539 }
540
541 type Drain struct {
542 state protoimpl.MessageState
543 sizeCache protoimpl.SizeCache
544 unknownFields protoimpl.UnknownFields
545 }
546
547 func (x *Drain) Reset() {
548 *x = Drain{}
549 if protoimpl.UnsafeEnabled {
550 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[6]
551 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
552 ms.StoreMessageInfo(mi)
553 }
554 }
555
556 func (x *Drain) String() string {
557 return protoimpl.X.MessageStringOf(x)
558 }
559
560 func (*Drain) ProtoMessage() {}
561
562 func (x *Drain) ProtoReflect() protoreflect.Message {
563 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[6]
564 if protoimpl.UnsafeEnabled && x != nil {
565 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
566 if ms.LoadMessageInfo() == nil {
567 ms.StoreMessageInfo(mi)
568 }
569 return ms
570 }
571 return mi.MessageOf(x)
572 }
573
574 // Deprecated: Use Drain.ProtoReflect.Descriptor instead.
575 func (*Drain) Descriptor() ([]byte, []int) {
576 return file_konnectivity_client_proto_client_client_proto_rawDescGZIP(), []int{6}
577 }
578
579 type Data struct {
580 state protoimpl.MessageState
581 sizeCache protoimpl.SizeCache
582 unknownFields protoimpl.UnknownFields
583
584 // connectID to connect to
585 ConnectID int64 `protobuf:"varint,1,opt,name=connectID,proto3" json:"connectID,omitempty"`
586 // error message if error happens
587 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
588 // stream data
589 Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
590 }
591
592 func (x *Data) Reset() {
593 *x = Data{}
594 if protoimpl.UnsafeEnabled {
595 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[7]
596 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
597 ms.StoreMessageInfo(mi)
598 }
599 }
600
601 func (x *Data) String() string {
602 return protoimpl.X.MessageStringOf(x)
603 }
604
605 func (*Data) ProtoMessage() {}
606
607 func (x *Data) ProtoReflect() protoreflect.Message {
608 mi := &file_konnectivity_client_proto_client_client_proto_msgTypes[7]
609 if protoimpl.UnsafeEnabled && x != nil {
610 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
611 if ms.LoadMessageInfo() == nil {
612 ms.StoreMessageInfo(mi)
613 }
614 return ms
615 }
616 return mi.MessageOf(x)
617 }
618
619 // Deprecated: Use Data.ProtoReflect.Descriptor instead.
620 func (*Data) Descriptor() ([]byte, []int) {
621 return file_konnectivity_client_proto_client_client_proto_rawDescGZIP(), []int{7}
622 }
623
624 func (x *Data) GetConnectID() int64 {
625 if x != nil {
626 return x.ConnectID
627 }
628 return 0
629 }
630
631 func (x *Data) GetError() string {
632 if x != nil {
633 return x.Error
634 }
635 return ""
636 }
637
638 func (x *Data) GetData() []byte {
639 if x != nil {
640 return x.Data
641 }
642 return nil
643 }
644
645 var File_konnectivity_client_proto_client_client_proto protoreflect.FileDescriptor
646
647 var file_konnectivity_client_proto_client_client_proto_rawDesc = []byte{
648 0x0a, 0x2d, 0x6b, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2d, 0x63,
649 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x65,
650 0x6e, 0x74, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
651 0xf1, 0x02, 0x0a, 0x06, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x79,
652 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65,
653 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x64,
654 0x69, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
655 0x32, 0x0c, 0x2e, 0x44, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00,
656 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a,
657 0x0c, 0x64, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20,
658 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
659 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
660 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
661 0x32, 0x05, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12,
662 0x33, 0x0a, 0x0c, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18,
663 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71,
664 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71,
665 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0d, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73,
666 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x43, 0x6c,
667 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x63,
668 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09,
669 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x44, 0x69, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
670 0x0a, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x44, 0x69, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x09, 0x63,
671 0x6c, 0x6f, 0x73, 0x65, 0x44, 0x69, 0x61, 0x6c, 0x12, 0x1e, 0x0a, 0x05, 0x64, 0x72, 0x61, 0x69,
672 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x48,
673 0x00, 0x52, 0x05, 0x64, 0x72, 0x61, 0x69, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
674 0x6f, 0x61, 0x64, 0x22, 0x5b, 0x0a, 0x0b, 0x44, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65,
675 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01,
676 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x18,
677 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
678 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x64,
679 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d,
680 0x22, 0x5a, 0x0a, 0x0c, 0x44, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
681 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
682 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
683 0x74, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
684 0x63, 0x74, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x03,
685 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x2c, 0x0a, 0x0c,
686 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09,
687 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
688 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x49, 0x44, 0x22, 0x43, 0x0a, 0x0d, 0x43, 0x6c,
689 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65,
690 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f,
691 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x49, 0x44, 0x18, 0x02,
692 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x49, 0x44, 0x22,
693 0x23, 0x0a, 0x09, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x44, 0x69, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06,
694 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x61,
695 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x07, 0x0a, 0x05, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x22, 0x4e, 0x0a,
696 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
697 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
698 0x74, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01,
699 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74,
700 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x69, 0x0a,
701 0x0a, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44,
702 0x49, 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x41,
703 0x4c, 0x5f, 0x52, 0x53, 0x50, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4c, 0x4f, 0x53, 0x45,
704 0x5f, 0x52, 0x45, 0x51, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f,
705 0x52, 0x53, 0x50, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x04, 0x12,
706 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x41, 0x4c, 0x5f, 0x43, 0x4c, 0x53, 0x10, 0x05, 0x12, 0x09, 0x0a,
707 0x05, 0x44, 0x52, 0x41, 0x49, 0x4e, 0x10, 0x06, 0x32, 0x2f, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x78,
708 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x78,
709 0x79, 0x12, 0x07, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x07, 0x2e, 0x50, 0x61, 0x63,
710 0x6b, 0x65, 0x74, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x46, 0x5a, 0x44, 0x73, 0x69, 0x67,
711 0x73, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x65, 0x72, 0x76,
712 0x65, 0x72, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x78, 0x79,
713 0x2f, 0x6b, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2d, 0x63, 0x6c,
714 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
715 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
716 }
717
718 var (
719 file_konnectivity_client_proto_client_client_proto_rawDescOnce sync.Once
720 file_konnectivity_client_proto_client_client_proto_rawDescData = file_konnectivity_client_proto_client_client_proto_rawDesc
721 )
722
723 func file_konnectivity_client_proto_client_client_proto_rawDescGZIP() []byte {
724 file_konnectivity_client_proto_client_client_proto_rawDescOnce.Do(func() {
725 file_konnectivity_client_proto_client_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_konnectivity_client_proto_client_client_proto_rawDescData)
726 })
727 return file_konnectivity_client_proto_client_client_proto_rawDescData
728 }
729
730 var file_konnectivity_client_proto_client_client_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
731 var file_konnectivity_client_proto_client_client_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
732 var file_konnectivity_client_proto_client_client_proto_goTypes = []interface{}{
733 (PacketType)(0), // 0: PacketType
734 (*Packet)(nil), // 1: Packet
735 (*DialRequest)(nil), // 2: DialRequest
736 (*DialResponse)(nil), // 3: DialResponse
737 (*CloseRequest)(nil), // 4: CloseRequest
738 (*CloseResponse)(nil), // 5: CloseResponse
739 (*CloseDial)(nil), // 6: CloseDial
740 (*Drain)(nil), // 7: Drain
741 (*Data)(nil), // 8: Data
742 }
743 var file_konnectivity_client_proto_client_client_proto_depIdxs = []int32{
744 0, // 0: Packet.type:type_name -> PacketType
745 2, // 1: Packet.dialRequest:type_name -> DialRequest
746 3, // 2: Packet.dialResponse:type_name -> DialResponse
747 8, // 3: Packet.data:type_name -> Data
748 4, // 4: Packet.closeRequest:type_name -> CloseRequest
749 5, // 5: Packet.closeResponse:type_name -> CloseResponse
750 6, // 6: Packet.closeDial:type_name -> CloseDial
751 7, // 7: Packet.drain:type_name -> Drain
752 1, // 8: ProxyService.Proxy:input_type -> Packet
753 1, // 9: ProxyService.Proxy:output_type -> Packet
754 9, // [9:10] is the sub-list for method output_type
755 8, // [8:9] is the sub-list for method input_type
756 8, // [8:8] is the sub-list for extension type_name
757 8, // [8:8] is the sub-list for extension extendee
758 0, // [0:8] is the sub-list for field type_name
759 }
760
761 func init() { file_konnectivity_client_proto_client_client_proto_init() }
762 func file_konnectivity_client_proto_client_client_proto_init() {
763 if File_konnectivity_client_proto_client_client_proto != nil {
764 return
765 }
766 if !protoimpl.UnsafeEnabled {
767 file_konnectivity_client_proto_client_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
768 switch v := v.(*Packet); i {
769 case 0:
770 return &v.state
771 case 1:
772 return &v.sizeCache
773 case 2:
774 return &v.unknownFields
775 default:
776 return nil
777 }
778 }
779 file_konnectivity_client_proto_client_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
780 switch v := v.(*DialRequest); i {
781 case 0:
782 return &v.state
783 case 1:
784 return &v.sizeCache
785 case 2:
786 return &v.unknownFields
787 default:
788 return nil
789 }
790 }
791 file_konnectivity_client_proto_client_client_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
792 switch v := v.(*DialResponse); i {
793 case 0:
794 return &v.state
795 case 1:
796 return &v.sizeCache
797 case 2:
798 return &v.unknownFields
799 default:
800 return nil
801 }
802 }
803 file_konnectivity_client_proto_client_client_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
804 switch v := v.(*CloseRequest); i {
805 case 0:
806 return &v.state
807 case 1:
808 return &v.sizeCache
809 case 2:
810 return &v.unknownFields
811 default:
812 return nil
813 }
814 }
815 file_konnectivity_client_proto_client_client_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
816 switch v := v.(*CloseResponse); i {
817 case 0:
818 return &v.state
819 case 1:
820 return &v.sizeCache
821 case 2:
822 return &v.unknownFields
823 default:
824 return nil
825 }
826 }
827 file_konnectivity_client_proto_client_client_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
828 switch v := v.(*CloseDial); i {
829 case 0:
830 return &v.state
831 case 1:
832 return &v.sizeCache
833 case 2:
834 return &v.unknownFields
835 default:
836 return nil
837 }
838 }
839 file_konnectivity_client_proto_client_client_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
840 switch v := v.(*Drain); i {
841 case 0:
842 return &v.state
843 case 1:
844 return &v.sizeCache
845 case 2:
846 return &v.unknownFields
847 default:
848 return nil
849 }
850 }
851 file_konnectivity_client_proto_client_client_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
852 switch v := v.(*Data); i {
853 case 0:
854 return &v.state
855 case 1:
856 return &v.sizeCache
857 case 2:
858 return &v.unknownFields
859 default:
860 return nil
861 }
862 }
863 }
864 file_konnectivity_client_proto_client_client_proto_msgTypes[0].OneofWrappers = []interface{}{
865 (*Packet_DialRequest)(nil),
866 (*Packet_DialResponse)(nil),
867 (*Packet_Data)(nil),
868 (*Packet_CloseRequest)(nil),
869 (*Packet_CloseResponse)(nil),
870 (*Packet_CloseDial)(nil),
871 (*Packet_Drain)(nil),
872 }
873 type x struct{}
874 out := protoimpl.TypeBuilder{
875 File: protoimpl.DescBuilder{
876 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
877 RawDescriptor: file_konnectivity_client_proto_client_client_proto_rawDesc,
878 NumEnums: 1,
879 NumMessages: 8,
880 NumExtensions: 0,
881 NumServices: 1,
882 },
883 GoTypes: file_konnectivity_client_proto_client_client_proto_goTypes,
884 DependencyIndexes: file_konnectivity_client_proto_client_client_proto_depIdxs,
885 EnumInfos: file_konnectivity_client_proto_client_client_proto_enumTypes,
886 MessageInfos: file_konnectivity_client_proto_client_client_proto_msgTypes,
887 }.Build()
888 File_konnectivity_client_proto_client_client_proto = out.File
889 file_konnectivity_client_proto_client_client_proto_rawDesc = nil
890 file_konnectivity_client_proto_client_client_proto_goTypes = nil
891 file_konnectivity_client_proto_client_client_proto_depIdxs = nil
892 }