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.

978 lines
31 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. // 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 RegisterRequest struct {
  158. state protoimpl.MessageState
  159. sizeCache protoimpl.SizeCache
  160. unknownFields protoimpl.UnknownFields
  161. Form *UserForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
  162. }
  163. func (x *RegisterRequest) Reset() {
  164. *x = RegisterRequest{}
  165. if protoimpl.UnsafeEnabled {
  166. mi := &file_proto_users_proto_msgTypes[3]
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. ms.StoreMessageInfo(mi)
  169. }
  170. }
  171. func (x *RegisterRequest) String() string {
  172. return protoimpl.X.MessageStringOf(x)
  173. }
  174. func (*RegisterRequest) ProtoMessage() {}
  175. func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
  176. mi := &file_proto_users_proto_msgTypes[3]
  177. if protoimpl.UnsafeEnabled && x != nil {
  178. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  179. if ms.LoadMessageInfo() == nil {
  180. ms.StoreMessageInfo(mi)
  181. }
  182. return ms
  183. }
  184. return mi.MessageOf(x)
  185. }
  186. // Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
  187. func (*RegisterRequest) Descriptor() ([]byte, []int) {
  188. return file_proto_users_proto_rawDescGZIP(), []int{3}
  189. }
  190. func (x *RegisterRequest) GetForm() *UserForm {
  191. if x != nil {
  192. return x.Form
  193. }
  194. return nil
  195. }
  196. type RegisterResponse struct {
  197. state protoimpl.MessageState
  198. sizeCache protoimpl.SizeCache
  199. unknownFields protoimpl.UnknownFields
  200. }
  201. func (x *RegisterResponse) Reset() {
  202. *x = RegisterResponse{}
  203. if protoimpl.UnsafeEnabled {
  204. mi := &file_proto_users_proto_msgTypes[4]
  205. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  206. ms.StoreMessageInfo(mi)
  207. }
  208. }
  209. func (x *RegisterResponse) String() string {
  210. return protoimpl.X.MessageStringOf(x)
  211. }
  212. func (*RegisterResponse) ProtoMessage() {}
  213. func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
  214. mi := &file_proto_users_proto_msgTypes[4]
  215. if protoimpl.UnsafeEnabled && x != nil {
  216. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  217. if ms.LoadMessageInfo() == nil {
  218. ms.StoreMessageInfo(mi)
  219. }
  220. return ms
  221. }
  222. return mi.MessageOf(x)
  223. }
  224. // Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
  225. func (*RegisterResponse) Descriptor() ([]byte, []int) {
  226. return file_proto_users_proto_rawDescGZIP(), []int{4}
  227. }
  228. type LoginRequest struct {
  229. state protoimpl.MessageState
  230. sizeCache protoimpl.SizeCache
  231. unknownFields protoimpl.UnknownFields
  232. Form *UserForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
  233. }
  234. func (x *LoginRequest) Reset() {
  235. *x = LoginRequest{}
  236. if protoimpl.UnsafeEnabled {
  237. mi := &file_proto_users_proto_msgTypes[5]
  238. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  239. ms.StoreMessageInfo(mi)
  240. }
  241. }
  242. func (x *LoginRequest) String() string {
  243. return protoimpl.X.MessageStringOf(x)
  244. }
  245. func (*LoginRequest) ProtoMessage() {}
  246. func (x *LoginRequest) ProtoReflect() protoreflect.Message {
  247. mi := &file_proto_users_proto_msgTypes[5]
  248. if protoimpl.UnsafeEnabled && x != nil {
  249. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  250. if ms.LoadMessageInfo() == nil {
  251. ms.StoreMessageInfo(mi)
  252. }
  253. return ms
  254. }
  255. return mi.MessageOf(x)
  256. }
  257. // Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
  258. func (*LoginRequest) Descriptor() ([]byte, []int) {
  259. return file_proto_users_proto_rawDescGZIP(), []int{5}
  260. }
  261. func (x *LoginRequest) GetForm() *UserForm {
  262. if x != nil {
  263. return x.Form
  264. }
  265. return nil
  266. }
  267. type LoginResponse struct {
  268. state protoimpl.MessageState
  269. sizeCache protoimpl.SizeCache
  270. unknownFields protoimpl.UnknownFields
  271. Token *UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  272. }
  273. func (x *LoginResponse) Reset() {
  274. *x = LoginResponse{}
  275. if protoimpl.UnsafeEnabled {
  276. mi := &file_proto_users_proto_msgTypes[6]
  277. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  278. ms.StoreMessageInfo(mi)
  279. }
  280. }
  281. func (x *LoginResponse) String() string {
  282. return protoimpl.X.MessageStringOf(x)
  283. }
  284. func (*LoginResponse) ProtoMessage() {}
  285. func (x *LoginResponse) ProtoReflect() protoreflect.Message {
  286. mi := &file_proto_users_proto_msgTypes[6]
  287. if protoimpl.UnsafeEnabled && x != nil {
  288. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  289. if ms.LoadMessageInfo() == nil {
  290. ms.StoreMessageInfo(mi)
  291. }
  292. return ms
  293. }
  294. return mi.MessageOf(x)
  295. }
  296. // Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
  297. func (*LoginResponse) Descriptor() ([]byte, []int) {
  298. return file_proto_users_proto_rawDescGZIP(), []int{6}
  299. }
  300. func (x *LoginResponse) GetToken() *UserToken {
  301. if x != nil {
  302. return x.Token
  303. }
  304. return nil
  305. }
  306. type AuthorizeRequest struct {
  307. state protoimpl.MessageState
  308. sizeCache protoimpl.SizeCache
  309. unknownFields protoimpl.UnknownFields
  310. Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  311. Token *UserToken `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
  312. }
  313. func (x *AuthorizeRequest) Reset() {
  314. *x = AuthorizeRequest{}
  315. if protoimpl.UnsafeEnabled {
  316. mi := &file_proto_users_proto_msgTypes[7]
  317. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  318. ms.StoreMessageInfo(mi)
  319. }
  320. }
  321. func (x *AuthorizeRequest) String() string {
  322. return protoimpl.X.MessageStringOf(x)
  323. }
  324. func (*AuthorizeRequest) ProtoMessage() {}
  325. func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message {
  326. mi := &file_proto_users_proto_msgTypes[7]
  327. if protoimpl.UnsafeEnabled && x != nil {
  328. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  329. if ms.LoadMessageInfo() == nil {
  330. ms.StoreMessageInfo(mi)
  331. }
  332. return ms
  333. }
  334. return mi.MessageOf(x)
  335. }
  336. // Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
  337. func (*AuthorizeRequest) Descriptor() ([]byte, []int) {
  338. return file_proto_users_proto_rawDescGZIP(), []int{7}
  339. }
  340. func (x *AuthorizeRequest) GetSecret() string {
  341. if x != nil {
  342. return x.Secret
  343. }
  344. return ""
  345. }
  346. func (x *AuthorizeRequest) GetToken() *UserToken {
  347. if x != nil {
  348. return x.Token
  349. }
  350. return nil
  351. }
  352. type AuthorizeResponse struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. User *UserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  357. }
  358. func (x *AuthorizeResponse) Reset() {
  359. *x = AuthorizeResponse{}
  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 *AuthorizeResponse) String() string {
  367. return protoimpl.X.MessageStringOf(x)
  368. }
  369. func (*AuthorizeResponse) ProtoMessage() {}
  370. func (x *AuthorizeResponse) 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 AuthorizeResponse.ProtoReflect.Descriptor instead.
  382. func (*AuthorizeResponse) Descriptor() ([]byte, []int) {
  383. return file_proto_users_proto_rawDescGZIP(), []int{8}
  384. }
  385. func (x *AuthorizeResponse) GetUser() *UserInfo {
  386. if x != nil {
  387. return x.User
  388. }
  389. return nil
  390. }
  391. type ResetPasswordRequest struct {
  392. state protoimpl.MessageState
  393. sizeCache protoimpl.SizeCache
  394. unknownFields protoimpl.UnknownFields
  395. Form *UserForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
  396. }
  397. func (x *ResetPasswordRequest) Reset() {
  398. *x = ResetPasswordRequest{}
  399. if protoimpl.UnsafeEnabled {
  400. mi := &file_proto_users_proto_msgTypes[9]
  401. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  402. ms.StoreMessageInfo(mi)
  403. }
  404. }
  405. func (x *ResetPasswordRequest) String() string {
  406. return protoimpl.X.MessageStringOf(x)
  407. }
  408. func (*ResetPasswordRequest) ProtoMessage() {}
  409. func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
  410. mi := &file_proto_users_proto_msgTypes[9]
  411. if protoimpl.UnsafeEnabled && x != nil {
  412. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  413. if ms.LoadMessageInfo() == nil {
  414. ms.StoreMessageInfo(mi)
  415. }
  416. return ms
  417. }
  418. return mi.MessageOf(x)
  419. }
  420. // Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
  421. func (*ResetPasswordRequest) Descriptor() ([]byte, []int) {
  422. return file_proto_users_proto_rawDescGZIP(), []int{9}
  423. }
  424. func (x *ResetPasswordRequest) GetForm() *UserForm {
  425. if x != nil {
  426. return x.Form
  427. }
  428. return nil
  429. }
  430. type ResetPasswordResponse struct {
  431. state protoimpl.MessageState
  432. sizeCache protoimpl.SizeCache
  433. unknownFields protoimpl.UnknownFields
  434. Token *UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  435. }
  436. func (x *ResetPasswordResponse) Reset() {
  437. *x = ResetPasswordResponse{}
  438. if protoimpl.UnsafeEnabled {
  439. mi := &file_proto_users_proto_msgTypes[10]
  440. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  441. ms.StoreMessageInfo(mi)
  442. }
  443. }
  444. func (x *ResetPasswordResponse) String() string {
  445. return protoimpl.X.MessageStringOf(x)
  446. }
  447. func (*ResetPasswordResponse) ProtoMessage() {}
  448. func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message {
  449. mi := &file_proto_users_proto_msgTypes[10]
  450. if protoimpl.UnsafeEnabled && x != nil {
  451. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  452. if ms.LoadMessageInfo() == nil {
  453. ms.StoreMessageInfo(mi)
  454. }
  455. return ms
  456. }
  457. return mi.MessageOf(x)
  458. }
  459. // Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.
  460. func (*ResetPasswordResponse) Descriptor() ([]byte, []int) {
  461. return file_proto_users_proto_rawDescGZIP(), []int{10}
  462. }
  463. func (x *ResetPasswordResponse) GetToken() *UserToken {
  464. if x != nil {
  465. return x.Token
  466. }
  467. return nil
  468. }
  469. type ChangePasswordRequest struct {
  470. state protoimpl.MessageState
  471. sizeCache protoimpl.SizeCache
  472. unknownFields protoimpl.UnknownFields
  473. Token *UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  474. Form *UserForm `protobuf:"bytes,2,opt,name=form,proto3" json:"form,omitempty"`
  475. }
  476. func (x *ChangePasswordRequest) Reset() {
  477. *x = ChangePasswordRequest{}
  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 *ChangePasswordRequest) String() string {
  485. return protoimpl.X.MessageStringOf(x)
  486. }
  487. func (*ChangePasswordRequest) ProtoMessage() {}
  488. func (x *ChangePasswordRequest) 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 ChangePasswordRequest.ProtoReflect.Descriptor instead.
  500. func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
  501. return file_proto_users_proto_rawDescGZIP(), []int{11}
  502. }
  503. func (x *ChangePasswordRequest) GetToken() *UserToken {
  504. if x != nil {
  505. return x.Token
  506. }
  507. return nil
  508. }
  509. func (x *ChangePasswordRequest) GetForm() *UserForm {
  510. if x != nil {
  511. return x.Form
  512. }
  513. return nil
  514. }
  515. type ChangePasswordResponse struct {
  516. state protoimpl.MessageState
  517. sizeCache protoimpl.SizeCache
  518. unknownFields protoimpl.UnknownFields
  519. }
  520. func (x *ChangePasswordResponse) Reset() {
  521. *x = ChangePasswordResponse{}
  522. if protoimpl.UnsafeEnabled {
  523. mi := &file_proto_users_proto_msgTypes[12]
  524. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  525. ms.StoreMessageInfo(mi)
  526. }
  527. }
  528. func (x *ChangePasswordResponse) String() string {
  529. return protoimpl.X.MessageStringOf(x)
  530. }
  531. func (*ChangePasswordResponse) ProtoMessage() {}
  532. func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message {
  533. mi := &file_proto_users_proto_msgTypes[12]
  534. if protoimpl.UnsafeEnabled && x != nil {
  535. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  536. if ms.LoadMessageInfo() == nil {
  537. ms.StoreMessageInfo(mi)
  538. }
  539. return ms
  540. }
  541. return mi.MessageOf(x)
  542. }
  543. // Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
  544. func (*ChangePasswordResponse) Descriptor() ([]byte, []int) {
  545. return file_proto_users_proto_rawDescGZIP(), []int{12}
  546. }
  547. var File_proto_users_proto protoreflect.FileDescriptor
  548. var file_proto_users_proto_rawDesc = []byte{
  549. 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72,
  550. 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x08, 0x55,
  551. 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c,
  552. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a,
  553. 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
  554. 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2a,
  555. 0x0a, 0x0e, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x61, 0x67, 0x61, 0x69, 0x6e,
  556. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0d, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
  557. 0x72, 0x64, 0x41, 0x67, 0x61, 0x69, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70,
  558. 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x61, 0x73, 0x73,
  559. 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x61, 0x67, 0x61, 0x69, 0x6e, 0x22, 0x4c, 0x0a, 0x09, 0x55, 0x73,
  560. 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
  561. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a,
  562. 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00,
  563. 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08,
  564. 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x22, 0x1a, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72,
  565. 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  566. 0x52, 0x02, 0x69, 0x64, 0x22, 0x36, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,
  567. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18,
  568. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73,
  569. 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x12, 0x0a, 0x10,
  570. 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  571. 0x22, 0x33, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  572. 0x12, 0x23, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f,
  573. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52,
  574. 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x37, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65,
  575. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
  576. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73,
  577. 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x52,
  578. 0x0a, 0x10, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
  579. 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01,
  580. 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f,
  581. 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72,
  582. 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b,
  583. 0x65, 0x6e, 0x22, 0x38, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52,
  584. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18,
  585. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73,
  586. 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x3b, 0x0a, 0x14,
  587. 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71,
  588. 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01,
  589. 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46,
  590. 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x3f, 0x0a, 0x15, 0x52, 0x65, 0x73,
  591. 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  592. 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
  593. 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f,
  594. 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x64, 0x0a, 0x15, 0x43, 0x68,
  595. 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75,
  596. 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01,
  597. 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54,
  598. 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x04, 0x66,
  599. 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72,
  600. 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d,
  601. 0x22, 0x18, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
  602. 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xdd, 0x02, 0x0a, 0x05, 0x55,
  603. 0x73, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,
  604. 0x12, 0x16, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65,
  605. 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73,
  606. 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  607. 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x13, 0x2e, 0x75,
  608. 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  609. 0x74, 0x1a, 0x14, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52,
  610. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x09, 0x41, 0x75, 0x74,
  611. 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x12, 0x17, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41,
  612. 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  613. 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a,
  614. 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0d, 0x52,
  615. 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1b, 0x2e, 0x75,
  616. 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
  617. 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72,
  618. 0x73, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52,
  619. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0e, 0x43, 0x68, 0x61,
  620. 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1c, 0x2e, 0x75, 0x73,
  621. 0x65, 0x72, 0x73, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
  622. 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x75, 0x73, 0x65, 0x72,
  623. 0x73, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
  624. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x24, 0x5a, 0x22, 0x67, 0x69,
  625. 0x74, 0x2e, 0x63, 0x68, 0x72, 0x69, 0x73, 0x68, 0x61, 0x79, 0x77, 0x61, 0x72, 0x64, 0x2e, 0x78,
  626. 0x79, 0x7a, 0x2f, 0x78, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  627. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  628. }
  629. var (
  630. file_proto_users_proto_rawDescOnce sync.Once
  631. file_proto_users_proto_rawDescData = file_proto_users_proto_rawDesc
  632. )
  633. func file_proto_users_proto_rawDescGZIP() []byte {
  634. file_proto_users_proto_rawDescOnce.Do(func() {
  635. file_proto_users_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_users_proto_rawDescData)
  636. })
  637. return file_proto_users_proto_rawDescData
  638. }
  639. var file_proto_users_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
  640. var file_proto_users_proto_goTypes = []interface{}{
  641. (*UserForm)(nil), // 0: users.UserForm
  642. (*UserToken)(nil), // 1: users.UserToken
  643. (*UserInfo)(nil), // 2: users.UserInfo
  644. (*RegisterRequest)(nil), // 3: users.RegisterRequest
  645. (*RegisterResponse)(nil), // 4: users.RegisterResponse
  646. (*LoginRequest)(nil), // 5: users.LoginRequest
  647. (*LoginResponse)(nil), // 6: users.LoginResponse
  648. (*AuthorizeRequest)(nil), // 7: users.AuthorizeRequest
  649. (*AuthorizeResponse)(nil), // 8: users.AuthorizeResponse
  650. (*ResetPasswordRequest)(nil), // 9: users.ResetPasswordRequest
  651. (*ResetPasswordResponse)(nil), // 10: users.ResetPasswordResponse
  652. (*ChangePasswordRequest)(nil), // 11: users.ChangePasswordRequest
  653. (*ChangePasswordResponse)(nil), // 12: users.ChangePasswordResponse
  654. }
  655. var file_proto_users_proto_depIdxs = []int32{
  656. 0, // 0: users.RegisterRequest.form:type_name -> users.UserForm
  657. 0, // 1: users.LoginRequest.form:type_name -> users.UserForm
  658. 1, // 2: users.LoginResponse.token:type_name -> users.UserToken
  659. 1, // 3: users.AuthorizeRequest.token:type_name -> users.UserToken
  660. 2, // 4: users.AuthorizeResponse.user:type_name -> users.UserInfo
  661. 0, // 5: users.ResetPasswordRequest.form:type_name -> users.UserForm
  662. 1, // 6: users.ResetPasswordResponse.token:type_name -> users.UserToken
  663. 1, // 7: users.ChangePasswordRequest.token:type_name -> users.UserToken
  664. 0, // 8: users.ChangePasswordRequest.form:type_name -> users.UserForm
  665. 3, // 9: users.Users.Register:input_type -> users.RegisterRequest
  666. 5, // 10: users.Users.Login:input_type -> users.LoginRequest
  667. 7, // 11: users.Users.Authorize:input_type -> users.AuthorizeRequest
  668. 9, // 12: users.Users.ResetPassword:input_type -> users.ResetPasswordRequest
  669. 11, // 13: users.Users.ChangePassword:input_type -> users.ChangePasswordRequest
  670. 4, // 14: users.Users.Register:output_type -> users.RegisterResponse
  671. 6, // 15: users.Users.Login:output_type -> users.LoginResponse
  672. 8, // 16: users.Users.Authorize:output_type -> users.AuthorizeResponse
  673. 10, // 17: users.Users.ResetPassword:output_type -> users.ResetPasswordResponse
  674. 12, // 18: users.Users.ChangePassword:output_type -> users.ChangePasswordResponse
  675. 14, // [14:19] is the sub-list for method output_type
  676. 9, // [9:14] is the sub-list for method input_type
  677. 9, // [9:9] is the sub-list for extension type_name
  678. 9, // [9:9] is the sub-list for extension extendee
  679. 0, // [0:9] is the sub-list for field type_name
  680. }
  681. func init() { file_proto_users_proto_init() }
  682. func file_proto_users_proto_init() {
  683. if File_proto_users_proto != nil {
  684. return
  685. }
  686. if !protoimpl.UnsafeEnabled {
  687. file_proto_users_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  688. switch v := v.(*UserForm); i {
  689. case 0:
  690. return &v.state
  691. case 1:
  692. return &v.sizeCache
  693. case 2:
  694. return &v.unknownFields
  695. default:
  696. return nil
  697. }
  698. }
  699. file_proto_users_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  700. switch v := v.(*UserToken); i {
  701. case 0:
  702. return &v.state
  703. case 1:
  704. return &v.sizeCache
  705. case 2:
  706. return &v.unknownFields
  707. default:
  708. return nil
  709. }
  710. }
  711. file_proto_users_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  712. switch v := v.(*UserInfo); i {
  713. case 0:
  714. return &v.state
  715. case 1:
  716. return &v.sizeCache
  717. case 2:
  718. return &v.unknownFields
  719. default:
  720. return nil
  721. }
  722. }
  723. file_proto_users_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  724. switch v := v.(*RegisterRequest); i {
  725. case 0:
  726. return &v.state
  727. case 1:
  728. return &v.sizeCache
  729. case 2:
  730. return &v.unknownFields
  731. default:
  732. return nil
  733. }
  734. }
  735. file_proto_users_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  736. switch v := v.(*RegisterResponse); i {
  737. case 0:
  738. return &v.state
  739. case 1:
  740. return &v.sizeCache
  741. case 2:
  742. return &v.unknownFields
  743. default:
  744. return nil
  745. }
  746. }
  747. file_proto_users_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  748. switch v := v.(*LoginRequest); i {
  749. case 0:
  750. return &v.state
  751. case 1:
  752. return &v.sizeCache
  753. case 2:
  754. return &v.unknownFields
  755. default:
  756. return nil
  757. }
  758. }
  759. file_proto_users_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  760. switch v := v.(*LoginResponse); i {
  761. case 0:
  762. return &v.state
  763. case 1:
  764. return &v.sizeCache
  765. case 2:
  766. return &v.unknownFields
  767. default:
  768. return nil
  769. }
  770. }
  771. file_proto_users_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  772. switch v := v.(*AuthorizeRequest); i {
  773. case 0:
  774. return &v.state
  775. case 1:
  776. return &v.sizeCache
  777. case 2:
  778. return &v.unknownFields
  779. default:
  780. return nil
  781. }
  782. }
  783. file_proto_users_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  784. switch v := v.(*AuthorizeResponse); i {
  785. case 0:
  786. return &v.state
  787. case 1:
  788. return &v.sizeCache
  789. case 2:
  790. return &v.unknownFields
  791. default:
  792. return nil
  793. }
  794. }
  795. file_proto_users_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  796. switch v := v.(*ResetPasswordRequest); i {
  797. case 0:
  798. return &v.state
  799. case 1:
  800. return &v.sizeCache
  801. case 2:
  802. return &v.unknownFields
  803. default:
  804. return nil
  805. }
  806. }
  807. file_proto_users_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  808. switch v := v.(*ResetPasswordResponse); i {
  809. case 0:
  810. return &v.state
  811. case 1:
  812. return &v.sizeCache
  813. case 2:
  814. return &v.unknownFields
  815. default:
  816. return nil
  817. }
  818. }
  819. file_proto_users_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  820. switch v := v.(*ChangePasswordRequest); i {
  821. case 0:
  822. return &v.state
  823. case 1:
  824. return &v.sizeCache
  825. case 2:
  826. return &v.unknownFields
  827. default:
  828. return nil
  829. }
  830. }
  831. file_proto_users_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  832. switch v := v.(*ChangePasswordResponse); i {
  833. case 0:
  834. return &v.state
  835. case 1:
  836. return &v.sizeCache
  837. case 2:
  838. return &v.unknownFields
  839. default:
  840. return nil
  841. }
  842. }
  843. }
  844. file_proto_users_proto_msgTypes[0].OneofWrappers = []interface{}{}
  845. file_proto_users_proto_msgTypes[1].OneofWrappers = []interface{}{}
  846. type x struct{}
  847. out := protoimpl.TypeBuilder{
  848. File: protoimpl.DescBuilder{
  849. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  850. RawDescriptor: file_proto_users_proto_rawDesc,
  851. NumEnums: 0,
  852. NumMessages: 13,
  853. NumExtensions: 0,
  854. NumServices: 1,
  855. },
  856. GoTypes: file_proto_users_proto_goTypes,
  857. DependencyIndexes: file_proto_users_proto_depIdxs,
  858. MessageInfos: file_proto_users_proto_msgTypes,
  859. }.Build()
  860. File_proto_users_proto = out.File
  861. file_proto_users_proto_rawDesc = nil
  862. file_proto_users_proto_goTypes = nil
  863. file_proto_users_proto_depIdxs = nil
  864. }