workspace_setting.pb.go 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  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
  117. sizeCache protoimpl.SizeCache
  118. unknownFields protoimpl.UnknownFields
  119. Key WorkspaceSettingKey `protobuf:"varint,1,opt,name=key,proto3,enum=memos.store.WorkspaceSettingKey" json:"key,omitempty"`
  120. // Types that are assignable to Value:
  121. //
  122. // *WorkspaceSetting_BasicSetting
  123. // *WorkspaceSetting_GeneralSetting
  124. // *WorkspaceSetting_StorageSetting
  125. // *WorkspaceSetting_MemoRelatedSetting
  126. Value isWorkspaceSetting_Value `protobuf_oneof:"value"`
  127. }
  128. func (x *WorkspaceSetting) Reset() {
  129. *x = WorkspaceSetting{}
  130. if protoimpl.UnsafeEnabled {
  131. mi := &file_store_workspace_setting_proto_msgTypes[0]
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. ms.StoreMessageInfo(mi)
  134. }
  135. }
  136. func (x *WorkspaceSetting) String() string {
  137. return protoimpl.X.MessageStringOf(x)
  138. }
  139. func (*WorkspaceSetting) ProtoMessage() {}
  140. func (x *WorkspaceSetting) ProtoReflect() protoreflect.Message {
  141. mi := &file_store_workspace_setting_proto_msgTypes[0]
  142. if protoimpl.UnsafeEnabled && x != nil {
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. if ms.LoadMessageInfo() == nil {
  145. ms.StoreMessageInfo(mi)
  146. }
  147. return ms
  148. }
  149. return mi.MessageOf(x)
  150. }
  151. // Deprecated: Use WorkspaceSetting.ProtoReflect.Descriptor instead.
  152. func (*WorkspaceSetting) Descriptor() ([]byte, []int) {
  153. return file_store_workspace_setting_proto_rawDescGZIP(), []int{0}
  154. }
  155. func (x *WorkspaceSetting) GetKey() WorkspaceSettingKey {
  156. if x != nil {
  157. return x.Key
  158. }
  159. return WorkspaceSettingKey_WORKSPACE_SETTING_KEY_UNSPECIFIED
  160. }
  161. func (m *WorkspaceSetting) GetValue() isWorkspaceSetting_Value {
  162. if m != nil {
  163. return m.Value
  164. }
  165. return nil
  166. }
  167. func (x *WorkspaceSetting) GetBasicSetting() *WorkspaceBasicSetting {
  168. if x, ok := x.GetValue().(*WorkspaceSetting_BasicSetting); ok {
  169. return x.BasicSetting
  170. }
  171. return nil
  172. }
  173. func (x *WorkspaceSetting) GetGeneralSetting() *WorkspaceGeneralSetting {
  174. if x, ok := x.GetValue().(*WorkspaceSetting_GeneralSetting); ok {
  175. return x.GeneralSetting
  176. }
  177. return nil
  178. }
  179. func (x *WorkspaceSetting) GetStorageSetting() *WorkspaceStorageSetting {
  180. if x, ok := x.GetValue().(*WorkspaceSetting_StorageSetting); ok {
  181. return x.StorageSetting
  182. }
  183. return nil
  184. }
  185. func (x *WorkspaceSetting) GetMemoRelatedSetting() *WorkspaceMemoRelatedSetting {
  186. if x, ok := x.GetValue().(*WorkspaceSetting_MemoRelatedSetting); ok {
  187. return x.MemoRelatedSetting
  188. }
  189. return nil
  190. }
  191. type isWorkspaceSetting_Value interface {
  192. isWorkspaceSetting_Value()
  193. }
  194. type WorkspaceSetting_BasicSetting struct {
  195. BasicSetting *WorkspaceBasicSetting `protobuf:"bytes,2,opt,name=basic_setting,json=basicSetting,proto3,oneof"`
  196. }
  197. type WorkspaceSetting_GeneralSetting struct {
  198. GeneralSetting *WorkspaceGeneralSetting `protobuf:"bytes,3,opt,name=general_setting,json=generalSetting,proto3,oneof"`
  199. }
  200. type WorkspaceSetting_StorageSetting struct {
  201. StorageSetting *WorkspaceStorageSetting `protobuf:"bytes,4,opt,name=storage_setting,json=storageSetting,proto3,oneof"`
  202. }
  203. type WorkspaceSetting_MemoRelatedSetting struct {
  204. MemoRelatedSetting *WorkspaceMemoRelatedSetting `protobuf:"bytes,5,opt,name=memo_related_setting,json=memoRelatedSetting,proto3,oneof"`
  205. }
  206. func (*WorkspaceSetting_BasicSetting) isWorkspaceSetting_Value() {}
  207. func (*WorkspaceSetting_GeneralSetting) isWorkspaceSetting_Value() {}
  208. func (*WorkspaceSetting_StorageSetting) isWorkspaceSetting_Value() {}
  209. func (*WorkspaceSetting_MemoRelatedSetting) isWorkspaceSetting_Value() {}
  210. type WorkspaceBasicSetting struct {
  211. state protoimpl.MessageState
  212. sizeCache protoimpl.SizeCache
  213. unknownFields protoimpl.UnknownFields
  214. SecretKey string `protobuf:"bytes,1,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
  215. }
  216. func (x *WorkspaceBasicSetting) Reset() {
  217. *x = WorkspaceBasicSetting{}
  218. if protoimpl.UnsafeEnabled {
  219. mi := &file_store_workspace_setting_proto_msgTypes[1]
  220. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  221. ms.StoreMessageInfo(mi)
  222. }
  223. }
  224. func (x *WorkspaceBasicSetting) String() string {
  225. return protoimpl.X.MessageStringOf(x)
  226. }
  227. func (*WorkspaceBasicSetting) ProtoMessage() {}
  228. func (x *WorkspaceBasicSetting) ProtoReflect() protoreflect.Message {
  229. mi := &file_store_workspace_setting_proto_msgTypes[1]
  230. if protoimpl.UnsafeEnabled && x != nil {
  231. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  232. if ms.LoadMessageInfo() == nil {
  233. ms.StoreMessageInfo(mi)
  234. }
  235. return ms
  236. }
  237. return mi.MessageOf(x)
  238. }
  239. // Deprecated: Use WorkspaceBasicSetting.ProtoReflect.Descriptor instead.
  240. func (*WorkspaceBasicSetting) Descriptor() ([]byte, []int) {
  241. return file_store_workspace_setting_proto_rawDescGZIP(), []int{1}
  242. }
  243. func (x *WorkspaceBasicSetting) GetSecretKey() string {
  244. if x != nil {
  245. return x.SecretKey
  246. }
  247. return ""
  248. }
  249. type WorkspaceGeneralSetting struct {
  250. state protoimpl.MessageState
  251. sizeCache protoimpl.SizeCache
  252. unknownFields protoimpl.UnknownFields
  253. // additional_script is the additional script.
  254. AdditionalScript string `protobuf:"bytes,3,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"`
  255. // additional_style is the additional style.
  256. AdditionalStyle string `protobuf:"bytes,4,opt,name=additional_style,json=additionalStyle,proto3" json:"additional_style,omitempty"`
  257. // custom_profile is the custom profile.
  258. CustomProfile *WorkspaceCustomProfile `protobuf:"bytes,5,opt,name=custom_profile,json=customProfile,proto3" json:"custom_profile,omitempty"`
  259. }
  260. func (x *WorkspaceGeneralSetting) Reset() {
  261. *x = WorkspaceGeneralSetting{}
  262. if protoimpl.UnsafeEnabled {
  263. mi := &file_store_workspace_setting_proto_msgTypes[2]
  264. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  265. ms.StoreMessageInfo(mi)
  266. }
  267. }
  268. func (x *WorkspaceGeneralSetting) String() string {
  269. return protoimpl.X.MessageStringOf(x)
  270. }
  271. func (*WorkspaceGeneralSetting) ProtoMessage() {}
  272. func (x *WorkspaceGeneralSetting) ProtoReflect() protoreflect.Message {
  273. mi := &file_store_workspace_setting_proto_msgTypes[2]
  274. if protoimpl.UnsafeEnabled && x != nil {
  275. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  276. if ms.LoadMessageInfo() == nil {
  277. ms.StoreMessageInfo(mi)
  278. }
  279. return ms
  280. }
  281. return mi.MessageOf(x)
  282. }
  283. // Deprecated: Use WorkspaceGeneralSetting.ProtoReflect.Descriptor instead.
  284. func (*WorkspaceGeneralSetting) Descriptor() ([]byte, []int) {
  285. return file_store_workspace_setting_proto_rawDescGZIP(), []int{2}
  286. }
  287. func (x *WorkspaceGeneralSetting) GetAdditionalScript() string {
  288. if x != nil {
  289. return x.AdditionalScript
  290. }
  291. return ""
  292. }
  293. func (x *WorkspaceGeneralSetting) GetAdditionalStyle() string {
  294. if x != nil {
  295. return x.AdditionalStyle
  296. }
  297. return ""
  298. }
  299. func (x *WorkspaceGeneralSetting) GetCustomProfile() *WorkspaceCustomProfile {
  300. if x != nil {
  301. return x.CustomProfile
  302. }
  303. return nil
  304. }
  305. type WorkspaceCustomProfile struct {
  306. state protoimpl.MessageState
  307. sizeCache protoimpl.SizeCache
  308. unknownFields protoimpl.UnknownFields
  309. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
  310. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  311. LogoUrl string `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
  312. Locale string `protobuf:"bytes,4,opt,name=locale,proto3" json:"locale,omitempty"`
  313. Appearance string `protobuf:"bytes,5,opt,name=appearance,proto3" json:"appearance,omitempty"`
  314. }
  315. func (x *WorkspaceCustomProfile) Reset() {
  316. *x = WorkspaceCustomProfile{}
  317. if protoimpl.UnsafeEnabled {
  318. mi := &file_store_workspace_setting_proto_msgTypes[3]
  319. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  320. ms.StoreMessageInfo(mi)
  321. }
  322. }
  323. func (x *WorkspaceCustomProfile) String() string {
  324. return protoimpl.X.MessageStringOf(x)
  325. }
  326. func (*WorkspaceCustomProfile) ProtoMessage() {}
  327. func (x *WorkspaceCustomProfile) ProtoReflect() protoreflect.Message {
  328. mi := &file_store_workspace_setting_proto_msgTypes[3]
  329. if protoimpl.UnsafeEnabled && x != nil {
  330. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  331. if ms.LoadMessageInfo() == nil {
  332. ms.StoreMessageInfo(mi)
  333. }
  334. return ms
  335. }
  336. return mi.MessageOf(x)
  337. }
  338. // Deprecated: Use WorkspaceCustomProfile.ProtoReflect.Descriptor instead.
  339. func (*WorkspaceCustomProfile) Descriptor() ([]byte, []int) {
  340. return file_store_workspace_setting_proto_rawDescGZIP(), []int{3}
  341. }
  342. func (x *WorkspaceCustomProfile) GetTitle() string {
  343. if x != nil {
  344. return x.Title
  345. }
  346. return ""
  347. }
  348. func (x *WorkspaceCustomProfile) GetDescription() string {
  349. if x != nil {
  350. return x.Description
  351. }
  352. return ""
  353. }
  354. func (x *WorkspaceCustomProfile) GetLogoUrl() string {
  355. if x != nil {
  356. return x.LogoUrl
  357. }
  358. return ""
  359. }
  360. func (x *WorkspaceCustomProfile) GetLocale() string {
  361. if x != nil {
  362. return x.Locale
  363. }
  364. return ""
  365. }
  366. func (x *WorkspaceCustomProfile) GetAppearance() string {
  367. if x != nil {
  368. return x.Appearance
  369. }
  370. return ""
  371. }
  372. type WorkspaceStorageSetting struct {
  373. state protoimpl.MessageState
  374. sizeCache protoimpl.SizeCache
  375. unknownFields protoimpl.UnknownFields
  376. // storage_type is the storage type.
  377. StorageType WorkspaceStorageSetting_StorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=memos.store.WorkspaceStorageSetting_StorageType" json:"storage_type,omitempty"`
  378. // The template of file path.
  379. // e.g. assets/{timestamp}_{filename}
  380. FilepathTemplate string `protobuf:"bytes,2,opt,name=filepath_template,json=filepathTemplate,proto3" json:"filepath_template,omitempty"`
  381. // The max upload size in megabytes.
  382. UploadSizeLimitMb int64 `protobuf:"varint,3,opt,name=upload_size_limit_mb,json=uploadSizeLimitMb,proto3" json:"upload_size_limit_mb,omitempty"`
  383. // The S3 config.
  384. S3Config *StorageS3Config `protobuf:"bytes,4,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
  385. }
  386. func (x *WorkspaceStorageSetting) Reset() {
  387. *x = WorkspaceStorageSetting{}
  388. if protoimpl.UnsafeEnabled {
  389. mi := &file_store_workspace_setting_proto_msgTypes[4]
  390. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  391. ms.StoreMessageInfo(mi)
  392. }
  393. }
  394. func (x *WorkspaceStorageSetting) String() string {
  395. return protoimpl.X.MessageStringOf(x)
  396. }
  397. func (*WorkspaceStorageSetting) ProtoMessage() {}
  398. func (x *WorkspaceStorageSetting) ProtoReflect() protoreflect.Message {
  399. mi := &file_store_workspace_setting_proto_msgTypes[4]
  400. if protoimpl.UnsafeEnabled && x != nil {
  401. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  402. if ms.LoadMessageInfo() == nil {
  403. ms.StoreMessageInfo(mi)
  404. }
  405. return ms
  406. }
  407. return mi.MessageOf(x)
  408. }
  409. // Deprecated: Use WorkspaceStorageSetting.ProtoReflect.Descriptor instead.
  410. func (*WorkspaceStorageSetting) Descriptor() ([]byte, []int) {
  411. return file_store_workspace_setting_proto_rawDescGZIP(), []int{4}
  412. }
  413. func (x *WorkspaceStorageSetting) GetStorageType() WorkspaceStorageSetting_StorageType {
  414. if x != nil {
  415. return x.StorageType
  416. }
  417. return WorkspaceStorageSetting_STORAGE_TYPE_UNSPECIFIED
  418. }
  419. func (x *WorkspaceStorageSetting) GetFilepathTemplate() string {
  420. if x != nil {
  421. return x.FilepathTemplate
  422. }
  423. return ""
  424. }
  425. func (x *WorkspaceStorageSetting) GetUploadSizeLimitMb() int64 {
  426. if x != nil {
  427. return x.UploadSizeLimitMb
  428. }
  429. return 0
  430. }
  431. func (x *WorkspaceStorageSetting) GetS3Config() *StorageS3Config {
  432. if x != nil {
  433. return x.S3Config
  434. }
  435. return nil
  436. }
  437. // Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/
  438. type StorageS3Config struct {
  439. state protoimpl.MessageState
  440. sizeCache protoimpl.SizeCache
  441. unknownFields protoimpl.UnknownFields
  442. AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
  443. AccessKeySecret string `protobuf:"bytes,2,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
  444. Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
  445. Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
  446. Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
  447. }
  448. func (x *StorageS3Config) Reset() {
  449. *x = StorageS3Config{}
  450. if protoimpl.UnsafeEnabled {
  451. mi := &file_store_workspace_setting_proto_msgTypes[5]
  452. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  453. ms.StoreMessageInfo(mi)
  454. }
  455. }
  456. func (x *StorageS3Config) String() string {
  457. return protoimpl.X.MessageStringOf(x)
  458. }
  459. func (*StorageS3Config) ProtoMessage() {}
  460. func (x *StorageS3Config) ProtoReflect() protoreflect.Message {
  461. mi := &file_store_workspace_setting_proto_msgTypes[5]
  462. if protoimpl.UnsafeEnabled && x != nil {
  463. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  464. if ms.LoadMessageInfo() == nil {
  465. ms.StoreMessageInfo(mi)
  466. }
  467. return ms
  468. }
  469. return mi.MessageOf(x)
  470. }
  471. // Deprecated: Use StorageS3Config.ProtoReflect.Descriptor instead.
  472. func (*StorageS3Config) Descriptor() ([]byte, []int) {
  473. return file_store_workspace_setting_proto_rawDescGZIP(), []int{5}
  474. }
  475. func (x *StorageS3Config) GetAccessKeyId() string {
  476. if x != nil {
  477. return x.AccessKeyId
  478. }
  479. return ""
  480. }
  481. func (x *StorageS3Config) GetAccessKeySecret() string {
  482. if x != nil {
  483. return x.AccessKeySecret
  484. }
  485. return ""
  486. }
  487. func (x *StorageS3Config) GetEndpoint() string {
  488. if x != nil {
  489. return x.Endpoint
  490. }
  491. return ""
  492. }
  493. func (x *StorageS3Config) GetRegion() string {
  494. if x != nil {
  495. return x.Region
  496. }
  497. return ""
  498. }
  499. func (x *StorageS3Config) GetBucket() string {
  500. if x != nil {
  501. return x.Bucket
  502. }
  503. return ""
  504. }
  505. type WorkspaceMemoRelatedSetting struct {
  506. state protoimpl.MessageState
  507. sizeCache protoimpl.SizeCache
  508. unknownFields protoimpl.UnknownFields
  509. // disallow_public_share disallows set memo as public visible.
  510. DisallowPublicVisible bool `protobuf:"varint,1,opt,name=disallow_public_visible,json=disallowPublicVisible,proto3" json:"disallow_public_visible,omitempty"`
  511. // display_with_update_time orders and displays memo with update time.
  512. DisplayWithUpdateTime bool `protobuf:"varint,2,opt,name=display_with_update_time,json=displayWithUpdateTime,proto3" json:"display_with_update_time,omitempty"`
  513. // content_length_limit is the limit of content length. Unit is byte.
  514. ContentLengthLimit int32 `protobuf:"varint,3,opt,name=content_length_limit,json=contentLengthLimit,proto3" json:"content_length_limit,omitempty"`
  515. // enable_auto_compact enables auto compact for large content.
  516. EnableAutoCompact bool `protobuf:"varint,4,opt,name=enable_auto_compact,json=enableAutoCompact,proto3" json:"enable_auto_compact,omitempty"`
  517. // enable_double_click_edit enables editing on double click.
  518. EnableDoubleClickEdit bool `protobuf:"varint,5,opt,name=enable_double_click_edit,json=enableDoubleClickEdit,proto3" json:"enable_double_click_edit,omitempty"`
  519. // enable_link_preview enables links preview.
  520. EnableLinkPreview bool `protobuf:"varint,6,opt,name=enable_link_preview,json=enableLinkPreview,proto3" json:"enable_link_preview,omitempty"`
  521. }
  522. func (x *WorkspaceMemoRelatedSetting) Reset() {
  523. *x = WorkspaceMemoRelatedSetting{}
  524. if protoimpl.UnsafeEnabled {
  525. mi := &file_store_workspace_setting_proto_msgTypes[6]
  526. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  527. ms.StoreMessageInfo(mi)
  528. }
  529. }
  530. func (x *WorkspaceMemoRelatedSetting) String() string {
  531. return protoimpl.X.MessageStringOf(x)
  532. }
  533. func (*WorkspaceMemoRelatedSetting) ProtoMessage() {}
  534. func (x *WorkspaceMemoRelatedSetting) ProtoReflect() protoreflect.Message {
  535. mi := &file_store_workspace_setting_proto_msgTypes[6]
  536. if protoimpl.UnsafeEnabled && x != nil {
  537. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  538. if ms.LoadMessageInfo() == nil {
  539. ms.StoreMessageInfo(mi)
  540. }
  541. return ms
  542. }
  543. return mi.MessageOf(x)
  544. }
  545. // Deprecated: Use WorkspaceMemoRelatedSetting.ProtoReflect.Descriptor instead.
  546. func (*WorkspaceMemoRelatedSetting) Descriptor() ([]byte, []int) {
  547. return file_store_workspace_setting_proto_rawDescGZIP(), []int{6}
  548. }
  549. func (x *WorkspaceMemoRelatedSetting) GetDisallowPublicVisible() bool {
  550. if x != nil {
  551. return x.DisallowPublicVisible
  552. }
  553. return false
  554. }
  555. func (x *WorkspaceMemoRelatedSetting) GetDisplayWithUpdateTime() bool {
  556. if x != nil {
  557. return x.DisplayWithUpdateTime
  558. }
  559. return false
  560. }
  561. func (x *WorkspaceMemoRelatedSetting) GetContentLengthLimit() int32 {
  562. if x != nil {
  563. return x.ContentLengthLimit
  564. }
  565. return 0
  566. }
  567. func (x *WorkspaceMemoRelatedSetting) GetEnableAutoCompact() bool {
  568. if x != nil {
  569. return x.EnableAutoCompact
  570. }
  571. return false
  572. }
  573. func (x *WorkspaceMemoRelatedSetting) GetEnableDoubleClickEdit() bool {
  574. if x != nil {
  575. return x.EnableDoubleClickEdit
  576. }
  577. return false
  578. }
  579. func (x *WorkspaceMemoRelatedSetting) GetEnableLinkPreview() bool {
  580. if x != nil {
  581. return x.EnableLinkPreview
  582. }
  583. return false
  584. }
  585. var File_store_workspace_setting_proto protoreflect.FileDescriptor
  586. var file_store_workspace_setting_proto_rawDesc = []byte{
  587. 0x0a, 0x1d, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  588. 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  589. 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x9a, 0x03, 0x0a,
  590. 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  591. 0x67, 0x12, 0x32, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20,
  592. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72,
  593. 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79,
  594. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x49, 0x0a, 0x0d, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x73,
  595. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d,
  596. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73,
  597. 0x70, 0x61, 0x63, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  598. 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  599. 0x12, 0x4f, 0x0a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x74,
  600. 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  601. 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  602. 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48,
  603. 0x00, 0x52, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  604. 0x67, 0x12, 0x4f, 0x0a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74,
  605. 0x74, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d,
  606. 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
  607. 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  608. 0x48, 0x00, 0x52, 0x0e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,
  609. 0x6e, 0x67, 0x12, 0x5c, 0x0a, 0x14, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74,
  610. 0x65, 0x64, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
  611. 0x32, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57,
  612. 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61,
  613. 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65,
  614. 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  615. 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x36, 0x0a, 0x15, 0x57, 0x6f, 0x72,
  616. 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69,
  617. 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79,
  618. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65,
  619. 0x79, 0x22, 0xbd, 0x01, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47,
  620. 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x2b, 0x0a,
  621. 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x72, 0x69,
  622. 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69,
  623. 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64,
  624. 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x04,
  625. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
  626. 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4a, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f,
  627. 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e,
  628. 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b,
  629. 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69,
  630. 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c,
  631. 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43,
  632. 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05,
  633. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,
  634. 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
  635. 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
  636. 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75, 0x72, 0x6c,
  637. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72, 0x6c, 0x12,
  638. 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  639. 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x61,
  640. 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70,
  641. 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b,
  642. 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74,
  643. 0x69, 0x6e, 0x67, 0x12, 0x53, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x74,
  644. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  645. 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  646. 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
  647. 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x6f,
  648. 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69, 0x6c, 0x65,
  649. 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20,
  650. 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d,
  651. 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f,
  652. 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x62, 0x18, 0x03, 0x20,
  653. 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x4c,
  654. 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e,
  655. 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  656. 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53,
  657. 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  658. 0x67, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65,
  659. 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,
  660. 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c,
  661. 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
  662. 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22,
  663. 0xad, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x33, 0x43, 0x6f, 0x6e,
  664. 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65,
  665. 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65,
  666. 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73,
  667. 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01,
  668. 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63,
  669. 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18,
  670. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12,
  671. 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  672. 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65,
  673. 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x22,
  674. 0xd9, 0x02, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d,
  675. 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
  676. 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x6c,
  677. 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
  678. 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63,
  679. 0x56, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, 0x6c,
  680. 0x61, 0x79, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74,
  681. 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x70, 0x6c,
  682. 0x61, 0x79, 0x57, 0x69, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,
  683. 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67,
  684. 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12,
  685. 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4c, 0x69, 0x6d,
  686. 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74,
  687. 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
  688. 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x61,
  689. 0x63, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75,
  690. 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x18, 0x05,
  691. 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62,
  692. 0x6c, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65,
  693. 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x69,
  694. 0x65, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,
  695. 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x2a, 0x73, 0x0a, 0x13, 0x57,
  696. 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b,
  697. 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f,
  698. 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50,
  699. 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53,
  700. 0x49, 0x43, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10,
  701. 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x10,
  702. 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x04,
  703. 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73,
  704. 0x74, 0x6f, 0x72, 0x65, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53,
  705. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67,
  706. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d,
  707. 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
  708. 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02,
  709. 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d,
  710. 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d,
  711. 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
  712. 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74,
  713. 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  714. }
  715. var (
  716. file_store_workspace_setting_proto_rawDescOnce sync.Once
  717. file_store_workspace_setting_proto_rawDescData = file_store_workspace_setting_proto_rawDesc
  718. )
  719. func file_store_workspace_setting_proto_rawDescGZIP() []byte {
  720. file_store_workspace_setting_proto_rawDescOnce.Do(func() {
  721. file_store_workspace_setting_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_workspace_setting_proto_rawDescData)
  722. })
  723. return file_store_workspace_setting_proto_rawDescData
  724. }
  725. var file_store_workspace_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  726. var file_store_workspace_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  727. var file_store_workspace_setting_proto_goTypes = []any{
  728. (WorkspaceSettingKey)(0), // 0: memos.store.WorkspaceSettingKey
  729. (WorkspaceStorageSetting_StorageType)(0), // 1: memos.store.WorkspaceStorageSetting.StorageType
  730. (*WorkspaceSetting)(nil), // 2: memos.store.WorkspaceSetting
  731. (*WorkspaceBasicSetting)(nil), // 3: memos.store.WorkspaceBasicSetting
  732. (*WorkspaceGeneralSetting)(nil), // 4: memos.store.WorkspaceGeneralSetting
  733. (*WorkspaceCustomProfile)(nil), // 5: memos.store.WorkspaceCustomProfile
  734. (*WorkspaceStorageSetting)(nil), // 6: memos.store.WorkspaceStorageSetting
  735. (*StorageS3Config)(nil), // 7: memos.store.StorageS3Config
  736. (*WorkspaceMemoRelatedSetting)(nil), // 8: memos.store.WorkspaceMemoRelatedSetting
  737. }
  738. var file_store_workspace_setting_proto_depIdxs = []int32{
  739. 0, // 0: memos.store.WorkspaceSetting.key:type_name -> memos.store.WorkspaceSettingKey
  740. 3, // 1: memos.store.WorkspaceSetting.basic_setting:type_name -> memos.store.WorkspaceBasicSetting
  741. 4, // 2: memos.store.WorkspaceSetting.general_setting:type_name -> memos.store.WorkspaceGeneralSetting
  742. 6, // 3: memos.store.WorkspaceSetting.storage_setting:type_name -> memos.store.WorkspaceStorageSetting
  743. 8, // 4: memos.store.WorkspaceSetting.memo_related_setting:type_name -> memos.store.WorkspaceMemoRelatedSetting
  744. 5, // 5: memos.store.WorkspaceGeneralSetting.custom_profile:type_name -> memos.store.WorkspaceCustomProfile
  745. 1, // 6: memos.store.WorkspaceStorageSetting.storage_type:type_name -> memos.store.WorkspaceStorageSetting.StorageType
  746. 7, // 7: memos.store.WorkspaceStorageSetting.s3_config:type_name -> memos.store.StorageS3Config
  747. 8, // [8:8] is the sub-list for method output_type
  748. 8, // [8:8] is the sub-list for method input_type
  749. 8, // [8:8] is the sub-list for extension type_name
  750. 8, // [8:8] is the sub-list for extension extendee
  751. 0, // [0:8] is the sub-list for field type_name
  752. }
  753. func init() { file_store_workspace_setting_proto_init() }
  754. func file_store_workspace_setting_proto_init() {
  755. if File_store_workspace_setting_proto != nil {
  756. return
  757. }
  758. if !protoimpl.UnsafeEnabled {
  759. file_store_workspace_setting_proto_msgTypes[0].Exporter = func(v any, i int) any {
  760. switch v := v.(*WorkspaceSetting); i {
  761. case 0:
  762. return &v.state
  763. case 1:
  764. return &v.sizeCache
  765. case 2:
  766. return &v.unknownFields
  767. default:
  768. return nil
  769. }
  770. }
  771. file_store_workspace_setting_proto_msgTypes[1].Exporter = func(v any, i int) any {
  772. switch v := v.(*WorkspaceBasicSetting); i {
  773. case 0:
  774. return &v.state
  775. case 1:
  776. return &v.sizeCache
  777. case 2:
  778. return &v.unknownFields
  779. default:
  780. return nil
  781. }
  782. }
  783. file_store_workspace_setting_proto_msgTypes[2].Exporter = func(v any, i int) any {
  784. switch v := v.(*WorkspaceGeneralSetting); i {
  785. case 0:
  786. return &v.state
  787. case 1:
  788. return &v.sizeCache
  789. case 2:
  790. return &v.unknownFields
  791. default:
  792. return nil
  793. }
  794. }
  795. file_store_workspace_setting_proto_msgTypes[3].Exporter = func(v any, i int) any {
  796. switch v := v.(*WorkspaceCustomProfile); i {
  797. case 0:
  798. return &v.state
  799. case 1:
  800. return &v.sizeCache
  801. case 2:
  802. return &v.unknownFields
  803. default:
  804. return nil
  805. }
  806. }
  807. file_store_workspace_setting_proto_msgTypes[4].Exporter = func(v any, i int) any {
  808. switch v := v.(*WorkspaceStorageSetting); i {
  809. case 0:
  810. return &v.state
  811. case 1:
  812. return &v.sizeCache
  813. case 2:
  814. return &v.unknownFields
  815. default:
  816. return nil
  817. }
  818. }
  819. file_store_workspace_setting_proto_msgTypes[5].Exporter = func(v any, i int) any {
  820. switch v := v.(*StorageS3Config); i {
  821. case 0:
  822. return &v.state
  823. case 1:
  824. return &v.sizeCache
  825. case 2:
  826. return &v.unknownFields
  827. default:
  828. return nil
  829. }
  830. }
  831. file_store_workspace_setting_proto_msgTypes[6].Exporter = func(v any, i int) any {
  832. switch v := v.(*WorkspaceMemoRelatedSetting); i {
  833. case 0:
  834. return &v.state
  835. case 1:
  836. return &v.sizeCache
  837. case 2:
  838. return &v.unknownFields
  839. default:
  840. return nil
  841. }
  842. }
  843. }
  844. file_store_workspace_setting_proto_msgTypes[0].OneofWrappers = []any{
  845. (*WorkspaceSetting_BasicSetting)(nil),
  846. (*WorkspaceSetting_GeneralSetting)(nil),
  847. (*WorkspaceSetting_StorageSetting)(nil),
  848. (*WorkspaceSetting_MemoRelatedSetting)(nil),
  849. }
  850. type x struct{}
  851. out := protoimpl.TypeBuilder{
  852. File: protoimpl.DescBuilder{
  853. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  854. RawDescriptor: file_store_workspace_setting_proto_rawDesc,
  855. NumEnums: 2,
  856. NumMessages: 7,
  857. NumExtensions: 0,
  858. NumServices: 0,
  859. },
  860. GoTypes: file_store_workspace_setting_proto_goTypes,
  861. DependencyIndexes: file_store_workspace_setting_proto_depIdxs,
  862. EnumInfos: file_store_workspace_setting_proto_enumTypes,
  863. MessageInfos: file_store_workspace_setting_proto_msgTypes,
  864. }.Build()
  865. File_store_workspace_setting_proto = out.File
  866. file_store_workspace_setting_proto_rawDesc = nil
  867. file_store_workspace_setting_proto_goTypes = nil
  868. file_store_workspace_setting_proto_depIdxs = nil
  869. }