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.

1460 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. }
  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 LogoutRequest struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. Token *UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  357. }
  358. func (x *LogoutRequest) Reset() {
  359. *x = LogoutRequest{}
  360. if protoimpl.UnsafeEnabled {
  361. mi := &file_proto_users_proto_msgTypes[8]
  362. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  363. ms.StoreMessageInfo(mi)
  364. }
  365. }
  366. func (x *LogoutRequest) String() string {
  367. return protoimpl.X.MessageStringOf(x)
  368. }
  369. func (*LogoutRequest) ProtoMessage() {}
  370. func (x *LogoutRequest) ProtoReflect() protoreflect.Message {
  371. mi := &file_proto_users_proto_msgTypes[8]
  372. if protoimpl.UnsafeEnabled && x != nil {
  373. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  374. if ms.LoadMessageInfo() == nil {
  375. ms.StoreMessageInfo(mi)
  376. }
  377. return ms
  378. }
  379. return mi.MessageOf(x)
  380. }
  381. // Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
  382. func (*LogoutRequest) Descriptor() ([]byte, []int) {
  383. return file_proto_users_proto_rawDescGZIP(), []int{8}
  384. }
  385. func (x *LogoutRequest) GetToken() *UserToken {
  386. if x != nil {
  387. return x.Token
  388. }
  389. return nil
  390. }
  391. type LogoutResponse struct {
  392. state protoimpl.MessageState
  393. sizeCache protoimpl.SizeCache
  394. unknownFields protoimpl.UnknownFields
  395. }
  396. func (x *LogoutResponse) Reset() {
  397. *x = LogoutResponse{}
  398. if protoimpl.UnsafeEnabled {
  399. mi := &file_proto_users_proto_msgTypes[9]
  400. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  401. ms.StoreMessageInfo(mi)
  402. }
  403. }
  404. func (x *LogoutResponse) String() string {
  405. return protoimpl.X.MessageStringOf(x)
  406. }
  407. func (*LogoutResponse) ProtoMessage() {}
  408. func (x *LogoutResponse) ProtoReflect() protoreflect.Message {
  409. mi := &file_proto_users_proto_msgTypes[9]
  410. if protoimpl.UnsafeEnabled && x != nil {
  411. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  412. if ms.LoadMessageInfo() == nil {
  413. ms.StoreMessageInfo(mi)
  414. }
  415. return ms
  416. }
  417. return mi.MessageOf(x)
  418. }
  419. // Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.
  420. func (*LogoutResponse) Descriptor() ([]byte, []int) {
  421. return file_proto_users_proto_rawDescGZIP(), []int{9}
  422. }
  423. type AuthorizeRequest struct {
  424. state protoimpl.MessageState
  425. sizeCache protoimpl.SizeCache
  426. unknownFields protoimpl.UnknownFields
  427. Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  428. Token *UserToken `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
  429. }
  430. func (x *AuthorizeRequest) Reset() {
  431. *x = AuthorizeRequest{}
  432. if protoimpl.UnsafeEnabled {
  433. mi := &file_proto_users_proto_msgTypes[10]
  434. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  435. ms.StoreMessageInfo(mi)
  436. }
  437. }
  438. func (x *AuthorizeRequest) String() string {
  439. return protoimpl.X.MessageStringOf(x)
  440. }
  441. func (*AuthorizeRequest) ProtoMessage() {}
  442. func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message {
  443. mi := &file_proto_users_proto_msgTypes[10]
  444. if protoimpl.UnsafeEnabled && x != nil {
  445. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  446. if ms.LoadMessageInfo() == nil {
  447. ms.StoreMessageInfo(mi)
  448. }
  449. return ms
  450. }
  451. return mi.MessageOf(x)
  452. }
  453. // Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
  454. func (*AuthorizeRequest) Descriptor() ([]byte, []int) {
  455. return file_proto_users_proto_rawDescGZIP(), []int{10}
  456. }
  457. func (x *AuthorizeRequest) GetSecret() string {
  458. if x != nil {
  459. return x.Secret
  460. }
  461. return ""
  462. }
  463. func (x *AuthorizeRequest) GetToken() *UserToken {
  464. if x != nil {
  465. return x.Token
  466. }
  467. return nil
  468. }
  469. type AuthorizeResponse struct {
  470. state protoimpl.MessageState
  471. sizeCache protoimpl.SizeCache
  472. unknownFields protoimpl.UnknownFields
  473. User *UserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  474. Roles []*UserRole `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
  475. }
  476. func (x *AuthorizeResponse) Reset() {
  477. *x = AuthorizeResponse{}
  478. if protoimpl.UnsafeEnabled {
  479. mi := &file_proto_users_proto_msgTypes[11]
  480. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  481. ms.StoreMessageInfo(mi)
  482. }
  483. }
  484. func (x *AuthorizeResponse) String() string {
  485. return protoimpl.X.MessageStringOf(x)
  486. }
  487. func (*AuthorizeResponse) ProtoMessage() {}
  488. func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message {
  489. mi := &file_proto_users_proto_msgTypes[11]
  490. if protoimpl.UnsafeEnabled && x != nil {
  491. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  492. if ms.LoadMessageInfo() == nil {
  493. ms.StoreMessageInfo(mi)
  494. }
  495. return ms
  496. }
  497. return mi.MessageOf(x)
  498. }
  499. // Deprecated: Use AuthorizeResponse.ProtoReflect.Descriptor instead.
  500. func (*AuthorizeResponse) Descriptor() ([]byte, []int) {
  501. return file_proto_users_proto_rawDescGZIP(), []int{11}
  502. }
  503. func (x *AuthorizeResponse) GetUser() *UserInfo {
  504. if x != nil {
  505. return x.User
  506. }
  507. return nil
  508. }
  509. func (x *AuthorizeResponse) GetRoles() []*UserRole {
  510. if x != nil {
  511. return x.Roles
  512. }
  513. return nil
  514. }
  515. type ResetPasswordRequest struct {
  516. state protoimpl.MessageState
  517. sizeCache protoimpl.SizeCache
  518. unknownFields protoimpl.UnknownFields
  519. Form *UserForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
  520. }
  521. func (x *ResetPasswordRequest) Reset() {
  522. *x = ResetPasswordRequest{}
  523. if protoimpl.UnsafeEnabled {
  524. mi := &file_proto_users_proto_msgTypes[12]
  525. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  526. ms.StoreMessageInfo(mi)
  527. }
  528. }
  529. func (x *ResetPasswordRequest) String() string {
  530. return protoimpl.X.MessageStringOf(x)
  531. }
  532. func (*ResetPasswordRequest) ProtoMessage() {}
  533. func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
  534. mi := &file_proto_users_proto_msgTypes[12]
  535. if protoimpl.UnsafeEnabled && x != nil {
  536. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  537. if ms.LoadMessageInfo() == nil {
  538. ms.StoreMessageInfo(mi)
  539. }
  540. return ms
  541. }
  542. return mi.MessageOf(x)
  543. }
  544. // Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
  545. func (*ResetPasswordRequest) Descriptor() ([]byte, []int) {
  546. return file_proto_users_proto_rawDescGZIP(), []int{12}
  547. }
  548. func (x *ResetPasswordRequest) GetForm() *UserForm {
  549. if x != nil {
  550. return x.Form
  551. }
  552. return nil
  553. }
  554. type ResetPasswordResponse struct {
  555. state protoimpl.MessageState
  556. sizeCache protoimpl.SizeCache
  557. unknownFields protoimpl.UnknownFields
  558. Token *UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  559. }
  560. func (x *ResetPasswordResponse) Reset() {
  561. *x = ResetPasswordResponse{}
  562. if protoimpl.UnsafeEnabled {
  563. mi := &file_proto_users_proto_msgTypes[13]
  564. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  565. ms.StoreMessageInfo(mi)
  566. }
  567. }
  568. func (x *ResetPasswordResponse) String() string {
  569. return protoimpl.X.MessageStringOf(x)
  570. }
  571. func (*ResetPasswordResponse) ProtoMessage() {}
  572. func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message {
  573. mi := &file_proto_users_proto_msgTypes[13]
  574. if protoimpl.UnsafeEnabled && x != nil {
  575. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  576. if ms.LoadMessageInfo() == nil {
  577. ms.StoreMessageInfo(mi)
  578. }
  579. return ms
  580. }
  581. return mi.MessageOf(x)
  582. }
  583. // Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.
  584. func (*ResetPasswordResponse) Descriptor() ([]byte, []int) {
  585. return file_proto_users_proto_rawDescGZIP(), []int{13}
  586. }
  587. func (x *ResetPasswordResponse) GetToken() *UserToken {
  588. if x != nil {
  589. return x.Token
  590. }
  591. return nil
  592. }
  593. type ChangePasswordRequest struct {
  594. state protoimpl.MessageState
  595. sizeCache protoimpl.SizeCache
  596. unknownFields protoimpl.UnknownFields
  597. Token *UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  598. Form *UserForm `protobuf:"bytes,2,opt,name=form,proto3" json:"form,omitempty"`
  599. }
  600. func (x *ChangePasswordRequest) Reset() {
  601. *x = ChangePasswordRequest{}
  602. if protoimpl.UnsafeEnabled {
  603. mi := &file_proto_users_proto_msgTypes[14]
  604. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  605. ms.StoreMessageInfo(mi)
  606. }
  607. }
  608. func (x *ChangePasswordRequest) String() string {
  609. return protoimpl.X.MessageStringOf(x)
  610. }
  611. func (*ChangePasswordRequest) ProtoMessage() {}
  612. func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message {
  613. mi := &file_proto_users_proto_msgTypes[14]
  614. if protoimpl.UnsafeEnabled && x != nil {
  615. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  616. if ms.LoadMessageInfo() == nil {
  617. ms.StoreMessageInfo(mi)
  618. }
  619. return ms
  620. }
  621. return mi.MessageOf(x)
  622. }
  623. // Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
  624. func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
  625. return file_proto_users_proto_rawDescGZIP(), []int{14}
  626. }
  627. func (x *ChangePasswordRequest) GetToken() *UserToken {
  628. if x != nil {
  629. return x.Token
  630. }
  631. return nil
  632. }
  633. func (x *ChangePasswordRequest) GetForm() *UserForm {
  634. if x != nil {
  635. return x.Form
  636. }
  637. return nil
  638. }
  639. type ChangePasswordResponse struct {
  640. state protoimpl.MessageState
  641. sizeCache protoimpl.SizeCache
  642. unknownFields protoimpl.UnknownFields
  643. }
  644. func (x *ChangePasswordResponse) Reset() {
  645. *x = ChangePasswordResponse{}
  646. if protoimpl.UnsafeEnabled {
  647. mi := &file_proto_users_proto_msgTypes[15]
  648. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  649. ms.StoreMessageInfo(mi)
  650. }
  651. }
  652. func (x *ChangePasswordResponse) String() string {
  653. return protoimpl.X.MessageStringOf(x)
  654. }
  655. func (*ChangePasswordResponse) ProtoMessage() {}
  656. func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message {
  657. mi := &file_proto_users_proto_msgTypes[15]
  658. if protoimpl.UnsafeEnabled && x != nil {
  659. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  660. if ms.LoadMessageInfo() == nil {
  661. ms.StoreMessageInfo(mi)
  662. }
  663. return ms
  664. }
  665. return mi.MessageOf(x)
  666. }
  667. // Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
  668. func (*ChangePasswordResponse) Descriptor() ([]byte, []int) {
  669. return file_proto_users_proto_rawDescGZIP(), []int{15}
  670. }
  671. type ListRolesRequest struct {
  672. state protoimpl.MessageState
  673. sizeCache protoimpl.SizeCache
  674. unknownFields protoimpl.UnknownFields
  675. Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  676. }
  677. func (x *ListRolesRequest) Reset() {
  678. *x = ListRolesRequest{}
  679. if protoimpl.UnsafeEnabled {
  680. mi := &file_proto_users_proto_msgTypes[16]
  681. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  682. ms.StoreMessageInfo(mi)
  683. }
  684. }
  685. func (x *ListRolesRequest) String() string {
  686. return protoimpl.X.MessageStringOf(x)
  687. }
  688. func (*ListRolesRequest) ProtoMessage() {}
  689. func (x *ListRolesRequest) ProtoReflect() protoreflect.Message {
  690. mi := &file_proto_users_proto_msgTypes[16]
  691. if protoimpl.UnsafeEnabled && x != nil {
  692. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  693. if ms.LoadMessageInfo() == nil {
  694. ms.StoreMessageInfo(mi)
  695. }
  696. return ms
  697. }
  698. return mi.MessageOf(x)
  699. }
  700. // Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.
  701. func (*ListRolesRequest) Descriptor() ([]byte, []int) {
  702. return file_proto_users_proto_rawDescGZIP(), []int{16}
  703. }
  704. func (x *ListRolesRequest) GetSecret() string {
  705. if x != nil {
  706. return x.Secret
  707. }
  708. return ""
  709. }
  710. type ListRolesResponse struct {
  711. state protoimpl.MessageState
  712. sizeCache protoimpl.SizeCache
  713. unknownFields protoimpl.UnknownFields
  714. Roles []*UserRole `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
  715. }
  716. func (x *ListRolesResponse) Reset() {
  717. *x = ListRolesResponse{}
  718. if protoimpl.UnsafeEnabled {
  719. mi := &file_proto_users_proto_msgTypes[17]
  720. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  721. ms.StoreMessageInfo(mi)
  722. }
  723. }
  724. func (x *ListRolesResponse) String() string {
  725. return protoimpl.X.MessageStringOf(x)
  726. }
  727. func (*ListRolesResponse) ProtoMessage() {}
  728. func (x *ListRolesResponse) ProtoReflect() protoreflect.Message {
  729. mi := &file_proto_users_proto_msgTypes[17]
  730. if protoimpl.UnsafeEnabled && x != nil {
  731. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  732. if ms.LoadMessageInfo() == nil {
  733. ms.StoreMessageInfo(mi)
  734. }
  735. return ms
  736. }
  737. return mi.MessageOf(x)
  738. }
  739. // Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.
  740. func (*ListRolesResponse) Descriptor() ([]byte, []int) {
  741. return file_proto_users_proto_rawDescGZIP(), []int{17}
  742. }
  743. func (x *ListRolesResponse) GetRoles() []*UserRole {
  744. if x != nil {
  745. return x.Roles
  746. }
  747. return nil
  748. }
  749. type SetRolesRequest struct {
  750. state protoimpl.MessageState
  751. sizeCache protoimpl.SizeCache
  752. unknownFields protoimpl.UnknownFields
  753. Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  754. User *UserInfo `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
  755. Roles []*UserRole `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
  756. }
  757. func (x *SetRolesRequest) Reset() {
  758. *x = SetRolesRequest{}
  759. if protoimpl.UnsafeEnabled {
  760. mi := &file_proto_users_proto_msgTypes[18]
  761. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  762. ms.StoreMessageInfo(mi)
  763. }
  764. }
  765. func (x *SetRolesRequest) String() string {
  766. return protoimpl.X.MessageStringOf(x)
  767. }
  768. func (*SetRolesRequest) ProtoMessage() {}
  769. func (x *SetRolesRequest) ProtoReflect() protoreflect.Message {
  770. mi := &file_proto_users_proto_msgTypes[18]
  771. if protoimpl.UnsafeEnabled && x != nil {
  772. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  773. if ms.LoadMessageInfo() == nil {
  774. ms.StoreMessageInfo(mi)
  775. }
  776. return ms
  777. }
  778. return mi.MessageOf(x)
  779. }
  780. // Deprecated: Use SetRolesRequest.ProtoReflect.Descriptor instead.
  781. func (*SetRolesRequest) Descriptor() ([]byte, []int) {
  782. return file_proto_users_proto_rawDescGZIP(), []int{18}
  783. }
  784. func (x *SetRolesRequest) GetSecret() string {
  785. if x != nil {
  786. return x.Secret
  787. }
  788. return ""
  789. }
  790. func (x *SetRolesRequest) GetUser() *UserInfo {
  791. if x != nil {
  792. return x.User
  793. }
  794. return nil
  795. }
  796. func (x *SetRolesRequest) GetRoles() []*UserRole {
  797. if x != nil {
  798. return x.Roles
  799. }
  800. return nil
  801. }
  802. type SetRolesResponse struct {
  803. state protoimpl.MessageState
  804. sizeCache protoimpl.SizeCache
  805. unknownFields protoimpl.UnknownFields
  806. }
  807. func (x *SetRolesResponse) Reset() {
  808. *x = SetRolesResponse{}
  809. if protoimpl.UnsafeEnabled {
  810. mi := &file_proto_users_proto_msgTypes[19]
  811. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  812. ms.StoreMessageInfo(mi)
  813. }
  814. }
  815. func (x *SetRolesResponse) String() string {
  816. return protoimpl.X.MessageStringOf(x)
  817. }
  818. func (*SetRolesResponse) ProtoMessage() {}
  819. func (x *SetRolesResponse) ProtoReflect() protoreflect.Message {
  820. mi := &file_proto_users_proto_msgTypes[19]
  821. if protoimpl.UnsafeEnabled && x != nil {
  822. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  823. if ms.LoadMessageInfo() == nil {
  824. ms.StoreMessageInfo(mi)
  825. }
  826. return ms
  827. }
  828. return mi.MessageOf(x)
  829. }
  830. // Deprecated: Use SetRolesResponse.ProtoReflect.Descriptor instead.
  831. func (*SetRolesResponse) Descriptor() ([]byte, []int) {
  832. return file_proto_users_proto_rawDescGZIP(), []int{19}
  833. }
  834. var File_proto_users_proto protoreflect.FileDescriptor
  835. var file_proto_users_proto_rawDesc = []byte{
  836. 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72,
  837. 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x08, 0x55,
  838. 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c,
  839. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a,
  840. 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
  841. 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2a,
  842. 0x0a, 0x0e, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x61, 0x67, 0x61, 0x69, 0x6e,
  843. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0d, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
  844. 0x72, 0x64, 0x41, 0x67, 0x61, 0x69, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70,
  845. 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x61, 0x73, 0x73,
  846. 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x61, 0x67, 0x61, 0x69, 0x6e, 0x22, 0x4c, 0x0a, 0x09, 0x55, 0x73,
  847. 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
  848. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a,
  849. 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00,
  850. 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08,
  851. 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x22, 0x1a, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72,
  852. 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  853. 0x52, 0x02, 0x69, 0x64, 0x22, 0x2e, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65,
  854. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64,
  855. 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  856. 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x36, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,
  857. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18,
  858. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73,
  859. 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x12, 0x0a, 0x10,
  860. 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  861. 0x22, 0x33, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  862. 0x12, 0x23, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f,
  863. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52,
  864. 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x37, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65,
  865. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
  866. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73,
  867. 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x37,
  868. 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  869. 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
  870. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
  871. 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x10, 0x0a, 0x0e, 0x4c, 0x6f, 0x67, 0x6f, 0x75,
  872. 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x10, 0x41, 0x75, 0x74,
  873. 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a,
  874. 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73,
  875. 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
  876. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65,
  877. 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5f, 0x0a,
  878. 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  879. 0x73, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  880. 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66,
  881. 0x6f, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73,
  882. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55,
  883. 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x3b,
  884. 0x0a, 0x14, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52,
  885. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01,
  886. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65,
  887. 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x3f, 0x0a, 0x15, 0x52,
  888. 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70,
  889. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20,
  890. 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72,
  891. 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x64, 0x0a, 0x15,
  892. 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65,
  893. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01,
  894. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65,
  895. 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a,
  896. 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73,
  897. 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x66, 0x6f,
  898. 0x72, 0x6d, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73,
  899. 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x0a, 0x10,
  900. 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  901. 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  902. 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x3a, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74,
  903. 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a,
  904. 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75,
  905. 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72,
  906. 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x75, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73,
  907. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65,
  908. 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,
  909. 0x23, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
  910. 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04,
  911. 0x75, 0x73, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20,
  912. 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72,
  913. 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x12, 0x0a, 0x10, 0x53,
  914. 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32,
  915. 0x97, 0x04, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, 0x08, 0x52, 0x65, 0x67,
  916. 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65,
  917. 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e,
  918. 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65,
  919. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69,
  920. 0x6e, 0x12, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52,
  921. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c,
  922. 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x37,
  923. 0x0a, 0x06, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x12, 0x14, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73,
  924. 0x2e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,
  925. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73,
  926. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x09, 0x41, 0x75, 0x74, 0x68, 0x6f,
  927. 0x72, 0x69, 0x7a, 0x65, 0x12, 0x17, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x75, 0x74,
  928. 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e,
  929. 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52,
  930. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0d, 0x52, 0x65, 0x73,
  931. 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x65,
  932. 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
  933. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e,
  934. 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73,
  935. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e, 0x67,
  936. 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72,
  937. 0x73, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
  938. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e,
  939. 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65,
  940. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74,
  941. 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x17, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69,
  942. 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18,
  943. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73,
  944. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x08, 0x53, 0x65,
  945. 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x53,
  946. 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17,
  947. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52,
  948. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x24, 0x5a, 0x22, 0x67, 0x69, 0x74,
  949. 0x2e, 0x63, 0x68, 0x72, 0x69, 0x73, 0x68, 0x61, 0x79, 0x77, 0x61, 0x72, 0x64, 0x2e, 0x78, 0x79,
  950. 0x7a, 0x2f, 0x78, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  951. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  952. }
  953. var (
  954. file_proto_users_proto_rawDescOnce sync.Once
  955. file_proto_users_proto_rawDescData = file_proto_users_proto_rawDesc
  956. )
  957. func file_proto_users_proto_rawDescGZIP() []byte {
  958. file_proto_users_proto_rawDescOnce.Do(func() {
  959. file_proto_users_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_users_proto_rawDescData)
  960. })
  961. return file_proto_users_proto_rawDescData
  962. }
  963. var file_proto_users_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
  964. var file_proto_users_proto_goTypes = []interface{}{
  965. (*UserForm)(nil), // 0: users.UserForm
  966. (*UserToken)(nil), // 1: users.UserToken
  967. (*UserInfo)(nil), // 2: users.UserInfo
  968. (*UserRole)(nil), // 3: users.UserRole
  969. (*RegisterRequest)(nil), // 4: users.RegisterRequest
  970. (*RegisterResponse)(nil), // 5: users.RegisterResponse
  971. (*LoginRequest)(nil), // 6: users.LoginRequest
  972. (*LoginResponse)(nil), // 7: users.LoginResponse
  973. (*LogoutRequest)(nil), // 8: users.LogoutRequest
  974. (*LogoutResponse)(nil), // 9: users.LogoutResponse
  975. (*AuthorizeRequest)(nil), // 10: users.AuthorizeRequest
  976. (*AuthorizeResponse)(nil), // 11: users.AuthorizeResponse
  977. (*ResetPasswordRequest)(nil), // 12: users.ResetPasswordRequest
  978. (*ResetPasswordResponse)(nil), // 13: users.ResetPasswordResponse
  979. (*ChangePasswordRequest)(nil), // 14: users.ChangePasswordRequest
  980. (*ChangePasswordResponse)(nil), // 15: users.ChangePasswordResponse
  981. (*ListRolesRequest)(nil), // 16: users.ListRolesRequest
  982. (*ListRolesResponse)(nil), // 17: users.ListRolesResponse
  983. (*SetRolesRequest)(nil), // 18: users.SetRolesRequest
  984. (*SetRolesResponse)(nil), // 19: users.SetRolesResponse
  985. }
  986. var file_proto_users_proto_depIdxs = []int32{
  987. 0, // 0: users.RegisterRequest.form:type_name -> users.UserForm
  988. 0, // 1: users.LoginRequest.form:type_name -> users.UserForm
  989. 1, // 2: users.LoginResponse.token:type_name -> users.UserToken
  990. 1, // 3: users.LogoutRequest.token:type_name -> users.UserToken
  991. 1, // 4: users.AuthorizeRequest.token:type_name -> users.UserToken
  992. 2, // 5: users.AuthorizeResponse.user:type_name -> users.UserInfo
  993. 3, // 6: users.AuthorizeResponse.roles:type_name -> users.UserRole
  994. 0, // 7: users.ResetPasswordRequest.form:type_name -> users.UserForm
  995. 1, // 8: users.ResetPasswordResponse.token:type_name -> users.UserToken
  996. 1, // 9: users.ChangePasswordRequest.token:type_name -> users.UserToken
  997. 0, // 10: users.ChangePasswordRequest.form:type_name -> users.UserForm
  998. 3, // 11: users.ListRolesResponse.roles:type_name -> users.UserRole
  999. 2, // 12: users.SetRolesRequest.user:type_name -> users.UserInfo
  1000. 3, // 13: users.SetRolesRequest.roles:type_name -> users.UserRole
  1001. 4, // 14: users.Users.Register:input_type -> users.RegisterRequest
  1002. 6, // 15: users.Users.Login:input_type -> users.LoginRequest
  1003. 8, // 16: users.Users.Logout:input_type -> users.LogoutRequest
  1004. 10, // 17: users.Users.Authorize:input_type -> users.AuthorizeRequest
  1005. 12, // 18: users.Users.ResetPassword:input_type -> users.ResetPasswordRequest
  1006. 14, // 19: users.Users.ChangePassword:input_type -> users.ChangePasswordRequest
  1007. 16, // 20: users.Users.ListRoles:input_type -> users.ListRolesRequest
  1008. 18, // 21: users.Users.SetRoles:input_type -> users.SetRolesRequest
  1009. 5, // 22: users.Users.Register:output_type -> users.RegisterResponse
  1010. 7, // 23: users.Users.Login:output_type -> users.LoginResponse
  1011. 9, // 24: users.Users.Logout:output_type -> users.LogoutResponse
  1012. 11, // 25: users.Users.Authorize:output_type -> users.AuthorizeResponse
  1013. 13, // 26: users.Users.ResetPassword:output_type -> users.ResetPasswordResponse
  1014. 15, // 27: users.Users.ChangePassword:output_type -> users.ChangePasswordResponse
  1015. 17, // 28: users.Users.ListRoles:output_type -> users.ListRolesResponse
  1016. 19, // 29: users.Users.SetRoles:output_type -> users.SetRolesResponse
  1017. 22, // [22:30] is the sub-list for method output_type
  1018. 14, // [14:22] is the sub-list for method input_type
  1019. 14, // [14:14] is the sub-list for extension type_name
  1020. 14, // [14:14] is the sub-list for extension extendee
  1021. 0, // [0:14] is the sub-list for field type_name
  1022. }
  1023. func init() { file_proto_users_proto_init() }
  1024. func file_proto_users_proto_init() {
  1025. if File_proto_users_proto != nil {
  1026. return
  1027. }
  1028. if !protoimpl.UnsafeEnabled {
  1029. file_proto_users_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1030. switch v := v.(*UserForm); 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[1].Exporter = func(v interface{}, i int) interface{} {
  1042. switch v := v.(*UserToken); 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[2].Exporter = func(v interface{}, i int) interface{} {
  1054. switch v := v.(*UserInfo); 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[3].Exporter = func(v interface{}, i int) interface{} {
  1066. switch v := v.(*UserRole); 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[4].Exporter = func(v interface{}, i int) interface{} {
  1078. switch v := v.(*RegisterRequest); 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[5].Exporter = func(v interface{}, i int) interface{} {
  1090. switch v := v.(*RegisterResponse); 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[6].Exporter = func(v interface{}, i int) interface{} {
  1102. switch v := v.(*LoginRequest); 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[7].Exporter = func(v interface{}, i int) interface{} {
  1114. switch v := v.(*LoginResponse); 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[8].Exporter = func(v interface{}, i int) interface{} {
  1126. switch v := v.(*LogoutRequest); 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[9].Exporter = func(v interface{}, i int) interface{} {
  1138. switch v := v.(*LogoutResponse); 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[10].Exporter = func(v interface{}, i int) interface{} {
  1150. switch v := v.(*AuthorizeRequest); 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. file_proto_users_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1162. switch v := v.(*AuthorizeResponse); i {
  1163. case 0:
  1164. return &v.state
  1165. case 1:
  1166. return &v.sizeCache
  1167. case 2:
  1168. return &v.unknownFields
  1169. default:
  1170. return nil
  1171. }
  1172. }
  1173. file_proto_users_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1174. switch v := v.(*ResetPasswordRequest); i {
  1175. case 0:
  1176. return &v.state
  1177. case 1:
  1178. return &v.sizeCache
  1179. case 2:
  1180. return &v.unknownFields
  1181. default:
  1182. return nil
  1183. }
  1184. }
  1185. file_proto_users_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1186. switch v := v.(*ResetPasswordResponse); i {
  1187. case 0:
  1188. return &v.state
  1189. case 1:
  1190. return &v.sizeCache
  1191. case 2:
  1192. return &v.unknownFields
  1193. default:
  1194. return nil
  1195. }
  1196. }
  1197. file_proto_users_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1198. switch v := v.(*ChangePasswordRequest); i {
  1199. case 0:
  1200. return &v.state
  1201. case 1:
  1202. return &v.sizeCache
  1203. case 2:
  1204. return &v.unknownFields
  1205. default:
  1206. return nil
  1207. }
  1208. }
  1209. file_proto_users_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1210. switch v := v.(*ChangePasswordResponse); i {
  1211. case 0:
  1212. return &v.state
  1213. case 1:
  1214. return &v.sizeCache
  1215. case 2:
  1216. return &v.unknownFields
  1217. default:
  1218. return nil
  1219. }
  1220. }
  1221. file_proto_users_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
  1222. switch v := v.(*ListRolesRequest); i {
  1223. case 0:
  1224. return &v.state
  1225. case 1:
  1226. return &v.sizeCache
  1227. case 2:
  1228. return &v.unknownFields
  1229. default:
  1230. return nil
  1231. }
  1232. }
  1233. file_proto_users_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  1234. switch v := v.(*ListRolesResponse); i {
  1235. case 0:
  1236. return &v.state
  1237. case 1:
  1238. return &v.sizeCache
  1239. case 2:
  1240. return &v.unknownFields
  1241. default:
  1242. return nil
  1243. }
  1244. }
  1245. file_proto_users_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
  1246. switch v := v.(*SetRolesRequest); i {
  1247. case 0:
  1248. return &v.state
  1249. case 1:
  1250. return &v.sizeCache
  1251. case 2:
  1252. return &v.unknownFields
  1253. default:
  1254. return nil
  1255. }
  1256. }
  1257. file_proto_users_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
  1258. switch v := v.(*SetRolesResponse); i {
  1259. case 0:
  1260. return &v.state
  1261. case 1:
  1262. return &v.sizeCache
  1263. case 2:
  1264. return &v.unknownFields
  1265. default:
  1266. return nil
  1267. }
  1268. }
  1269. }
  1270. file_proto_users_proto_msgTypes[0].OneofWrappers = []interface{}{}
  1271. file_proto_users_proto_msgTypes[1].OneofWrappers = []interface{}{}
  1272. type x struct{}
  1273. out := protoimpl.TypeBuilder{
  1274. File: protoimpl.DescBuilder{
  1275. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1276. RawDescriptor: file_proto_users_proto_rawDesc,
  1277. NumEnums: 0,
  1278. NumMessages: 20,
  1279. NumExtensions: 0,
  1280. NumServices: 1,
  1281. },
  1282. GoTypes: file_proto_users_proto_goTypes,
  1283. DependencyIndexes: file_proto_users_proto_depIdxs,
  1284. MessageInfos: file_proto_users_proto_msgTypes,
  1285. }.Build()
  1286. File_proto_users_proto = out.File
  1287. file_proto_users_proto_rawDesc = nil
  1288. file_proto_users_proto_goTypes = nil
  1289. file_proto_users_proto_depIdxs = nil
  1290. }