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.

1484 lines
47 KiB

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