workspace_setting_service.pb.go 45 KB

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