vpn.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: vpn.proto
  3. package pb
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  23. type VPNProto int32
  24. const (
  25. VPNProto_NOPREF VPNProto = 0
  26. VPNProto_UDP VPNProto = 1
  27. VPNProto_TCP VPNProto = 2
  28. )
  29. var VPNProto_name = map[int32]string{
  30. 0: "NOPREF",
  31. 1: "UDP",
  32. 2: "TCP",
  33. }
  34. var VPNProto_value = map[string]int32{
  35. "NOPREF": 0,
  36. "UDP": 1,
  37. "TCP": 2,
  38. }
  39. func (x VPNProto) String() string {
  40. return proto.EnumName(VPNProto_name, int32(x))
  41. }
  42. func (VPNProto) EnumDescriptor() ([]byte, []int) {
  43. return fileDescriptor_75c5922f473942e1, []int{0}
  44. }
  45. type VPNStatusRequest struct {
  46. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  47. XXX_unrecognized []byte `json:"-"`
  48. XXX_sizecache int32 `json:"-"`
  49. }
  50. func (m *VPNStatusRequest) Reset() { *m = VPNStatusRequest{} }
  51. func (m *VPNStatusRequest) String() string { return proto.CompactTextString(m) }
  52. func (*VPNStatusRequest) ProtoMessage() {}
  53. func (*VPNStatusRequest) Descriptor() ([]byte, []int) {
  54. return fileDescriptor_75c5922f473942e1, []int{0}
  55. }
  56. func (m *VPNStatusRequest) XXX_Unmarshal(b []byte) error {
  57. return xxx_messageInfo_VPNStatusRequest.Unmarshal(m, b)
  58. }
  59. func (m *VPNStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  60. return xxx_messageInfo_VPNStatusRequest.Marshal(b, m, deterministic)
  61. }
  62. func (m *VPNStatusRequest) XXX_Merge(src proto.Message) {
  63. xxx_messageInfo_VPNStatusRequest.Merge(m, src)
  64. }
  65. func (m *VPNStatusRequest) XXX_Size() int {
  66. return xxx_messageInfo_VPNStatusRequest.Size(m)
  67. }
  68. func (m *VPNStatusRequest) XXX_DiscardUnknown() {
  69. xxx_messageInfo_VPNStatusRequest.DiscardUnknown(m)
  70. }
  71. var xxx_messageInfo_VPNStatusRequest proto.InternalMessageInfo
  72. type VPNInitRequest struct {
  73. Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
  74. Port string `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
  75. ProtoPref VPNProto `protobuf:"varint,3,opt,name=proto_pref,json=protoPref,proto3,enum=pb.VPNProto" json:"proto_pref,omitempty"`
  76. IpBlock string `protobuf:"bytes,4,opt,name=ip_block,json=ipBlock,proto3" json:"ip_block,omitempty"`
  77. Dns string `protobuf:"bytes,5,opt,name=dns,proto3" json:"dns,omitempty"`
  78. KeepalivePeriod string `protobuf:"bytes,6,opt,name=keepalive_period,json=keepalivePeriod,proto3" json:"keepalive_period,omitempty"`
  79. KeepaliveTimeout string `protobuf:"bytes,7,opt,name=keepalive_timeout,json=keepaliveTimeout,proto3" json:"keepalive_timeout,omitempty"`
  80. UseLzo bool `protobuf:"varint,8,opt,name=use_lzo,json=useLzo,proto3" json:"use_lzo,omitempty"`
  81. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  82. XXX_unrecognized []byte `json:"-"`
  83. XXX_sizecache int32 `json:"-"`
  84. }
  85. func (m *VPNInitRequest) Reset() { *m = VPNInitRequest{} }
  86. func (m *VPNInitRequest) String() string { return proto.CompactTextString(m) }
  87. func (*VPNInitRequest) ProtoMessage() {}
  88. func (*VPNInitRequest) Descriptor() ([]byte, []int) {
  89. return fileDescriptor_75c5922f473942e1, []int{1}
  90. }
  91. func (m *VPNInitRequest) XXX_Unmarshal(b []byte) error {
  92. return xxx_messageInfo_VPNInitRequest.Unmarshal(m, b)
  93. }
  94. func (m *VPNInitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  95. return xxx_messageInfo_VPNInitRequest.Marshal(b, m, deterministic)
  96. }
  97. func (m *VPNInitRequest) XXX_Merge(src proto.Message) {
  98. xxx_messageInfo_VPNInitRequest.Merge(m, src)
  99. }
  100. func (m *VPNInitRequest) XXX_Size() int {
  101. return xxx_messageInfo_VPNInitRequest.Size(m)
  102. }
  103. func (m *VPNInitRequest) XXX_DiscardUnknown() {
  104. xxx_messageInfo_VPNInitRequest.DiscardUnknown(m)
  105. }
  106. var xxx_messageInfo_VPNInitRequest proto.InternalMessageInfo
  107. func (m *VPNInitRequest) GetHostname() string {
  108. if m != nil {
  109. return m.Hostname
  110. }
  111. return ""
  112. }
  113. func (m *VPNInitRequest) GetPort() string {
  114. if m != nil {
  115. return m.Port
  116. }
  117. return ""
  118. }
  119. func (m *VPNInitRequest) GetProtoPref() VPNProto {
  120. if m != nil {
  121. return m.ProtoPref
  122. }
  123. return VPNProto_NOPREF
  124. }
  125. func (m *VPNInitRequest) GetIpBlock() string {
  126. if m != nil {
  127. return m.IpBlock
  128. }
  129. return ""
  130. }
  131. func (m *VPNInitRequest) GetDns() string {
  132. if m != nil {
  133. return m.Dns
  134. }
  135. return ""
  136. }
  137. func (m *VPNInitRequest) GetKeepalivePeriod() string {
  138. if m != nil {
  139. return m.KeepalivePeriod
  140. }
  141. return ""
  142. }
  143. func (m *VPNInitRequest) GetKeepaliveTimeout() string {
  144. if m != nil {
  145. return m.KeepaliveTimeout
  146. }
  147. return ""
  148. }
  149. func (m *VPNInitRequest) GetUseLzo() bool {
  150. if m != nil {
  151. return m.UseLzo
  152. }
  153. return false
  154. }
  155. type VPNUpdateRequest struct {
  156. IpBlock string `protobuf:"bytes,1,opt,name=ip_block,json=ipBlock,proto3" json:"ip_block,omitempty"`
  157. Dns string `protobuf:"bytes,2,opt,name=dns,proto3" json:"dns,omitempty"`
  158. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  159. XXX_unrecognized []byte `json:"-"`
  160. XXX_sizecache int32 `json:"-"`
  161. }
  162. func (m *VPNUpdateRequest) Reset() { *m = VPNUpdateRequest{} }
  163. func (m *VPNUpdateRequest) String() string { return proto.CompactTextString(m) }
  164. func (*VPNUpdateRequest) ProtoMessage() {}
  165. func (*VPNUpdateRequest) Descriptor() ([]byte, []int) {
  166. return fileDescriptor_75c5922f473942e1, []int{2}
  167. }
  168. func (m *VPNUpdateRequest) XXX_Unmarshal(b []byte) error {
  169. return xxx_messageInfo_VPNUpdateRequest.Unmarshal(m, b)
  170. }
  171. func (m *VPNUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  172. return xxx_messageInfo_VPNUpdateRequest.Marshal(b, m, deterministic)
  173. }
  174. func (m *VPNUpdateRequest) XXX_Merge(src proto.Message) {
  175. xxx_messageInfo_VPNUpdateRequest.Merge(m, src)
  176. }
  177. func (m *VPNUpdateRequest) XXX_Size() int {
  178. return xxx_messageInfo_VPNUpdateRequest.Size(m)
  179. }
  180. func (m *VPNUpdateRequest) XXX_DiscardUnknown() {
  181. xxx_messageInfo_VPNUpdateRequest.DiscardUnknown(m)
  182. }
  183. var xxx_messageInfo_VPNUpdateRequest proto.InternalMessageInfo
  184. func (m *VPNUpdateRequest) GetIpBlock() string {
  185. if m != nil {
  186. return m.IpBlock
  187. }
  188. return ""
  189. }
  190. func (m *VPNUpdateRequest) GetDns() string {
  191. if m != nil {
  192. return m.Dns
  193. }
  194. return ""
  195. }
  196. type VPNRestartRequest struct {
  197. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  198. XXX_unrecognized []byte `json:"-"`
  199. XXX_sizecache int32 `json:"-"`
  200. }
  201. func (m *VPNRestartRequest) Reset() { *m = VPNRestartRequest{} }
  202. func (m *VPNRestartRequest) String() string { return proto.CompactTextString(m) }
  203. func (*VPNRestartRequest) ProtoMessage() {}
  204. func (*VPNRestartRequest) Descriptor() ([]byte, []int) {
  205. return fileDescriptor_75c5922f473942e1, []int{3}
  206. }
  207. func (m *VPNRestartRequest) XXX_Unmarshal(b []byte) error {
  208. return xxx_messageInfo_VPNRestartRequest.Unmarshal(m, b)
  209. }
  210. func (m *VPNRestartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  211. return xxx_messageInfo_VPNRestartRequest.Marshal(b, m, deterministic)
  212. }
  213. func (m *VPNRestartRequest) XXX_Merge(src proto.Message) {
  214. xxx_messageInfo_VPNRestartRequest.Merge(m, src)
  215. }
  216. func (m *VPNRestartRequest) XXX_Size() int {
  217. return xxx_messageInfo_VPNRestartRequest.Size(m)
  218. }
  219. func (m *VPNRestartRequest) XXX_DiscardUnknown() {
  220. xxx_messageInfo_VPNRestartRequest.DiscardUnknown(m)
  221. }
  222. var xxx_messageInfo_VPNRestartRequest proto.InternalMessageInfo
  223. type VPNStatusResponse struct {
  224. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  225. SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
  226. Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
  227. Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
  228. Cert string `protobuf:"bytes,5,opt,name=cert,proto3" json:"cert,omitempty"`
  229. CaCert string `protobuf:"bytes,6,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
  230. Net string `protobuf:"bytes,7,opt,name=net,proto3" json:"net,omitempty"`
  231. Mask string `protobuf:"bytes,8,opt,name=mask,proto3" json:"mask,omitempty"`
  232. CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  233. Proto string `protobuf:"bytes,10,opt,name=proto,proto3" json:"proto,omitempty"`
  234. Dns string `protobuf:"bytes,11,opt,name=dns,proto3" json:"dns,omitempty"`
  235. ExpiresAt string `protobuf:"bytes,12,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
  236. CaExpiresAt string `protobuf:"bytes,13,opt,name=ca_expires_at,json=caExpiresAt,proto3" json:"ca_expires_at,omitempty"`
  237. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  238. XXX_unrecognized []byte `json:"-"`
  239. XXX_sizecache int32 `json:"-"`
  240. }
  241. func (m *VPNStatusResponse) Reset() { *m = VPNStatusResponse{} }
  242. func (m *VPNStatusResponse) String() string { return proto.CompactTextString(m) }
  243. func (*VPNStatusResponse) ProtoMessage() {}
  244. func (*VPNStatusResponse) Descriptor() ([]byte, []int) {
  245. return fileDescriptor_75c5922f473942e1, []int{4}
  246. }
  247. func (m *VPNStatusResponse) XXX_Unmarshal(b []byte) error {
  248. return xxx_messageInfo_VPNStatusResponse.Unmarshal(m, b)
  249. }
  250. func (m *VPNStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  251. return xxx_messageInfo_VPNStatusResponse.Marshal(b, m, deterministic)
  252. }
  253. func (m *VPNStatusResponse) XXX_Merge(src proto.Message) {
  254. xxx_messageInfo_VPNStatusResponse.Merge(m, src)
  255. }
  256. func (m *VPNStatusResponse) XXX_Size() int {
  257. return xxx_messageInfo_VPNStatusResponse.Size(m)
  258. }
  259. func (m *VPNStatusResponse) XXX_DiscardUnknown() {
  260. xxx_messageInfo_VPNStatusResponse.DiscardUnknown(m)
  261. }
  262. var xxx_messageInfo_VPNStatusResponse proto.InternalMessageInfo
  263. func (m *VPNStatusResponse) GetName() string {
  264. if m != nil {
  265. return m.Name
  266. }
  267. return ""
  268. }
  269. func (m *VPNStatusResponse) GetSerialNumber() string {
  270. if m != nil {
  271. return m.SerialNumber
  272. }
  273. return ""
  274. }
  275. func (m *VPNStatusResponse) GetHostname() string {
  276. if m != nil {
  277. return m.Hostname
  278. }
  279. return ""
  280. }
  281. func (m *VPNStatusResponse) GetPort() string {
  282. if m != nil {
  283. return m.Port
  284. }
  285. return ""
  286. }
  287. func (m *VPNStatusResponse) GetCert() string {
  288. if m != nil {
  289. return m.Cert
  290. }
  291. return ""
  292. }
  293. func (m *VPNStatusResponse) GetCaCert() string {
  294. if m != nil {
  295. return m.CaCert
  296. }
  297. return ""
  298. }
  299. func (m *VPNStatusResponse) GetNet() string {
  300. if m != nil {
  301. return m.Net
  302. }
  303. return ""
  304. }
  305. func (m *VPNStatusResponse) GetMask() string {
  306. if m != nil {
  307. return m.Mask
  308. }
  309. return ""
  310. }
  311. func (m *VPNStatusResponse) GetCreatedAt() string {
  312. if m != nil {
  313. return m.CreatedAt
  314. }
  315. return ""
  316. }
  317. func (m *VPNStatusResponse) GetProto() string {
  318. if m != nil {
  319. return m.Proto
  320. }
  321. return ""
  322. }
  323. func (m *VPNStatusResponse) GetDns() string {
  324. if m != nil {
  325. return m.Dns
  326. }
  327. return ""
  328. }
  329. func (m *VPNStatusResponse) GetExpiresAt() string {
  330. if m != nil {
  331. return m.ExpiresAt
  332. }
  333. return ""
  334. }
  335. func (m *VPNStatusResponse) GetCaExpiresAt() string {
  336. if m != nil {
  337. return m.CaExpiresAt
  338. }
  339. return ""
  340. }
  341. type VPNInitResponse struct {
  342. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  343. XXX_unrecognized []byte `json:"-"`
  344. XXX_sizecache int32 `json:"-"`
  345. }
  346. func (m *VPNInitResponse) Reset() { *m = VPNInitResponse{} }
  347. func (m *VPNInitResponse) String() string { return proto.CompactTextString(m) }
  348. func (*VPNInitResponse) ProtoMessage() {}
  349. func (*VPNInitResponse) Descriptor() ([]byte, []int) {
  350. return fileDescriptor_75c5922f473942e1, []int{5}
  351. }
  352. func (m *VPNInitResponse) XXX_Unmarshal(b []byte) error {
  353. return xxx_messageInfo_VPNInitResponse.Unmarshal(m, b)
  354. }
  355. func (m *VPNInitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  356. return xxx_messageInfo_VPNInitResponse.Marshal(b, m, deterministic)
  357. }
  358. func (m *VPNInitResponse) XXX_Merge(src proto.Message) {
  359. xxx_messageInfo_VPNInitResponse.Merge(m, src)
  360. }
  361. func (m *VPNInitResponse) XXX_Size() int {
  362. return xxx_messageInfo_VPNInitResponse.Size(m)
  363. }
  364. func (m *VPNInitResponse) XXX_DiscardUnknown() {
  365. xxx_messageInfo_VPNInitResponse.DiscardUnknown(m)
  366. }
  367. var xxx_messageInfo_VPNInitResponse proto.InternalMessageInfo
  368. type VPNUpdateResponse struct {
  369. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  370. XXX_unrecognized []byte `json:"-"`
  371. XXX_sizecache int32 `json:"-"`
  372. }
  373. func (m *VPNUpdateResponse) Reset() { *m = VPNUpdateResponse{} }
  374. func (m *VPNUpdateResponse) String() string { return proto.CompactTextString(m) }
  375. func (*VPNUpdateResponse) ProtoMessage() {}
  376. func (*VPNUpdateResponse) Descriptor() ([]byte, []int) {
  377. return fileDescriptor_75c5922f473942e1, []int{6}
  378. }
  379. func (m *VPNUpdateResponse) XXX_Unmarshal(b []byte) error {
  380. return xxx_messageInfo_VPNUpdateResponse.Unmarshal(m, b)
  381. }
  382. func (m *VPNUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  383. return xxx_messageInfo_VPNUpdateResponse.Marshal(b, m, deterministic)
  384. }
  385. func (m *VPNUpdateResponse) XXX_Merge(src proto.Message) {
  386. xxx_messageInfo_VPNUpdateResponse.Merge(m, src)
  387. }
  388. func (m *VPNUpdateResponse) XXX_Size() int {
  389. return xxx_messageInfo_VPNUpdateResponse.Size(m)
  390. }
  391. func (m *VPNUpdateResponse) XXX_DiscardUnknown() {
  392. xxx_messageInfo_VPNUpdateResponse.DiscardUnknown(m)
  393. }
  394. var xxx_messageInfo_VPNUpdateResponse proto.InternalMessageInfo
  395. type VPNRestartResponse struct {
  396. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  397. XXX_unrecognized []byte `json:"-"`
  398. XXX_sizecache int32 `json:"-"`
  399. }
  400. func (m *VPNRestartResponse) Reset() { *m = VPNRestartResponse{} }
  401. func (m *VPNRestartResponse) String() string { return proto.CompactTextString(m) }
  402. func (*VPNRestartResponse) ProtoMessage() {}
  403. func (*VPNRestartResponse) Descriptor() ([]byte, []int) {
  404. return fileDescriptor_75c5922f473942e1, []int{7}
  405. }
  406. func (m *VPNRestartResponse) XXX_Unmarshal(b []byte) error {
  407. return xxx_messageInfo_VPNRestartResponse.Unmarshal(m, b)
  408. }
  409. func (m *VPNRestartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  410. return xxx_messageInfo_VPNRestartResponse.Marshal(b, m, deterministic)
  411. }
  412. func (m *VPNRestartResponse) XXX_Merge(src proto.Message) {
  413. xxx_messageInfo_VPNRestartResponse.Merge(m, src)
  414. }
  415. func (m *VPNRestartResponse) XXX_Size() int {
  416. return xxx_messageInfo_VPNRestartResponse.Size(m)
  417. }
  418. func (m *VPNRestartResponse) XXX_DiscardUnknown() {
  419. xxx_messageInfo_VPNRestartResponse.DiscardUnknown(m)
  420. }
  421. var xxx_messageInfo_VPNRestartResponse proto.InternalMessageInfo
  422. func init() {
  423. proto.RegisterEnum("pb.VPNProto", VPNProto_name, VPNProto_value)
  424. proto.RegisterType((*VPNStatusRequest)(nil), "pb.VPNStatusRequest")
  425. proto.RegisterType((*VPNInitRequest)(nil), "pb.VPNInitRequest")
  426. proto.RegisterType((*VPNUpdateRequest)(nil), "pb.VPNUpdateRequest")
  427. proto.RegisterType((*VPNRestartRequest)(nil), "pb.VPNRestartRequest")
  428. proto.RegisterType((*VPNStatusResponse)(nil), "pb.VPNStatusResponse")
  429. proto.RegisterType((*VPNInitResponse)(nil), "pb.VPNInitResponse")
  430. proto.RegisterType((*VPNUpdateResponse)(nil), "pb.VPNUpdateResponse")
  431. proto.RegisterType((*VPNRestartResponse)(nil), "pb.VPNRestartResponse")
  432. }
  433. func init() { proto.RegisterFile("vpn.proto", fileDescriptor_75c5922f473942e1) }
  434. var fileDescriptor_75c5922f473942e1 = []byte{
  435. // 628 bytes of a gzipped FileDescriptorProto
  436. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0x4f, 0x6f, 0xd3, 0x4c,
  437. 0x10, 0xc6, 0x5f, 0x3b, 0xa9, 0x93, 0x4c, 0xff, 0xb9, 0xd3, 0xf4, 0xad, 0x09, 0x54, 0xaa, 0xcc,
  438. 0x25, 0xb4, 0x52, 0x23, 0xca, 0x8d, 0x0b, 0x2a, 0xa5, 0x48, 0x48, 0x55, 0x30, 0xa6, 0xcd, 0xd5,
  439. 0xda, 0x38, 0xdb, 0x62, 0x35, 0xf1, 0x2e, 0xbb, 0xeb, 0x08, 0xf5, 0xc8, 0x95, 0x23, 0x1f, 0x8d,
  440. 0x13, 0x9c, 0xf9, 0x20, 0xc8, 0x63, 0x3b, 0x75, 0x22, 0xb8, 0x8d, 0x7f, 0x33, 0x79, 0x34, 0x79,
  441. 0x9e, 0x59, 0xe8, 0xcc, 0x65, 0x7a, 0x22, 0x95, 0x30, 0x02, 0x6d, 0x39, 0xee, 0x3d, 0xb9, 0x15,
  442. 0xe2, 0x76, 0xca, 0x07, 0x4c, 0x26, 0x03, 0x96, 0xa6, 0xc2, 0x30, 0x93, 0x88, 0x54, 0x17, 0x13,
  443. 0x3e, 0x82, 0x3b, 0x0a, 0x86, 0x1f, 0x0d, 0x33, 0x99, 0x0e, 0xf9, 0xe7, 0x8c, 0x6b, 0xe3, 0x7f,
  444. 0xb3, 0x61, 0x6b, 0x14, 0x0c, 0xdf, 0xa5, 0x89, 0x29, 0x11, 0xf6, 0xa0, 0xfd, 0x49, 0x68, 0x93,
  445. 0xb2, 0x19, 0xf7, 0xac, 0x43, 0xab, 0xdf, 0x09, 0x17, 0xdf, 0x88, 0xd0, 0x94, 0x42, 0x19, 0xcf,
  446. 0x26, 0x4e, 0x35, 0x1e, 0x03, 0x90, 0x7e, 0x24, 0x15, 0xbf, 0xf1, 0x1a, 0x87, 0x56, 0x7f, 0xeb,
  447. 0x74, 0xe3, 0x44, 0x8e, 0x4f, 0x46, 0xc1, 0x30, 0xc8, 0x1b, 0x61, 0x87, 0xfa, 0x81, 0xe2, 0x37,
  448. 0xf8, 0x08, 0xda, 0x89, 0x8c, 0xc6, 0x53, 0x11, 0xdf, 0x79, 0x4d, 0x12, 0x69, 0x25, 0xf2, 0x75,
  449. 0xfe, 0x89, 0x2e, 0x34, 0x26, 0xa9, 0xf6, 0xd6, 0x88, 0xe6, 0x25, 0x3e, 0x03, 0xf7, 0x8e, 0x73,
  450. 0xc9, 0xa6, 0xc9, 0x9c, 0x47, 0x92, 0xab, 0x44, 0x4c, 0x3c, 0x87, 0xda, 0xdb, 0x0b, 0x1e, 0x10,
  451. 0xc6, 0x63, 0xd8, 0x79, 0x18, 0x35, 0xc9, 0x8c, 0x8b, 0xcc, 0x78, 0x2d, 0x9a, 0x7d, 0xd0, 0xb8,
  452. 0x2a, 0x38, 0xee, 0x43, 0x2b, 0xd3, 0x3c, 0x9a, 0xde, 0x0b, 0xaf, 0x7d, 0x68, 0xf5, 0xdb, 0xa1,
  453. 0x93, 0x69, 0x7e, 0x79, 0x2f, 0xfc, 0x57, 0xe4, 0xd0, 0xb5, 0x9c, 0x30, 0xc3, 0x2b, 0x3b, 0xea,
  454. 0x1b, 0x5b, 0x7f, 0xdd, 0xd8, 0x5e, 0x6c, 0xec, 0xef, 0xc2, 0xce, 0x28, 0x18, 0x86, 0x5c, 0x1b,
  455. 0xa6, 0x2a, 0x43, 0xfd, 0x9f, 0x36, 0xd1, 0xca, 0x78, 0x2d, 0x45, 0xaa, 0xc9, 0xca, 0x9a, 0xc5,
  456. 0x54, 0xe3, 0x53, 0xd8, 0xd4, 0x5c, 0x25, 0x6c, 0x1a, 0xa5, 0xd9, 0x6c, 0xcc, 0x55, 0x29, 0xbd,
  457. 0x51, 0xc0, 0x21, 0xb1, 0xa5, 0x7c, 0x1a, 0xff, 0xc8, 0xa7, 0x59, 0xcb, 0x07, 0xa1, 0x19, 0x73,
  458. 0x65, 0x4a, 0x63, 0xa9, 0xce, 0x1d, 0x88, 0x59, 0x44, 0xb8, 0x30, 0xd4, 0x89, 0xd9, 0x79, 0xde,
  459. 0x70, 0xa1, 0x91, 0xf2, 0xca, 0xb9, 0xbc, 0xcc, 0x7f, 0x3e, 0x63, 0xfa, 0x8e, 0x9c, 0xea, 0x84,
  460. 0x54, 0xe3, 0x01, 0x40, 0xac, 0x38, 0x33, 0x7c, 0x12, 0x31, 0xe3, 0x75, 0xa8, 0xd3, 0x29, 0xc9,
  461. 0x99, 0xc1, 0x2e, 0xac, 0x51, 0xe2, 0x1e, 0x50, 0xa7, 0xf8, 0xa8, 0xdc, 0x5a, 0x7f, 0xc8, 0xf7,
  462. 0x00, 0x80, 0x7f, 0x91, 0x89, 0xe2, 0x3a, 0x97, 0xd9, 0x28, 0x64, 0x4a, 0x72, 0x66, 0xd0, 0x87,
  463. 0xcd, 0x98, 0x45, 0xb5, 0x89, 0x4d, 0x9a, 0x58, 0x8f, 0xd9, 0x45, 0x35, 0xe3, 0xef, 0xc0, 0xf6,
  464. 0xe2, 0x7c, 0x0b, 0x63, 0xcb, 0x0c, 0xaa, 0x10, 0x4b, 0xd8, 0x05, 0xac, 0x07, 0x53, 0xd0, 0xa3,
  465. 0x3e, 0xb4, 0xab, 0x23, 0x45, 0x00, 0x67, 0xf8, 0x3e, 0x08, 0x2f, 0xde, 0xba, 0xff, 0x61, 0x0b,
  466. 0x1a, 0xd7, 0x6f, 0x02, 0xd7, 0xca, 0x8b, 0xab, 0xf3, 0xc0, 0xb5, 0x4f, 0x7f, 0xd9, 0x00, 0x79,
  467. 0x86, 0x5c, 0xcd, 0x93, 0x98, 0xe3, 0x07, 0x70, 0x8a, 0x38, 0xb1, 0x5b, 0x5e, 0xfa, 0xd2, 0xb3,
  468. 0xea, 0xed, 0xad, 0xd0, 0x72, 0x8b, 0xde, 0xd7, 0x1f, 0xbf, 0xbf, 0xdb, 0x5d, 0x44, 0x7a, 0xa1,
  469. 0xf3, 0xe7, 0x83, 0xb9, 0x4c, 0x07, 0xba, 0x10, 0xba, 0x84, 0x66, 0xfe, 0x37, 0x10, 0xcb, 0x9f,
  470. 0xd6, 0x9e, 0x64, 0x6f, 0x77, 0x89, 0x95, 0x62, 0x8f, 0x49, 0x6c, 0xcf, 0x77, 0xeb, 0x62, 0x49,
  471. 0x9a, 0x98, 0x97, 0xd6, 0x11, 0x5e, 0x81, 0x53, 0x38, 0xb0, 0x58, 0x70, 0xe9, 0xaa, 0x17, 0x0b,
  472. 0xae, 0xd8, 0x74, 0x40, 0x9a, 0xfb, 0xfe, 0xd2, 0x82, 0x19, 0xcd, 0xe4, 0xaa, 0xd7, 0xd0, 0x2a,
  473. 0x2d, 0xc4, 0x4a, 0x60, 0xf9, 0xd6, 0x7b, 0xff, 0xaf, 0xe2, 0x95, 0x65, 0x77, 0xeb, 0xc2, 0xaa,
  474. 0x18, 0x1a, 0x3b, 0x74, 0x20, 0x2f, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xba, 0x04, 0x57, 0xbd,
  475. 0xce, 0x04, 0x00, 0x00,
  476. }
  477. // Reference imports to suppress errors if they are not otherwise used.
  478. var _ context.Context
  479. var _ grpc.ClientConn
  480. // This is a compile-time assertion to ensure that this generated file
  481. // is compatible with the grpc package it is being compiled against.
  482. const _ = grpc.SupportPackageIsVersion4
  483. // VPNServiceClient is the client API for VPNService service.
  484. //
  485. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  486. type VPNServiceClient interface {
  487. Status(ctx context.Context, in *VPNStatusRequest, opts ...grpc.CallOption) (*VPNStatusResponse, error)
  488. Init(ctx context.Context, in *VPNInitRequest, opts ...grpc.CallOption) (*VPNInitResponse, error)
  489. Update(ctx context.Context, in *VPNUpdateRequest, opts ...grpc.CallOption) (*VPNUpdateResponse, error)
  490. Restart(ctx context.Context, in *VPNRestartRequest, opts ...grpc.CallOption) (*VPNRestartResponse, error)
  491. }
  492. type vPNServiceClient struct {
  493. cc *grpc.ClientConn
  494. }
  495. func NewVPNServiceClient(cc *grpc.ClientConn) VPNServiceClient {
  496. return &vPNServiceClient{cc}
  497. }
  498. func (c *vPNServiceClient) Status(ctx context.Context, in *VPNStatusRequest, opts ...grpc.CallOption) (*VPNStatusResponse, error) {
  499. out := new(VPNStatusResponse)
  500. err := c.cc.Invoke(ctx, "/pb.VPNService/Status", in, out, opts...)
  501. if err != nil {
  502. return nil, err
  503. }
  504. return out, nil
  505. }
  506. func (c *vPNServiceClient) Init(ctx context.Context, in *VPNInitRequest, opts ...grpc.CallOption) (*VPNInitResponse, error) {
  507. out := new(VPNInitResponse)
  508. err := c.cc.Invoke(ctx, "/pb.VPNService/Init", in, out, opts...)
  509. if err != nil {
  510. return nil, err
  511. }
  512. return out, nil
  513. }
  514. func (c *vPNServiceClient) Update(ctx context.Context, in *VPNUpdateRequest, opts ...grpc.CallOption) (*VPNUpdateResponse, error) {
  515. out := new(VPNUpdateResponse)
  516. err := c.cc.Invoke(ctx, "/pb.VPNService/Update", in, out, opts...)
  517. if err != nil {
  518. return nil, err
  519. }
  520. return out, nil
  521. }
  522. func (c *vPNServiceClient) Restart(ctx context.Context, in *VPNRestartRequest, opts ...grpc.CallOption) (*VPNRestartResponse, error) {
  523. out := new(VPNRestartResponse)
  524. err := c.cc.Invoke(ctx, "/pb.VPNService/Restart", in, out, opts...)
  525. if err != nil {
  526. return nil, err
  527. }
  528. return out, nil
  529. }
  530. // VPNServiceServer is the server API for VPNService service.
  531. type VPNServiceServer interface {
  532. Status(context.Context, *VPNStatusRequest) (*VPNStatusResponse, error)
  533. Init(context.Context, *VPNInitRequest) (*VPNInitResponse, error)
  534. Update(context.Context, *VPNUpdateRequest) (*VPNUpdateResponse, error)
  535. Restart(context.Context, *VPNRestartRequest) (*VPNRestartResponse, error)
  536. }
  537. // UnimplementedVPNServiceServer can be embedded to have forward compatible implementations.
  538. type UnimplementedVPNServiceServer struct {
  539. }
  540. func (*UnimplementedVPNServiceServer) Status(ctx context.Context, req *VPNStatusRequest) (*VPNStatusResponse, error) {
  541. return nil, status.Errorf(codes.Unimplemented, "method Status not implemented")
  542. }
  543. func (*UnimplementedVPNServiceServer) Init(ctx context.Context, req *VPNInitRequest) (*VPNInitResponse, error) {
  544. return nil, status.Errorf(codes.Unimplemented, "method Init not implemented")
  545. }
  546. func (*UnimplementedVPNServiceServer) Update(ctx context.Context, req *VPNUpdateRequest) (*VPNUpdateResponse, error) {
  547. return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
  548. }
  549. func (*UnimplementedVPNServiceServer) Restart(ctx context.Context, req *VPNRestartRequest) (*VPNRestartResponse, error) {
  550. return nil, status.Errorf(codes.Unimplemented, "method Restart not implemented")
  551. }
  552. func RegisterVPNServiceServer(s *grpc.Server, srv VPNServiceServer) {
  553. s.RegisterService(&_VPNService_serviceDesc, srv)
  554. }
  555. func _VPNService_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  556. in := new(VPNStatusRequest)
  557. if err := dec(in); err != nil {
  558. return nil, err
  559. }
  560. if interceptor == nil {
  561. return srv.(VPNServiceServer).Status(ctx, in)
  562. }
  563. info := &grpc.UnaryServerInfo{
  564. Server: srv,
  565. FullMethod: "/pb.VPNService/Status",
  566. }
  567. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  568. return srv.(VPNServiceServer).Status(ctx, req.(*VPNStatusRequest))
  569. }
  570. return interceptor(ctx, in, info, handler)
  571. }
  572. func _VPNService_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  573. in := new(VPNInitRequest)
  574. if err := dec(in); err != nil {
  575. return nil, err
  576. }
  577. if interceptor == nil {
  578. return srv.(VPNServiceServer).Init(ctx, in)
  579. }
  580. info := &grpc.UnaryServerInfo{
  581. Server: srv,
  582. FullMethod: "/pb.VPNService/Init",
  583. }
  584. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  585. return srv.(VPNServiceServer).Init(ctx, req.(*VPNInitRequest))
  586. }
  587. return interceptor(ctx, in, info, handler)
  588. }
  589. func _VPNService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  590. in := new(VPNUpdateRequest)
  591. if err := dec(in); err != nil {
  592. return nil, err
  593. }
  594. if interceptor == nil {
  595. return srv.(VPNServiceServer).Update(ctx, in)
  596. }
  597. info := &grpc.UnaryServerInfo{
  598. Server: srv,
  599. FullMethod: "/pb.VPNService/Update",
  600. }
  601. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  602. return srv.(VPNServiceServer).Update(ctx, req.(*VPNUpdateRequest))
  603. }
  604. return interceptor(ctx, in, info, handler)
  605. }
  606. func _VPNService_Restart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  607. in := new(VPNRestartRequest)
  608. if err := dec(in); err != nil {
  609. return nil, err
  610. }
  611. if interceptor == nil {
  612. return srv.(VPNServiceServer).Restart(ctx, in)
  613. }
  614. info := &grpc.UnaryServerInfo{
  615. Server: srv,
  616. FullMethod: "/pb.VPNService/Restart",
  617. }
  618. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  619. return srv.(VPNServiceServer).Restart(ctx, req.(*VPNRestartRequest))
  620. }
  621. return interceptor(ctx, in, info, handler)
  622. }
  623. var _VPNService_serviceDesc = grpc.ServiceDesc{
  624. ServiceName: "pb.VPNService",
  625. HandlerType: (*VPNServiceServer)(nil),
  626. Methods: []grpc.MethodDesc{
  627. {
  628. MethodName: "Status",
  629. Handler: _VPNService_Status_Handler,
  630. },
  631. {
  632. MethodName: "Init",
  633. Handler: _VPNService_Init_Handler,
  634. },
  635. {
  636. MethodName: "Update",
  637. Handler: _VPNService_Update_Handler,
  638. },
  639. {
  640. MethodName: "Restart",
  641. Handler: _VPNService_Restart_Handler,
  642. },
  643. },
  644. Streams: []grpc.StreamDesc{},
  645. Metadata: "vpn.proto",
  646. }