user_setting.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.4
  4. // protoc (unknown)
  5. // source: store/user_setting.proto
  6. package store
  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. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type UserSettingKey int32
  21. const (
  22. UserSettingKey_USER_SETTING_KEY_UNSPECIFIED UserSettingKey = 0
  23. // Access tokens for the user.
  24. UserSettingKey_ACCESS_TOKENS UserSettingKey = 1
  25. // The locale of the user.
  26. UserSettingKey_LOCALE UserSettingKey = 2
  27. // The appearance of the user.
  28. UserSettingKey_APPEARANCE UserSettingKey = 3
  29. // The visibility of the memo.
  30. UserSettingKey_MEMO_VISIBILITY UserSettingKey = 4
  31. // The shortcuts of the user.
  32. UserSettingKey_SHORTCUTS UserSettingKey = 5
  33. )
  34. // Enum value maps for UserSettingKey.
  35. var (
  36. UserSettingKey_name = map[int32]string{
  37. 0: "USER_SETTING_KEY_UNSPECIFIED",
  38. 1: "ACCESS_TOKENS",
  39. 2: "LOCALE",
  40. 3: "APPEARANCE",
  41. 4: "MEMO_VISIBILITY",
  42. 5: "SHORTCUTS",
  43. }
  44. UserSettingKey_value = map[string]int32{
  45. "USER_SETTING_KEY_UNSPECIFIED": 0,
  46. "ACCESS_TOKENS": 1,
  47. "LOCALE": 2,
  48. "APPEARANCE": 3,
  49. "MEMO_VISIBILITY": 4,
  50. "SHORTCUTS": 5,
  51. }
  52. )
  53. func (x UserSettingKey) Enum() *UserSettingKey {
  54. p := new(UserSettingKey)
  55. *p = x
  56. return p
  57. }
  58. func (x UserSettingKey) String() string {
  59. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  60. }
  61. func (UserSettingKey) Descriptor() protoreflect.EnumDescriptor {
  62. return file_store_user_setting_proto_enumTypes[0].Descriptor()
  63. }
  64. func (UserSettingKey) Type() protoreflect.EnumType {
  65. return &file_store_user_setting_proto_enumTypes[0]
  66. }
  67. func (x UserSettingKey) Number() protoreflect.EnumNumber {
  68. return protoreflect.EnumNumber(x)
  69. }
  70. // Deprecated: Use UserSettingKey.Descriptor instead.
  71. func (UserSettingKey) EnumDescriptor() ([]byte, []int) {
  72. return file_store_user_setting_proto_rawDescGZIP(), []int{0}
  73. }
  74. type UserSetting struct {
  75. state protoimpl.MessageState `protogen:"open.v1"`
  76. UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  77. Key UserSettingKey `protobuf:"varint,2,opt,name=key,proto3,enum=memos.store.UserSettingKey" json:"key,omitempty"`
  78. // Types that are valid to be assigned to Value:
  79. //
  80. // *UserSetting_AccessTokens
  81. // *UserSetting_Locale
  82. // *UserSetting_Appearance
  83. // *UserSetting_MemoVisibility
  84. // *UserSetting_Shortcuts
  85. Value isUserSetting_Value `protobuf_oneof:"value"`
  86. unknownFields protoimpl.UnknownFields
  87. sizeCache protoimpl.SizeCache
  88. }
  89. func (x *UserSetting) Reset() {
  90. *x = UserSetting{}
  91. mi := &file_store_user_setting_proto_msgTypes[0]
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. ms.StoreMessageInfo(mi)
  94. }
  95. func (x *UserSetting) String() string {
  96. return protoimpl.X.MessageStringOf(x)
  97. }
  98. func (*UserSetting) ProtoMessage() {}
  99. func (x *UserSetting) ProtoReflect() protoreflect.Message {
  100. mi := &file_store_user_setting_proto_msgTypes[0]
  101. if x != nil {
  102. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  103. if ms.LoadMessageInfo() == nil {
  104. ms.StoreMessageInfo(mi)
  105. }
  106. return ms
  107. }
  108. return mi.MessageOf(x)
  109. }
  110. // Deprecated: Use UserSetting.ProtoReflect.Descriptor instead.
  111. func (*UserSetting) Descriptor() ([]byte, []int) {
  112. return file_store_user_setting_proto_rawDescGZIP(), []int{0}
  113. }
  114. func (x *UserSetting) GetUserId() int32 {
  115. if x != nil {
  116. return x.UserId
  117. }
  118. return 0
  119. }
  120. func (x *UserSetting) GetKey() UserSettingKey {
  121. if x != nil {
  122. return x.Key
  123. }
  124. return UserSettingKey_USER_SETTING_KEY_UNSPECIFIED
  125. }
  126. func (x *UserSetting) GetValue() isUserSetting_Value {
  127. if x != nil {
  128. return x.Value
  129. }
  130. return nil
  131. }
  132. func (x *UserSetting) GetAccessTokens() *AccessTokensUserSetting {
  133. if x != nil {
  134. if x, ok := x.Value.(*UserSetting_AccessTokens); ok {
  135. return x.AccessTokens
  136. }
  137. }
  138. return nil
  139. }
  140. func (x *UserSetting) GetLocale() string {
  141. if x != nil {
  142. if x, ok := x.Value.(*UserSetting_Locale); ok {
  143. return x.Locale
  144. }
  145. }
  146. return ""
  147. }
  148. func (x *UserSetting) GetAppearance() string {
  149. if x != nil {
  150. if x, ok := x.Value.(*UserSetting_Appearance); ok {
  151. return x.Appearance
  152. }
  153. }
  154. return ""
  155. }
  156. func (x *UserSetting) GetMemoVisibility() string {
  157. if x != nil {
  158. if x, ok := x.Value.(*UserSetting_MemoVisibility); ok {
  159. return x.MemoVisibility
  160. }
  161. }
  162. return ""
  163. }
  164. func (x *UserSetting) GetShortcuts() *ShortcutsUserSetting {
  165. if x != nil {
  166. if x, ok := x.Value.(*UserSetting_Shortcuts); ok {
  167. return x.Shortcuts
  168. }
  169. }
  170. return nil
  171. }
  172. type isUserSetting_Value interface {
  173. isUserSetting_Value()
  174. }
  175. type UserSetting_AccessTokens struct {
  176. AccessTokens *AccessTokensUserSetting `protobuf:"bytes,3,opt,name=access_tokens,json=accessTokens,proto3,oneof"`
  177. }
  178. type UserSetting_Locale struct {
  179. Locale string `protobuf:"bytes,4,opt,name=locale,proto3,oneof"`
  180. }
  181. type UserSetting_Appearance struct {
  182. Appearance string `protobuf:"bytes,5,opt,name=appearance,proto3,oneof"`
  183. }
  184. type UserSetting_MemoVisibility struct {
  185. MemoVisibility string `protobuf:"bytes,6,opt,name=memo_visibility,json=memoVisibility,proto3,oneof"`
  186. }
  187. type UserSetting_Shortcuts struct {
  188. Shortcuts *ShortcutsUserSetting `protobuf:"bytes,7,opt,name=shortcuts,proto3,oneof"`
  189. }
  190. func (*UserSetting_AccessTokens) isUserSetting_Value() {}
  191. func (*UserSetting_Locale) isUserSetting_Value() {}
  192. func (*UserSetting_Appearance) isUserSetting_Value() {}
  193. func (*UserSetting_MemoVisibility) isUserSetting_Value() {}
  194. func (*UserSetting_Shortcuts) isUserSetting_Value() {}
  195. type AccessTokensUserSetting struct {
  196. state protoimpl.MessageState `protogen:"open.v1"`
  197. AccessTokens []*AccessTokensUserSetting_AccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
  198. unknownFields protoimpl.UnknownFields
  199. sizeCache protoimpl.SizeCache
  200. }
  201. func (x *AccessTokensUserSetting) Reset() {
  202. *x = AccessTokensUserSetting{}
  203. mi := &file_store_user_setting_proto_msgTypes[1]
  204. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  205. ms.StoreMessageInfo(mi)
  206. }
  207. func (x *AccessTokensUserSetting) String() string {
  208. return protoimpl.X.MessageStringOf(x)
  209. }
  210. func (*AccessTokensUserSetting) ProtoMessage() {}
  211. func (x *AccessTokensUserSetting) ProtoReflect() protoreflect.Message {
  212. mi := &file_store_user_setting_proto_msgTypes[1]
  213. if x != nil {
  214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  215. if ms.LoadMessageInfo() == nil {
  216. ms.StoreMessageInfo(mi)
  217. }
  218. return ms
  219. }
  220. return mi.MessageOf(x)
  221. }
  222. // Deprecated: Use AccessTokensUserSetting.ProtoReflect.Descriptor instead.
  223. func (*AccessTokensUserSetting) Descriptor() ([]byte, []int) {
  224. return file_store_user_setting_proto_rawDescGZIP(), []int{1}
  225. }
  226. func (x *AccessTokensUserSetting) GetAccessTokens() []*AccessTokensUserSetting_AccessToken {
  227. if x != nil {
  228. return x.AccessTokens
  229. }
  230. return nil
  231. }
  232. type ShortcutsUserSetting struct {
  233. state protoimpl.MessageState `protogen:"open.v1"`
  234. Shortcuts []*ShortcutsUserSetting_Shortcut `protobuf:"bytes,1,rep,name=shortcuts,proto3" json:"shortcuts,omitempty"`
  235. unknownFields protoimpl.UnknownFields
  236. sizeCache protoimpl.SizeCache
  237. }
  238. func (x *ShortcutsUserSetting) Reset() {
  239. *x = ShortcutsUserSetting{}
  240. mi := &file_store_user_setting_proto_msgTypes[2]
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. ms.StoreMessageInfo(mi)
  243. }
  244. func (x *ShortcutsUserSetting) String() string {
  245. return protoimpl.X.MessageStringOf(x)
  246. }
  247. func (*ShortcutsUserSetting) ProtoMessage() {}
  248. func (x *ShortcutsUserSetting) ProtoReflect() protoreflect.Message {
  249. mi := &file_store_user_setting_proto_msgTypes[2]
  250. if x != nil {
  251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  252. if ms.LoadMessageInfo() == nil {
  253. ms.StoreMessageInfo(mi)
  254. }
  255. return ms
  256. }
  257. return mi.MessageOf(x)
  258. }
  259. // Deprecated: Use ShortcutsUserSetting.ProtoReflect.Descriptor instead.
  260. func (*ShortcutsUserSetting) Descriptor() ([]byte, []int) {
  261. return file_store_user_setting_proto_rawDescGZIP(), []int{2}
  262. }
  263. func (x *ShortcutsUserSetting) GetShortcuts() []*ShortcutsUserSetting_Shortcut {
  264. if x != nil {
  265. return x.Shortcuts
  266. }
  267. return nil
  268. }
  269. type AccessTokensUserSetting_AccessToken struct {
  270. state protoimpl.MessageState `protogen:"open.v1"`
  271. // The access token is a JWT token.
  272. // Including expiration time, issuer, etc.
  273. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
  274. // A description for the access token.
  275. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  276. unknownFields protoimpl.UnknownFields
  277. sizeCache protoimpl.SizeCache
  278. }
  279. func (x *AccessTokensUserSetting_AccessToken) Reset() {
  280. *x = AccessTokensUserSetting_AccessToken{}
  281. mi := &file_store_user_setting_proto_msgTypes[3]
  282. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  283. ms.StoreMessageInfo(mi)
  284. }
  285. func (x *AccessTokensUserSetting_AccessToken) String() string {
  286. return protoimpl.X.MessageStringOf(x)
  287. }
  288. func (*AccessTokensUserSetting_AccessToken) ProtoMessage() {}
  289. func (x *AccessTokensUserSetting_AccessToken) ProtoReflect() protoreflect.Message {
  290. mi := &file_store_user_setting_proto_msgTypes[3]
  291. if x != nil {
  292. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  293. if ms.LoadMessageInfo() == nil {
  294. ms.StoreMessageInfo(mi)
  295. }
  296. return ms
  297. }
  298. return mi.MessageOf(x)
  299. }
  300. // Deprecated: Use AccessTokensUserSetting_AccessToken.ProtoReflect.Descriptor instead.
  301. func (*AccessTokensUserSetting_AccessToken) Descriptor() ([]byte, []int) {
  302. return file_store_user_setting_proto_rawDescGZIP(), []int{1, 0}
  303. }
  304. func (x *AccessTokensUserSetting_AccessToken) GetAccessToken() string {
  305. if x != nil {
  306. return x.AccessToken
  307. }
  308. return ""
  309. }
  310. func (x *AccessTokensUserSetting_AccessToken) GetDescription() string {
  311. if x != nil {
  312. return x.Description
  313. }
  314. return ""
  315. }
  316. type ShortcutsUserSetting_Shortcut struct {
  317. state protoimpl.MessageState `protogen:"open.v1"`
  318. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  319. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
  320. Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
  321. unknownFields protoimpl.UnknownFields
  322. sizeCache protoimpl.SizeCache
  323. }
  324. func (x *ShortcutsUserSetting_Shortcut) Reset() {
  325. *x = ShortcutsUserSetting_Shortcut{}
  326. mi := &file_store_user_setting_proto_msgTypes[4]
  327. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  328. ms.StoreMessageInfo(mi)
  329. }
  330. func (x *ShortcutsUserSetting_Shortcut) String() string {
  331. return protoimpl.X.MessageStringOf(x)
  332. }
  333. func (*ShortcutsUserSetting_Shortcut) ProtoMessage() {}
  334. func (x *ShortcutsUserSetting_Shortcut) ProtoReflect() protoreflect.Message {
  335. mi := &file_store_user_setting_proto_msgTypes[4]
  336. if x != nil {
  337. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  338. if ms.LoadMessageInfo() == nil {
  339. ms.StoreMessageInfo(mi)
  340. }
  341. return ms
  342. }
  343. return mi.MessageOf(x)
  344. }
  345. // Deprecated: Use ShortcutsUserSetting_Shortcut.ProtoReflect.Descriptor instead.
  346. func (*ShortcutsUserSetting_Shortcut) Descriptor() ([]byte, []int) {
  347. return file_store_user_setting_proto_rawDescGZIP(), []int{2, 0}
  348. }
  349. func (x *ShortcutsUserSetting_Shortcut) GetId() string {
  350. if x != nil {
  351. return x.Id
  352. }
  353. return ""
  354. }
  355. func (x *ShortcutsUserSetting_Shortcut) GetTitle() string {
  356. if x != nil {
  357. return x.Title
  358. }
  359. return ""
  360. }
  361. func (x *ShortcutsUserSetting_Shortcut) GetFilter() string {
  362. if x != nil {
  363. return x.Filter
  364. }
  365. return ""
  366. }
  367. var File_store_user_setting_proto protoreflect.FileDescriptor
  368. var file_store_user_setting_proto_rawDesc = string([]byte{
  369. 0x0a, 0x18, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74,
  370. 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x65, 0x6d, 0x6f,
  371. 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72,
  372. 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f,
  373. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  374. 0x12, 0x2d, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e,
  375. 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72,
  376. 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
  377. 0x4b, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73,
  378. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73,
  379. 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
  380. 0x73, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0c,
  381. 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x06,
  382. 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06,
  383. 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72,
  384. 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x70,
  385. 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x0f, 0x6d, 0x65, 0x6d, 0x6f,
  386. 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
  387. 0x09, 0x48, 0x00, 0x52, 0x0e, 0x6d, 0x65, 0x6d, 0x6f, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c,
  388. 0x69, 0x74, 0x79, 0x12, 0x41, 0x0a, 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x73,
  389. 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73,
  390. 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x73, 0x55, 0x73,
  391. 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x09, 0x73, 0x68, 0x6f,
  392. 0x72, 0x74, 0x63, 0x75, 0x74, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
  393. 0xc4, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73,
  394. 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x55, 0x0a, 0x0d, 0x61,
  395. 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
  396. 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
  397. 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x55, 0x73, 0x65,
  398. 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54,
  399. 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65,
  400. 0x6e, 0x73, 0x1a, 0x52, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65,
  401. 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
  402. 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54,
  403. 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  404. 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
  405. 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaa, 0x01, 0x0a, 0x14, 0x53, 0x68, 0x6f, 0x72, 0x74,
  406. 0x63, 0x75, 0x74, 0x73, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
  407. 0x48, 0x0a, 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03,
  408. 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
  409. 0x2e, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x73, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65,
  410. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x52, 0x09,
  411. 0x73, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x73, 0x1a, 0x48, 0x0a, 0x08, 0x53, 0x68, 0x6f,
  412. 0x72, 0x74, 0x63, 0x75, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  413. 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02,
  414. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66,
  415. 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c,
  416. 0x74, 0x65, 0x72, 0x2a, 0x85, 0x01, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74,
  417. 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x1c, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53,
  418. 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
  419. 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x43, 0x43, 0x45,
  420. 0x53, 0x53, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4c,
  421. 0x4f, 0x43, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x50, 0x50, 0x45, 0x41,
  422. 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x4d, 0x4f, 0x5f,
  423. 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09,
  424. 0x53, 0x48, 0x4f, 0x52, 0x54, 0x43, 0x55, 0x54, 0x53, 0x10, 0x05, 0x42, 0x9b, 0x01, 0x0a, 0x0f,
  425. 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42,
  426. 0x10, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74,
  427. 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  428. 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70,
  429. 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02,
  430. 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f,
  431. 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65,
  432. 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47,
  433. 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d,
  434. 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  435. 0x33,
  436. })
  437. var (
  438. file_store_user_setting_proto_rawDescOnce sync.Once
  439. file_store_user_setting_proto_rawDescData []byte
  440. )
  441. func file_store_user_setting_proto_rawDescGZIP() []byte {
  442. file_store_user_setting_proto_rawDescOnce.Do(func() {
  443. file_store_user_setting_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_user_setting_proto_rawDesc), len(file_store_user_setting_proto_rawDesc)))
  444. })
  445. return file_store_user_setting_proto_rawDescData
  446. }
  447. var file_store_user_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  448. var file_store_user_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  449. var file_store_user_setting_proto_goTypes = []any{
  450. (UserSettingKey)(0), // 0: memos.store.UserSettingKey
  451. (*UserSetting)(nil), // 1: memos.store.UserSetting
  452. (*AccessTokensUserSetting)(nil), // 2: memos.store.AccessTokensUserSetting
  453. (*ShortcutsUserSetting)(nil), // 3: memos.store.ShortcutsUserSetting
  454. (*AccessTokensUserSetting_AccessToken)(nil), // 4: memos.store.AccessTokensUserSetting.AccessToken
  455. (*ShortcutsUserSetting_Shortcut)(nil), // 5: memos.store.ShortcutsUserSetting.Shortcut
  456. }
  457. var file_store_user_setting_proto_depIdxs = []int32{
  458. 0, // 0: memos.store.UserSetting.key:type_name -> memos.store.UserSettingKey
  459. 2, // 1: memos.store.UserSetting.access_tokens:type_name -> memos.store.AccessTokensUserSetting
  460. 3, // 2: memos.store.UserSetting.shortcuts:type_name -> memos.store.ShortcutsUserSetting
  461. 4, // 3: memos.store.AccessTokensUserSetting.access_tokens:type_name -> memos.store.AccessTokensUserSetting.AccessToken
  462. 5, // 4: memos.store.ShortcutsUserSetting.shortcuts:type_name -> memos.store.ShortcutsUserSetting.Shortcut
  463. 5, // [5:5] is the sub-list for method output_type
  464. 5, // [5:5] is the sub-list for method input_type
  465. 5, // [5:5] is the sub-list for extension type_name
  466. 5, // [5:5] is the sub-list for extension extendee
  467. 0, // [0:5] is the sub-list for field type_name
  468. }
  469. func init() { file_store_user_setting_proto_init() }
  470. func file_store_user_setting_proto_init() {
  471. if File_store_user_setting_proto != nil {
  472. return
  473. }
  474. file_store_user_setting_proto_msgTypes[0].OneofWrappers = []any{
  475. (*UserSetting_AccessTokens)(nil),
  476. (*UserSetting_Locale)(nil),
  477. (*UserSetting_Appearance)(nil),
  478. (*UserSetting_MemoVisibility)(nil),
  479. (*UserSetting_Shortcuts)(nil),
  480. }
  481. type x struct{}
  482. out := protoimpl.TypeBuilder{
  483. File: protoimpl.DescBuilder{
  484. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  485. RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_user_setting_proto_rawDesc), len(file_store_user_setting_proto_rawDesc)),
  486. NumEnums: 1,
  487. NumMessages: 5,
  488. NumExtensions: 0,
  489. NumServices: 0,
  490. },
  491. GoTypes: file_store_user_setting_proto_goTypes,
  492. DependencyIndexes: file_store_user_setting_proto_depIdxs,
  493. EnumInfos: file_store_user_setting_proto_enumTypes,
  494. MessageInfos: file_store_user_setting_proto_msgTypes,
  495. }.Build()
  496. File_store_user_setting_proto = out.File
  497. file_store_user_setting_proto_goTypes = nil
  498. file_store_user_setting_proto_depIdxs = nil
  499. }