user_setting.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.3
  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. )
  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 UserSettingKey int32
  20. const (
  21. UserSettingKey_USER_SETTING_KEY_UNSPECIFIED UserSettingKey = 0
  22. // Access tokens for the user.
  23. UserSettingKey_ACCESS_TOKENS UserSettingKey = 1
  24. // The locale of the user.
  25. UserSettingKey_LOCALE UserSettingKey = 2
  26. // The appearance of the user.
  27. UserSettingKey_APPEARANCE UserSettingKey = 3
  28. // The visibility of the memo.
  29. UserSettingKey_MEMO_VISIBILITY UserSettingKey = 4
  30. )
  31. // Enum value maps for UserSettingKey.
  32. var (
  33. UserSettingKey_name = map[int32]string{
  34. 0: "USER_SETTING_KEY_UNSPECIFIED",
  35. 1: "ACCESS_TOKENS",
  36. 2: "LOCALE",
  37. 3: "APPEARANCE",
  38. 4: "MEMO_VISIBILITY",
  39. }
  40. UserSettingKey_value = map[string]int32{
  41. "USER_SETTING_KEY_UNSPECIFIED": 0,
  42. "ACCESS_TOKENS": 1,
  43. "LOCALE": 2,
  44. "APPEARANCE": 3,
  45. "MEMO_VISIBILITY": 4,
  46. }
  47. )
  48. func (x UserSettingKey) Enum() *UserSettingKey {
  49. p := new(UserSettingKey)
  50. *p = x
  51. return p
  52. }
  53. func (x UserSettingKey) String() string {
  54. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  55. }
  56. func (UserSettingKey) Descriptor() protoreflect.EnumDescriptor {
  57. return file_store_user_setting_proto_enumTypes[0].Descriptor()
  58. }
  59. func (UserSettingKey) Type() protoreflect.EnumType {
  60. return &file_store_user_setting_proto_enumTypes[0]
  61. }
  62. func (x UserSettingKey) Number() protoreflect.EnumNumber {
  63. return protoreflect.EnumNumber(x)
  64. }
  65. // Deprecated: Use UserSettingKey.Descriptor instead.
  66. func (UserSettingKey) EnumDescriptor() ([]byte, []int) {
  67. return file_store_user_setting_proto_rawDescGZIP(), []int{0}
  68. }
  69. type UserSetting struct {
  70. state protoimpl.MessageState `protogen:"open.v1"`
  71. UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  72. Key UserSettingKey `protobuf:"varint,2,opt,name=key,proto3,enum=memos.store.UserSettingKey" json:"key,omitempty"`
  73. // Types that are valid to be assigned to Value:
  74. //
  75. // *UserSetting_AccessTokens
  76. // *UserSetting_Locale
  77. // *UserSetting_Appearance
  78. // *UserSetting_MemoVisibility
  79. Value isUserSetting_Value `protobuf_oneof:"value"`
  80. unknownFields protoimpl.UnknownFields
  81. sizeCache protoimpl.SizeCache
  82. }
  83. func (x *UserSetting) Reset() {
  84. *x = UserSetting{}
  85. mi := &file_store_user_setting_proto_msgTypes[0]
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. ms.StoreMessageInfo(mi)
  88. }
  89. func (x *UserSetting) String() string {
  90. return protoimpl.X.MessageStringOf(x)
  91. }
  92. func (*UserSetting) ProtoMessage() {}
  93. func (x *UserSetting) ProtoReflect() protoreflect.Message {
  94. mi := &file_store_user_setting_proto_msgTypes[0]
  95. if 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 UserSetting.ProtoReflect.Descriptor instead.
  105. func (*UserSetting) Descriptor() ([]byte, []int) {
  106. return file_store_user_setting_proto_rawDescGZIP(), []int{0}
  107. }
  108. func (x *UserSetting) GetUserId() int32 {
  109. if x != nil {
  110. return x.UserId
  111. }
  112. return 0
  113. }
  114. func (x *UserSetting) GetKey() UserSettingKey {
  115. if x != nil {
  116. return x.Key
  117. }
  118. return UserSettingKey_USER_SETTING_KEY_UNSPECIFIED
  119. }
  120. func (x *UserSetting) GetValue() isUserSetting_Value {
  121. if x != nil {
  122. return x.Value
  123. }
  124. return nil
  125. }
  126. func (x *UserSetting) GetAccessTokens() *AccessTokensUserSetting {
  127. if x != nil {
  128. if x, ok := x.Value.(*UserSetting_AccessTokens); ok {
  129. return x.AccessTokens
  130. }
  131. }
  132. return nil
  133. }
  134. func (x *UserSetting) GetLocale() string {
  135. if x != nil {
  136. if x, ok := x.Value.(*UserSetting_Locale); ok {
  137. return x.Locale
  138. }
  139. }
  140. return ""
  141. }
  142. func (x *UserSetting) GetAppearance() string {
  143. if x != nil {
  144. if x, ok := x.Value.(*UserSetting_Appearance); ok {
  145. return x.Appearance
  146. }
  147. }
  148. return ""
  149. }
  150. func (x *UserSetting) GetMemoVisibility() string {
  151. if x != nil {
  152. if x, ok := x.Value.(*UserSetting_MemoVisibility); ok {
  153. return x.MemoVisibility
  154. }
  155. }
  156. return ""
  157. }
  158. type isUserSetting_Value interface {
  159. isUserSetting_Value()
  160. }
  161. type UserSetting_AccessTokens struct {
  162. AccessTokens *AccessTokensUserSetting `protobuf:"bytes,3,opt,name=access_tokens,json=accessTokens,proto3,oneof"`
  163. }
  164. type UserSetting_Locale struct {
  165. Locale string `protobuf:"bytes,4,opt,name=locale,proto3,oneof"`
  166. }
  167. type UserSetting_Appearance struct {
  168. Appearance string `protobuf:"bytes,5,opt,name=appearance,proto3,oneof"`
  169. }
  170. type UserSetting_MemoVisibility struct {
  171. MemoVisibility string `protobuf:"bytes,6,opt,name=memo_visibility,json=memoVisibility,proto3,oneof"`
  172. }
  173. func (*UserSetting_AccessTokens) isUserSetting_Value() {}
  174. func (*UserSetting_Locale) isUserSetting_Value() {}
  175. func (*UserSetting_Appearance) isUserSetting_Value() {}
  176. func (*UserSetting_MemoVisibility) isUserSetting_Value() {}
  177. type AccessTokensUserSetting struct {
  178. state protoimpl.MessageState `protogen:"open.v1"`
  179. AccessTokens []*AccessTokensUserSetting_AccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
  180. unknownFields protoimpl.UnknownFields
  181. sizeCache protoimpl.SizeCache
  182. }
  183. func (x *AccessTokensUserSetting) Reset() {
  184. *x = AccessTokensUserSetting{}
  185. mi := &file_store_user_setting_proto_msgTypes[1]
  186. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  187. ms.StoreMessageInfo(mi)
  188. }
  189. func (x *AccessTokensUserSetting) String() string {
  190. return protoimpl.X.MessageStringOf(x)
  191. }
  192. func (*AccessTokensUserSetting) ProtoMessage() {}
  193. func (x *AccessTokensUserSetting) ProtoReflect() protoreflect.Message {
  194. mi := &file_store_user_setting_proto_msgTypes[1]
  195. if x != nil {
  196. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  197. if ms.LoadMessageInfo() == nil {
  198. ms.StoreMessageInfo(mi)
  199. }
  200. return ms
  201. }
  202. return mi.MessageOf(x)
  203. }
  204. // Deprecated: Use AccessTokensUserSetting.ProtoReflect.Descriptor instead.
  205. func (*AccessTokensUserSetting) Descriptor() ([]byte, []int) {
  206. return file_store_user_setting_proto_rawDescGZIP(), []int{1}
  207. }
  208. func (x *AccessTokensUserSetting) GetAccessTokens() []*AccessTokensUserSetting_AccessToken {
  209. if x != nil {
  210. return x.AccessTokens
  211. }
  212. return nil
  213. }
  214. type AccessTokensUserSetting_AccessToken struct {
  215. state protoimpl.MessageState `protogen:"open.v1"`
  216. // The access token is a JWT token.
  217. // Including expiration time, issuer, etc.
  218. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
  219. // A description for the access token.
  220. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  221. unknownFields protoimpl.UnknownFields
  222. sizeCache protoimpl.SizeCache
  223. }
  224. func (x *AccessTokensUserSetting_AccessToken) Reset() {
  225. *x = AccessTokensUserSetting_AccessToken{}
  226. mi := &file_store_user_setting_proto_msgTypes[2]
  227. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  228. ms.StoreMessageInfo(mi)
  229. }
  230. func (x *AccessTokensUserSetting_AccessToken) String() string {
  231. return protoimpl.X.MessageStringOf(x)
  232. }
  233. func (*AccessTokensUserSetting_AccessToken) ProtoMessage() {}
  234. func (x *AccessTokensUserSetting_AccessToken) ProtoReflect() protoreflect.Message {
  235. mi := &file_store_user_setting_proto_msgTypes[2]
  236. if x != nil {
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. if ms.LoadMessageInfo() == nil {
  239. ms.StoreMessageInfo(mi)
  240. }
  241. return ms
  242. }
  243. return mi.MessageOf(x)
  244. }
  245. // Deprecated: Use AccessTokensUserSetting_AccessToken.ProtoReflect.Descriptor instead.
  246. func (*AccessTokensUserSetting_AccessToken) Descriptor() ([]byte, []int) {
  247. return file_store_user_setting_proto_rawDescGZIP(), []int{1, 0}
  248. }
  249. func (x *AccessTokensUserSetting_AccessToken) GetAccessToken() string {
  250. if x != nil {
  251. return x.AccessToken
  252. }
  253. return ""
  254. }
  255. func (x *AccessTokensUserSetting_AccessToken) GetDescription() string {
  256. if x != nil {
  257. return x.Description
  258. }
  259. return ""
  260. }
  261. var File_store_user_setting_proto protoreflect.FileDescriptor
  262. var file_store_user_setting_proto_rawDesc = []byte{
  263. 0x0a, 0x18, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74,
  264. 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x65, 0x6d, 0x6f,
  265. 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x92, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72,
  266. 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f,
  267. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  268. 0x12, 0x2d, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e,
  269. 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72,
  270. 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
  271. 0x4b, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73,
  272. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73,
  273. 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
  274. 0x73, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0c,
  275. 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x06,
  276. 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06,
  277. 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72,
  278. 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x70,
  279. 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x0f, 0x6d, 0x65, 0x6d, 0x6f,
  280. 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
  281. 0x09, 0x48, 0x00, 0x52, 0x0e, 0x6d, 0x65, 0x6d, 0x6f, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c,
  282. 0x69, 0x74, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc4, 0x01, 0x0a,
  283. 0x17, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x55, 0x73, 0x65,
  284. 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x55, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65,
  285. 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
  286. 0x30, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63,
  287. 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65,
  288. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65,
  289. 0x6e, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x1a,
  290. 0x52, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21,
  291. 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01,
  292. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65,
  293. 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  294. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  295. 0x69, 0x6f, 0x6e, 0x2a, 0x76, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69,
  296. 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x1c, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x45,
  297. 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
  298. 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x43, 0x43, 0x45, 0x53,
  299. 0x53, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x4f,
  300. 0x43, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x50, 0x50, 0x45, 0x41, 0x52,
  301. 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x56,
  302. 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x04, 0x42, 0x9b, 0x01, 0x0a, 0x0f,
  303. 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42,
  304. 0x10, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74,
  305. 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  306. 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70,
  307. 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02,
  308. 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f,
  309. 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65,
  310. 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47,
  311. 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d,
  312. 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  313. 0x33,
  314. }
  315. var (
  316. file_store_user_setting_proto_rawDescOnce sync.Once
  317. file_store_user_setting_proto_rawDescData = file_store_user_setting_proto_rawDesc
  318. )
  319. func file_store_user_setting_proto_rawDescGZIP() []byte {
  320. file_store_user_setting_proto_rawDescOnce.Do(func() {
  321. file_store_user_setting_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_user_setting_proto_rawDescData)
  322. })
  323. return file_store_user_setting_proto_rawDescData
  324. }
  325. var file_store_user_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  326. var file_store_user_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  327. var file_store_user_setting_proto_goTypes = []any{
  328. (UserSettingKey)(0), // 0: memos.store.UserSettingKey
  329. (*UserSetting)(nil), // 1: memos.store.UserSetting
  330. (*AccessTokensUserSetting)(nil), // 2: memos.store.AccessTokensUserSetting
  331. (*AccessTokensUserSetting_AccessToken)(nil), // 3: memos.store.AccessTokensUserSetting.AccessToken
  332. }
  333. var file_store_user_setting_proto_depIdxs = []int32{
  334. 0, // 0: memos.store.UserSetting.key:type_name -> memos.store.UserSettingKey
  335. 2, // 1: memos.store.UserSetting.access_tokens:type_name -> memos.store.AccessTokensUserSetting
  336. 3, // 2: memos.store.AccessTokensUserSetting.access_tokens:type_name -> memos.store.AccessTokensUserSetting.AccessToken
  337. 3, // [3:3] is the sub-list for method output_type
  338. 3, // [3:3] is the sub-list for method input_type
  339. 3, // [3:3] is the sub-list for extension type_name
  340. 3, // [3:3] is the sub-list for extension extendee
  341. 0, // [0:3] is the sub-list for field type_name
  342. }
  343. func init() { file_store_user_setting_proto_init() }
  344. func file_store_user_setting_proto_init() {
  345. if File_store_user_setting_proto != nil {
  346. return
  347. }
  348. file_store_user_setting_proto_msgTypes[0].OneofWrappers = []any{
  349. (*UserSetting_AccessTokens)(nil),
  350. (*UserSetting_Locale)(nil),
  351. (*UserSetting_Appearance)(nil),
  352. (*UserSetting_MemoVisibility)(nil),
  353. }
  354. type x struct{}
  355. out := protoimpl.TypeBuilder{
  356. File: protoimpl.DescBuilder{
  357. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  358. RawDescriptor: file_store_user_setting_proto_rawDesc,
  359. NumEnums: 1,
  360. NumMessages: 3,
  361. NumExtensions: 0,
  362. NumServices: 0,
  363. },
  364. GoTypes: file_store_user_setting_proto_goTypes,
  365. DependencyIndexes: file_store_user_setting_proto_depIdxs,
  366. EnumInfos: file_store_user_setting_proto_enumTypes,
  367. MessageInfos: file_store_user_setting_proto_msgTypes,
  368. }.Build()
  369. File_store_user_setting_proto = out.File
  370. file_store_user_setting_proto_rawDesc = nil
  371. file_store_user_setting_proto_goTypes = nil
  372. file_store_user_setting_proto_depIdxs = nil
  373. }