client.pb.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. /*
  2. Copyright The Kubernetes Authors.
  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. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by protoc-gen-go. DO NOT EDIT.
  14. // source: konnectivity-client/proto/client/client.proto
  15. package client
  16. import (
  17. context "context"
  18. fmt "fmt"
  19. proto "github.com/golang/protobuf/proto"
  20. grpc "google.golang.org/grpc"
  21. codes "google.golang.org/grpc/codes"
  22. status "google.golang.org/grpc/status"
  23. math "math"
  24. )
  25. // Reference imports to suppress errors if they are not otherwise used.
  26. var _ = proto.Marshal
  27. var _ = fmt.Errorf
  28. var _ = math.Inf
  29. // This is a compile-time assertion to ensure that this generated file
  30. // is compatible with the proto package it is being compiled against.
  31. // A compilation error at this line likely means your copy of the
  32. // proto package needs to be updated.
  33. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  34. type PacketType int32
  35. const (
  36. PacketType_DIAL_REQ PacketType = 0
  37. PacketType_DIAL_RSP PacketType = 1
  38. PacketType_CLOSE_REQ PacketType = 2
  39. PacketType_CLOSE_RSP PacketType = 3
  40. PacketType_DATA PacketType = 4
  41. )
  42. var PacketType_name = map[int32]string{
  43. 0: "DIAL_REQ",
  44. 1: "DIAL_RSP",
  45. 2: "CLOSE_REQ",
  46. 3: "CLOSE_RSP",
  47. 4: "DATA",
  48. }
  49. var PacketType_value = map[string]int32{
  50. "DIAL_REQ": 0,
  51. "DIAL_RSP": 1,
  52. "CLOSE_REQ": 2,
  53. "CLOSE_RSP": 3,
  54. "DATA": 4,
  55. }
  56. func (x PacketType) String() string {
  57. return proto.EnumName(PacketType_name, int32(x))
  58. }
  59. func (PacketType) EnumDescriptor() ([]byte, []int) {
  60. return fileDescriptor_fec4258d9ecd175d, []int{0}
  61. }
  62. type Error int32
  63. const (
  64. Error_EOF Error = 0
  65. )
  66. var Error_name = map[int32]string{
  67. 0: "EOF",
  68. }
  69. var Error_value = map[string]int32{
  70. "EOF": 0,
  71. }
  72. func (x Error) String() string {
  73. return proto.EnumName(Error_name, int32(x))
  74. }
  75. func (Error) EnumDescriptor() ([]byte, []int) {
  76. return fileDescriptor_fec4258d9ecd175d, []int{1}
  77. }
  78. type Packet struct {
  79. Type PacketType `protobuf:"varint,1,opt,name=type,proto3,enum=PacketType" json:"type,omitempty"`
  80. // Types that are valid to be assigned to Payload:
  81. // *Packet_DialRequest
  82. // *Packet_DialResponse
  83. // *Packet_Data
  84. // *Packet_CloseRequest
  85. // *Packet_CloseResponse
  86. Payload isPacket_Payload `protobuf_oneof:"payload"`
  87. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  88. XXX_unrecognized []byte `json:"-"`
  89. XXX_sizecache int32 `json:"-"`
  90. }
  91. func (m *Packet) Reset() { *m = Packet{} }
  92. func (m *Packet) String() string { return proto.CompactTextString(m) }
  93. func (*Packet) ProtoMessage() {}
  94. func (*Packet) Descriptor() ([]byte, []int) {
  95. return fileDescriptor_fec4258d9ecd175d, []int{0}
  96. }
  97. func (m *Packet) XXX_Unmarshal(b []byte) error {
  98. return xxx_messageInfo_Packet.Unmarshal(m, b)
  99. }
  100. func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  101. return xxx_messageInfo_Packet.Marshal(b, m, deterministic)
  102. }
  103. func (m *Packet) XXX_Merge(src proto.Message) {
  104. xxx_messageInfo_Packet.Merge(m, src)
  105. }
  106. func (m *Packet) XXX_Size() int {
  107. return xxx_messageInfo_Packet.Size(m)
  108. }
  109. func (m *Packet) XXX_DiscardUnknown() {
  110. xxx_messageInfo_Packet.DiscardUnknown(m)
  111. }
  112. var xxx_messageInfo_Packet proto.InternalMessageInfo
  113. func (m *Packet) GetType() PacketType {
  114. if m != nil {
  115. return m.Type
  116. }
  117. return PacketType_DIAL_REQ
  118. }
  119. type isPacket_Payload interface {
  120. isPacket_Payload()
  121. }
  122. type Packet_DialRequest struct {
  123. DialRequest *DialRequest `protobuf:"bytes,2,opt,name=dialRequest,proto3,oneof"`
  124. }
  125. type Packet_DialResponse struct {
  126. DialResponse *DialResponse `protobuf:"bytes,3,opt,name=dialResponse,proto3,oneof"`
  127. }
  128. type Packet_Data struct {
  129. Data *Data `protobuf:"bytes,4,opt,name=data,proto3,oneof"`
  130. }
  131. type Packet_CloseRequest struct {
  132. CloseRequest *CloseRequest `protobuf:"bytes,5,opt,name=closeRequest,proto3,oneof"`
  133. }
  134. type Packet_CloseResponse struct {
  135. CloseResponse *CloseResponse `protobuf:"bytes,6,opt,name=closeResponse,proto3,oneof"`
  136. }
  137. func (*Packet_DialRequest) isPacket_Payload() {}
  138. func (*Packet_DialResponse) isPacket_Payload() {}
  139. func (*Packet_Data) isPacket_Payload() {}
  140. func (*Packet_CloseRequest) isPacket_Payload() {}
  141. func (*Packet_CloseResponse) isPacket_Payload() {}
  142. func (m *Packet) GetPayload() isPacket_Payload {
  143. if m != nil {
  144. return m.Payload
  145. }
  146. return nil
  147. }
  148. func (m *Packet) GetDialRequest() *DialRequest {
  149. if x, ok := m.GetPayload().(*Packet_DialRequest); ok {
  150. return x.DialRequest
  151. }
  152. return nil
  153. }
  154. func (m *Packet) GetDialResponse() *DialResponse {
  155. if x, ok := m.GetPayload().(*Packet_DialResponse); ok {
  156. return x.DialResponse
  157. }
  158. return nil
  159. }
  160. func (m *Packet) GetData() *Data {
  161. if x, ok := m.GetPayload().(*Packet_Data); ok {
  162. return x.Data
  163. }
  164. return nil
  165. }
  166. func (m *Packet) GetCloseRequest() *CloseRequest {
  167. if x, ok := m.GetPayload().(*Packet_CloseRequest); ok {
  168. return x.CloseRequest
  169. }
  170. return nil
  171. }
  172. func (m *Packet) GetCloseResponse() *CloseResponse {
  173. if x, ok := m.GetPayload().(*Packet_CloseResponse); ok {
  174. return x.CloseResponse
  175. }
  176. return nil
  177. }
  178. // XXX_OneofWrappers is for the internal use of the proto package.
  179. func (*Packet) XXX_OneofWrappers() []interface{} {
  180. return []interface{}{
  181. (*Packet_DialRequest)(nil),
  182. (*Packet_DialResponse)(nil),
  183. (*Packet_Data)(nil),
  184. (*Packet_CloseRequest)(nil),
  185. (*Packet_CloseResponse)(nil),
  186. }
  187. }
  188. type DialRequest struct {
  189. // tcp or udp?
  190. Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
  191. // node:port
  192. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
  193. // random id for client, maybe should be longer
  194. Random int64 `protobuf:"varint,3,opt,name=random,proto3" json:"random,omitempty"`
  195. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  196. XXX_unrecognized []byte `json:"-"`
  197. XXX_sizecache int32 `json:"-"`
  198. }
  199. func (m *DialRequest) Reset() { *m = DialRequest{} }
  200. func (m *DialRequest) String() string { return proto.CompactTextString(m) }
  201. func (*DialRequest) ProtoMessage() {}
  202. func (*DialRequest) Descriptor() ([]byte, []int) {
  203. return fileDescriptor_fec4258d9ecd175d, []int{1}
  204. }
  205. func (m *DialRequest) XXX_Unmarshal(b []byte) error {
  206. return xxx_messageInfo_DialRequest.Unmarshal(m, b)
  207. }
  208. func (m *DialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  209. return xxx_messageInfo_DialRequest.Marshal(b, m, deterministic)
  210. }
  211. func (m *DialRequest) XXX_Merge(src proto.Message) {
  212. xxx_messageInfo_DialRequest.Merge(m, src)
  213. }
  214. func (m *DialRequest) XXX_Size() int {
  215. return xxx_messageInfo_DialRequest.Size(m)
  216. }
  217. func (m *DialRequest) XXX_DiscardUnknown() {
  218. xxx_messageInfo_DialRequest.DiscardUnknown(m)
  219. }
  220. var xxx_messageInfo_DialRequest proto.InternalMessageInfo
  221. func (m *DialRequest) GetProtocol() string {
  222. if m != nil {
  223. return m.Protocol
  224. }
  225. return ""
  226. }
  227. func (m *DialRequest) GetAddress() string {
  228. if m != nil {
  229. return m.Address
  230. }
  231. return ""
  232. }
  233. func (m *DialRequest) GetRandom() int64 {
  234. if m != nil {
  235. return m.Random
  236. }
  237. return 0
  238. }
  239. type DialResponse struct {
  240. // error failed reason; enum?
  241. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  242. // connectID indicates the identifier of the connection
  243. ConnectID int64 `protobuf:"varint,2,opt,name=connectID,proto3" json:"connectID,omitempty"`
  244. // random copied from DialRequest
  245. Random int64 `protobuf:"varint,3,opt,name=random,proto3" json:"random,omitempty"`
  246. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  247. XXX_unrecognized []byte `json:"-"`
  248. XXX_sizecache int32 `json:"-"`
  249. }
  250. func (m *DialResponse) Reset() { *m = DialResponse{} }
  251. func (m *DialResponse) String() string { return proto.CompactTextString(m) }
  252. func (*DialResponse) ProtoMessage() {}
  253. func (*DialResponse) Descriptor() ([]byte, []int) {
  254. return fileDescriptor_fec4258d9ecd175d, []int{2}
  255. }
  256. func (m *DialResponse) XXX_Unmarshal(b []byte) error {
  257. return xxx_messageInfo_DialResponse.Unmarshal(m, b)
  258. }
  259. func (m *DialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  260. return xxx_messageInfo_DialResponse.Marshal(b, m, deterministic)
  261. }
  262. func (m *DialResponse) XXX_Merge(src proto.Message) {
  263. xxx_messageInfo_DialResponse.Merge(m, src)
  264. }
  265. func (m *DialResponse) XXX_Size() int {
  266. return xxx_messageInfo_DialResponse.Size(m)
  267. }
  268. func (m *DialResponse) XXX_DiscardUnknown() {
  269. xxx_messageInfo_DialResponse.DiscardUnknown(m)
  270. }
  271. var xxx_messageInfo_DialResponse proto.InternalMessageInfo
  272. func (m *DialResponse) GetError() string {
  273. if m != nil {
  274. return m.Error
  275. }
  276. return ""
  277. }
  278. func (m *DialResponse) GetConnectID() int64 {
  279. if m != nil {
  280. return m.ConnectID
  281. }
  282. return 0
  283. }
  284. func (m *DialResponse) GetRandom() int64 {
  285. if m != nil {
  286. return m.Random
  287. }
  288. return 0
  289. }
  290. type CloseRequest struct {
  291. // connectID of the stream to close
  292. ConnectID int64 `protobuf:"varint,1,opt,name=connectID,proto3" json:"connectID,omitempty"`
  293. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  294. XXX_unrecognized []byte `json:"-"`
  295. XXX_sizecache int32 `json:"-"`
  296. }
  297. func (m *CloseRequest) Reset() { *m = CloseRequest{} }
  298. func (m *CloseRequest) String() string { return proto.CompactTextString(m) }
  299. func (*CloseRequest) ProtoMessage() {}
  300. func (*CloseRequest) Descriptor() ([]byte, []int) {
  301. return fileDescriptor_fec4258d9ecd175d, []int{3}
  302. }
  303. func (m *CloseRequest) XXX_Unmarshal(b []byte) error {
  304. return xxx_messageInfo_CloseRequest.Unmarshal(m, b)
  305. }
  306. func (m *CloseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  307. return xxx_messageInfo_CloseRequest.Marshal(b, m, deterministic)
  308. }
  309. func (m *CloseRequest) XXX_Merge(src proto.Message) {
  310. xxx_messageInfo_CloseRequest.Merge(m, src)
  311. }
  312. func (m *CloseRequest) XXX_Size() int {
  313. return xxx_messageInfo_CloseRequest.Size(m)
  314. }
  315. func (m *CloseRequest) XXX_DiscardUnknown() {
  316. xxx_messageInfo_CloseRequest.DiscardUnknown(m)
  317. }
  318. var xxx_messageInfo_CloseRequest proto.InternalMessageInfo
  319. func (m *CloseRequest) GetConnectID() int64 {
  320. if m != nil {
  321. return m.ConnectID
  322. }
  323. return 0
  324. }
  325. type CloseResponse struct {
  326. // error message
  327. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  328. // connectID indicates the identifier of the connection
  329. ConnectID int64 `protobuf:"varint,2,opt,name=connectID,proto3" json:"connectID,omitempty"`
  330. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  331. XXX_unrecognized []byte `json:"-"`
  332. XXX_sizecache int32 `json:"-"`
  333. }
  334. func (m *CloseResponse) Reset() { *m = CloseResponse{} }
  335. func (m *CloseResponse) String() string { return proto.CompactTextString(m) }
  336. func (*CloseResponse) ProtoMessage() {}
  337. func (*CloseResponse) Descriptor() ([]byte, []int) {
  338. return fileDescriptor_fec4258d9ecd175d, []int{4}
  339. }
  340. func (m *CloseResponse) XXX_Unmarshal(b []byte) error {
  341. return xxx_messageInfo_CloseResponse.Unmarshal(m, b)
  342. }
  343. func (m *CloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  344. return xxx_messageInfo_CloseResponse.Marshal(b, m, deterministic)
  345. }
  346. func (m *CloseResponse) XXX_Merge(src proto.Message) {
  347. xxx_messageInfo_CloseResponse.Merge(m, src)
  348. }
  349. func (m *CloseResponse) XXX_Size() int {
  350. return xxx_messageInfo_CloseResponse.Size(m)
  351. }
  352. func (m *CloseResponse) XXX_DiscardUnknown() {
  353. xxx_messageInfo_CloseResponse.DiscardUnknown(m)
  354. }
  355. var xxx_messageInfo_CloseResponse proto.InternalMessageInfo
  356. func (m *CloseResponse) GetError() string {
  357. if m != nil {
  358. return m.Error
  359. }
  360. return ""
  361. }
  362. func (m *CloseResponse) GetConnectID() int64 {
  363. if m != nil {
  364. return m.ConnectID
  365. }
  366. return 0
  367. }
  368. type Data struct {
  369. // connectID to connect to
  370. ConnectID int64 `protobuf:"varint,1,opt,name=connectID,proto3" json:"connectID,omitempty"`
  371. // error message if error happens
  372. Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
  373. // stream data
  374. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  375. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  376. XXX_unrecognized []byte `json:"-"`
  377. XXX_sizecache int32 `json:"-"`
  378. }
  379. func (m *Data) Reset() { *m = Data{} }
  380. func (m *Data) String() string { return proto.CompactTextString(m) }
  381. func (*Data) ProtoMessage() {}
  382. func (*Data) Descriptor() ([]byte, []int) {
  383. return fileDescriptor_fec4258d9ecd175d, []int{5}
  384. }
  385. func (m *Data) XXX_Unmarshal(b []byte) error {
  386. return xxx_messageInfo_Data.Unmarshal(m, b)
  387. }
  388. func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  389. return xxx_messageInfo_Data.Marshal(b, m, deterministic)
  390. }
  391. func (m *Data) XXX_Merge(src proto.Message) {
  392. xxx_messageInfo_Data.Merge(m, src)
  393. }
  394. func (m *Data) XXX_Size() int {
  395. return xxx_messageInfo_Data.Size(m)
  396. }
  397. func (m *Data) XXX_DiscardUnknown() {
  398. xxx_messageInfo_Data.DiscardUnknown(m)
  399. }
  400. var xxx_messageInfo_Data proto.InternalMessageInfo
  401. func (m *Data) GetConnectID() int64 {
  402. if m != nil {
  403. return m.ConnectID
  404. }
  405. return 0
  406. }
  407. func (m *Data) GetError() string {
  408. if m != nil {
  409. return m.Error
  410. }
  411. return ""
  412. }
  413. func (m *Data) GetData() []byte {
  414. if m != nil {
  415. return m.Data
  416. }
  417. return nil
  418. }
  419. func init() {
  420. proto.RegisterEnum("PacketType", PacketType_name, PacketType_value)
  421. proto.RegisterEnum("Error", Error_name, Error_value)
  422. proto.RegisterType((*Packet)(nil), "Packet")
  423. proto.RegisterType((*DialRequest)(nil), "DialRequest")
  424. proto.RegisterType((*DialResponse)(nil), "DialResponse")
  425. proto.RegisterType((*CloseRequest)(nil), "CloseRequest")
  426. proto.RegisterType((*CloseResponse)(nil), "CloseResponse")
  427. proto.RegisterType((*Data)(nil), "Data")
  428. }
  429. func init() {
  430. proto.RegisterFile("konnectivity-client/proto/client/client.proto", fileDescriptor_fec4258d9ecd175d)
  431. }
  432. var fileDescriptor_fec4258d9ecd175d = []byte{
  433. // 472 bytes of a gzipped FileDescriptorProto
  434. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xd1, 0x6e, 0x9b, 0x30,
  435. 0x14, 0x85, 0x00, 0x49, 0xb8, 0x21, 0x15, 0xb2, 0xa6, 0x09, 0x75, 0x93, 0x5a, 0xf1, 0x14, 0x55,
  436. 0x0b, 0x54, 0xa9, 0x34, 0xed, 0x35, 0x0d, 0xa9, 0x52, 0xa9, 0x5a, 0x99, 0xd3, 0xa7, 0xee, 0x61,
  437. 0xf2, 0xc0, 0x9a, 0x50, 0x18, 0x66, 0xb6, 0x97, 0x8d, 0x0f, 0xda, 0x7f, 0x4e, 0x18, 0x52, 0xc8,
  438. 0xa4, 0x6d, 0x52, 0x9f, 0xe0, 0x1c, 0xdf, 0x73, 0x7c, 0x7d, 0xae, 0x0d, 0xf3, 0x1d, 0x2b, 0x0a,
  439. 0x9a, 0xc8, 0x6c, 0x9f, 0xc9, 0x6a, 0x9e, 0xe4, 0x19, 0x2d, 0x64, 0x58, 0x72, 0x26, 0x59, 0xd8,
  440. 0x82, 0xe6, 0x13, 0x28, 0xce, 0xff, 0x35, 0x80, 0x61, 0x4c, 0x92, 0x1d, 0x95, 0xe8, 0x0c, 0x4c,
  441. 0x59, 0x95, 0xd4, 0xd3, 0xcf, 0xf5, 0xd9, 0xc9, 0x62, 0x12, 0x34, 0xf4, 0x43, 0x55, 0x52, 0xac,
  442. 0x16, 0xd0, 0x25, 0x4c, 0xd2, 0x8c, 0xe4, 0x98, 0x7e, 0xfb, 0x4e, 0x85, 0xf4, 0x06, 0xe7, 0xfa,
  443. 0x6c, 0xb2, 0x70, 0x82, 0xa8, 0xe3, 0x36, 0x1a, 0xee, 0x97, 0xa0, 0x2b, 0x70, 0x1a, 0x28, 0x4a,
  444. 0x56, 0x08, 0xea, 0x19, 0x4a, 0x32, 0x6d, 0x25, 0x0d, 0xb9, 0xd1, 0xf0, 0x51, 0x11, 0x7a, 0x05,
  445. 0x66, 0x4a, 0x24, 0xf1, 0x4c, 0x55, 0x6c, 0x05, 0x11, 0x91, 0x64, 0xa3, 0x61, 0x45, 0xd6, 0x8e,
  446. 0x49, 0xce, 0x04, 0x3d, 0x34, 0x61, 0xb5, 0x8e, 0xab, 0x1e, 0x59, 0x3b, 0xf6, 0x8b, 0xd0, 0x5b,
  447. 0x98, 0xb6, 0xb8, 0xed, 0x63, 0xa8, 0x54, 0x27, 0x07, 0xd5, 0x53, 0x23, 0xc7, 0x65, 0xd7, 0x36,
  448. 0x8c, 0x4a, 0x52, 0xe5, 0x8c, 0xa4, 0xfe, 0x47, 0x98, 0xf4, 0xce, 0x89, 0x4e, 0x61, 0xac, 0xf2,
  449. 0x4b, 0x58, 0xae, 0xf2, 0xb2, 0xf1, 0x13, 0x46, 0x1e, 0x8c, 0x48, 0x9a, 0x72, 0x2a, 0x84, 0x8a,
  450. 0xc8, 0xc6, 0x07, 0x88, 0x5e, 0xc2, 0x90, 0x93, 0x22, 0x65, 0x5f, 0x55, 0x10, 0x06, 0x6e, 0x91,
  451. 0xff, 0x08, 0x4e, 0x3f, 0x11, 0xf4, 0x02, 0x2c, 0xca, 0x39, 0xe3, 0xad, 0x75, 0x03, 0xd0, 0x6b,
  452. 0xb0, 0x93, 0x66, 0xb6, 0xb7, 0x91, 0x72, 0x36, 0x70, 0x47, 0xfc, 0xd5, 0xfb, 0x0d, 0x38, 0xfd,
  453. 0x6c, 0x8e, 0x5d, 0xf4, 0x3f, 0x5c, 0xfc, 0x15, 0x4c, 0x8f, 0x32, 0x79, 0x4e, 0x2b, 0xfe, 0x7b,
  454. 0x30, 0xeb, 0x99, 0xfd, 0x7b, 0xab, 0xce, 0x79, 0xd0, 0x77, 0x46, 0xed, 0xf0, 0xeb, 0x43, 0x38,
  455. 0xcd, 0xcc, 0x2f, 0x62, 0x80, 0xee, 0x2e, 0x22, 0x07, 0xc6, 0xd1, 0xed, 0xf2, 0xee, 0x13, 0x5e,
  456. 0x7f, 0x70, 0xb5, 0x0e, 0x6d, 0x63, 0x57, 0x47, 0x53, 0xb0, 0x57, 0x77, 0xf7, 0xdb, 0xb5, 0x5a,
  457. 0x1c, 0xf4, 0xe0, 0x36, 0x76, 0x0d, 0x34, 0x06, 0x33, 0x5a, 0x3e, 0x2c, 0x5d, 0xf3, 0xc2, 0x05,
  458. 0x6b, 0xad, 0xb6, 0x1b, 0x81, 0xb1, 0xbe, 0xbf, 0x71, 0xb5, 0x45, 0x08, 0x4e, 0xcc, 0xd9, 0xcf,
  459. 0x6a, 0x4b, 0xf9, 0x3e, 0x4b, 0x28, 0x3a, 0x03, 0x4b, 0x61, 0x34, 0x6a, 0xdf, 0xc1, 0xe9, 0xe1,
  460. 0xc7, 0xd7, 0x66, 0xfa, 0xa5, 0x7e, 0x7d, 0xf3, 0x18, 0x89, 0xec, 0x8b, 0x08, 0x76, 0xef, 0x44,
  461. 0x90, 0xb1, 0x90, 0x94, 0x99, 0xa0, 0x7c, 0x4f, 0xf9, 0xbc, 0xa0, 0xf2, 0x07, 0xe3, 0xbb, 0x79,
  462. 0x59, 0xcb, 0xc3, 0xff, 0xbd, 0xc6, 0xcf, 0x43, 0x85, 0xae, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff,
  463. 0x64, 0xe0, 0x62, 0xbe, 0xb8, 0x03, 0x00, 0x00,
  464. }
  465. // Reference imports to suppress errors if they are not otherwise used.
  466. var _ context.Context
  467. var _ grpc.ClientConn
  468. // This is a compile-time assertion to ensure that this generated file
  469. // is compatible with the grpc package it is being compiled against.
  470. const _ = grpc.SupportPackageIsVersion4
  471. // ProxyServiceClient is the client API for ProxyService service.
  472. //
  473. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  474. type ProxyServiceClient interface {
  475. Proxy(ctx context.Context, opts ...grpc.CallOption) (ProxyService_ProxyClient, error)
  476. }
  477. type proxyServiceClient struct {
  478. cc *grpc.ClientConn
  479. }
  480. func NewProxyServiceClient(cc *grpc.ClientConn) ProxyServiceClient {
  481. return &proxyServiceClient{cc}
  482. }
  483. func (c *proxyServiceClient) Proxy(ctx context.Context, opts ...grpc.CallOption) (ProxyService_ProxyClient, error) {
  484. stream, err := c.cc.NewStream(ctx, &_ProxyService_serviceDesc.Streams[0], "/ProxyService/Proxy", opts...)
  485. if err != nil {
  486. return nil, err
  487. }
  488. x := &proxyServiceProxyClient{stream}
  489. return x, nil
  490. }
  491. type ProxyService_ProxyClient interface {
  492. Send(*Packet) error
  493. Recv() (*Packet, error)
  494. grpc.ClientStream
  495. }
  496. type proxyServiceProxyClient struct {
  497. grpc.ClientStream
  498. }
  499. func (x *proxyServiceProxyClient) Send(m *Packet) error {
  500. return x.ClientStream.SendMsg(m)
  501. }
  502. func (x *proxyServiceProxyClient) Recv() (*Packet, error) {
  503. m := new(Packet)
  504. if err := x.ClientStream.RecvMsg(m); err != nil {
  505. return nil, err
  506. }
  507. return m, nil
  508. }
  509. // ProxyServiceServer is the server API for ProxyService service.
  510. type ProxyServiceServer interface {
  511. Proxy(ProxyService_ProxyServer) error
  512. }
  513. // UnimplementedProxyServiceServer can be embedded to have forward compatible implementations.
  514. type UnimplementedProxyServiceServer struct {
  515. }
  516. func (*UnimplementedProxyServiceServer) Proxy(srv ProxyService_ProxyServer) error {
  517. return status.Errorf(codes.Unimplemented, "method Proxy not implemented")
  518. }
  519. func RegisterProxyServiceServer(s *grpc.Server, srv ProxyServiceServer) {
  520. s.RegisterService(&_ProxyService_serviceDesc, srv)
  521. }
  522. func _ProxyService_Proxy_Handler(srv interface{}, stream grpc.ServerStream) error {
  523. return srv.(ProxyServiceServer).Proxy(&proxyServiceProxyServer{stream})
  524. }
  525. type ProxyService_ProxyServer interface {
  526. Send(*Packet) error
  527. Recv() (*Packet, error)
  528. grpc.ServerStream
  529. }
  530. type proxyServiceProxyServer struct {
  531. grpc.ServerStream
  532. }
  533. func (x *proxyServiceProxyServer) Send(m *Packet) error {
  534. return x.ServerStream.SendMsg(m)
  535. }
  536. func (x *proxyServiceProxyServer) Recv() (*Packet, error) {
  537. m := new(Packet)
  538. if err := x.ServerStream.RecvMsg(m); err != nil {
  539. return nil, err
  540. }
  541. return m, nil
  542. }
  543. var _ProxyService_serviceDesc = grpc.ServiceDesc{
  544. ServiceName: "ProxyService",
  545. HandlerType: (*ProxyServiceServer)(nil),
  546. Methods: []grpc.MethodDesc{},
  547. Streams: []grpc.StreamDesc{
  548. {
  549. StreamName: "Proxy",
  550. Handler: _ProxyService_Proxy_Handler,
  551. ServerStreams: true,
  552. ClientStreams: true,
  553. },
  554. },
  555. Metadata: "konnectivity-client/proto/client/client.proto",
  556. }