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