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.

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