You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1338 lines
42 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.29.1
  4. // protoc v3.15.6
  5. // source: proto/users.proto
  6. package proto
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type UserForm struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
  24. Password *string `protobuf:"bytes,2,opt,name=password,proto3,oneof" json:"password,omitempty"`
  25. PasswordAgain *string `protobuf:"bytes,3,opt,name=password_again,json=passwordAgain,proto3,oneof" json:"password_again,omitempty"`
  26. }
  27. func (x *UserForm) Reset() {
  28. *x = UserForm{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_proto_users_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *UserForm) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*UserForm) ProtoMessage() {}
  39. func (x *UserForm) ProtoReflect() protoreflect.Message {
  40. mi := &file_proto_users_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use UserForm.ProtoReflect.Descriptor instead.
  51. func (*UserForm) Descriptor() ([]byte, []int) {
  52. return file_proto_users_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *UserForm) GetEmail() string {
  55. if x != nil {
  56. return x.Email
  57. }
  58. return ""
  59. }
  60. func (x *UserForm) GetPassword() string {
  61. if x != nil && x.Password != nil {
  62. return *x.Password
  63. }
  64. return ""
  65. }
  66. func (x *UserForm) GetPasswordAgain() string {
  67. if x != nil && x.PasswordAgain != nil {
  68. return *x.PasswordAgain
  69. }
  70. return ""
  71. }
  72. type UserToken struct {
  73. state protoimpl.MessageState
  74. sizeCache protoimpl.SizeCache
  75. unknownFields protoimpl.UnknownFields
  76. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  77. Expires *int64 `protobuf:"varint,2,opt,name=expires,proto3,oneof" json:"expires,omitempty"`
  78. }
  79. func (x *UserToken) Reset() {
  80. *x = UserToken{}
  81. if protoimpl.UnsafeEnabled {
  82. mi := &file_proto_users_proto_msgTypes[1]
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. ms.StoreMessageInfo(mi)
  85. }
  86. }
  87. func (x *UserToken) String() string {
  88. return protoimpl.X.MessageStringOf(x)
  89. }
  90. func (*UserToken) ProtoMessage() {}
  91. func (x *UserToken) ProtoReflect() protoreflect.Message {
  92. mi := &file_proto_users_proto_msgTypes[1]
  93. if protoimpl.UnsafeEnabled && x != nil {
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. if ms.LoadMessageInfo() == nil {
  96. ms.StoreMessageInfo(mi)
  97. }
  98. return ms
  99. }
  100. return mi.MessageOf(x)
  101. }
  102. // Deprecated: Use UserToken.ProtoReflect.Descriptor instead.
  103. func (*UserToken) Descriptor() ([]byte, []int) {
  104. return file_proto_users_proto_rawDescGZIP(), []int{1}
  105. }
  106. func (x *UserToken) GetToken() string {
  107. if x != nil {
  108. return x.Token
  109. }
  110. return ""
  111. }
  112. func (x *UserToken) GetExpires() int64 {
  113. if x != nil && x.Expires != nil {
  114. return *x.Expires
  115. }
  116. return 0
  117. }
  118. type UserInfo struct {
  119. state protoimpl.MessageState
  120. sizeCache protoimpl.SizeCache
  121. unknownFields protoimpl.UnknownFields
  122. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  123. }
  124. func (x *UserInfo) Reset() {
  125. *x = UserInfo{}
  126. if protoimpl.UnsafeEnabled {
  127. mi := &file_proto_users_proto_msgTypes[2]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. }
  132. func (x *UserInfo) String() string {
  133. return protoimpl.X.MessageStringOf(x)
  134. }
  135. func (*UserInfo) ProtoMessage() {}
  136. func (x *UserInfo) ProtoReflect() protoreflect.Message {
  137. mi := &file_proto_users_proto_msgTypes[2]
  138. if protoimpl.UnsafeEnabled && x != nil {
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. if ms.LoadMessageInfo() == nil {
  141. ms.StoreMessageInfo(mi)
  142. }
  143. return ms
  144. }
  145. return mi.MessageOf(x)
  146. }
  147. // Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.
  148. func (*UserInfo) Descriptor() ([]byte, []int) {
  149. return file_proto_users_proto_rawDescGZIP(), []int{2}
  150. }
  151. func (x *UserInfo) GetId() int64 {
  152. if x != nil {
  153. return x.Id
  154. }
  155. return 0
  156. }
  157. type UserRole struct {
  158. state protoimpl.MessageState
  159. sizeCache protoimpl.SizeCache
  160. unknownFields protoimpl.UnknownFields
  161. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  162. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  163. }
  164. func (x *UserRole) Reset() {
  165. *x = UserRole{}
  166. if protoimpl.UnsafeEnabled {
  167. mi := &file_proto_users_proto_msgTypes[3]
  168. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  169. ms.StoreMessageInfo(mi)
  170. }
  171. }
  172. func (x *UserRole) String() string {
  173. return protoimpl.X.MessageStringOf(x)
  174. }
  175. func (*UserRole) ProtoMessage() {}
  176. func (x *UserRole) ProtoReflect() protoreflect.Message {
  177. mi := &file_proto_users_proto_msgTypes[3]
  178. if protoimpl.UnsafeEnabled && x != nil {
  179. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  180. if ms.LoadMessageInfo() == nil {
  181. ms.StoreMessageInfo(mi)
  182. }
  183. return ms
  184. }
  185. return mi.MessageOf(x)
  186. }
  187. // Deprecated: Use UserRole.ProtoReflect.Descriptor instead.
  188. func (*UserRole) Descriptor() ([]byte, []int) {
  189. return file_proto_users_proto_rawDescGZIP(), []int{3}
  190. }
  191. func (x *UserRole) GetId() int64 {
  192. if x != nil {
  193. return x.Id
  194. }
  195. return 0
  196. }
  197. func (x *UserRole) GetName() string {
  198. if x != nil {
  199. return x.Name
  200. }
  201. return ""
  202. }
  203. type RegisterRequest struct {
  204. state protoimpl.MessageState
  205. sizeCache protoimpl.SizeCache
  206. unknownFields protoimpl.UnknownFields
  207. Form *UserForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
  208. }
  209. func (x *RegisterRequest) Reset() {
  210. *x = RegisterRequest{}
  211. if protoimpl.UnsafeEnabled {
  212. mi := &file_proto_users_proto_msgTypes[4]
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. ms.StoreMessageInfo(mi)
  215. }
  216. }
  217. func (x *RegisterRequest) String() string {
  218. return protoimpl.X.MessageStringOf(x)
  219. }
  220. func (*RegisterRequest) ProtoMessage() {}
  221. func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
  222. mi := &file_proto_users_proto_msgTypes[4]
  223. if protoimpl.UnsafeEnabled && x != nil {
  224. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  225. if ms.LoadMessageInfo() == nil {
  226. ms.StoreMessageInfo(mi)
  227. }
  228. return ms
  229. }
  230. return mi.MessageOf(x)
  231. }
  232. // Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
  233. func (*RegisterRequest) Descriptor() ([]byte, []int) {
  234. return file_proto_users_proto_rawDescGZIP(), []int{4}
  235. }
  236. func (x *RegisterRequest) GetForm() *UserForm {
  237. if x != nil {
  238. return x.Form
  239. }
  240. return nil
  241. }
  242. type RegisterResponse struct {
  243. state protoimpl.MessageState
  244. sizeCache protoimpl.SizeCache
  245. unknownFields protoimpl.UnknownFields
  246. }
  247. func (x *RegisterResponse) Reset() {
  248. *x = RegisterResponse{}
  249. if protoimpl.UnsafeEnabled {
  250. mi := &file_proto_users_proto_msgTypes[5]
  251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  252. ms.StoreMessageInfo(mi)
  253. }
  254. }
  255. func (x *RegisterResponse) String() string {
  256. return protoimpl.X.MessageStringOf(x)
  257. }
  258. func (*RegisterResponse) ProtoMessage() {}
  259. func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
  260. mi := &file_proto_users_proto_msgTypes[5]
  261. if protoimpl.UnsafeEnabled && x != nil {
  262. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  263. if ms.LoadMessageInfo() == nil {
  264. ms.StoreMessageInfo(mi)
  265. }
  266. return ms
  267. }
  268. return mi.MessageOf(x)
  269. }
  270. // Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
  271. func (*RegisterResponse) Descriptor() ([]byte, []int) {
  272. return file_proto_users_proto_rawDescGZIP(), []int{5}
  273. }
  274. type LoginRequest struct {
  275. state protoimpl.MessageState
  276. sizeCache protoimpl.SizeCache
  277. unknownFields protoimpl.UnknownFields
  278. Form *UserForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
  279. }
  280. func (x *LoginRequest) Reset() {
  281. *x = LoginRequest{}
  282. if protoimpl.UnsafeEnabled {
  283. mi := &file_proto_users_proto_msgTypes[6]
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. ms.StoreMessageInfo(mi)
  286. }
  287. }
  288. func (x *LoginRequest) String() string {
  289. return protoimpl.X.MessageStringOf(x)
  290. }
  291. func (*LoginRequest) ProtoMessage() {}
  292. func (x *LoginRequest) ProtoReflect() protoreflect.Message {
  293. mi := &file_proto_users_proto_msgTypes[6]
  294. if protoimpl.UnsafeEnabled && x != nil {
  295. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  296. if ms.LoadMessageInfo() == nil {
  297. ms.StoreMessageInfo(mi)
  298. }
  299. return ms
  300. }
  301. return mi.MessageOf(x)
  302. }
  303. // Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
  304. func (*LoginRequest) Descriptor() ([]byte, []int) {
  305. return file_proto_users_proto_rawDescGZIP(), []int{6}
  306. }
  307. func (x *LoginRequest) GetForm() *UserForm {
  308. if x != nil {
  309. return x.Form
  310. }
  311. return nil
  312. }
  313. type LoginResponse struct {
  314. state protoimpl.MessageState
  315. sizeCache protoimpl.SizeCache
  316. unknownFields protoimpl.UnknownFields
  317. Token *UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  318. }
  319. func (x *LoginResponse) Reset() {
  320. *x = LoginResponse{}
  321. if protoimpl.UnsafeEnabled {
  322. mi := &file_proto_users_proto_msgTypes[7]
  323. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  324. ms.StoreMessageInfo(mi)
  325. }
  326. }
  327. func (x *LoginResponse) String() string {
  328. return protoimpl.X.MessageStringOf(x)
  329. }
  330. func (*LoginResponse) ProtoMessage() {}
  331. func (x *LoginResponse) ProtoReflect() protoreflect.Message {
  332. mi := &file_proto_users_proto_msgTypes[7]
  333. if protoimpl.UnsafeEnabled && x != nil {
  334. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  335. if ms.LoadMessageInfo() == nil {
  336. ms.StoreMessageInfo(mi)
  337. }
  338. return ms
  339. }
  340. return mi.MessageOf(x)
  341. }
  342. // Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
  343. func (*LoginResponse) Descriptor() ([]byte, []int) {
  344. return file_proto_users_proto_rawDescGZIP(), []int{7}
  345. }
  346. func (x *LoginResponse) GetToken() *UserToken {
  347. if x != nil {
  348. return x.Token
  349. }
  350. return nil
  351. }
  352. type AuthorizeRequest struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  357. Token *UserToken `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
  358. }
  359. func (x *AuthorizeRequest) Reset() {
  360. *x = AuthorizeRequest{}
  361. if protoimpl.UnsafeEnabled {
  362. mi := &file_proto_users_proto_msgTypes[8]
  363. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  364. ms.StoreMessageInfo(mi)
  365. }
  366. }
  367. func (x *AuthorizeRequest) String() string {
  368. return protoimpl.X.MessageStringOf(x)
  369. }
  370. func (*AuthorizeRequest) ProtoMessage() {}
  371. func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message {
  372. mi := &file_proto_users_proto_msgTypes[8]
  373. if protoimpl.UnsafeEnabled && x != nil {
  374. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  375. if ms.LoadMessageInfo() == nil {
  376. ms.StoreMessageInfo(mi)
  377. }
  378. return ms
  379. }
  380. return mi.MessageOf(x)
  381. }
  382. // Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
  383. func (*AuthorizeRequest) Descriptor() ([]byte, []int) {
  384. return file_proto_users_proto_rawDescGZIP(), []int{8}
  385. }
  386. func (x *AuthorizeRequest) GetSecret() string {
  387. if x != nil {
  388. return x.Secret
  389. }
  390. return ""
  391. }
  392. func (x *AuthorizeRequest) GetToken() *UserToken {
  393. if x != nil {
  394. return x.Token
  395. }
  396. return nil
  397. }
  398. type AuthorizeResponse struct {
  399. state protoimpl.MessageState
  400. sizeCache protoimpl.SizeCache
  401. unknownFields protoimpl.UnknownFields
  402. User *UserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  403. Roles []*UserRole `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
  404. }
  405. func (x *AuthorizeResponse) Reset() {
  406. *x = AuthorizeResponse{}
  407. if protoimpl.UnsafeEnabled {
  408. mi := &file_proto_users_proto_msgTypes[9]
  409. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  410. ms.StoreMessageInfo(mi)
  411. }
  412. }
  413. func (x *AuthorizeResponse) String() string {
  414. return protoimpl.X.MessageStringOf(x)
  415. }
  416. func (*AuthorizeResponse) ProtoMessage() {}
  417. func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message {
  418. mi := &file_proto_users_proto_msgTypes[9]
  419. if protoimpl.UnsafeEnabled && x != nil {
  420. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  421. if ms.LoadMessageInfo() == nil {
  422. ms.StoreMessageInfo(mi)
  423. }
  424. return ms
  425. }
  426. return mi.MessageOf(x)
  427. }
  428. // Deprecated: Use AuthorizeResponse.ProtoReflect.Descriptor instead.
  429. func (*AuthorizeResponse) Descriptor() ([]byte, []int) {
  430. return file_proto_users_proto_rawDescGZIP(), []int{9}
  431. }
  432. func (x *AuthorizeResponse) GetUser() *UserInfo {
  433. if x != nil {
  434. return x.User
  435. }
  436. return nil
  437. }
  438. func (x *AuthorizeResponse) GetRoles() []*UserRole {
  439. if x != nil {
  440. return x.Roles
  441. }
  442. return nil
  443. }
  444. type ResetPasswordRequest struct {
  445. state protoimpl.MessageState
  446. sizeCache protoimpl.SizeCache
  447. unknownFields protoimpl.UnknownFields
  448. Form *UserForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
  449. }
  450. func (x *ResetPasswordRequest) Reset() {
  451. *x = ResetPasswordRequest{}
  452. if protoimpl.UnsafeEnabled {
  453. mi := &file_proto_users_proto_msgTypes[10]
  454. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  455. ms.StoreMessageInfo(mi)
  456. }
  457. }
  458. func (x *ResetPasswordRequest) String() string {
  459. return protoimpl.X.MessageStringOf(x)
  460. }
  461. func (*ResetPasswordRequest) ProtoMessage() {}
  462. func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
  463. mi := &file_proto_users_proto_msgTypes[10]
  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 ResetPasswordRequest.ProtoReflect.Descriptor instead.
  474. func (*ResetPasswordRequest) Descriptor() ([]byte, []int) {
  475. return file_proto_users_proto_rawDescGZIP(), []int{10}
  476. }
  477. func (x *ResetPasswordRequest) GetForm() *UserForm {
  478. if x != nil {
  479. return x.Form
  480. }
  481. return nil
  482. }
  483. type ResetPasswordResponse struct {
  484. state protoimpl.MessageState
  485. sizeCache protoimpl.SizeCache
  486. unknownFields protoimpl.UnknownFields
  487. Token *UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  488. }
  489. func (x *ResetPasswordResponse) Reset() {
  490. *x = ResetPasswordResponse{}
  491. if protoimpl.UnsafeEnabled {
  492. mi := &file_proto_users_proto_msgTypes[11]
  493. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  494. ms.StoreMessageInfo(mi)
  495. }
  496. }
  497. func (x *ResetPasswordResponse) String() string {
  498. return protoimpl.X.MessageStringOf(x)
  499. }
  500. func (*ResetPasswordResponse) ProtoMessage() {}
  501. func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message {
  502. mi := &file_proto_users_proto_msgTypes[11]
  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 ResetPasswordResponse.ProtoReflect.Descriptor instead.
  513. func (*ResetPasswordResponse) Descriptor() ([]byte, []int) {
  514. return file_proto_users_proto_rawDescGZIP(), []int{11}
  515. }
  516. func (x *ResetPasswordResponse) GetToken() *UserToken {
  517. if x != nil {
  518. return x.Token
  519. }
  520. return nil
  521. }
  522. type ChangePasswordRequest struct {
  523. state protoimpl.MessageState
  524. sizeCache protoimpl.SizeCache
  525. unknownFields protoimpl.UnknownFields
  526. Token *UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  527. Form *UserForm `protobuf:"bytes,2,opt,name=form,proto3" json:"form,omitempty"`
  528. }
  529. func (x *ChangePasswordRequest) Reset() {
  530. *x = ChangePasswordRequest{}
  531. if protoimpl.UnsafeEnabled {
  532. mi := &file_proto_users_proto_msgTypes[12]
  533. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  534. ms.StoreMessageInfo(mi)
  535. }
  536. }
  537. func (x *ChangePasswordRequest) String() string {
  538. return protoimpl.X.MessageStringOf(x)
  539. }
  540. func (*ChangePasswordRequest) ProtoMessage() {}
  541. func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message {
  542. mi := &file_proto_users_proto_msgTypes[12]
  543. if protoimpl.UnsafeEnabled && x != nil {
  544. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  545. if ms.LoadMessageInfo() == nil {
  546. ms.StoreMessageInfo(mi)
  547. }
  548. return ms
  549. }
  550. return mi.MessageOf(x)
  551. }
  552. // Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
  553. func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
  554. return file_proto_users_proto_rawDescGZIP(), []int{12}
  555. }
  556. func (x *ChangePasswordRequest) GetToken() *UserToken {
  557. if x != nil {
  558. return x.Token
  559. }
  560. return nil
  561. }
  562. func (x *ChangePasswordRequest) GetForm() *UserForm {
  563. if x != nil {
  564. return x.Form
  565. }
  566. return nil
  567. }
  568. type ChangePasswordResponse struct {
  569. state protoimpl.MessageState
  570. sizeCache protoimpl.SizeCache
  571. unknownFields protoimpl.UnknownFields
  572. }
  573. func (x *ChangePasswordResponse) Reset() {
  574. *x = ChangePasswordResponse{}
  575. if protoimpl.UnsafeEnabled {
  576. mi := &file_proto_users_proto_msgTypes[13]
  577. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  578. ms.StoreMessageInfo(mi)
  579. }
  580. }
  581. func (x *ChangePasswordResponse) String() string {
  582. return protoimpl.X.MessageStringOf(x)
  583. }
  584. func (*ChangePasswordResponse) ProtoMessage() {}
  585. func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message {
  586. mi := &file_proto_users_proto_msgTypes[13]
  587. if protoimpl.UnsafeEnabled && x != nil {
  588. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  589. if ms.LoadMessageInfo() == nil {
  590. ms.StoreMessageInfo(mi)
  591. }
  592. return ms
  593. }
  594. return mi.MessageOf(x)
  595. }
  596. // Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
  597. func (*ChangePasswordResponse) Descriptor() ([]byte, []int) {
  598. return file_proto_users_proto_rawDescGZIP(), []int{13}
  599. }
  600. type ListRolesRequest struct {
  601. state protoimpl.MessageState
  602. sizeCache protoimpl.SizeCache
  603. unknownFields protoimpl.UnknownFields
  604. Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  605. }
  606. func (x *ListRolesRequest) Reset() {
  607. *x = ListRolesRequest{}
  608. if protoimpl.UnsafeEnabled {
  609. mi := &file_proto_users_proto_msgTypes[14]
  610. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  611. ms.StoreMessageInfo(mi)
  612. }
  613. }
  614. func (x *ListRolesRequest) String() string {
  615. return protoimpl.X.MessageStringOf(x)
  616. }
  617. func (*ListRolesRequest) ProtoMessage() {}
  618. func (x *ListRolesRequest) ProtoReflect() protoreflect.Message {
  619. mi := &file_proto_users_proto_msgTypes[14]
  620. if protoimpl.UnsafeEnabled && x != nil {
  621. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  622. if ms.LoadMessageInfo() == nil {
  623. ms.StoreMessageInfo(mi)
  624. }
  625. return ms
  626. }
  627. return mi.MessageOf(x)
  628. }
  629. // Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.
  630. func (*ListRolesRequest) Descriptor() ([]byte, []int) {
  631. return file_proto_users_proto_rawDescGZIP(), []int{14}
  632. }
  633. func (x *ListRolesRequest) GetSecret() string {
  634. if x != nil {
  635. return x.Secret
  636. }
  637. return ""
  638. }
  639. type ListRolesResponse struct {
  640. state protoimpl.MessageState
  641. sizeCache protoimpl.SizeCache
  642. unknownFields protoimpl.UnknownFields
  643. Roles []*UserRole `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
  644. }
  645. func (x *ListRolesResponse) Reset() {
  646. *x = ListRolesResponse{}
  647. if protoimpl.UnsafeEnabled {
  648. mi := &file_proto_users_proto_msgTypes[15]
  649. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  650. ms.StoreMessageInfo(mi)
  651. }
  652. }
  653. func (x *ListRolesResponse) String() string {
  654. return protoimpl.X.MessageStringOf(x)
  655. }
  656. func (*ListRolesResponse) ProtoMessage() {}
  657. func (x *ListRolesResponse) ProtoReflect() protoreflect.Message {
  658. mi := &file_proto_users_proto_msgTypes[15]
  659. if protoimpl.UnsafeEnabled && x != nil {
  660. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  661. if ms.LoadMessageInfo() == nil {
  662. ms.StoreMessageInfo(mi)
  663. }
  664. return ms
  665. }
  666. return mi.MessageOf(x)
  667. }
  668. // Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.
  669. func (*ListRolesResponse) Descriptor() ([]byte, []int) {
  670. return file_proto_users_proto_rawDescGZIP(), []int{15}
  671. }
  672. func (x *ListRolesResponse) GetRoles() []*UserRole {
  673. if x != nil {
  674. return x.Roles
  675. }
  676. return nil
  677. }
  678. type SetRolesRequest struct {
  679. state protoimpl.MessageState
  680. sizeCache protoimpl.SizeCache
  681. unknownFields protoimpl.UnknownFields
  682. Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  683. User *UserInfo `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
  684. Roles []*UserRole `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
  685. }
  686. func (x *SetRolesRequest) Reset() {
  687. *x = SetRolesRequest{}
  688. if protoimpl.UnsafeEnabled {
  689. mi := &file_proto_users_proto_msgTypes[16]
  690. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  691. ms.StoreMessageInfo(mi)
  692. }
  693. }
  694. func (x *SetRolesRequest) String() string {
  695. return protoimpl.X.MessageStringOf(x)
  696. }
  697. func (*SetRolesRequest) ProtoMessage() {}
  698. func (x *SetRolesRequest) ProtoReflect() protoreflect.Message {
  699. mi := &file_proto_users_proto_msgTypes[16]
  700. if protoimpl.UnsafeEnabled && x != nil {
  701. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  702. if ms.LoadMessageInfo() == nil {
  703. ms.StoreMessageInfo(mi)
  704. }
  705. return ms
  706. }
  707. return mi.MessageOf(x)
  708. }
  709. // Deprecated: Use SetRolesRequest.ProtoReflect.Descriptor instead.
  710. func (*SetRolesRequest) Descriptor() ([]byte, []int) {
  711. return file_proto_users_proto_rawDescGZIP(), []int{16}
  712. }
  713. func (x *SetRolesRequest) GetSecret() string {
  714. if x != nil {
  715. return x.Secret
  716. }
  717. return ""
  718. }
  719. func (x *SetRolesRequest) GetUser() *UserInfo {
  720. if x != nil {
  721. return x.User
  722. }
  723. return nil
  724. }
  725. func (x *SetRolesRequest) GetRoles() []*UserRole {
  726. if x != nil {
  727. return x.Roles
  728. }
  729. return nil
  730. }
  731. type SetRolesResponse struct {
  732. state protoimpl.MessageState
  733. sizeCache protoimpl.SizeCache
  734. unknownFields protoimpl.UnknownFields
  735. }
  736. func (x *SetRolesResponse) Reset() {
  737. *x = SetRolesResponse{}
  738. if protoimpl.UnsafeEnabled {
  739. mi := &file_proto_users_proto_msgTypes[17]
  740. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  741. ms.StoreMessageInfo(mi)
  742. }
  743. }
  744. func (x *SetRolesResponse) String() string {
  745. return protoimpl.X.MessageStringOf(x)
  746. }
  747. func (*SetRolesResponse) ProtoMessage() {}
  748. func (x *SetRolesResponse) ProtoReflect() protoreflect.Message {
  749. mi := &file_proto_users_proto_msgTypes[17]
  750. if protoimpl.UnsafeEnabled && x != nil {
  751. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  752. if ms.LoadMessageInfo() == nil {
  753. ms.StoreMessageInfo(mi)
  754. }
  755. return ms
  756. }
  757. return mi.MessageOf(x)
  758. }
  759. // Deprecated: Use SetRolesResponse.ProtoReflect.Descriptor instead.
  760. func (*SetRolesResponse) Descriptor() ([]byte, []int) {
  761. return file_proto_users_proto_rawDescGZIP(), []int{17}
  762. }
  763. var File_proto_users_proto protoreflect.FileDescriptor
  764. var file_proto_users_proto_rawDesc = []byte{
  765. 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72,
  766. 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x08, 0x55,
  767. 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c,
  768. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a,
  769. 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
  770. 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2a,
  771. 0x0a, 0x0e, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x61, 0x67, 0x61, 0x69, 0x6e,
  772. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0d, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
  773. 0x72, 0x64, 0x41, 0x67, 0x61, 0x69, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70,
  774. 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x61, 0x73, 0x73,
  775. 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x61, 0x67, 0x61, 0x69, 0x6e, 0x22, 0x4c, 0x0a, 0x09, 0x55, 0x73,
  776. 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
  777. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a,
  778. 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00,
  779. 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08,
  780. 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x22, 0x1a, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72,
  781. 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  782. 0x52, 0x02, 0x69, 0x64, 0x22, 0x2e, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65,
  783. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64,
  784. 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  785. 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x36, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,
  786. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18,
  787. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73,
  788. 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x12, 0x0a, 0x10,
  789. 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  790. 0x22, 0x33, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  791. 0x12, 0x23, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f,
  792. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52,
  793. 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x37, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65,
  794. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
  795. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73,
  796. 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x52,
  797. 0x0a, 0x10, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
  798. 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01,
  799. 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f,
  800. 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72,
  801. 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b,
  802. 0x65, 0x6e, 0x22, 0x5f, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52,
  803. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18,
  804. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73,
  805. 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x05,
  806. 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73,
  807. 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f,
  808. 0x6c, 0x65, 0x73, 0x22, 0x3b, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73,
  809. 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x66,
  810. 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72,
  811. 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d,
  812. 0x22, 0x3f, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
  813. 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b,
  814. 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73,
  815. 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,
  816. 0x6e, 0x22, 0x64, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77,
  817. 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f,
  818. 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72,
  819. 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b,
  820. 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  821. 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72,
  822. 0x6d, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67,
  823. 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  824. 0x65, 0x22, 0x2a, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65,
  825. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18,
  826. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x3a, 0x0a,
  827. 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  828. 0x73, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
  829. 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f,
  830. 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x75, 0x0a, 0x0f, 0x53, 0x65, 0x74,
  831. 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,
  832. 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65,
  833. 0x63, 0x72, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
  834. 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49,
  835. 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x05, 0x72, 0x6f, 0x6c,
  836. 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73,
  837. 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73,
  838. 0x22, 0x12, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
  839. 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xde, 0x03, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x3d,
  840. 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x75, 0x73, 0x65,
  841. 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,
  842. 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73,
  843. 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a,
  844. 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c,
  845. 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x75, 0x73,
  846. 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  847. 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x09, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65,
  848. 0x12, 0x17, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
  849. 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72,
  850. 0x73, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
  851. 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61,
  852. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52,
  853. 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75,
  854. 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x65,
  855. 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  856. 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73,
  857. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x68,
  858. 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75,
  859. 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x68, 0x61, 0x6e,
  860. 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  861. 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65,
  862. 0x73, 0x12, 0x17, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f,
  863. 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x75, 0x73, 0x65,
  864. 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
  865. 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x6c,
  866. 0x65, 0x73, 0x12, 0x16, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x6f,
  867. 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x75, 0x73, 0x65,
  868. 0x72, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
  869. 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x24, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x2e, 0x63, 0x68, 0x72,
  870. 0x69, 0x73, 0x68, 0x61, 0x79, 0x77, 0x61, 0x72, 0x64, 0x2e, 0x78, 0x79, 0x7a, 0x2f, 0x78, 0x2f,
  871. 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f,
  872. 0x74, 0x6f, 0x33,
  873. }
  874. var (
  875. file_proto_users_proto_rawDescOnce sync.Once
  876. file_proto_users_proto_rawDescData = file_proto_users_proto_rawDesc
  877. )
  878. func file_proto_users_proto_rawDescGZIP() []byte {
  879. file_proto_users_proto_rawDescOnce.Do(func() {
  880. file_proto_users_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_users_proto_rawDescData)
  881. })
  882. return file_proto_users_proto_rawDescData
  883. }
  884. var file_proto_users_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
  885. var file_proto_users_proto_goTypes = []interface{}{
  886. (*UserForm)(nil), // 0: users.UserForm
  887. (*UserToken)(nil), // 1: users.UserToken
  888. (*UserInfo)(nil), // 2: users.UserInfo
  889. (*UserRole)(nil), // 3: users.UserRole
  890. (*RegisterRequest)(nil), // 4: users.RegisterRequest
  891. (*RegisterResponse)(nil), // 5: users.RegisterResponse
  892. (*LoginRequest)(nil), // 6: users.LoginRequest
  893. (*LoginResponse)(nil), // 7: users.LoginResponse
  894. (*AuthorizeRequest)(nil), // 8: users.AuthorizeRequest
  895. (*AuthorizeResponse)(nil), // 9: users.AuthorizeResponse
  896. (*ResetPasswordRequest)(nil), // 10: users.ResetPasswordRequest
  897. (*ResetPasswordResponse)(nil), // 11: users.ResetPasswordResponse
  898. (*ChangePasswordRequest)(nil), // 12: users.ChangePasswordRequest
  899. (*ChangePasswordResponse)(nil), // 13: users.ChangePasswordResponse
  900. (*ListRolesRequest)(nil), // 14: users.ListRolesRequest
  901. (*ListRolesResponse)(nil), // 15: users.ListRolesResponse
  902. (*SetRolesRequest)(nil), // 16: users.SetRolesRequest
  903. (*SetRolesResponse)(nil), // 17: users.SetRolesResponse
  904. }
  905. var file_proto_users_proto_depIdxs = []int32{
  906. 0, // 0: users.RegisterRequest.form:type_name -> users.UserForm
  907. 0, // 1: users.LoginRequest.form:type_name -> users.UserForm
  908. 1, // 2: users.LoginResponse.token:type_name -> users.UserToken
  909. 1, // 3: users.AuthorizeRequest.token:type_name -> users.UserToken
  910. 2, // 4: users.AuthorizeResponse.user:type_name -> users.UserInfo
  911. 3, // 5: users.AuthorizeResponse.roles:type_name -> users.UserRole
  912. 0, // 6: users.ResetPasswordRequest.form:type_name -> users.UserForm
  913. 1, // 7: users.ResetPasswordResponse.token:type_name -> users.UserToken
  914. 1, // 8: users.ChangePasswordRequest.token:type_name -> users.UserToken
  915. 0, // 9: users.ChangePasswordRequest.form:type_name -> users.UserForm
  916. 3, // 10: users.ListRolesResponse.roles:type_name -> users.UserRole
  917. 2, // 11: users.SetRolesRequest.user:type_name -> users.UserInfo
  918. 3, // 12: users.SetRolesRequest.roles:type_name -> users.UserRole
  919. 4, // 13: users.Users.Register:input_type -> users.RegisterRequest
  920. 6, // 14: users.Users.Login:input_type -> users.LoginRequest
  921. 8, // 15: users.Users.Authorize:input_type -> users.AuthorizeRequest
  922. 10, // 16: users.Users.ResetPassword:input_type -> users.ResetPasswordRequest
  923. 12, // 17: users.Users.ChangePassword:input_type -> users.ChangePasswordRequest
  924. 14, // 18: users.Users.ListRoles:input_type -> users.ListRolesRequest
  925. 16, // 19: users.Users.SetRoles:input_type -> users.SetRolesRequest
  926. 5, // 20: users.Users.Register:output_type -> users.RegisterResponse
  927. 7, // 21: users.Users.Login:output_type -> users.LoginResponse
  928. 9, // 22: users.Users.Authorize:output_type -> users.AuthorizeResponse
  929. 11, // 23: users.Users.ResetPassword:output_type -> users.ResetPasswordResponse
  930. 13, // 24: users.Users.ChangePassword:output_type -> users.ChangePasswordResponse
  931. 15, // 25: users.Users.ListRoles:output_type -> users.ListRolesResponse
  932. 17, // 26: users.Users.SetRoles:output_type -> users.SetRolesResponse
  933. 20, // [20:27] is the sub-list for method output_type
  934. 13, // [13:20] is the sub-list for method input_type
  935. 13, // [13:13] is the sub-list for extension type_name
  936. 13, // [13:13] is the sub-list for extension extendee
  937. 0, // [0:13] is the sub-list for field type_name
  938. }
  939. func init() { file_proto_users_proto_init() }
  940. func file_proto_users_proto_init() {
  941. if File_proto_users_proto != nil {
  942. return
  943. }
  944. if !protoimpl.UnsafeEnabled {
  945. file_proto_users_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  946. switch v := v.(*UserForm); i {
  947. case 0:
  948. return &v.state
  949. case 1:
  950. return &v.sizeCache
  951. case 2:
  952. return &v.unknownFields
  953. default:
  954. return nil
  955. }
  956. }
  957. file_proto_users_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  958. switch v := v.(*UserToken); i {
  959. case 0:
  960. return &v.state
  961. case 1:
  962. return &v.sizeCache
  963. case 2:
  964. return &v.unknownFields
  965. default:
  966. return nil
  967. }
  968. }
  969. file_proto_users_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  970. switch v := v.(*UserInfo); i {
  971. case 0:
  972. return &v.state
  973. case 1:
  974. return &v.sizeCache
  975. case 2:
  976. return &v.unknownFields
  977. default:
  978. return nil
  979. }
  980. }
  981. file_proto_users_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  982. switch v := v.(*UserRole); i {
  983. case 0:
  984. return &v.state
  985. case 1:
  986. return &v.sizeCache
  987. case 2:
  988. return &v.unknownFields
  989. default:
  990. return nil
  991. }
  992. }
  993. file_proto_users_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  994. switch v := v.(*RegisterRequest); i {
  995. case 0:
  996. return &v.state
  997. case 1:
  998. return &v.sizeCache
  999. case 2:
  1000. return &v.unknownFields
  1001. default:
  1002. return nil
  1003. }
  1004. }
  1005. file_proto_users_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1006. switch v := v.(*RegisterResponse); i {
  1007. case 0:
  1008. return &v.state
  1009. case 1:
  1010. return &v.sizeCache
  1011. case 2:
  1012. return &v.unknownFields
  1013. default:
  1014. return nil
  1015. }
  1016. }
  1017. file_proto_users_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1018. switch v := v.(*LoginRequest); i {
  1019. case 0:
  1020. return &v.state
  1021. case 1:
  1022. return &v.sizeCache
  1023. case 2:
  1024. return &v.unknownFields
  1025. default:
  1026. return nil
  1027. }
  1028. }
  1029. file_proto_users_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1030. switch v := v.(*LoginResponse); i {
  1031. case 0:
  1032. return &v.state
  1033. case 1:
  1034. return &v.sizeCache
  1035. case 2:
  1036. return &v.unknownFields
  1037. default:
  1038. return nil
  1039. }
  1040. }
  1041. file_proto_users_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1042. switch v := v.(*AuthorizeRequest); i {
  1043. case 0:
  1044. return &v.state
  1045. case 1:
  1046. return &v.sizeCache
  1047. case 2:
  1048. return &v.unknownFields
  1049. default:
  1050. return nil
  1051. }
  1052. }
  1053. file_proto_users_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1054. switch v := v.(*AuthorizeResponse); i {
  1055. case 0:
  1056. return &v.state
  1057. case 1:
  1058. return &v.sizeCache
  1059. case 2:
  1060. return &v.unknownFields
  1061. default:
  1062. return nil
  1063. }
  1064. }
  1065. file_proto_users_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1066. switch v := v.(*ResetPasswordRequest); i {
  1067. case 0:
  1068. return &v.state
  1069. case 1:
  1070. return &v.sizeCache
  1071. case 2:
  1072. return &v.unknownFields
  1073. default:
  1074. return nil
  1075. }
  1076. }
  1077. file_proto_users_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1078. switch v := v.(*ResetPasswordResponse); i {
  1079. case 0:
  1080. return &v.state
  1081. case 1:
  1082. return &v.sizeCache
  1083. case 2:
  1084. return &v.unknownFields
  1085. default:
  1086. return nil
  1087. }
  1088. }
  1089. file_proto_users_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1090. switch v := v.(*ChangePasswordRequest); i {
  1091. case 0:
  1092. return &v.state
  1093. case 1:
  1094. return &v.sizeCache
  1095. case 2:
  1096. return &v.unknownFields
  1097. default:
  1098. return nil
  1099. }
  1100. }
  1101. file_proto_users_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1102. switch v := v.(*ChangePasswordResponse); i {
  1103. case 0:
  1104. return &v.state
  1105. case 1:
  1106. return &v.sizeCache
  1107. case 2:
  1108. return &v.unknownFields
  1109. default:
  1110. return nil
  1111. }
  1112. }
  1113. file_proto_users_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1114. switch v := v.(*ListRolesRequest); i {
  1115. case 0:
  1116. return &v.state
  1117. case 1:
  1118. return &v.sizeCache
  1119. case 2:
  1120. return &v.unknownFields
  1121. default:
  1122. return nil
  1123. }
  1124. }
  1125. file_proto_users_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1126. switch v := v.(*ListRolesResponse); i {
  1127. case 0:
  1128. return &v.state
  1129. case 1:
  1130. return &v.sizeCache
  1131. case 2:
  1132. return &v.unknownFields
  1133. default:
  1134. return nil
  1135. }
  1136. }
  1137. file_proto_users_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
  1138. switch v := v.(*SetRolesRequest); i {
  1139. case 0:
  1140. return &v.state
  1141. case 1:
  1142. return &v.sizeCache
  1143. case 2:
  1144. return &v.unknownFields
  1145. default:
  1146. return nil
  1147. }
  1148. }
  1149. file_proto_users_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  1150. switch v := v.(*SetRolesResponse); i {
  1151. case 0:
  1152. return &v.state
  1153. case 1:
  1154. return &v.sizeCache
  1155. case 2:
  1156. return &v.unknownFields
  1157. default:
  1158. return nil
  1159. }
  1160. }
  1161. }
  1162. file_proto_users_proto_msgTypes[0].OneofWrappers = []interface{}{}
  1163. file_proto_users_proto_msgTypes[1].OneofWrappers = []interface{}{}
  1164. type x struct{}
  1165. out := protoimpl.TypeBuilder{
  1166. File: protoimpl.DescBuilder{
  1167. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1168. RawDescriptor: file_proto_users_proto_rawDesc,
  1169. NumEnums: 0,
  1170. NumMessages: 18,
  1171. NumExtensions: 0,
  1172. NumServices: 1,
  1173. },
  1174. GoTypes: file_proto_users_proto_goTypes,
  1175. DependencyIndexes: file_proto_users_proto_depIdxs,
  1176. MessageInfos: file_proto_users_proto_msgTypes,
  1177. }.Build()
  1178. File_proto_users_proto = out.File
  1179. file_proto_users_proto_rawDesc = nil
  1180. file_proto_users_proto_goTypes = nil
  1181. file_proto_users_proto_depIdxs = nil
  1182. }