workspace_setting.pb.go 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032
  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/workspace_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 WorkspaceSettingKey int32
  21. const (
  22. WorkspaceSettingKey_WORKSPACE_SETTING_KEY_UNSPECIFIED WorkspaceSettingKey = 0
  23. // BASIC is the key for basic settings.
  24. WorkspaceSettingKey_BASIC WorkspaceSettingKey = 1
  25. // GENERAL is the key for general settings.
  26. WorkspaceSettingKey_GENERAL WorkspaceSettingKey = 2
  27. // STORAGE is the key for storage settings.
  28. WorkspaceSettingKey_STORAGE WorkspaceSettingKey = 3
  29. // MEMO_RELATED is the key for memo related settings.
  30. WorkspaceSettingKey_MEMO_RELATED WorkspaceSettingKey = 4
  31. )
  32. // Enum value maps for WorkspaceSettingKey.
  33. var (
  34. WorkspaceSettingKey_name = map[int32]string{
  35. 0: "WORKSPACE_SETTING_KEY_UNSPECIFIED",
  36. 1: "BASIC",
  37. 2: "GENERAL",
  38. 3: "STORAGE",
  39. 4: "MEMO_RELATED",
  40. }
  41. WorkspaceSettingKey_value = map[string]int32{
  42. "WORKSPACE_SETTING_KEY_UNSPECIFIED": 0,
  43. "BASIC": 1,
  44. "GENERAL": 2,
  45. "STORAGE": 3,
  46. "MEMO_RELATED": 4,
  47. }
  48. )
  49. func (x WorkspaceSettingKey) Enum() *WorkspaceSettingKey {
  50. p := new(WorkspaceSettingKey)
  51. *p = x
  52. return p
  53. }
  54. func (x WorkspaceSettingKey) String() string {
  55. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  56. }
  57. func (WorkspaceSettingKey) Descriptor() protoreflect.EnumDescriptor {
  58. return file_store_workspace_setting_proto_enumTypes[0].Descriptor()
  59. }
  60. func (WorkspaceSettingKey) Type() protoreflect.EnumType {
  61. return &file_store_workspace_setting_proto_enumTypes[0]
  62. }
  63. func (x WorkspaceSettingKey) Number() protoreflect.EnumNumber {
  64. return protoreflect.EnumNumber(x)
  65. }
  66. // Deprecated: Use WorkspaceSettingKey.Descriptor instead.
  67. func (WorkspaceSettingKey) EnumDescriptor() ([]byte, []int) {
  68. return file_store_workspace_setting_proto_rawDescGZIP(), []int{0}
  69. }
  70. type WorkspaceStorageSetting_StorageType int32
  71. const (
  72. WorkspaceStorageSetting_STORAGE_TYPE_UNSPECIFIED WorkspaceStorageSetting_StorageType = 0
  73. // STORAGE_TYPE_DATABASE is the database storage type.
  74. WorkspaceStorageSetting_DATABASE WorkspaceStorageSetting_StorageType = 1
  75. // STORAGE_TYPE_LOCAL is the local storage type.
  76. WorkspaceStorageSetting_LOCAL WorkspaceStorageSetting_StorageType = 2
  77. // STORAGE_TYPE_S3 is the S3 storage type.
  78. WorkspaceStorageSetting_S3 WorkspaceStorageSetting_StorageType = 3
  79. )
  80. // Enum value maps for WorkspaceStorageSetting_StorageType.
  81. var (
  82. WorkspaceStorageSetting_StorageType_name = map[int32]string{
  83. 0: "STORAGE_TYPE_UNSPECIFIED",
  84. 1: "DATABASE",
  85. 2: "LOCAL",
  86. 3: "S3",
  87. }
  88. WorkspaceStorageSetting_StorageType_value = map[string]int32{
  89. "STORAGE_TYPE_UNSPECIFIED": 0,
  90. "DATABASE": 1,
  91. "LOCAL": 2,
  92. "S3": 3,
  93. }
  94. )
  95. func (x WorkspaceStorageSetting_StorageType) Enum() *WorkspaceStorageSetting_StorageType {
  96. p := new(WorkspaceStorageSetting_StorageType)
  97. *p = x
  98. return p
  99. }
  100. func (x WorkspaceStorageSetting_StorageType) String() string {
  101. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  102. }
  103. func (WorkspaceStorageSetting_StorageType) Descriptor() protoreflect.EnumDescriptor {
  104. return file_store_workspace_setting_proto_enumTypes[1].Descriptor()
  105. }
  106. func (WorkspaceStorageSetting_StorageType) Type() protoreflect.EnumType {
  107. return &file_store_workspace_setting_proto_enumTypes[1]
  108. }
  109. func (x WorkspaceStorageSetting_StorageType) Number() protoreflect.EnumNumber {
  110. return protoreflect.EnumNumber(x)
  111. }
  112. // Deprecated: Use WorkspaceStorageSetting_StorageType.Descriptor instead.
  113. func (WorkspaceStorageSetting_StorageType) EnumDescriptor() ([]byte, []int) {
  114. return file_store_workspace_setting_proto_rawDescGZIP(), []int{4, 0}
  115. }
  116. type WorkspaceSetting struct {
  117. state protoimpl.MessageState `protogen:"open.v1"`
  118. Key WorkspaceSettingKey `protobuf:"varint,1,opt,name=key,proto3,enum=memos.store.WorkspaceSettingKey" json:"key,omitempty"`
  119. // Types that are valid to be assigned to Value:
  120. //
  121. // *WorkspaceSetting_BasicSetting
  122. // *WorkspaceSetting_GeneralSetting
  123. // *WorkspaceSetting_StorageSetting
  124. // *WorkspaceSetting_MemoRelatedSetting
  125. Value isWorkspaceSetting_Value `protobuf_oneof:"value"`
  126. unknownFields protoimpl.UnknownFields
  127. sizeCache protoimpl.SizeCache
  128. }
  129. func (x *WorkspaceSetting) Reset() {
  130. *x = WorkspaceSetting{}
  131. mi := &file_store_workspace_setting_proto_msgTypes[0]
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. ms.StoreMessageInfo(mi)
  134. }
  135. func (x *WorkspaceSetting) String() string {
  136. return protoimpl.X.MessageStringOf(x)
  137. }
  138. func (*WorkspaceSetting) ProtoMessage() {}
  139. func (x *WorkspaceSetting) ProtoReflect() protoreflect.Message {
  140. mi := &file_store_workspace_setting_proto_msgTypes[0]
  141. if 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 WorkspaceSetting.ProtoReflect.Descriptor instead.
  151. func (*WorkspaceSetting) Descriptor() ([]byte, []int) {
  152. return file_store_workspace_setting_proto_rawDescGZIP(), []int{0}
  153. }
  154. func (x *WorkspaceSetting) GetKey() WorkspaceSettingKey {
  155. if x != nil {
  156. return x.Key
  157. }
  158. return WorkspaceSettingKey_WORKSPACE_SETTING_KEY_UNSPECIFIED
  159. }
  160. func (x *WorkspaceSetting) GetValue() isWorkspaceSetting_Value {
  161. if x != nil {
  162. return x.Value
  163. }
  164. return nil
  165. }
  166. func (x *WorkspaceSetting) GetBasicSetting() *WorkspaceBasicSetting {
  167. if x != nil {
  168. if x, ok := x.Value.(*WorkspaceSetting_BasicSetting); ok {
  169. return x.BasicSetting
  170. }
  171. }
  172. return nil
  173. }
  174. func (x *WorkspaceSetting) GetGeneralSetting() *WorkspaceGeneralSetting {
  175. if x != nil {
  176. if x, ok := x.Value.(*WorkspaceSetting_GeneralSetting); ok {
  177. return x.GeneralSetting
  178. }
  179. }
  180. return nil
  181. }
  182. func (x *WorkspaceSetting) GetStorageSetting() *WorkspaceStorageSetting {
  183. if x != nil {
  184. if x, ok := x.Value.(*WorkspaceSetting_StorageSetting); ok {
  185. return x.StorageSetting
  186. }
  187. }
  188. return nil
  189. }
  190. func (x *WorkspaceSetting) GetMemoRelatedSetting() *WorkspaceMemoRelatedSetting {
  191. if x != nil {
  192. if x, ok := x.Value.(*WorkspaceSetting_MemoRelatedSetting); ok {
  193. return x.MemoRelatedSetting
  194. }
  195. }
  196. return nil
  197. }
  198. type isWorkspaceSetting_Value interface {
  199. isWorkspaceSetting_Value()
  200. }
  201. type WorkspaceSetting_BasicSetting struct {
  202. BasicSetting *WorkspaceBasicSetting `protobuf:"bytes,2,opt,name=basic_setting,json=basicSetting,proto3,oneof"`
  203. }
  204. type WorkspaceSetting_GeneralSetting struct {
  205. GeneralSetting *WorkspaceGeneralSetting `protobuf:"bytes,3,opt,name=general_setting,json=generalSetting,proto3,oneof"`
  206. }
  207. type WorkspaceSetting_StorageSetting struct {
  208. StorageSetting *WorkspaceStorageSetting `protobuf:"bytes,4,opt,name=storage_setting,json=storageSetting,proto3,oneof"`
  209. }
  210. type WorkspaceSetting_MemoRelatedSetting struct {
  211. MemoRelatedSetting *WorkspaceMemoRelatedSetting `protobuf:"bytes,5,opt,name=memo_related_setting,json=memoRelatedSetting,proto3,oneof"`
  212. }
  213. func (*WorkspaceSetting_BasicSetting) isWorkspaceSetting_Value() {}
  214. func (*WorkspaceSetting_GeneralSetting) isWorkspaceSetting_Value() {}
  215. func (*WorkspaceSetting_StorageSetting) isWorkspaceSetting_Value() {}
  216. func (*WorkspaceSetting_MemoRelatedSetting) isWorkspaceSetting_Value() {}
  217. type WorkspaceBasicSetting struct {
  218. state protoimpl.MessageState `protogen:"open.v1"`
  219. // The secret key for workspace. Mainly used for session management.
  220. SecretKey string `protobuf:"bytes,1,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
  221. // The current schema version of database.
  222. SchemaVersion string `protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
  223. unknownFields protoimpl.UnknownFields
  224. sizeCache protoimpl.SizeCache
  225. }
  226. func (x *WorkspaceBasicSetting) Reset() {
  227. *x = WorkspaceBasicSetting{}
  228. mi := &file_store_workspace_setting_proto_msgTypes[1]
  229. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  230. ms.StoreMessageInfo(mi)
  231. }
  232. func (x *WorkspaceBasicSetting) String() string {
  233. return protoimpl.X.MessageStringOf(x)
  234. }
  235. func (*WorkspaceBasicSetting) ProtoMessage() {}
  236. func (x *WorkspaceBasicSetting) ProtoReflect() protoreflect.Message {
  237. mi := &file_store_workspace_setting_proto_msgTypes[1]
  238. if x != nil {
  239. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  240. if ms.LoadMessageInfo() == nil {
  241. ms.StoreMessageInfo(mi)
  242. }
  243. return ms
  244. }
  245. return mi.MessageOf(x)
  246. }
  247. // Deprecated: Use WorkspaceBasicSetting.ProtoReflect.Descriptor instead.
  248. func (*WorkspaceBasicSetting) Descriptor() ([]byte, []int) {
  249. return file_store_workspace_setting_proto_rawDescGZIP(), []int{1}
  250. }
  251. func (x *WorkspaceBasicSetting) GetSecretKey() string {
  252. if x != nil {
  253. return x.SecretKey
  254. }
  255. return ""
  256. }
  257. func (x *WorkspaceBasicSetting) GetSchemaVersion() string {
  258. if x != nil {
  259. return x.SchemaVersion
  260. }
  261. return ""
  262. }
  263. type WorkspaceGeneralSetting struct {
  264. state protoimpl.MessageState `protogen:"open.v1"`
  265. // disallow_user_registration disallows user registration.
  266. DisallowUserRegistration bool `protobuf:"varint,1,opt,name=disallow_user_registration,json=disallowUserRegistration,proto3" json:"disallow_user_registration,omitempty"`
  267. // disallow_password_auth disallows password authentication.
  268. DisallowPasswordAuth bool `protobuf:"varint,2,opt,name=disallow_password_auth,json=disallowPasswordAuth,proto3" json:"disallow_password_auth,omitempty"`
  269. // additional_script is the additional script.
  270. AdditionalScript string `protobuf:"bytes,3,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"`
  271. // additional_style is the additional style.
  272. AdditionalStyle string `protobuf:"bytes,4,opt,name=additional_style,json=additionalStyle,proto3" json:"additional_style,omitempty"`
  273. // custom_profile is the custom profile.
  274. CustomProfile *WorkspaceCustomProfile `protobuf:"bytes,5,opt,name=custom_profile,json=customProfile,proto3" json:"custom_profile,omitempty"`
  275. // week_start_day_offset is the week start day offset from Sunday.
  276. // 0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday
  277. // Default is Sunday.
  278. WeekStartDayOffset int32 `protobuf:"varint,6,opt,name=week_start_day_offset,json=weekStartDayOffset,proto3" json:"week_start_day_offset,omitempty"`
  279. // disallow_change_username disallows changing username.
  280. DisallowChangeUsername bool `protobuf:"varint,7,opt,name=disallow_change_username,json=disallowChangeUsername,proto3" json:"disallow_change_username,omitempty"`
  281. // disallow_change_nickname disallows changing nickname.
  282. DisallowChangeNickname bool `protobuf:"varint,8,opt,name=disallow_change_nickname,json=disallowChangeNickname,proto3" json:"disallow_change_nickname,omitempty"`
  283. unknownFields protoimpl.UnknownFields
  284. sizeCache protoimpl.SizeCache
  285. }
  286. func (x *WorkspaceGeneralSetting) Reset() {
  287. *x = WorkspaceGeneralSetting{}
  288. mi := &file_store_workspace_setting_proto_msgTypes[2]
  289. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  290. ms.StoreMessageInfo(mi)
  291. }
  292. func (x *WorkspaceGeneralSetting) String() string {
  293. return protoimpl.X.MessageStringOf(x)
  294. }
  295. func (*WorkspaceGeneralSetting) ProtoMessage() {}
  296. func (x *WorkspaceGeneralSetting) ProtoReflect() protoreflect.Message {
  297. mi := &file_store_workspace_setting_proto_msgTypes[2]
  298. if x != nil {
  299. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  300. if ms.LoadMessageInfo() == nil {
  301. ms.StoreMessageInfo(mi)
  302. }
  303. return ms
  304. }
  305. return mi.MessageOf(x)
  306. }
  307. // Deprecated: Use WorkspaceGeneralSetting.ProtoReflect.Descriptor instead.
  308. func (*WorkspaceGeneralSetting) Descriptor() ([]byte, []int) {
  309. return file_store_workspace_setting_proto_rawDescGZIP(), []int{2}
  310. }
  311. func (x *WorkspaceGeneralSetting) GetDisallowUserRegistration() bool {
  312. if x != nil {
  313. return x.DisallowUserRegistration
  314. }
  315. return false
  316. }
  317. func (x *WorkspaceGeneralSetting) GetDisallowPasswordAuth() bool {
  318. if x != nil {
  319. return x.DisallowPasswordAuth
  320. }
  321. return false
  322. }
  323. func (x *WorkspaceGeneralSetting) GetAdditionalScript() string {
  324. if x != nil {
  325. return x.AdditionalScript
  326. }
  327. return ""
  328. }
  329. func (x *WorkspaceGeneralSetting) GetAdditionalStyle() string {
  330. if x != nil {
  331. return x.AdditionalStyle
  332. }
  333. return ""
  334. }
  335. func (x *WorkspaceGeneralSetting) GetCustomProfile() *WorkspaceCustomProfile {
  336. if x != nil {
  337. return x.CustomProfile
  338. }
  339. return nil
  340. }
  341. func (x *WorkspaceGeneralSetting) GetWeekStartDayOffset() int32 {
  342. if x != nil {
  343. return x.WeekStartDayOffset
  344. }
  345. return 0
  346. }
  347. func (x *WorkspaceGeneralSetting) GetDisallowChangeUsername() bool {
  348. if x != nil {
  349. return x.DisallowChangeUsername
  350. }
  351. return false
  352. }
  353. func (x *WorkspaceGeneralSetting) GetDisallowChangeNickname() bool {
  354. if x != nil {
  355. return x.DisallowChangeNickname
  356. }
  357. return false
  358. }
  359. type WorkspaceCustomProfile struct {
  360. state protoimpl.MessageState `protogen:"open.v1"`
  361. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
  362. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  363. LogoUrl string `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
  364. Locale string `protobuf:"bytes,4,opt,name=locale,proto3" json:"locale,omitempty"`
  365. Appearance string `protobuf:"bytes,5,opt,name=appearance,proto3" json:"appearance,omitempty"`
  366. unknownFields protoimpl.UnknownFields
  367. sizeCache protoimpl.SizeCache
  368. }
  369. func (x *WorkspaceCustomProfile) Reset() {
  370. *x = WorkspaceCustomProfile{}
  371. mi := &file_store_workspace_setting_proto_msgTypes[3]
  372. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  373. ms.StoreMessageInfo(mi)
  374. }
  375. func (x *WorkspaceCustomProfile) String() string {
  376. return protoimpl.X.MessageStringOf(x)
  377. }
  378. func (*WorkspaceCustomProfile) ProtoMessage() {}
  379. func (x *WorkspaceCustomProfile) ProtoReflect() protoreflect.Message {
  380. mi := &file_store_workspace_setting_proto_msgTypes[3]
  381. if 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 WorkspaceCustomProfile.ProtoReflect.Descriptor instead.
  391. func (*WorkspaceCustomProfile) Descriptor() ([]byte, []int) {
  392. return file_store_workspace_setting_proto_rawDescGZIP(), []int{3}
  393. }
  394. func (x *WorkspaceCustomProfile) GetTitle() string {
  395. if x != nil {
  396. return x.Title
  397. }
  398. return ""
  399. }
  400. func (x *WorkspaceCustomProfile) GetDescription() string {
  401. if x != nil {
  402. return x.Description
  403. }
  404. return ""
  405. }
  406. func (x *WorkspaceCustomProfile) GetLogoUrl() string {
  407. if x != nil {
  408. return x.LogoUrl
  409. }
  410. return ""
  411. }
  412. func (x *WorkspaceCustomProfile) GetLocale() string {
  413. if x != nil {
  414. return x.Locale
  415. }
  416. return ""
  417. }
  418. func (x *WorkspaceCustomProfile) GetAppearance() string {
  419. if x != nil {
  420. return x.Appearance
  421. }
  422. return ""
  423. }
  424. type WorkspaceStorageSetting struct {
  425. state protoimpl.MessageState `protogen:"open.v1"`
  426. // storage_type is the storage type.
  427. StorageType WorkspaceStorageSetting_StorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=memos.store.WorkspaceStorageSetting_StorageType" json:"storage_type,omitempty"`
  428. // The template of file path.
  429. // e.g. assets/{timestamp}_{filename}
  430. FilepathTemplate string `protobuf:"bytes,2,opt,name=filepath_template,json=filepathTemplate,proto3" json:"filepath_template,omitempty"`
  431. // The max upload size in megabytes.
  432. UploadSizeLimitMb int64 `protobuf:"varint,3,opt,name=upload_size_limit_mb,json=uploadSizeLimitMb,proto3" json:"upload_size_limit_mb,omitempty"`
  433. // The S3 config.
  434. S3Config *StorageS3Config `protobuf:"bytes,4,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
  435. unknownFields protoimpl.UnknownFields
  436. sizeCache protoimpl.SizeCache
  437. }
  438. func (x *WorkspaceStorageSetting) Reset() {
  439. *x = WorkspaceStorageSetting{}
  440. mi := &file_store_workspace_setting_proto_msgTypes[4]
  441. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  442. ms.StoreMessageInfo(mi)
  443. }
  444. func (x *WorkspaceStorageSetting) String() string {
  445. return protoimpl.X.MessageStringOf(x)
  446. }
  447. func (*WorkspaceStorageSetting) ProtoMessage() {}
  448. func (x *WorkspaceStorageSetting) ProtoReflect() protoreflect.Message {
  449. mi := &file_store_workspace_setting_proto_msgTypes[4]
  450. if 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 WorkspaceStorageSetting.ProtoReflect.Descriptor instead.
  460. func (*WorkspaceStorageSetting) Descriptor() ([]byte, []int) {
  461. return file_store_workspace_setting_proto_rawDescGZIP(), []int{4}
  462. }
  463. func (x *WorkspaceStorageSetting) GetStorageType() WorkspaceStorageSetting_StorageType {
  464. if x != nil {
  465. return x.StorageType
  466. }
  467. return WorkspaceStorageSetting_STORAGE_TYPE_UNSPECIFIED
  468. }
  469. func (x *WorkspaceStorageSetting) GetFilepathTemplate() string {
  470. if x != nil {
  471. return x.FilepathTemplate
  472. }
  473. return ""
  474. }
  475. func (x *WorkspaceStorageSetting) GetUploadSizeLimitMb() int64 {
  476. if x != nil {
  477. return x.UploadSizeLimitMb
  478. }
  479. return 0
  480. }
  481. func (x *WorkspaceStorageSetting) GetS3Config() *StorageS3Config {
  482. if x != nil {
  483. return x.S3Config
  484. }
  485. return nil
  486. }
  487. // Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/
  488. type StorageS3Config struct {
  489. state protoimpl.MessageState `protogen:"open.v1"`
  490. AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
  491. AccessKeySecret string `protobuf:"bytes,2,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
  492. Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
  493. Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
  494. Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
  495. UsePathStyle bool `protobuf:"varint,6,opt,name=use_path_style,json=usePathStyle,proto3" json:"use_path_style,omitempty"`
  496. unknownFields protoimpl.UnknownFields
  497. sizeCache protoimpl.SizeCache
  498. }
  499. func (x *StorageS3Config) Reset() {
  500. *x = StorageS3Config{}
  501. mi := &file_store_workspace_setting_proto_msgTypes[5]
  502. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  503. ms.StoreMessageInfo(mi)
  504. }
  505. func (x *StorageS3Config) String() string {
  506. return protoimpl.X.MessageStringOf(x)
  507. }
  508. func (*StorageS3Config) ProtoMessage() {}
  509. func (x *StorageS3Config) ProtoReflect() protoreflect.Message {
  510. mi := &file_store_workspace_setting_proto_msgTypes[5]
  511. if x != nil {
  512. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  513. if ms.LoadMessageInfo() == nil {
  514. ms.StoreMessageInfo(mi)
  515. }
  516. return ms
  517. }
  518. return mi.MessageOf(x)
  519. }
  520. // Deprecated: Use StorageS3Config.ProtoReflect.Descriptor instead.
  521. func (*StorageS3Config) Descriptor() ([]byte, []int) {
  522. return file_store_workspace_setting_proto_rawDescGZIP(), []int{5}
  523. }
  524. func (x *StorageS3Config) GetAccessKeyId() string {
  525. if x != nil {
  526. return x.AccessKeyId
  527. }
  528. return ""
  529. }
  530. func (x *StorageS3Config) GetAccessKeySecret() string {
  531. if x != nil {
  532. return x.AccessKeySecret
  533. }
  534. return ""
  535. }
  536. func (x *StorageS3Config) GetEndpoint() string {
  537. if x != nil {
  538. return x.Endpoint
  539. }
  540. return ""
  541. }
  542. func (x *StorageS3Config) GetRegion() string {
  543. if x != nil {
  544. return x.Region
  545. }
  546. return ""
  547. }
  548. func (x *StorageS3Config) GetBucket() string {
  549. if x != nil {
  550. return x.Bucket
  551. }
  552. return ""
  553. }
  554. func (x *StorageS3Config) GetUsePathStyle() bool {
  555. if x != nil {
  556. return x.UsePathStyle
  557. }
  558. return false
  559. }
  560. type WorkspaceMemoRelatedSetting struct {
  561. state protoimpl.MessageState `protogen:"open.v1"`
  562. // disallow_public_visibility disallows set memo as public visibility.
  563. DisallowPublicVisibility bool `protobuf:"varint,1,opt,name=disallow_public_visibility,json=disallowPublicVisibility,proto3" json:"disallow_public_visibility,omitempty"`
  564. // display_with_update_time orders and displays memo with update time.
  565. DisplayWithUpdateTime bool `protobuf:"varint,2,opt,name=display_with_update_time,json=displayWithUpdateTime,proto3" json:"display_with_update_time,omitempty"`
  566. // content_length_limit is the limit of content length. Unit is byte.
  567. ContentLengthLimit int32 `protobuf:"varint,3,opt,name=content_length_limit,json=contentLengthLimit,proto3" json:"content_length_limit,omitempty"`
  568. // enable_auto_compact enables auto compact for large content.
  569. EnableAutoCompact bool `protobuf:"varint,4,opt,name=enable_auto_compact,json=enableAutoCompact,proto3" json:"enable_auto_compact,omitempty"`
  570. // enable_double_click_edit enables editing on double click.
  571. EnableDoubleClickEdit bool `protobuf:"varint,5,opt,name=enable_double_click_edit,json=enableDoubleClickEdit,proto3" json:"enable_double_click_edit,omitempty"`
  572. // enable_link_preview enables links preview.
  573. EnableLinkPreview bool `protobuf:"varint,6,opt,name=enable_link_preview,json=enableLinkPreview,proto3" json:"enable_link_preview,omitempty"`
  574. // enable_comment enables comment.
  575. EnableComment bool `protobuf:"varint,7,opt,name=enable_comment,json=enableComment,proto3" json:"enable_comment,omitempty"`
  576. // enable_location enables setting location for memo.
  577. EnableLocation bool `protobuf:"varint,8,opt,name=enable_location,json=enableLocation,proto3" json:"enable_location,omitempty"`
  578. // default_visibility set the global memos default visibility.
  579. DefaultVisibility string `protobuf:"bytes,9,opt,name=default_visibility,json=defaultVisibility,proto3" json:"default_visibility,omitempty"`
  580. // reactions is the list of reactions.
  581. Reactions []string `protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
  582. // disable markdown shortcuts
  583. DisableMarkdownShortcuts bool `protobuf:"varint,11,opt,name=disable_markdown_shortcuts,json=disableMarkdownShortcuts,proto3" json:"disable_markdown_shortcuts,omitempty"`
  584. unknownFields protoimpl.UnknownFields
  585. sizeCache protoimpl.SizeCache
  586. }
  587. func (x *WorkspaceMemoRelatedSetting) Reset() {
  588. *x = WorkspaceMemoRelatedSetting{}
  589. mi := &file_store_workspace_setting_proto_msgTypes[6]
  590. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  591. ms.StoreMessageInfo(mi)
  592. }
  593. func (x *WorkspaceMemoRelatedSetting) String() string {
  594. return protoimpl.X.MessageStringOf(x)
  595. }
  596. func (*WorkspaceMemoRelatedSetting) ProtoMessage() {}
  597. func (x *WorkspaceMemoRelatedSetting) ProtoReflect() protoreflect.Message {
  598. mi := &file_store_workspace_setting_proto_msgTypes[6]
  599. if x != nil {
  600. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  601. if ms.LoadMessageInfo() == nil {
  602. ms.StoreMessageInfo(mi)
  603. }
  604. return ms
  605. }
  606. return mi.MessageOf(x)
  607. }
  608. // Deprecated: Use WorkspaceMemoRelatedSetting.ProtoReflect.Descriptor instead.
  609. func (*WorkspaceMemoRelatedSetting) Descriptor() ([]byte, []int) {
  610. return file_store_workspace_setting_proto_rawDescGZIP(), []int{6}
  611. }
  612. func (x *WorkspaceMemoRelatedSetting) GetDisallowPublicVisibility() bool {
  613. if x != nil {
  614. return x.DisallowPublicVisibility
  615. }
  616. return false
  617. }
  618. func (x *WorkspaceMemoRelatedSetting) GetDisplayWithUpdateTime() bool {
  619. if x != nil {
  620. return x.DisplayWithUpdateTime
  621. }
  622. return false
  623. }
  624. func (x *WorkspaceMemoRelatedSetting) GetContentLengthLimit() int32 {
  625. if x != nil {
  626. return x.ContentLengthLimit
  627. }
  628. return 0
  629. }
  630. func (x *WorkspaceMemoRelatedSetting) GetEnableAutoCompact() bool {
  631. if x != nil {
  632. return x.EnableAutoCompact
  633. }
  634. return false
  635. }
  636. func (x *WorkspaceMemoRelatedSetting) GetEnableDoubleClickEdit() bool {
  637. if x != nil {
  638. return x.EnableDoubleClickEdit
  639. }
  640. return false
  641. }
  642. func (x *WorkspaceMemoRelatedSetting) GetEnableLinkPreview() bool {
  643. if x != nil {
  644. return x.EnableLinkPreview
  645. }
  646. return false
  647. }
  648. func (x *WorkspaceMemoRelatedSetting) GetEnableComment() bool {
  649. if x != nil {
  650. return x.EnableComment
  651. }
  652. return false
  653. }
  654. func (x *WorkspaceMemoRelatedSetting) GetEnableLocation() bool {
  655. if x != nil {
  656. return x.EnableLocation
  657. }
  658. return false
  659. }
  660. func (x *WorkspaceMemoRelatedSetting) GetDefaultVisibility() string {
  661. if x != nil {
  662. return x.DefaultVisibility
  663. }
  664. return ""
  665. }
  666. func (x *WorkspaceMemoRelatedSetting) GetReactions() []string {
  667. if x != nil {
  668. return x.Reactions
  669. }
  670. return nil
  671. }
  672. func (x *WorkspaceMemoRelatedSetting) GetDisableMarkdownShortcuts() bool {
  673. if x != nil {
  674. return x.DisableMarkdownShortcuts
  675. }
  676. return false
  677. }
  678. var File_store_workspace_setting_proto protoreflect.FileDescriptor
  679. var file_store_workspace_setting_proto_rawDesc = string([]byte{
  680. 0x0a, 0x1d, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  681. 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  682. 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x9a, 0x03, 0x0a,
  683. 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  684. 0x67, 0x12, 0x32, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20,
  685. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72,
  686. 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79,
  687. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x49, 0x0a, 0x0d, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x73,
  688. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d,
  689. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73,
  690. 0x70, 0x61, 0x63, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  691. 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  692. 0x12, 0x4f, 0x0a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x74,
  693. 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  694. 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  695. 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48,
  696. 0x00, 0x52, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  697. 0x67, 0x12, 0x4f, 0x0a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74,
  698. 0x74, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d,
  699. 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
  700. 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  701. 0x48, 0x00, 0x52, 0x0e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,
  702. 0x6e, 0x67, 0x12, 0x5c, 0x0a, 0x14, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74,
  703. 0x65, 0x64, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
  704. 0x32, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57,
  705. 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61,
  706. 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65,
  707. 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  708. 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5d, 0x0a, 0x15, 0x57, 0x6f, 0x72,
  709. 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69,
  710. 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79,
  711. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65,
  712. 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73,
  713. 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d,
  714. 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xd8, 0x03, 0x0a, 0x17, 0x57, 0x6f, 0x72,
  715. 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74,
  716. 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
  717. 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69,
  718. 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c,
  719. 0x6f, 0x77, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69,
  720. 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70,
  721. 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01,
  722. 0x28, 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73,
  723. 0x77, 0x6f, 0x72, 0x64, 0x41, 0x75, 0x74, 0x68, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69,
  724. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x03, 0x20,
  725. 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53,
  726. 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f,
  727. 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  728. 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x79, 0x6c, 0x65,
  729. 0x12, 0x4a, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69,
  730. 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
  731. 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,
  732. 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x0d, 0x63,
  733. 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x15,
  734. 0x77, 0x65, 0x65, 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6f,
  735. 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x77, 0x65, 0x65,
  736. 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 0x79, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12,
  737. 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x68, 0x61, 0x6e,
  738. 0x67, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
  739. 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67,
  740. 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73,
  741. 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6e, 0x69, 0x63,
  742. 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73,
  743. 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x69, 0x63, 0x6b, 0x6e,
  744. 0x61, 0x6d, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  745. 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x14,
  746. 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
  747. 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  748. 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
  749. 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75,
  750. 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72,
  751. 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
  752. 0x09, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70,
  753. 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61,
  754. 0x70, 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x17, 0x57, 0x6f,
  755. 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65,
  756. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x53, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
  757. 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6d, 0x65,
  758. 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70,
  759. 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  760. 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73,
  761. 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69,
  762. 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18,
  763. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x54,
  764. 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x6c, 0x6f, 0x61,
  765. 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x62, 0x18,
  766. 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a,
  767. 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63,
  768. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x65,
  769. 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67,
  770. 0x65, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e,
  771. 0x66, 0x69, 0x67, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79,
  772. 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59,
  773. 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
  774. 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09,
  775. 0x0a, 0x05, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10,
  776. 0x03, 0x22, 0xd3, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x33, 0x43,
  777. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f,
  778. 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63,
  779. 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63,
  780. 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02,
  781. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53,
  782. 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
  783. 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
  784. 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
  785. 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63,
  786. 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65,
  787. 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x73, 0x74,
  788. 0x79, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x50, 0x61,
  789. 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0xba, 0x04, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b,
  790. 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64,
  791. 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x6c,
  792. 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62,
  793. 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73,
  794. 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x56, 0x69, 0x73, 0x69, 0x62,
  795. 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x37, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
  796. 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,
  797. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
  798. 0x57, 0x69, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x30,
  799. 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
  800. 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x63, 0x6f,
  801. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4c, 0x69, 0x6d, 0x69, 0x74,
  802. 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f,
  803. 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65,
  804. 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74,
  805. 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c,
  806. 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01,
  807. 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65,
  808. 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61,
  809. 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77,
  810. 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x69,
  811. 0x6e, 0x6b, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x61,
  812. 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28,
  813. 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
  814. 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74,
  815. 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  816. 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66,
  817. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18,
  818. 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x69,
  819. 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x63,
  820. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x61,
  821. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
  822. 0x65, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74,
  823. 0x63, 0x75, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61,
  824. 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x53, 0x68, 0x6f, 0x72, 0x74,
  825. 0x63, 0x75, 0x74, 0x73, 0x2a, 0x73, 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  826. 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x57,
  827. 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47,
  828. 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
  829. 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0b, 0x0a,
  830. 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54,
  831. 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f,
  832. 0x52, 0x45, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x04, 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f,
  833. 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x15, 0x57,
  834. 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50,
  835. 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
  836. 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f,
  837. 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72,
  838. 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
  839. 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74,
  840. 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72,
  841. 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c,
  842. 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72,
  843. 0x6f, 0x74, 0x6f, 0x33,
  844. })
  845. var (
  846. file_store_workspace_setting_proto_rawDescOnce sync.Once
  847. file_store_workspace_setting_proto_rawDescData []byte
  848. )
  849. func file_store_workspace_setting_proto_rawDescGZIP() []byte {
  850. file_store_workspace_setting_proto_rawDescOnce.Do(func() {
  851. file_store_workspace_setting_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_workspace_setting_proto_rawDesc), len(file_store_workspace_setting_proto_rawDesc)))
  852. })
  853. return file_store_workspace_setting_proto_rawDescData
  854. }
  855. var file_store_workspace_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  856. var file_store_workspace_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  857. var file_store_workspace_setting_proto_goTypes = []any{
  858. (WorkspaceSettingKey)(0), // 0: memos.store.WorkspaceSettingKey
  859. (WorkspaceStorageSetting_StorageType)(0), // 1: memos.store.WorkspaceStorageSetting.StorageType
  860. (*WorkspaceSetting)(nil), // 2: memos.store.WorkspaceSetting
  861. (*WorkspaceBasicSetting)(nil), // 3: memos.store.WorkspaceBasicSetting
  862. (*WorkspaceGeneralSetting)(nil), // 4: memos.store.WorkspaceGeneralSetting
  863. (*WorkspaceCustomProfile)(nil), // 5: memos.store.WorkspaceCustomProfile
  864. (*WorkspaceStorageSetting)(nil), // 6: memos.store.WorkspaceStorageSetting
  865. (*StorageS3Config)(nil), // 7: memos.store.StorageS3Config
  866. (*WorkspaceMemoRelatedSetting)(nil), // 8: memos.store.WorkspaceMemoRelatedSetting
  867. }
  868. var file_store_workspace_setting_proto_depIdxs = []int32{
  869. 0, // 0: memos.store.WorkspaceSetting.key:type_name -> memos.store.WorkspaceSettingKey
  870. 3, // 1: memos.store.WorkspaceSetting.basic_setting:type_name -> memos.store.WorkspaceBasicSetting
  871. 4, // 2: memos.store.WorkspaceSetting.general_setting:type_name -> memos.store.WorkspaceGeneralSetting
  872. 6, // 3: memos.store.WorkspaceSetting.storage_setting:type_name -> memos.store.WorkspaceStorageSetting
  873. 8, // 4: memos.store.WorkspaceSetting.memo_related_setting:type_name -> memos.store.WorkspaceMemoRelatedSetting
  874. 5, // 5: memos.store.WorkspaceGeneralSetting.custom_profile:type_name -> memos.store.WorkspaceCustomProfile
  875. 1, // 6: memos.store.WorkspaceStorageSetting.storage_type:type_name -> memos.store.WorkspaceStorageSetting.StorageType
  876. 7, // 7: memos.store.WorkspaceStorageSetting.s3_config:type_name -> memos.store.StorageS3Config
  877. 8, // [8:8] is the sub-list for method output_type
  878. 8, // [8:8] is the sub-list for method input_type
  879. 8, // [8:8] is the sub-list for extension type_name
  880. 8, // [8:8] is the sub-list for extension extendee
  881. 0, // [0:8] is the sub-list for field type_name
  882. }
  883. func init() { file_store_workspace_setting_proto_init() }
  884. func file_store_workspace_setting_proto_init() {
  885. if File_store_workspace_setting_proto != nil {
  886. return
  887. }
  888. file_store_workspace_setting_proto_msgTypes[0].OneofWrappers = []any{
  889. (*WorkspaceSetting_BasicSetting)(nil),
  890. (*WorkspaceSetting_GeneralSetting)(nil),
  891. (*WorkspaceSetting_StorageSetting)(nil),
  892. (*WorkspaceSetting_MemoRelatedSetting)(nil),
  893. }
  894. type x struct{}
  895. out := protoimpl.TypeBuilder{
  896. File: protoimpl.DescBuilder{
  897. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  898. RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_workspace_setting_proto_rawDesc), len(file_store_workspace_setting_proto_rawDesc)),
  899. NumEnums: 2,
  900. NumMessages: 7,
  901. NumExtensions: 0,
  902. NumServices: 0,
  903. },
  904. GoTypes: file_store_workspace_setting_proto_goTypes,
  905. DependencyIndexes: file_store_workspace_setting_proto_depIdxs,
  906. EnumInfos: file_store_workspace_setting_proto_enumTypes,
  907. MessageInfos: file_store_workspace_setting_proto_msgTypes,
  908. }.Build()
  909. File_store_workspace_setting_proto = out.File
  910. file_store_workspace_setting_proto_goTypes = nil
  911. file_store_workspace_setting_proto_depIdxs = nil
  912. }