workspace_setting.pb.go 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021
  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. unknownFields protoimpl.UnknownFields
  495. sizeCache protoimpl.SizeCache
  496. }
  497. func (x *StorageS3Config) Reset() {
  498. *x = StorageS3Config{}
  499. mi := &file_store_workspace_setting_proto_msgTypes[5]
  500. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  501. ms.StoreMessageInfo(mi)
  502. }
  503. func (x *StorageS3Config) String() string {
  504. return protoimpl.X.MessageStringOf(x)
  505. }
  506. func (*StorageS3Config) ProtoMessage() {}
  507. func (x *StorageS3Config) ProtoReflect() protoreflect.Message {
  508. mi := &file_store_workspace_setting_proto_msgTypes[5]
  509. if x != nil {
  510. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  511. if ms.LoadMessageInfo() == nil {
  512. ms.StoreMessageInfo(mi)
  513. }
  514. return ms
  515. }
  516. return mi.MessageOf(x)
  517. }
  518. // Deprecated: Use StorageS3Config.ProtoReflect.Descriptor instead.
  519. func (*StorageS3Config) Descriptor() ([]byte, []int) {
  520. return file_store_workspace_setting_proto_rawDescGZIP(), []int{5}
  521. }
  522. func (x *StorageS3Config) GetAccessKeyId() string {
  523. if x != nil {
  524. return x.AccessKeyId
  525. }
  526. return ""
  527. }
  528. func (x *StorageS3Config) GetAccessKeySecret() string {
  529. if x != nil {
  530. return x.AccessKeySecret
  531. }
  532. return ""
  533. }
  534. func (x *StorageS3Config) GetEndpoint() string {
  535. if x != nil {
  536. return x.Endpoint
  537. }
  538. return ""
  539. }
  540. func (x *StorageS3Config) GetRegion() string {
  541. if x != nil {
  542. return x.Region
  543. }
  544. return ""
  545. }
  546. func (x *StorageS3Config) GetBucket() string {
  547. if x != nil {
  548. return x.Bucket
  549. }
  550. return ""
  551. }
  552. type WorkspaceMemoRelatedSetting struct {
  553. state protoimpl.MessageState `protogen:"open.v1"`
  554. // disallow_public_visibility disallows set memo as public visibility.
  555. DisallowPublicVisibility bool `protobuf:"varint,1,opt,name=disallow_public_visibility,json=disallowPublicVisibility,proto3" json:"disallow_public_visibility,omitempty"`
  556. // display_with_update_time orders and displays memo with update time.
  557. DisplayWithUpdateTime bool `protobuf:"varint,2,opt,name=display_with_update_time,json=displayWithUpdateTime,proto3" json:"display_with_update_time,omitempty"`
  558. // content_length_limit is the limit of content length. Unit is byte.
  559. ContentLengthLimit int32 `protobuf:"varint,3,opt,name=content_length_limit,json=contentLengthLimit,proto3" json:"content_length_limit,omitempty"`
  560. // enable_auto_compact enables auto compact for large content.
  561. EnableAutoCompact bool `protobuf:"varint,4,opt,name=enable_auto_compact,json=enableAutoCompact,proto3" json:"enable_auto_compact,omitempty"`
  562. // enable_double_click_edit enables editing on double click.
  563. EnableDoubleClickEdit bool `protobuf:"varint,5,opt,name=enable_double_click_edit,json=enableDoubleClickEdit,proto3" json:"enable_double_click_edit,omitempty"`
  564. // enable_link_preview enables links preview.
  565. EnableLinkPreview bool `protobuf:"varint,6,opt,name=enable_link_preview,json=enableLinkPreview,proto3" json:"enable_link_preview,omitempty"`
  566. // enable_comment enables comment.
  567. EnableComment bool `protobuf:"varint,7,opt,name=enable_comment,json=enableComment,proto3" json:"enable_comment,omitempty"`
  568. // enable_location enables setting location for memo.
  569. EnableLocation bool `protobuf:"varint,8,opt,name=enable_location,json=enableLocation,proto3" json:"enable_location,omitempty"`
  570. // default_visibility set the global memos default visibility.
  571. DefaultVisibility string `protobuf:"bytes,9,opt,name=default_visibility,json=defaultVisibility,proto3" json:"default_visibility,omitempty"`
  572. // reactions is the list of reactions.
  573. Reactions []string `protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
  574. // disable markdown shortcuts
  575. DisableMarkdownShortcuts bool `protobuf:"varint,11,opt,name=disable_markdown_shortcuts,json=disableMarkdownShortcuts,proto3" json:"disable_markdown_shortcuts,omitempty"`
  576. unknownFields protoimpl.UnknownFields
  577. sizeCache protoimpl.SizeCache
  578. }
  579. func (x *WorkspaceMemoRelatedSetting) Reset() {
  580. *x = WorkspaceMemoRelatedSetting{}
  581. mi := &file_store_workspace_setting_proto_msgTypes[6]
  582. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  583. ms.StoreMessageInfo(mi)
  584. }
  585. func (x *WorkspaceMemoRelatedSetting) String() string {
  586. return protoimpl.X.MessageStringOf(x)
  587. }
  588. func (*WorkspaceMemoRelatedSetting) ProtoMessage() {}
  589. func (x *WorkspaceMemoRelatedSetting) ProtoReflect() protoreflect.Message {
  590. mi := &file_store_workspace_setting_proto_msgTypes[6]
  591. if x != nil {
  592. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  593. if ms.LoadMessageInfo() == nil {
  594. ms.StoreMessageInfo(mi)
  595. }
  596. return ms
  597. }
  598. return mi.MessageOf(x)
  599. }
  600. // Deprecated: Use WorkspaceMemoRelatedSetting.ProtoReflect.Descriptor instead.
  601. func (*WorkspaceMemoRelatedSetting) Descriptor() ([]byte, []int) {
  602. return file_store_workspace_setting_proto_rawDescGZIP(), []int{6}
  603. }
  604. func (x *WorkspaceMemoRelatedSetting) GetDisallowPublicVisibility() bool {
  605. if x != nil {
  606. return x.DisallowPublicVisibility
  607. }
  608. return false
  609. }
  610. func (x *WorkspaceMemoRelatedSetting) GetDisplayWithUpdateTime() bool {
  611. if x != nil {
  612. return x.DisplayWithUpdateTime
  613. }
  614. return false
  615. }
  616. func (x *WorkspaceMemoRelatedSetting) GetContentLengthLimit() int32 {
  617. if x != nil {
  618. return x.ContentLengthLimit
  619. }
  620. return 0
  621. }
  622. func (x *WorkspaceMemoRelatedSetting) GetEnableAutoCompact() bool {
  623. if x != nil {
  624. return x.EnableAutoCompact
  625. }
  626. return false
  627. }
  628. func (x *WorkspaceMemoRelatedSetting) GetEnableDoubleClickEdit() bool {
  629. if x != nil {
  630. return x.EnableDoubleClickEdit
  631. }
  632. return false
  633. }
  634. func (x *WorkspaceMemoRelatedSetting) GetEnableLinkPreview() bool {
  635. if x != nil {
  636. return x.EnableLinkPreview
  637. }
  638. return false
  639. }
  640. func (x *WorkspaceMemoRelatedSetting) GetEnableComment() bool {
  641. if x != nil {
  642. return x.EnableComment
  643. }
  644. return false
  645. }
  646. func (x *WorkspaceMemoRelatedSetting) GetEnableLocation() bool {
  647. if x != nil {
  648. return x.EnableLocation
  649. }
  650. return false
  651. }
  652. func (x *WorkspaceMemoRelatedSetting) GetDefaultVisibility() string {
  653. if x != nil {
  654. return x.DefaultVisibility
  655. }
  656. return ""
  657. }
  658. func (x *WorkspaceMemoRelatedSetting) GetReactions() []string {
  659. if x != nil {
  660. return x.Reactions
  661. }
  662. return nil
  663. }
  664. func (x *WorkspaceMemoRelatedSetting) GetDisableMarkdownShortcuts() bool {
  665. if x != nil {
  666. return x.DisableMarkdownShortcuts
  667. }
  668. return false
  669. }
  670. var File_store_workspace_setting_proto protoreflect.FileDescriptor
  671. var file_store_workspace_setting_proto_rawDesc = []byte{
  672. 0x0a, 0x1d, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  673. 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  674. 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x9a, 0x03, 0x0a,
  675. 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  676. 0x67, 0x12, 0x32, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20,
  677. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72,
  678. 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79,
  679. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x49, 0x0a, 0x0d, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x73,
  680. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d,
  681. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73,
  682. 0x70, 0x61, 0x63, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  683. 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  684. 0x12, 0x4f, 0x0a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x74,
  685. 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  686. 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  687. 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48,
  688. 0x00, 0x52, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  689. 0x67, 0x12, 0x4f, 0x0a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74,
  690. 0x74, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d,
  691. 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
  692. 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  693. 0x48, 0x00, 0x52, 0x0e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,
  694. 0x6e, 0x67, 0x12, 0x5c, 0x0a, 0x14, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74,
  695. 0x65, 0x64, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
  696. 0x32, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57,
  697. 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61,
  698. 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65,
  699. 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  700. 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5d, 0x0a, 0x15, 0x57, 0x6f, 0x72,
  701. 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69,
  702. 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79,
  703. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65,
  704. 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73,
  705. 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d,
  706. 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xd8, 0x03, 0x0a, 0x17, 0x57, 0x6f, 0x72,
  707. 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74,
  708. 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
  709. 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69,
  710. 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c,
  711. 0x6f, 0x77, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69,
  712. 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70,
  713. 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01,
  714. 0x28, 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73,
  715. 0x77, 0x6f, 0x72, 0x64, 0x41, 0x75, 0x74, 0x68, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69,
  716. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x03, 0x20,
  717. 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53,
  718. 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f,
  719. 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  720. 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x79, 0x6c, 0x65,
  721. 0x12, 0x4a, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69,
  722. 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
  723. 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,
  724. 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x0d, 0x63,
  725. 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x15,
  726. 0x77, 0x65, 0x65, 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6f,
  727. 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x77, 0x65, 0x65,
  728. 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 0x79, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12,
  729. 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x68, 0x61, 0x6e,
  730. 0x67, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
  731. 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67,
  732. 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73,
  733. 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6e, 0x69, 0x63,
  734. 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73,
  735. 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x69, 0x63, 0x6b, 0x6e,
  736. 0x61, 0x6d, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  737. 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x14,
  738. 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
  739. 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  740. 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
  741. 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75,
  742. 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72,
  743. 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
  744. 0x09, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70,
  745. 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61,
  746. 0x70, 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x17, 0x57, 0x6f,
  747. 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65,
  748. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x53, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
  749. 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6d, 0x65,
  750. 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70,
  751. 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  752. 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73,
  753. 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69,
  754. 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18,
  755. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x54,
  756. 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x6c, 0x6f, 0x61,
  757. 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x62, 0x18,
  758. 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a,
  759. 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63,
  760. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x65,
  761. 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67,
  762. 0x65, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e,
  763. 0x66, 0x69, 0x67, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79,
  764. 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59,
  765. 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
  766. 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09,
  767. 0x0a, 0x05, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10,
  768. 0x03, 0x22, 0xad, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x33, 0x43,
  769. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f,
  770. 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63,
  771. 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63,
  772. 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02,
  773. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53,
  774. 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
  775. 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
  776. 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
  777. 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63,
  778. 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65,
  779. 0x74, 0x22, 0xba, 0x04, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d,
  780. 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  781. 0x67, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75,
  782. 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18,
  783. 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50,
  784. 0x75, 0x62, 0x6c, 0x69, 0x63, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12,
  785. 0x37, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f,
  786. 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  787. 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x57, 0x69, 0x74, 0x68, 0x55, 0x70,
  788. 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74,
  789. 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74,
  790. 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c,
  791. 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e,
  792. 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63,
  793. 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41,
  794. 0x75, 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e,
  795. 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63,
  796. 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e,
  797. 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45,
  798. 0x64, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69,
  799. 0x6e, 0x6b, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,
  800. 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x65, 0x76,
  801. 0x69, 0x65, 0x77, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f,
  802. 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61,
  803. 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e,
  804. 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20,
  805. 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74,
  806. 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76,
  807. 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
  808. 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69,
  809. 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  810. 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  811. 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x61, 0x72, 0x6b,
  812. 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x73, 0x18, 0x0b,
  813. 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x72,
  814. 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x73, 0x2a, 0x73,
  815. 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,
  816. 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41,
  817. 0x43, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55,
  818. 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05,
  819. 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52,
  820. 0x41, 0x4c, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10,
  821. 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x45,
  822. 0x44, 0x10, 0x04, 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  823. 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
  824. 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
  825. 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65,
  826. 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74,
  827. 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x53,
  828. 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca,
  829. 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17,
  830. 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d,
  831. 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a,
  832. 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  833. }
  834. var (
  835. file_store_workspace_setting_proto_rawDescOnce sync.Once
  836. file_store_workspace_setting_proto_rawDescData = file_store_workspace_setting_proto_rawDesc
  837. )
  838. func file_store_workspace_setting_proto_rawDescGZIP() []byte {
  839. file_store_workspace_setting_proto_rawDescOnce.Do(func() {
  840. file_store_workspace_setting_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_workspace_setting_proto_rawDescData)
  841. })
  842. return file_store_workspace_setting_proto_rawDescData
  843. }
  844. var file_store_workspace_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  845. var file_store_workspace_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  846. var file_store_workspace_setting_proto_goTypes = []any{
  847. (WorkspaceSettingKey)(0), // 0: memos.store.WorkspaceSettingKey
  848. (WorkspaceStorageSetting_StorageType)(0), // 1: memos.store.WorkspaceStorageSetting.StorageType
  849. (*WorkspaceSetting)(nil), // 2: memos.store.WorkspaceSetting
  850. (*WorkspaceBasicSetting)(nil), // 3: memos.store.WorkspaceBasicSetting
  851. (*WorkspaceGeneralSetting)(nil), // 4: memos.store.WorkspaceGeneralSetting
  852. (*WorkspaceCustomProfile)(nil), // 5: memos.store.WorkspaceCustomProfile
  853. (*WorkspaceStorageSetting)(nil), // 6: memos.store.WorkspaceStorageSetting
  854. (*StorageS3Config)(nil), // 7: memos.store.StorageS3Config
  855. (*WorkspaceMemoRelatedSetting)(nil), // 8: memos.store.WorkspaceMemoRelatedSetting
  856. }
  857. var file_store_workspace_setting_proto_depIdxs = []int32{
  858. 0, // 0: memos.store.WorkspaceSetting.key:type_name -> memos.store.WorkspaceSettingKey
  859. 3, // 1: memos.store.WorkspaceSetting.basic_setting:type_name -> memos.store.WorkspaceBasicSetting
  860. 4, // 2: memos.store.WorkspaceSetting.general_setting:type_name -> memos.store.WorkspaceGeneralSetting
  861. 6, // 3: memos.store.WorkspaceSetting.storage_setting:type_name -> memos.store.WorkspaceStorageSetting
  862. 8, // 4: memos.store.WorkspaceSetting.memo_related_setting:type_name -> memos.store.WorkspaceMemoRelatedSetting
  863. 5, // 5: memos.store.WorkspaceGeneralSetting.custom_profile:type_name -> memos.store.WorkspaceCustomProfile
  864. 1, // 6: memos.store.WorkspaceStorageSetting.storage_type:type_name -> memos.store.WorkspaceStorageSetting.StorageType
  865. 7, // 7: memos.store.WorkspaceStorageSetting.s3_config:type_name -> memos.store.StorageS3Config
  866. 8, // [8:8] is the sub-list for method output_type
  867. 8, // [8:8] is the sub-list for method input_type
  868. 8, // [8:8] is the sub-list for extension type_name
  869. 8, // [8:8] is the sub-list for extension extendee
  870. 0, // [0:8] is the sub-list for field type_name
  871. }
  872. func init() { file_store_workspace_setting_proto_init() }
  873. func file_store_workspace_setting_proto_init() {
  874. if File_store_workspace_setting_proto != nil {
  875. return
  876. }
  877. file_store_workspace_setting_proto_msgTypes[0].OneofWrappers = []any{
  878. (*WorkspaceSetting_BasicSetting)(nil),
  879. (*WorkspaceSetting_GeneralSetting)(nil),
  880. (*WorkspaceSetting_StorageSetting)(nil),
  881. (*WorkspaceSetting_MemoRelatedSetting)(nil),
  882. }
  883. type x struct{}
  884. out := protoimpl.TypeBuilder{
  885. File: protoimpl.DescBuilder{
  886. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  887. RawDescriptor: file_store_workspace_setting_proto_rawDesc,
  888. NumEnums: 2,
  889. NumMessages: 7,
  890. NumExtensions: 0,
  891. NumServices: 0,
  892. },
  893. GoTypes: file_store_workspace_setting_proto_goTypes,
  894. DependencyIndexes: file_store_workspace_setting_proto_depIdxs,
  895. EnumInfos: file_store_workspace_setting_proto_enumTypes,
  896. MessageInfos: file_store_workspace_setting_proto_msgTypes,
  897. }.Build()
  898. File_store_workspace_setting_proto = out.File
  899. file_store_workspace_setting_proto_rawDesc = nil
  900. file_store_workspace_setting_proto_goTypes = nil
  901. file_store_workspace_setting_proto_depIdxs = nil
  902. }