workspace_setting_service.pb.go 45 KB

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