vpn.pb.go 27 KB

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