1
0

user.pb.go 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093
  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: user.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 UserUpdateRequest_GWPref int32
  21. const (
  22. UserUpdateRequest_NOPREF UserUpdateRequest_GWPref = 0
  23. UserUpdateRequest_NOGW UserUpdateRequest_GWPref = 1
  24. UserUpdateRequest_GW UserUpdateRequest_GWPref = 2
  25. )
  26. // Enum value maps for UserUpdateRequest_GWPref.
  27. var (
  28. UserUpdateRequest_GWPref_name = map[int32]string{
  29. 0: "NOPREF",
  30. 1: "NOGW",
  31. 2: "GW",
  32. }
  33. UserUpdateRequest_GWPref_value = map[string]int32{
  34. "NOPREF": 0,
  35. "NOGW": 1,
  36. "GW": 2,
  37. }
  38. )
  39. func (x UserUpdateRequest_GWPref) Enum() *UserUpdateRequest_GWPref {
  40. p := new(UserUpdateRequest_GWPref)
  41. *p = x
  42. return p
  43. }
  44. func (x UserUpdateRequest_GWPref) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (UserUpdateRequest_GWPref) Descriptor() protoreflect.EnumDescriptor {
  48. return file_user_proto_enumTypes[0].Descriptor()
  49. }
  50. func (UserUpdateRequest_GWPref) Type() protoreflect.EnumType {
  51. return &file_user_proto_enumTypes[0]
  52. }
  53. func (x UserUpdateRequest_GWPref) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Use UserUpdateRequest_GWPref.Descriptor instead.
  57. func (UserUpdateRequest_GWPref) EnumDescriptor() ([]byte, []int) {
  58. return file_user_proto_rawDescGZIP(), []int{2, 0}
  59. }
  60. type UserUpdateRequest_StaticPref int32
  61. const (
  62. UserUpdateRequest_NOPREFSTATIC UserUpdateRequest_StaticPref = 0
  63. UserUpdateRequest_NOSTATIC UserUpdateRequest_StaticPref = 1
  64. UserUpdateRequest_STATIC UserUpdateRequest_StaticPref = 2
  65. )
  66. // Enum value maps for UserUpdateRequest_StaticPref.
  67. var (
  68. UserUpdateRequest_StaticPref_name = map[int32]string{
  69. 0: "NOPREFSTATIC",
  70. 1: "NOSTATIC",
  71. 2: "STATIC",
  72. }
  73. UserUpdateRequest_StaticPref_value = map[string]int32{
  74. "NOPREFSTATIC": 0,
  75. "NOSTATIC": 1,
  76. "STATIC": 2,
  77. }
  78. )
  79. func (x UserUpdateRequest_StaticPref) Enum() *UserUpdateRequest_StaticPref {
  80. p := new(UserUpdateRequest_StaticPref)
  81. *p = x
  82. return p
  83. }
  84. func (x UserUpdateRequest_StaticPref) String() string {
  85. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  86. }
  87. func (UserUpdateRequest_StaticPref) Descriptor() protoreflect.EnumDescriptor {
  88. return file_user_proto_enumTypes[1].Descriptor()
  89. }
  90. func (UserUpdateRequest_StaticPref) Type() protoreflect.EnumType {
  91. return &file_user_proto_enumTypes[1]
  92. }
  93. func (x UserUpdateRequest_StaticPref) Number() protoreflect.EnumNumber {
  94. return protoreflect.EnumNumber(x)
  95. }
  96. // Deprecated: Use UserUpdateRequest_StaticPref.Descriptor instead.
  97. func (UserUpdateRequest_StaticPref) EnumDescriptor() ([]byte, []int) {
  98. return file_user_proto_rawDescGZIP(), []int{2, 1}
  99. }
  100. type UserUpdateRequest_AdminPref int32
  101. const (
  102. UserUpdateRequest_NOPREFADMIN UserUpdateRequest_AdminPref = 0
  103. UserUpdateRequest_NOADMIN UserUpdateRequest_AdminPref = 1
  104. UserUpdateRequest_ADMIN UserUpdateRequest_AdminPref = 2
  105. )
  106. // Enum value maps for UserUpdateRequest_AdminPref.
  107. var (
  108. UserUpdateRequest_AdminPref_name = map[int32]string{
  109. 0: "NOPREFADMIN",
  110. 1: "NOADMIN",
  111. 2: "ADMIN",
  112. }
  113. UserUpdateRequest_AdminPref_value = map[string]int32{
  114. "NOPREFADMIN": 0,
  115. "NOADMIN": 1,
  116. "ADMIN": 2,
  117. }
  118. )
  119. func (x UserUpdateRequest_AdminPref) Enum() *UserUpdateRequest_AdminPref {
  120. p := new(UserUpdateRequest_AdminPref)
  121. *p = x
  122. return p
  123. }
  124. func (x UserUpdateRequest_AdminPref) String() string {
  125. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  126. }
  127. func (UserUpdateRequest_AdminPref) Descriptor() protoreflect.EnumDescriptor {
  128. return file_user_proto_enumTypes[2].Descriptor()
  129. }
  130. func (UserUpdateRequest_AdminPref) Type() protoreflect.EnumType {
  131. return &file_user_proto_enumTypes[2]
  132. }
  133. func (x UserUpdateRequest_AdminPref) Number() protoreflect.EnumNumber {
  134. return protoreflect.EnumNumber(x)
  135. }
  136. // Deprecated: Use UserUpdateRequest_AdminPref.Descriptor instead.
  137. func (UserUpdateRequest_AdminPref) EnumDescriptor() ([]byte, []int) {
  138. return file_user_proto_rawDescGZIP(), []int{2, 2}
  139. }
  140. type UserListRequest struct {
  141. state protoimpl.MessageState
  142. sizeCache protoimpl.SizeCache
  143. unknownFields protoimpl.UnknownFields
  144. }
  145. func (x *UserListRequest) Reset() {
  146. *x = UserListRequest{}
  147. if protoimpl.UnsafeEnabled {
  148. mi := &file_user_proto_msgTypes[0]
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. ms.StoreMessageInfo(mi)
  151. }
  152. }
  153. func (x *UserListRequest) String() string {
  154. return protoimpl.X.MessageStringOf(x)
  155. }
  156. func (*UserListRequest) ProtoMessage() {}
  157. func (x *UserListRequest) ProtoReflect() protoreflect.Message {
  158. mi := &file_user_proto_msgTypes[0]
  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 UserListRequest.ProtoReflect.Descriptor instead.
  169. func (*UserListRequest) Descriptor() ([]byte, []int) {
  170. return file_user_proto_rawDescGZIP(), []int{0}
  171. }
  172. type UserCreateRequest struct {
  173. state protoimpl.MessageState
  174. sizeCache protoimpl.SizeCache
  175. unknownFields protoimpl.UnknownFields
  176. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  177. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  178. NoGw bool `protobuf:"varint,3,opt,name=no_gw,json=noGw,proto3" json:"no_gw,omitempty"`
  179. HostId uint32 `protobuf:"varint,4,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
  180. IsAdmin bool `protobuf:"varint,5,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
  181. Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
  182. }
  183. func (x *UserCreateRequest) Reset() {
  184. *x = UserCreateRequest{}
  185. if protoimpl.UnsafeEnabled {
  186. mi := &file_user_proto_msgTypes[1]
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. ms.StoreMessageInfo(mi)
  189. }
  190. }
  191. func (x *UserCreateRequest) String() string {
  192. return protoimpl.X.MessageStringOf(x)
  193. }
  194. func (*UserCreateRequest) ProtoMessage() {}
  195. func (x *UserCreateRequest) ProtoReflect() protoreflect.Message {
  196. mi := &file_user_proto_msgTypes[1]
  197. if protoimpl.UnsafeEnabled && x != nil {
  198. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  199. if ms.LoadMessageInfo() == nil {
  200. ms.StoreMessageInfo(mi)
  201. }
  202. return ms
  203. }
  204. return mi.MessageOf(x)
  205. }
  206. // Deprecated: Use UserCreateRequest.ProtoReflect.Descriptor instead.
  207. func (*UserCreateRequest) Descriptor() ([]byte, []int) {
  208. return file_user_proto_rawDescGZIP(), []int{1}
  209. }
  210. func (x *UserCreateRequest) GetUsername() string {
  211. if x != nil {
  212. return x.Username
  213. }
  214. return ""
  215. }
  216. func (x *UserCreateRequest) GetPassword() string {
  217. if x != nil {
  218. return x.Password
  219. }
  220. return ""
  221. }
  222. func (x *UserCreateRequest) GetNoGw() bool {
  223. if x != nil {
  224. return x.NoGw
  225. }
  226. return false
  227. }
  228. func (x *UserCreateRequest) GetHostId() uint32 {
  229. if x != nil {
  230. return x.HostId
  231. }
  232. return 0
  233. }
  234. func (x *UserCreateRequest) GetIsAdmin() bool {
  235. if x != nil {
  236. return x.IsAdmin
  237. }
  238. return false
  239. }
  240. func (x *UserCreateRequest) GetDescription() string {
  241. if x != nil {
  242. return x.Description
  243. }
  244. return ""
  245. }
  246. type UserUpdateRequest struct {
  247. state protoimpl.MessageState
  248. sizeCache protoimpl.SizeCache
  249. unknownFields protoimpl.UnknownFields
  250. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  251. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  252. Gwpref UserUpdateRequest_GWPref `protobuf:"varint,3,opt,name=gwpref,proto3,enum=pb.UserUpdateRequest_GWPref" json:"gwpref,omitempty"`
  253. HostId uint32 `protobuf:"varint,4,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
  254. StaticPref UserUpdateRequest_StaticPref `protobuf:"varint,5,opt,name=static_pref,json=staticPref,proto3,enum=pb.UserUpdateRequest_StaticPref" json:"static_pref,omitempty"`
  255. AdminPref UserUpdateRequest_AdminPref `protobuf:"varint,6,opt,name=admin_pref,json=adminPref,proto3,enum=pb.UserUpdateRequest_AdminPref" json:"admin_pref,omitempty"`
  256. Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
  257. }
  258. func (x *UserUpdateRequest) Reset() {
  259. *x = UserUpdateRequest{}
  260. if protoimpl.UnsafeEnabled {
  261. mi := &file_user_proto_msgTypes[2]
  262. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  263. ms.StoreMessageInfo(mi)
  264. }
  265. }
  266. func (x *UserUpdateRequest) String() string {
  267. return protoimpl.X.MessageStringOf(x)
  268. }
  269. func (*UserUpdateRequest) ProtoMessage() {}
  270. func (x *UserUpdateRequest) ProtoReflect() protoreflect.Message {
  271. mi := &file_user_proto_msgTypes[2]
  272. if protoimpl.UnsafeEnabled && x != nil {
  273. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  274. if ms.LoadMessageInfo() == nil {
  275. ms.StoreMessageInfo(mi)
  276. }
  277. return ms
  278. }
  279. return mi.MessageOf(x)
  280. }
  281. // Deprecated: Use UserUpdateRequest.ProtoReflect.Descriptor instead.
  282. func (*UserUpdateRequest) Descriptor() ([]byte, []int) {
  283. return file_user_proto_rawDescGZIP(), []int{2}
  284. }
  285. func (x *UserUpdateRequest) GetUsername() string {
  286. if x != nil {
  287. return x.Username
  288. }
  289. return ""
  290. }
  291. func (x *UserUpdateRequest) GetPassword() string {
  292. if x != nil {
  293. return x.Password
  294. }
  295. return ""
  296. }
  297. func (x *UserUpdateRequest) GetGwpref() UserUpdateRequest_GWPref {
  298. if x != nil {
  299. return x.Gwpref
  300. }
  301. return UserUpdateRequest_NOPREF
  302. }
  303. func (x *UserUpdateRequest) GetHostId() uint32 {
  304. if x != nil {
  305. return x.HostId
  306. }
  307. return 0
  308. }
  309. func (x *UserUpdateRequest) GetStaticPref() UserUpdateRequest_StaticPref {
  310. if x != nil {
  311. return x.StaticPref
  312. }
  313. return UserUpdateRequest_NOPREFSTATIC
  314. }
  315. func (x *UserUpdateRequest) GetAdminPref() UserUpdateRequest_AdminPref {
  316. if x != nil {
  317. return x.AdminPref
  318. }
  319. return UserUpdateRequest_NOPREFADMIN
  320. }
  321. func (x *UserUpdateRequest) GetDescription() string {
  322. if x != nil {
  323. return x.Description
  324. }
  325. return ""
  326. }
  327. type UserDeleteRequest struct {
  328. state protoimpl.MessageState
  329. sizeCache protoimpl.SizeCache
  330. unknownFields protoimpl.UnknownFields
  331. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  332. }
  333. func (x *UserDeleteRequest) Reset() {
  334. *x = UserDeleteRequest{}
  335. if protoimpl.UnsafeEnabled {
  336. mi := &file_user_proto_msgTypes[3]
  337. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  338. ms.StoreMessageInfo(mi)
  339. }
  340. }
  341. func (x *UserDeleteRequest) String() string {
  342. return protoimpl.X.MessageStringOf(x)
  343. }
  344. func (*UserDeleteRequest) ProtoMessage() {}
  345. func (x *UserDeleteRequest) ProtoReflect() protoreflect.Message {
  346. mi := &file_user_proto_msgTypes[3]
  347. if protoimpl.UnsafeEnabled && x != nil {
  348. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  349. if ms.LoadMessageInfo() == nil {
  350. ms.StoreMessageInfo(mi)
  351. }
  352. return ms
  353. }
  354. return mi.MessageOf(x)
  355. }
  356. // Deprecated: Use UserDeleteRequest.ProtoReflect.Descriptor instead.
  357. func (*UserDeleteRequest) Descriptor() ([]byte, []int) {
  358. return file_user_proto_rawDescGZIP(), []int{3}
  359. }
  360. func (x *UserDeleteRequest) GetUsername() string {
  361. if x != nil {
  362. return x.Username
  363. }
  364. return ""
  365. }
  366. type UserRenewRequest struct {
  367. state protoimpl.MessageState
  368. sizeCache protoimpl.SizeCache
  369. unknownFields protoimpl.UnknownFields
  370. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  371. }
  372. func (x *UserRenewRequest) Reset() {
  373. *x = UserRenewRequest{}
  374. if protoimpl.UnsafeEnabled {
  375. mi := &file_user_proto_msgTypes[4]
  376. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  377. ms.StoreMessageInfo(mi)
  378. }
  379. }
  380. func (x *UserRenewRequest) String() string {
  381. return protoimpl.X.MessageStringOf(x)
  382. }
  383. func (*UserRenewRequest) ProtoMessage() {}
  384. func (x *UserRenewRequest) ProtoReflect() protoreflect.Message {
  385. mi := &file_user_proto_msgTypes[4]
  386. if protoimpl.UnsafeEnabled && x != nil {
  387. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  388. if ms.LoadMessageInfo() == nil {
  389. ms.StoreMessageInfo(mi)
  390. }
  391. return ms
  392. }
  393. return mi.MessageOf(x)
  394. }
  395. // Deprecated: Use UserRenewRequest.ProtoReflect.Descriptor instead.
  396. func (*UserRenewRequest) Descriptor() ([]byte, []int) {
  397. return file_user_proto_rawDescGZIP(), []int{4}
  398. }
  399. func (x *UserRenewRequest) GetUsername() string {
  400. if x != nil {
  401. return x.Username
  402. }
  403. return ""
  404. }
  405. type UserGenConfigRequest struct {
  406. state protoimpl.MessageState
  407. sizeCache protoimpl.SizeCache
  408. unknownFields protoimpl.UnknownFields
  409. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  410. }
  411. func (x *UserGenConfigRequest) Reset() {
  412. *x = UserGenConfigRequest{}
  413. if protoimpl.UnsafeEnabled {
  414. mi := &file_user_proto_msgTypes[5]
  415. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  416. ms.StoreMessageInfo(mi)
  417. }
  418. }
  419. func (x *UserGenConfigRequest) String() string {
  420. return protoimpl.X.MessageStringOf(x)
  421. }
  422. func (*UserGenConfigRequest) ProtoMessage() {}
  423. func (x *UserGenConfigRequest) ProtoReflect() protoreflect.Message {
  424. mi := &file_user_proto_msgTypes[5]
  425. if protoimpl.UnsafeEnabled && x != nil {
  426. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  427. if ms.LoadMessageInfo() == nil {
  428. ms.StoreMessageInfo(mi)
  429. }
  430. return ms
  431. }
  432. return mi.MessageOf(x)
  433. }
  434. // Deprecated: Use UserGenConfigRequest.ProtoReflect.Descriptor instead.
  435. func (*UserGenConfigRequest) Descriptor() ([]byte, []int) {
  436. return file_user_proto_rawDescGZIP(), []int{5}
  437. }
  438. func (x *UserGenConfigRequest) GetUsername() string {
  439. if x != nil {
  440. return x.Username
  441. }
  442. return ""
  443. }
  444. type UserResponse struct {
  445. state protoimpl.MessageState
  446. sizeCache protoimpl.SizeCache
  447. unknownFields protoimpl.UnknownFields
  448. Users []*UserResponse_User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  449. }
  450. func (x *UserResponse) Reset() {
  451. *x = UserResponse{}
  452. if protoimpl.UnsafeEnabled {
  453. mi := &file_user_proto_msgTypes[6]
  454. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  455. ms.StoreMessageInfo(mi)
  456. }
  457. }
  458. func (x *UserResponse) String() string {
  459. return protoimpl.X.MessageStringOf(x)
  460. }
  461. func (*UserResponse) ProtoMessage() {}
  462. func (x *UserResponse) ProtoReflect() protoreflect.Message {
  463. mi := &file_user_proto_msgTypes[6]
  464. if protoimpl.UnsafeEnabled && x != nil {
  465. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  466. if ms.LoadMessageInfo() == nil {
  467. ms.StoreMessageInfo(mi)
  468. }
  469. return ms
  470. }
  471. return mi.MessageOf(x)
  472. }
  473. // Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
  474. func (*UserResponse) Descriptor() ([]byte, []int) {
  475. return file_user_proto_rawDescGZIP(), []int{6}
  476. }
  477. func (x *UserResponse) GetUsers() []*UserResponse_User {
  478. if x != nil {
  479. return x.Users
  480. }
  481. return nil
  482. }
  483. type UserGenConfigResponse struct {
  484. state protoimpl.MessageState
  485. sizeCache protoimpl.SizeCache
  486. unknownFields protoimpl.UnknownFields
  487. ClientConfig string `protobuf:"bytes,1,opt,name=client_config,json=clientConfig,proto3" json:"client_config,omitempty"`
  488. }
  489. func (x *UserGenConfigResponse) Reset() {
  490. *x = UserGenConfigResponse{}
  491. if protoimpl.UnsafeEnabled {
  492. mi := &file_user_proto_msgTypes[7]
  493. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  494. ms.StoreMessageInfo(mi)
  495. }
  496. }
  497. func (x *UserGenConfigResponse) String() string {
  498. return protoimpl.X.MessageStringOf(x)
  499. }
  500. func (*UserGenConfigResponse) ProtoMessage() {}
  501. func (x *UserGenConfigResponse) ProtoReflect() protoreflect.Message {
  502. mi := &file_user_proto_msgTypes[7]
  503. if protoimpl.UnsafeEnabled && x != nil {
  504. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  505. if ms.LoadMessageInfo() == nil {
  506. ms.StoreMessageInfo(mi)
  507. }
  508. return ms
  509. }
  510. return mi.MessageOf(x)
  511. }
  512. // Deprecated: Use UserGenConfigResponse.ProtoReflect.Descriptor instead.
  513. func (*UserGenConfigResponse) Descriptor() ([]byte, []int) {
  514. return file_user_proto_rawDescGZIP(), []int{7}
  515. }
  516. func (x *UserGenConfigResponse) GetClientConfig() string {
  517. if x != nil {
  518. return x.ClientConfig
  519. }
  520. return ""
  521. }
  522. type UserResponse_User struct {
  523. state protoimpl.MessageState
  524. sizeCache protoimpl.SizeCache
  525. unknownFields protoimpl.UnknownFields
  526. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  527. ServerSerialNumber string `protobuf:"bytes,2,opt,name=server_serial_number,json=serverSerialNumber,proto3" json:"server_serial_number,omitempty"`
  528. Cert string `protobuf:"bytes,3,opt,name=cert,proto3" json:"cert,omitempty"`
  529. CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  530. IpNet string `protobuf:"bytes,5,opt,name=ip_net,json=ipNet,proto3" json:"ip_net,omitempty"`
  531. NoGw bool `protobuf:"varint,6,opt,name=no_gw,json=noGw,proto3" json:"no_gw,omitempty"`
  532. HostId uint32 `protobuf:"varint,7,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
  533. IsAdmin bool `protobuf:"varint,8,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
  534. IsConnected bool `protobuf:"varint,9,opt,name=is_connected,json=isConnected,proto3" json:"is_connected,omitempty"`
  535. ConnectedSince string `protobuf:"bytes,10,opt,name=connected_since,json=connectedSince,proto3" json:"connected_since,omitempty"`
  536. BytesSent uint64 `protobuf:"varint,11,opt,name=bytes_sent,json=bytesSent,proto3" json:"bytes_sent,omitempty"`
  537. BytesReceived uint64 `protobuf:"varint,12,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"`
  538. ExpiresAt string `protobuf:"bytes,13,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
  539. Description string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
  540. }
  541. func (x *UserResponse_User) Reset() {
  542. *x = UserResponse_User{}
  543. if protoimpl.UnsafeEnabled {
  544. mi := &file_user_proto_msgTypes[8]
  545. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  546. ms.StoreMessageInfo(mi)
  547. }
  548. }
  549. func (x *UserResponse_User) String() string {
  550. return protoimpl.X.MessageStringOf(x)
  551. }
  552. func (*UserResponse_User) ProtoMessage() {}
  553. func (x *UserResponse_User) ProtoReflect() protoreflect.Message {
  554. mi := &file_user_proto_msgTypes[8]
  555. if protoimpl.UnsafeEnabled && x != nil {
  556. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  557. if ms.LoadMessageInfo() == nil {
  558. ms.StoreMessageInfo(mi)
  559. }
  560. return ms
  561. }
  562. return mi.MessageOf(x)
  563. }
  564. // Deprecated: Use UserResponse_User.ProtoReflect.Descriptor instead.
  565. func (*UserResponse_User) Descriptor() ([]byte, []int) {
  566. return file_user_proto_rawDescGZIP(), []int{6, 0}
  567. }
  568. func (x *UserResponse_User) GetUsername() string {
  569. if x != nil {
  570. return x.Username
  571. }
  572. return ""
  573. }
  574. func (x *UserResponse_User) GetServerSerialNumber() string {
  575. if x != nil {
  576. return x.ServerSerialNumber
  577. }
  578. return ""
  579. }
  580. func (x *UserResponse_User) GetCert() string {
  581. if x != nil {
  582. return x.Cert
  583. }
  584. return ""
  585. }
  586. func (x *UserResponse_User) GetCreatedAt() string {
  587. if x != nil {
  588. return x.CreatedAt
  589. }
  590. return ""
  591. }
  592. func (x *UserResponse_User) GetIpNet() string {
  593. if x != nil {
  594. return x.IpNet
  595. }
  596. return ""
  597. }
  598. func (x *UserResponse_User) GetNoGw() bool {
  599. if x != nil {
  600. return x.NoGw
  601. }
  602. return false
  603. }
  604. func (x *UserResponse_User) GetHostId() uint32 {
  605. if x != nil {
  606. return x.HostId
  607. }
  608. return 0
  609. }
  610. func (x *UserResponse_User) GetIsAdmin() bool {
  611. if x != nil {
  612. return x.IsAdmin
  613. }
  614. return false
  615. }
  616. func (x *UserResponse_User) GetIsConnected() bool {
  617. if x != nil {
  618. return x.IsConnected
  619. }
  620. return false
  621. }
  622. func (x *UserResponse_User) GetConnectedSince() string {
  623. if x != nil {
  624. return x.ConnectedSince
  625. }
  626. return ""
  627. }
  628. func (x *UserResponse_User) GetBytesSent() uint64 {
  629. if x != nil {
  630. return x.BytesSent
  631. }
  632. return 0
  633. }
  634. func (x *UserResponse_User) GetBytesReceived() uint64 {
  635. if x != nil {
  636. return x.BytesReceived
  637. }
  638. return 0
  639. }
  640. func (x *UserResponse_User) GetExpiresAt() string {
  641. if x != nil {
  642. return x.ExpiresAt
  643. }
  644. return ""
  645. }
  646. func (x *UserResponse_User) GetDescription() string {
  647. if x != nil {
  648. return x.Description
  649. }
  650. return ""
  651. }
  652. var File_user_proto protoreflect.FileDescriptor
  653. var file_user_proto_rawDesc = []byte{
  654. 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
  655. 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
  656. 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x11,
  657. 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  658. 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
  659. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
  660. 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
  661. 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
  662. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
  663. 0x13, 0x0a, 0x05, 0x6e, 0x6f, 0x5f, 0x67, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04,
  664. 0x6e, 0x6f, 0x47, 0x77, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18,
  665. 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a,
  666. 0x08, 0x69, 0x73, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,
  667. 0x07, 0x69, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
  668. 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
  669. 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd7, 0x03, 0x0a, 0x11, 0x55,
  670. 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  671. 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
  672. 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08,
  673. 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  674. 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x67, 0x77, 0x70, 0x72,
  675. 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73,
  676. 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e,
  677. 0x47, 0x57, 0x50, 0x72, 0x65, 0x66, 0x52, 0x06, 0x67, 0x77, 0x70, 0x72, 0x65, 0x66, 0x12, 0x17,
  678. 0x0a, 0x07, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52,
  679. 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69,
  680. 0x63, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x70,
  681. 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
  682. 0x65, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x50, 0x72, 0x65, 0x66, 0x52, 0x0a,
  683. 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x50, 0x72, 0x65, 0x66, 0x12, 0x3e, 0x0a, 0x0a, 0x61, 0x64,
  684. 0x6d, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f,
  685. 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65,
  686. 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x52,
  687. 0x09, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
  688. 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
  689. 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x26, 0x0a, 0x06,
  690. 0x47, 0x57, 0x50, 0x72, 0x65, 0x66, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x50, 0x52, 0x45, 0x46,
  691. 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x47, 0x57, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02,
  692. 0x47, 0x57, 0x10, 0x02, 0x22, 0x38, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x50, 0x72,
  693. 0x65, 0x66, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x50, 0x52, 0x45, 0x46, 0x53, 0x54, 0x41, 0x54,
  694. 0x49, 0x43, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43,
  695. 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x10, 0x02, 0x22, 0x34,
  696. 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x12, 0x0f, 0x0a, 0x0b, 0x4e,
  697. 0x4f, 0x50, 0x52, 0x45, 0x46, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,
  698. 0x4e, 0x4f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d,
  699. 0x49, 0x4e, 0x10, 0x02, 0x22, 0x2f, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65,
  700. 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65,
  701. 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65,
  702. 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6e,
  703. 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65,
  704. 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65,
  705. 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x6e,
  706. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a,
  707. 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  708. 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xf8, 0x03, 0x0a, 0x0c, 0x55, 0x73,
  709. 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x75, 0x73,
  710. 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x55,
  711. 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72,
  712. 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0xba, 0x03, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72,
  713. 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
  714. 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14,
  715. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x5f, 0x6e, 0x75,
  716. 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76,
  717. 0x65, 0x72, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12,
  718. 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65,
  719. 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
  720. 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
  721. 0x74, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x70, 0x5f, 0x6e, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
  722. 0x09, 0x52, 0x05, 0x69, 0x70, 0x4e, 0x65, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x6e, 0x6f, 0x5f, 0x67,
  723. 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6e, 0x6f, 0x47, 0x77, 0x12, 0x17, 0x0a,
  724. 0x07, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06,
  725. 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x64, 0x6d,
  726. 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x64, 0x6d, 0x69,
  727. 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65,
  728. 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x65,
  729. 0x63, 0x74, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65,
  730. 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63,
  731. 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a,
  732. 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28,
  733. 0x04, 0x52, 0x09, 0x62, 0x79, 0x74, 0x65, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e,
  734. 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x0c,
  735. 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69,
  736. 0x76, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61,
  737. 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73,
  738. 0x41, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
  739. 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
  740. 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3c, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x6e, 0x43,
  741. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a,
  742. 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,
  743. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66,
  744. 0x69, 0x67, 0x32, 0x85, 0x04, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69,
  745. 0x63, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x2e,
  746. 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  747. 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  748. 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f,
  749. 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x06,
  750. 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72,
  751. 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e,
  752. 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  753. 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
  754. 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12,
  755. 0x51, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x55,
  756. 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  757. 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  758. 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69,
  759. 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a,
  760. 0x01, 0x2a, 0x12, 0x51, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x70,
  761. 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
  762. 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73,
  763. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f,
  764. 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x64, 0x65, 0x6c, 0x65,
  765. 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x4e, 0x0a, 0x05, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x12, 0x14,
  766. 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x71,
  767. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
  768. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12,
  769. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x6e,
  770. 0x65, 0x77, 0x3a, 0x01, 0x2a, 0x12, 0x63, 0x0a, 0x09, 0x47, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x66,
  771. 0x69, 0x67, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x6e, 0x43,
  772. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70,
  773. 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
  774. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x22,
  775. 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x67, 0x65,
  776. 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x01, 0x2a, 0x42, 0x1c, 0x5a, 0x1a, 0x67, 0x69,
  777. 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x64, 0x2f, 0x6f, 0x76, 0x70,
  778. 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  779. }
  780. var (
  781. file_user_proto_rawDescOnce sync.Once
  782. file_user_proto_rawDescData = file_user_proto_rawDesc
  783. )
  784. func file_user_proto_rawDescGZIP() []byte {
  785. file_user_proto_rawDescOnce.Do(func() {
  786. file_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_proto_rawDescData)
  787. })
  788. return file_user_proto_rawDescData
  789. }
  790. var file_user_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  791. var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  792. var file_user_proto_goTypes = []interface{}{
  793. (UserUpdateRequest_GWPref)(0), // 0: pb.UserUpdateRequest.GWPref
  794. (UserUpdateRequest_StaticPref)(0), // 1: pb.UserUpdateRequest.StaticPref
  795. (UserUpdateRequest_AdminPref)(0), // 2: pb.UserUpdateRequest.AdminPref
  796. (*UserListRequest)(nil), // 3: pb.UserListRequest
  797. (*UserCreateRequest)(nil), // 4: pb.UserCreateRequest
  798. (*UserUpdateRequest)(nil), // 5: pb.UserUpdateRequest
  799. (*UserDeleteRequest)(nil), // 6: pb.UserDeleteRequest
  800. (*UserRenewRequest)(nil), // 7: pb.UserRenewRequest
  801. (*UserGenConfigRequest)(nil), // 8: pb.UserGenConfigRequest
  802. (*UserResponse)(nil), // 9: pb.UserResponse
  803. (*UserGenConfigResponse)(nil), // 10: pb.UserGenConfigResponse
  804. (*UserResponse_User)(nil), // 11: pb.UserResponse.User
  805. }
  806. var file_user_proto_depIdxs = []int32{
  807. 0, // 0: pb.UserUpdateRequest.gwpref:type_name -> pb.UserUpdateRequest.GWPref
  808. 1, // 1: pb.UserUpdateRequest.static_pref:type_name -> pb.UserUpdateRequest.StaticPref
  809. 2, // 2: pb.UserUpdateRequest.admin_pref:type_name -> pb.UserUpdateRequest.AdminPref
  810. 11, // 3: pb.UserResponse.users:type_name -> pb.UserResponse.User
  811. 3, // 4: pb.UserService.List:input_type -> pb.UserListRequest
  812. 4, // 5: pb.UserService.Create:input_type -> pb.UserCreateRequest
  813. 5, // 6: pb.UserService.Update:input_type -> pb.UserUpdateRequest
  814. 6, // 7: pb.UserService.Delete:input_type -> pb.UserDeleteRequest
  815. 7, // 8: pb.UserService.Renew:input_type -> pb.UserRenewRequest
  816. 8, // 9: pb.UserService.GenConfig:input_type -> pb.UserGenConfigRequest
  817. 9, // 10: pb.UserService.List:output_type -> pb.UserResponse
  818. 9, // 11: pb.UserService.Create:output_type -> pb.UserResponse
  819. 9, // 12: pb.UserService.Update:output_type -> pb.UserResponse
  820. 9, // 13: pb.UserService.Delete:output_type -> pb.UserResponse
  821. 9, // 14: pb.UserService.Renew:output_type -> pb.UserResponse
  822. 10, // 15: pb.UserService.GenConfig:output_type -> pb.UserGenConfigResponse
  823. 10, // [10:16] is the sub-list for method output_type
  824. 4, // [4:10] is the sub-list for method input_type
  825. 4, // [4:4] is the sub-list for extension type_name
  826. 4, // [4:4] is the sub-list for extension extendee
  827. 0, // [0:4] is the sub-list for field type_name
  828. }
  829. func init() { file_user_proto_init() }
  830. func file_user_proto_init() {
  831. if File_user_proto != nil {
  832. return
  833. }
  834. if !protoimpl.UnsafeEnabled {
  835. file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  836. switch v := v.(*UserListRequest); i {
  837. case 0:
  838. return &v.state
  839. case 1:
  840. return &v.sizeCache
  841. case 2:
  842. return &v.unknownFields
  843. default:
  844. return nil
  845. }
  846. }
  847. file_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  848. switch v := v.(*UserCreateRequest); i {
  849. case 0:
  850. return &v.state
  851. case 1:
  852. return &v.sizeCache
  853. case 2:
  854. return &v.unknownFields
  855. default:
  856. return nil
  857. }
  858. }
  859. file_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  860. switch v := v.(*UserUpdateRequest); i {
  861. case 0:
  862. return &v.state
  863. case 1:
  864. return &v.sizeCache
  865. case 2:
  866. return &v.unknownFields
  867. default:
  868. return nil
  869. }
  870. }
  871. file_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  872. switch v := v.(*UserDeleteRequest); i {
  873. case 0:
  874. return &v.state
  875. case 1:
  876. return &v.sizeCache
  877. case 2:
  878. return &v.unknownFields
  879. default:
  880. return nil
  881. }
  882. }
  883. file_user_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  884. switch v := v.(*UserRenewRequest); i {
  885. case 0:
  886. return &v.state
  887. case 1:
  888. return &v.sizeCache
  889. case 2:
  890. return &v.unknownFields
  891. default:
  892. return nil
  893. }
  894. }
  895. file_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  896. switch v := v.(*UserGenConfigRequest); i {
  897. case 0:
  898. return &v.state
  899. case 1:
  900. return &v.sizeCache
  901. case 2:
  902. return &v.unknownFields
  903. default:
  904. return nil
  905. }
  906. }
  907. file_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  908. switch v := v.(*UserResponse); i {
  909. case 0:
  910. return &v.state
  911. case 1:
  912. return &v.sizeCache
  913. case 2:
  914. return &v.unknownFields
  915. default:
  916. return nil
  917. }
  918. }
  919. file_user_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  920. switch v := v.(*UserGenConfigResponse); i {
  921. case 0:
  922. return &v.state
  923. case 1:
  924. return &v.sizeCache
  925. case 2:
  926. return &v.unknownFields
  927. default:
  928. return nil
  929. }
  930. }
  931. file_user_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  932. switch v := v.(*UserResponse_User); i {
  933. case 0:
  934. return &v.state
  935. case 1:
  936. return &v.sizeCache
  937. case 2:
  938. return &v.unknownFields
  939. default:
  940. return nil
  941. }
  942. }
  943. }
  944. type x struct{}
  945. out := protoimpl.TypeBuilder{
  946. File: protoimpl.DescBuilder{
  947. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  948. RawDescriptor: file_user_proto_rawDesc,
  949. NumEnums: 3,
  950. NumMessages: 9,
  951. NumExtensions: 0,
  952. NumServices: 1,
  953. },
  954. GoTypes: file_user_proto_goTypes,
  955. DependencyIndexes: file_user_proto_depIdxs,
  956. EnumInfos: file_user_proto_enumTypes,
  957. MessageInfos: file_user_proto_msgTypes,
  958. }.Build()
  959. File_user_proto = out.File
  960. file_user_proto_rawDesc = nil
  961. file_user_proto_goTypes = nil
  962. file_user_proto_depIdxs = nil
  963. }