vpn.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.12.4
  5. // source: vpn.proto
  6. package pb
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type VPNProto int32
  21. const (
  22. VPNProto_NOPREF VPNProto = 0
  23. VPNProto_UDP VPNProto = 1
  24. VPNProto_TCP VPNProto = 2
  25. )
  26. // Enum value maps for VPNProto.
  27. var (
  28. VPNProto_name = map[int32]string{
  29. 0: "NOPREF",
  30. 1: "UDP",
  31. 2: "TCP",
  32. }
  33. VPNProto_value = map[string]int32{
  34. "NOPREF": 0,
  35. "UDP": 1,
  36. "TCP": 2,
  37. }
  38. )
  39. func (x VPNProto) Enum() *VPNProto {
  40. p := new(VPNProto)
  41. *p = x
  42. return p
  43. }
  44. func (x VPNProto) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (VPNProto) Descriptor() protoreflect.EnumDescriptor {
  48. return file_vpn_proto_enumTypes[0].Descriptor()
  49. }
  50. func (VPNProto) Type() protoreflect.EnumType {
  51. return &file_vpn_proto_enumTypes[0]
  52. }
  53. func (x VPNProto) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Use VPNProto.Descriptor instead.
  57. func (VPNProto) EnumDescriptor() ([]byte, []int) {
  58. return file_vpn_proto_rawDescGZIP(), []int{0}
  59. }
  60. type VPNLZOPref int32
  61. const (
  62. VPNLZOPref_USE_LZO_NOPREF VPNLZOPref = 0
  63. VPNLZOPref_USE_LZO_ENABLE VPNLZOPref = 1
  64. VPNLZOPref_USE_LZO_DISABLE VPNLZOPref = 3
  65. )
  66. // Enum value maps for VPNLZOPref.
  67. var (
  68. VPNLZOPref_name = map[int32]string{
  69. 0: "USE_LZO_NOPREF",
  70. 1: "USE_LZO_ENABLE",
  71. 3: "USE_LZO_DISABLE",
  72. }
  73. VPNLZOPref_value = map[string]int32{
  74. "USE_LZO_NOPREF": 0,
  75. "USE_LZO_ENABLE": 1,
  76. "USE_LZO_DISABLE": 3,
  77. }
  78. )
  79. func (x VPNLZOPref) Enum() *VPNLZOPref {
  80. p := new(VPNLZOPref)
  81. *p = x
  82. return p
  83. }
  84. func (x VPNLZOPref) String() string {
  85. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  86. }
  87. func (VPNLZOPref) Descriptor() protoreflect.EnumDescriptor {
  88. return file_vpn_proto_enumTypes[1].Descriptor()
  89. }
  90. func (VPNLZOPref) Type() protoreflect.EnumType {
  91. return &file_vpn_proto_enumTypes[1]
  92. }
  93. func (x VPNLZOPref) Number() protoreflect.EnumNumber {
  94. return protoreflect.EnumNumber(x)
  95. }
  96. // Deprecated: Use VPNLZOPref.Descriptor instead.
  97. func (VPNLZOPref) EnumDescriptor() ([]byte, []int) {
  98. return file_vpn_proto_rawDescGZIP(), []int{1}
  99. }
  100. type VPNStatusRequest struct {
  101. state protoimpl.MessageState
  102. sizeCache protoimpl.SizeCache
  103. unknownFields protoimpl.UnknownFields
  104. }
  105. func (x *VPNStatusRequest) Reset() {
  106. *x = VPNStatusRequest{}
  107. if protoimpl.UnsafeEnabled {
  108. mi := &file_vpn_proto_msgTypes[0]
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. ms.StoreMessageInfo(mi)
  111. }
  112. }
  113. func (x *VPNStatusRequest) String() string {
  114. return protoimpl.X.MessageStringOf(x)
  115. }
  116. func (*VPNStatusRequest) ProtoMessage() {}
  117. func (x *VPNStatusRequest) ProtoReflect() protoreflect.Message {
  118. mi := &file_vpn_proto_msgTypes[0]
  119. if protoimpl.UnsafeEnabled && x != nil {
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. if ms.LoadMessageInfo() == nil {
  122. ms.StoreMessageInfo(mi)
  123. }
  124. return ms
  125. }
  126. return mi.MessageOf(x)
  127. }
  128. // Deprecated: Use VPNStatusRequest.ProtoReflect.Descriptor instead.
  129. func (*VPNStatusRequest) Descriptor() ([]byte, []int) {
  130. return file_vpn_proto_rawDescGZIP(), []int{0}
  131. }
  132. type VPNInitRequest struct {
  133. state protoimpl.MessageState
  134. sizeCache protoimpl.SizeCache
  135. unknownFields protoimpl.UnknownFields
  136. Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
  137. Port string `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
  138. ProtoPref VPNProto `protobuf:"varint,3,opt,name=proto_pref,json=protoPref,proto3,enum=pb.VPNProto" json:"proto_pref,omitempty"`
  139. IpBlock string `protobuf:"bytes,4,opt,name=ip_block,json=ipBlock,proto3" json:"ip_block,omitempty"`
  140. Dns string `protobuf:"bytes,5,opt,name=dns,proto3" json:"dns,omitempty"`
  141. KeepalivePeriod string `protobuf:"bytes,6,opt,name=keepalive_period,json=keepalivePeriod,proto3" json:"keepalive_period,omitempty"`
  142. KeepaliveTimeout string `protobuf:"bytes,7,opt,name=keepalive_timeout,json=keepaliveTimeout,proto3" json:"keepalive_timeout,omitempty"`
  143. UseLzo bool `protobuf:"varint,8,opt,name=use_lzo,json=useLzo,proto3" json:"use_lzo,omitempty"`
  144. }
  145. func (x *VPNInitRequest) Reset() {
  146. *x = VPNInitRequest{}
  147. if protoimpl.UnsafeEnabled {
  148. mi := &file_vpn_proto_msgTypes[1]
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. ms.StoreMessageInfo(mi)
  151. }
  152. }
  153. func (x *VPNInitRequest) String() string {
  154. return protoimpl.X.MessageStringOf(x)
  155. }
  156. func (*VPNInitRequest) ProtoMessage() {}
  157. func (x *VPNInitRequest) ProtoReflect() protoreflect.Message {
  158. mi := &file_vpn_proto_msgTypes[1]
  159. if protoimpl.UnsafeEnabled && x != nil {
  160. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  161. if ms.LoadMessageInfo() == nil {
  162. ms.StoreMessageInfo(mi)
  163. }
  164. return ms
  165. }
  166. return mi.MessageOf(x)
  167. }
  168. // Deprecated: Use VPNInitRequest.ProtoReflect.Descriptor instead.
  169. func (*VPNInitRequest) Descriptor() ([]byte, []int) {
  170. return file_vpn_proto_rawDescGZIP(), []int{1}
  171. }
  172. func (x *VPNInitRequest) GetHostname() string {
  173. if x != nil {
  174. return x.Hostname
  175. }
  176. return ""
  177. }
  178. func (x *VPNInitRequest) GetPort() string {
  179. if x != nil {
  180. return x.Port
  181. }
  182. return ""
  183. }
  184. func (x *VPNInitRequest) GetProtoPref() VPNProto {
  185. if x != nil {
  186. return x.ProtoPref
  187. }
  188. return VPNProto_NOPREF
  189. }
  190. func (x *VPNInitRequest) GetIpBlock() string {
  191. if x != nil {
  192. return x.IpBlock
  193. }
  194. return ""
  195. }
  196. func (x *VPNInitRequest) GetDns() string {
  197. if x != nil {
  198. return x.Dns
  199. }
  200. return ""
  201. }
  202. func (x *VPNInitRequest) GetKeepalivePeriod() string {
  203. if x != nil {
  204. return x.KeepalivePeriod
  205. }
  206. return ""
  207. }
  208. func (x *VPNInitRequest) GetKeepaliveTimeout() string {
  209. if x != nil {
  210. return x.KeepaliveTimeout
  211. }
  212. return ""
  213. }
  214. func (x *VPNInitRequest) GetUseLzo() bool {
  215. if x != nil {
  216. return x.UseLzo
  217. }
  218. return false
  219. }
  220. type VPNUpdateRequest struct {
  221. state protoimpl.MessageState
  222. sizeCache protoimpl.SizeCache
  223. unknownFields protoimpl.UnknownFields
  224. IpBlock string `protobuf:"bytes,1,opt,name=ip_block,json=ipBlock,proto3" json:"ip_block,omitempty"`
  225. Dns string `protobuf:"bytes,2,opt,name=dns,proto3" json:"dns,omitempty"`
  226. LzoPref VPNLZOPref `protobuf:"varint,3,opt,name=lzo_pref,json=lzoPref,proto3,enum=pb.VPNLZOPref" json:"lzo_pref,omitempty"`
  227. }
  228. func (x *VPNUpdateRequest) Reset() {
  229. *x = VPNUpdateRequest{}
  230. if protoimpl.UnsafeEnabled {
  231. mi := &file_vpn_proto_msgTypes[2]
  232. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  233. ms.StoreMessageInfo(mi)
  234. }
  235. }
  236. func (x *VPNUpdateRequest) String() string {
  237. return protoimpl.X.MessageStringOf(x)
  238. }
  239. func (*VPNUpdateRequest) ProtoMessage() {}
  240. func (x *VPNUpdateRequest) ProtoReflect() protoreflect.Message {
  241. mi := &file_vpn_proto_msgTypes[2]
  242. if protoimpl.UnsafeEnabled && x != nil {
  243. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  244. if ms.LoadMessageInfo() == nil {
  245. ms.StoreMessageInfo(mi)
  246. }
  247. return ms
  248. }
  249. return mi.MessageOf(x)
  250. }
  251. // Deprecated: Use VPNUpdateRequest.ProtoReflect.Descriptor instead.
  252. func (*VPNUpdateRequest) Descriptor() ([]byte, []int) {
  253. return file_vpn_proto_rawDescGZIP(), []int{2}
  254. }
  255. func (x *VPNUpdateRequest) GetIpBlock() string {
  256. if x != nil {
  257. return x.IpBlock
  258. }
  259. return ""
  260. }
  261. func (x *VPNUpdateRequest) GetDns() string {
  262. if x != nil {
  263. return x.Dns
  264. }
  265. return ""
  266. }
  267. func (x *VPNUpdateRequest) GetLzoPref() VPNLZOPref {
  268. if x != nil {
  269. return x.LzoPref
  270. }
  271. return VPNLZOPref_USE_LZO_NOPREF
  272. }
  273. type VPNRestartRequest struct {
  274. state protoimpl.MessageState
  275. sizeCache protoimpl.SizeCache
  276. unknownFields protoimpl.UnknownFields
  277. }
  278. func (x *VPNRestartRequest) Reset() {
  279. *x = VPNRestartRequest{}
  280. if protoimpl.UnsafeEnabled {
  281. mi := &file_vpn_proto_msgTypes[3]
  282. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  283. ms.StoreMessageInfo(mi)
  284. }
  285. }
  286. func (x *VPNRestartRequest) String() string {
  287. return protoimpl.X.MessageStringOf(x)
  288. }
  289. func (*VPNRestartRequest) ProtoMessage() {}
  290. func (x *VPNRestartRequest) ProtoReflect() protoreflect.Message {
  291. mi := &file_vpn_proto_msgTypes[3]
  292. if protoimpl.UnsafeEnabled && x != nil {
  293. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  294. if ms.LoadMessageInfo() == nil {
  295. ms.StoreMessageInfo(mi)
  296. }
  297. return ms
  298. }
  299. return mi.MessageOf(x)
  300. }
  301. // Deprecated: Use VPNRestartRequest.ProtoReflect.Descriptor instead.
  302. func (*VPNRestartRequest) Descriptor() ([]byte, []int) {
  303. return file_vpn_proto_rawDescGZIP(), []int{3}
  304. }
  305. type VPNStatusResponse struct {
  306. state protoimpl.MessageState
  307. sizeCache protoimpl.SizeCache
  308. unknownFields protoimpl.UnknownFields
  309. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  310. SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
  311. Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
  312. Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
  313. Cert string `protobuf:"bytes,5,opt,name=cert,proto3" json:"cert,omitempty"`
  314. CaCert string `protobuf:"bytes,6,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
  315. Net string `protobuf:"bytes,7,opt,name=net,proto3" json:"net,omitempty"`
  316. Mask string `protobuf:"bytes,8,opt,name=mask,proto3" json:"mask,omitempty"`
  317. CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  318. Proto string `protobuf:"bytes,10,opt,name=proto,proto3" json:"proto,omitempty"`
  319. Dns string `protobuf:"bytes,11,opt,name=dns,proto3" json:"dns,omitempty"`
  320. ExpiresAt string `protobuf:"bytes,12,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
  321. CaExpiresAt string `protobuf:"bytes,13,opt,name=ca_expires_at,json=caExpiresAt,proto3" json:"ca_expires_at,omitempty"`
  322. UseLzo bool `protobuf:"varint,14,opt,name=use_lzo,json=useLzo,proto3" json:"use_lzo,omitempty"`
  323. }
  324. func (x *VPNStatusResponse) Reset() {
  325. *x = VPNStatusResponse{}
  326. if protoimpl.UnsafeEnabled {
  327. mi := &file_vpn_proto_msgTypes[4]
  328. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  329. ms.StoreMessageInfo(mi)
  330. }
  331. }
  332. func (x *VPNStatusResponse) String() string {
  333. return protoimpl.X.MessageStringOf(x)
  334. }
  335. func (*VPNStatusResponse) ProtoMessage() {}
  336. func (x *VPNStatusResponse) ProtoReflect() protoreflect.Message {
  337. mi := &file_vpn_proto_msgTypes[4]
  338. if protoimpl.UnsafeEnabled && x != nil {
  339. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  340. if ms.LoadMessageInfo() == nil {
  341. ms.StoreMessageInfo(mi)
  342. }
  343. return ms
  344. }
  345. return mi.MessageOf(x)
  346. }
  347. // Deprecated: Use VPNStatusResponse.ProtoReflect.Descriptor instead.
  348. func (*VPNStatusResponse) Descriptor() ([]byte, []int) {
  349. return file_vpn_proto_rawDescGZIP(), []int{4}
  350. }
  351. func (x *VPNStatusResponse) GetName() string {
  352. if x != nil {
  353. return x.Name
  354. }
  355. return ""
  356. }
  357. func (x *VPNStatusResponse) GetSerialNumber() string {
  358. if x != nil {
  359. return x.SerialNumber
  360. }
  361. return ""
  362. }
  363. func (x *VPNStatusResponse) GetHostname() string {
  364. if x != nil {
  365. return x.Hostname
  366. }
  367. return ""
  368. }
  369. func (x *VPNStatusResponse) GetPort() string {
  370. if x != nil {
  371. return x.Port
  372. }
  373. return ""
  374. }
  375. func (x *VPNStatusResponse) GetCert() string {
  376. if x != nil {
  377. return x.Cert
  378. }
  379. return ""
  380. }
  381. func (x *VPNStatusResponse) GetCaCert() string {
  382. if x != nil {
  383. return x.CaCert
  384. }
  385. return ""
  386. }
  387. func (x *VPNStatusResponse) GetNet() string {
  388. if x != nil {
  389. return x.Net
  390. }
  391. return ""
  392. }
  393. func (x *VPNStatusResponse) GetMask() string {
  394. if x != nil {
  395. return x.Mask
  396. }
  397. return ""
  398. }
  399. func (x *VPNStatusResponse) GetCreatedAt() string {
  400. if x != nil {
  401. return x.CreatedAt
  402. }
  403. return ""
  404. }
  405. func (x *VPNStatusResponse) GetProto() string {
  406. if x != nil {
  407. return x.Proto
  408. }
  409. return ""
  410. }
  411. func (x *VPNStatusResponse) GetDns() string {
  412. if x != nil {
  413. return x.Dns
  414. }
  415. return ""
  416. }
  417. func (x *VPNStatusResponse) GetExpiresAt() string {
  418. if x != nil {
  419. return x.ExpiresAt
  420. }
  421. return ""
  422. }
  423. func (x *VPNStatusResponse) GetCaExpiresAt() string {
  424. if x != nil {
  425. return x.CaExpiresAt
  426. }
  427. return ""
  428. }
  429. func (x *VPNStatusResponse) GetUseLzo() bool {
  430. if x != nil {
  431. return x.UseLzo
  432. }
  433. return false
  434. }
  435. type VPNInitResponse struct {
  436. state protoimpl.MessageState
  437. sizeCache protoimpl.SizeCache
  438. unknownFields protoimpl.UnknownFields
  439. }
  440. func (x *VPNInitResponse) Reset() {
  441. *x = VPNInitResponse{}
  442. if protoimpl.UnsafeEnabled {
  443. mi := &file_vpn_proto_msgTypes[5]
  444. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  445. ms.StoreMessageInfo(mi)
  446. }
  447. }
  448. func (x *VPNInitResponse) String() string {
  449. return protoimpl.X.MessageStringOf(x)
  450. }
  451. func (*VPNInitResponse) ProtoMessage() {}
  452. func (x *VPNInitResponse) ProtoReflect() protoreflect.Message {
  453. mi := &file_vpn_proto_msgTypes[5]
  454. if protoimpl.UnsafeEnabled && x != nil {
  455. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  456. if ms.LoadMessageInfo() == nil {
  457. ms.StoreMessageInfo(mi)
  458. }
  459. return ms
  460. }
  461. return mi.MessageOf(x)
  462. }
  463. // Deprecated: Use VPNInitResponse.ProtoReflect.Descriptor instead.
  464. func (*VPNInitResponse) Descriptor() ([]byte, []int) {
  465. return file_vpn_proto_rawDescGZIP(), []int{5}
  466. }
  467. type VPNUpdateResponse struct {
  468. state protoimpl.MessageState
  469. sizeCache protoimpl.SizeCache
  470. unknownFields protoimpl.UnknownFields
  471. }
  472. func (x *VPNUpdateResponse) Reset() {
  473. *x = VPNUpdateResponse{}
  474. if protoimpl.UnsafeEnabled {
  475. mi := &file_vpn_proto_msgTypes[6]
  476. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  477. ms.StoreMessageInfo(mi)
  478. }
  479. }
  480. func (x *VPNUpdateResponse) String() string {
  481. return protoimpl.X.MessageStringOf(x)
  482. }
  483. func (*VPNUpdateResponse) ProtoMessage() {}
  484. func (x *VPNUpdateResponse) ProtoReflect() protoreflect.Message {
  485. mi := &file_vpn_proto_msgTypes[6]
  486. if protoimpl.UnsafeEnabled && x != nil {
  487. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  488. if ms.LoadMessageInfo() == nil {
  489. ms.StoreMessageInfo(mi)
  490. }
  491. return ms
  492. }
  493. return mi.MessageOf(x)
  494. }
  495. // Deprecated: Use VPNUpdateResponse.ProtoReflect.Descriptor instead.
  496. func (*VPNUpdateResponse) Descriptor() ([]byte, []int) {
  497. return file_vpn_proto_rawDescGZIP(), []int{6}
  498. }
  499. type VPNRestartResponse struct {
  500. state protoimpl.MessageState
  501. sizeCache protoimpl.SizeCache
  502. unknownFields protoimpl.UnknownFields
  503. }
  504. func (x *VPNRestartResponse) Reset() {
  505. *x = VPNRestartResponse{}
  506. if protoimpl.UnsafeEnabled {
  507. mi := &file_vpn_proto_msgTypes[7]
  508. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  509. ms.StoreMessageInfo(mi)
  510. }
  511. }
  512. func (x *VPNRestartResponse) String() string {
  513. return protoimpl.X.MessageStringOf(x)
  514. }
  515. func (*VPNRestartResponse) ProtoMessage() {}
  516. func (x *VPNRestartResponse) ProtoReflect() protoreflect.Message {
  517. mi := &file_vpn_proto_msgTypes[7]
  518. if protoimpl.UnsafeEnabled && x != nil {
  519. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  520. if ms.LoadMessageInfo() == nil {
  521. ms.StoreMessageInfo(mi)
  522. }
  523. return ms
  524. }
  525. return mi.MessageOf(x)
  526. }
  527. // Deprecated: Use VPNRestartResponse.ProtoReflect.Descriptor instead.
  528. func (*VPNRestartResponse) Descriptor() ([]byte, []int) {
  529. return file_vpn_proto_rawDescGZIP(), []int{7}
  530. }
  531. var File_vpn_proto protoreflect.FileDescriptor
  532. var file_vpn_proto_rawDesc = []byte{
  533. 0x0a, 0x09, 0x76, 0x70, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a,
  534. 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
  535. 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a,
  536. 0x10, 0x56, 0x50, 0x4e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  537. 0x74, 0x22, 0x8b, 0x02, 0x0a, 0x0e, 0x56, 0x50, 0x4e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71,
  538. 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
  539. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
  540. 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  541. 0x70, 0x6f, 0x72, 0x74, 0x12, 0x2b, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x70, 0x72,
  542. 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50,
  543. 0x4e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x65,
  544. 0x66, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x70, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x04, 0x20,
  545. 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x70, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03,
  546. 0x64, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x6e, 0x73, 0x12, 0x29,
  547. 0x0a, 0x10, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69,
  548. 0x6f, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c,
  549. 0x69, 0x76, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x6b, 0x65, 0x65,
  550. 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x07,
  551. 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x54,
  552. 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x5f, 0x6c, 0x7a,
  553. 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x73, 0x65, 0x4c, 0x7a, 0x6f, 0x22,
  554. 0x6a, 0x0a, 0x10, 0x56, 0x50, 0x4e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
  555. 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x70, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18,
  556. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x70, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x10,
  557. 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x6e, 0x73,
  558. 0x12, 0x29, 0x0a, 0x08, 0x6c, 0x7a, 0x6f, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01,
  559. 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x4c, 0x5a, 0x4f, 0x50, 0x72,
  560. 0x65, 0x66, 0x52, 0x07, 0x6c, 0x7a, 0x6f, 0x50, 0x72, 0x65, 0x66, 0x22, 0x13, 0x0a, 0x11, 0x56,
  561. 0x50, 0x4e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  562. 0x22, 0xf2, 0x02, 0x0a, 0x11, 0x56, 0x50, 0x4e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
  563. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
  564. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65,
  565. 0x72, 0x69, 0x61, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
  566. 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12,
  567. 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  568. 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70,
  569. 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12,
  570. 0x12, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63,
  571. 0x65, 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x61, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x06,
  572. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03,
  573. 0x6e, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6e, 0x65, 0x74, 0x12, 0x12,
  574. 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x61,
  575. 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
  576. 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
  577. 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
  578. 0x52, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, 0x0b,
  579. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70,
  580. 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65,
  581. 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x63, 0x61, 0x5f, 0x65,
  582. 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52,
  583. 0x0b, 0x63, 0x61, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x17, 0x0a, 0x07,
  584. 0x75, 0x73, 0x65, 0x5f, 0x6c, 0x7a, 0x6f, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75,
  585. 0x73, 0x65, 0x4c, 0x7a, 0x6f, 0x22, 0x11, 0x0a, 0x0f, 0x56, 0x50, 0x4e, 0x49, 0x6e, 0x69, 0x74,
  586. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x56, 0x50, 0x4e, 0x55,
  587. 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x14, 0x0a,
  588. 0x12, 0x56, 0x50, 0x4e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
  589. 0x6e, 0x73, 0x65, 0x2a, 0x28, 0x0a, 0x08, 0x56, 0x50, 0x4e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  590. 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x50, 0x52, 0x45, 0x46, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55,
  591. 0x44, 0x50, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x02, 0x2a, 0x49, 0x0a,
  592. 0x0a, 0x56, 0x50, 0x4e, 0x4c, 0x5a, 0x4f, 0x50, 0x72, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x0e, 0x55,
  593. 0x53, 0x45, 0x5f, 0x4c, 0x5a, 0x4f, 0x5f, 0x4e, 0x4f, 0x50, 0x52, 0x45, 0x46, 0x10, 0x00, 0x12,
  594. 0x12, 0x0a, 0x0e, 0x55, 0x53, 0x45, 0x5f, 0x4c, 0x5a, 0x4f, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c,
  595. 0x45, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x53, 0x45, 0x5f, 0x4c, 0x5a, 0x4f, 0x5f, 0x44,
  596. 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x32, 0xda, 0x02, 0x0a, 0x0a, 0x56, 0x50, 0x4e,
  597. 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75,
  598. 0x73, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  599. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e,
  600. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a,
  601. 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f,
  602. 0x76, 0x70, 0x6e, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4c, 0x0a, 0x04, 0x49, 0x6e,
  603. 0x69, 0x74, 0x12, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x49, 0x6e, 0x69, 0x74, 0x52,
  604. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x49,
  605. 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4,
  606. 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x70, 0x6e,
  607. 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x54, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61,
  608. 0x74, 0x65, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x55, 0x70, 0x64, 0x61, 0x74,
  609. 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50,
  610. 0x4e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  611. 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
  612. 0x2f, 0x76, 0x70, 0x6e, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x55,
  613. 0x0a, 0x07, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x56,
  614. 0x50, 0x4e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  615. 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x50, 0x4e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74,
  616. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15,
  617. 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x70, 0x6e, 0x2f, 0x72, 0x65,
  618. 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x1c, 0x5a, 0x1a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  619. 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x64, 0x2f, 0x6f, 0x76, 0x70, 0x6d, 0x2f, 0x61, 0x70, 0x69,
  620. 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  621. }
  622. var (
  623. file_vpn_proto_rawDescOnce sync.Once
  624. file_vpn_proto_rawDescData = file_vpn_proto_rawDesc
  625. )
  626. func file_vpn_proto_rawDescGZIP() []byte {
  627. file_vpn_proto_rawDescOnce.Do(func() {
  628. file_vpn_proto_rawDescData = protoimpl.X.CompressGZIP(file_vpn_proto_rawDescData)
  629. })
  630. return file_vpn_proto_rawDescData
  631. }
  632. var file_vpn_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  633. var file_vpn_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  634. var file_vpn_proto_goTypes = []interface{}{
  635. (VPNProto)(0), // 0: pb.VPNProto
  636. (VPNLZOPref)(0), // 1: pb.VPNLZOPref
  637. (*VPNStatusRequest)(nil), // 2: pb.VPNStatusRequest
  638. (*VPNInitRequest)(nil), // 3: pb.VPNInitRequest
  639. (*VPNUpdateRequest)(nil), // 4: pb.VPNUpdateRequest
  640. (*VPNRestartRequest)(nil), // 5: pb.VPNRestartRequest
  641. (*VPNStatusResponse)(nil), // 6: pb.VPNStatusResponse
  642. (*VPNInitResponse)(nil), // 7: pb.VPNInitResponse
  643. (*VPNUpdateResponse)(nil), // 8: pb.VPNUpdateResponse
  644. (*VPNRestartResponse)(nil), // 9: pb.VPNRestartResponse
  645. }
  646. var file_vpn_proto_depIdxs = []int32{
  647. 0, // 0: pb.VPNInitRequest.proto_pref:type_name -> pb.VPNProto
  648. 1, // 1: pb.VPNUpdateRequest.lzo_pref:type_name -> pb.VPNLZOPref
  649. 2, // 2: pb.VPNService.Status:input_type -> pb.VPNStatusRequest
  650. 3, // 3: pb.VPNService.Init:input_type -> pb.VPNInitRequest
  651. 4, // 4: pb.VPNService.Update:input_type -> pb.VPNUpdateRequest
  652. 5, // 5: pb.VPNService.Restart:input_type -> pb.VPNRestartRequest
  653. 6, // 6: pb.VPNService.Status:output_type -> pb.VPNStatusResponse
  654. 7, // 7: pb.VPNService.Init:output_type -> pb.VPNInitResponse
  655. 8, // 8: pb.VPNService.Update:output_type -> pb.VPNUpdateResponse
  656. 9, // 9: pb.VPNService.Restart:output_type -> pb.VPNRestartResponse
  657. 6, // [6:10] is the sub-list for method output_type
  658. 2, // [2:6] is the sub-list for method input_type
  659. 2, // [2:2] is the sub-list for extension type_name
  660. 2, // [2:2] is the sub-list for extension extendee
  661. 0, // [0:2] is the sub-list for field type_name
  662. }
  663. func init() { file_vpn_proto_init() }
  664. func file_vpn_proto_init() {
  665. if File_vpn_proto != nil {
  666. return
  667. }
  668. if !protoimpl.UnsafeEnabled {
  669. file_vpn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  670. switch v := v.(*VPNStatusRequest); i {
  671. case 0:
  672. return &v.state
  673. case 1:
  674. return &v.sizeCache
  675. case 2:
  676. return &v.unknownFields
  677. default:
  678. return nil
  679. }
  680. }
  681. file_vpn_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  682. switch v := v.(*VPNInitRequest); i {
  683. case 0:
  684. return &v.state
  685. case 1:
  686. return &v.sizeCache
  687. case 2:
  688. return &v.unknownFields
  689. default:
  690. return nil
  691. }
  692. }
  693. file_vpn_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  694. switch v := v.(*VPNUpdateRequest); i {
  695. case 0:
  696. return &v.state
  697. case 1:
  698. return &v.sizeCache
  699. case 2:
  700. return &v.unknownFields
  701. default:
  702. return nil
  703. }
  704. }
  705. file_vpn_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  706. switch v := v.(*VPNRestartRequest); i {
  707. case 0:
  708. return &v.state
  709. case 1:
  710. return &v.sizeCache
  711. case 2:
  712. return &v.unknownFields
  713. default:
  714. return nil
  715. }
  716. }
  717. file_vpn_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  718. switch v := v.(*VPNStatusResponse); i {
  719. case 0:
  720. return &v.state
  721. case 1:
  722. return &v.sizeCache
  723. case 2:
  724. return &v.unknownFields
  725. default:
  726. return nil
  727. }
  728. }
  729. file_vpn_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  730. switch v := v.(*VPNInitResponse); i {
  731. case 0:
  732. return &v.state
  733. case 1:
  734. return &v.sizeCache
  735. case 2:
  736. return &v.unknownFields
  737. default:
  738. return nil
  739. }
  740. }
  741. file_vpn_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  742. switch v := v.(*VPNUpdateResponse); i {
  743. case 0:
  744. return &v.state
  745. case 1:
  746. return &v.sizeCache
  747. case 2:
  748. return &v.unknownFields
  749. default:
  750. return nil
  751. }
  752. }
  753. file_vpn_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  754. switch v := v.(*VPNRestartResponse); i {
  755. case 0:
  756. return &v.state
  757. case 1:
  758. return &v.sizeCache
  759. case 2:
  760. return &v.unknownFields
  761. default:
  762. return nil
  763. }
  764. }
  765. }
  766. type x struct{}
  767. out := protoimpl.TypeBuilder{
  768. File: protoimpl.DescBuilder{
  769. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  770. RawDescriptor: file_vpn_proto_rawDesc,
  771. NumEnums: 2,
  772. NumMessages: 8,
  773. NumExtensions: 0,
  774. NumServices: 1,
  775. },
  776. GoTypes: file_vpn_proto_goTypes,
  777. DependencyIndexes: file_vpn_proto_depIdxs,
  778. EnumInfos: file_vpn_proto_enumTypes,
  779. MessageInfos: file_vpn_proto_msgTypes,
  780. }.Build()
  781. File_vpn_proto = out.File
  782. file_vpn_proto_rawDesc = nil
  783. file_vpn_proto_goTypes = nil
  784. file_vpn_proto_depIdxs = nil
  785. }