workspace_setting_service.pb.go 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018
  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. UsePathStyle bool `protobuf:"varint,6,opt,name=use_path_style,json=usePathStyle,proto3" json:"use_path_style,omitempty"`
  584. unknownFields protoimpl.UnknownFields
  585. sizeCache protoimpl.SizeCache
  586. }
  587. func (x *WorkspaceStorageSetting_S3Config) Reset() {
  588. *x = WorkspaceStorageSetting_S3Config{}
  589. mi := &file_api_v1_workspace_setting_service_proto_msgTypes[7]
  590. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  591. ms.StoreMessageInfo(mi)
  592. }
  593. func (x *WorkspaceStorageSetting_S3Config) String() string {
  594. return protoimpl.X.MessageStringOf(x)
  595. }
  596. func (*WorkspaceStorageSetting_S3Config) ProtoMessage() {}
  597. func (x *WorkspaceStorageSetting_S3Config) ProtoReflect() protoreflect.Message {
  598. mi := &file_api_v1_workspace_setting_service_proto_msgTypes[7]
  599. if x != nil {
  600. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  601. if ms.LoadMessageInfo() == nil {
  602. ms.StoreMessageInfo(mi)
  603. }
  604. return ms
  605. }
  606. return mi.MessageOf(x)
  607. }
  608. // Deprecated: Use WorkspaceStorageSetting_S3Config.ProtoReflect.Descriptor instead.
  609. func (*WorkspaceStorageSetting_S3Config) Descriptor() ([]byte, []int) {
  610. return file_api_v1_workspace_setting_service_proto_rawDescGZIP(), []int{3, 0}
  611. }
  612. func (x *WorkspaceStorageSetting_S3Config) GetAccessKeyId() string {
  613. if x != nil {
  614. return x.AccessKeyId
  615. }
  616. return ""
  617. }
  618. func (x *WorkspaceStorageSetting_S3Config) GetAccessKeySecret() string {
  619. if x != nil {
  620. return x.AccessKeySecret
  621. }
  622. return ""
  623. }
  624. func (x *WorkspaceStorageSetting_S3Config) GetEndpoint() string {
  625. if x != nil {
  626. return x.Endpoint
  627. }
  628. return ""
  629. }
  630. func (x *WorkspaceStorageSetting_S3Config) GetRegion() string {
  631. if x != nil {
  632. return x.Region
  633. }
  634. return ""
  635. }
  636. func (x *WorkspaceStorageSetting_S3Config) GetBucket() string {
  637. if x != nil {
  638. return x.Bucket
  639. }
  640. return ""
  641. }
  642. func (x *WorkspaceStorageSetting_S3Config) GetUsePathStyle() bool {
  643. if x != nil {
  644. return x.UsePathStyle
  645. }
  646. return false
  647. }
  648. var File_api_v1_workspace_setting_service_proto protoreflect.FileDescriptor
  649. var file_api_v1_workspace_setting_service_proto_rawDesc = []byte{
  650. 0x0a, 0x26, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
  651. 0x63, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  652. 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
  653. 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
  654. 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
  655. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
  656. 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
  657. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
  658. 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2,
  659. 0x02, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74,
  660. 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  661. 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72,
  662. 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  663. 0x32, 0x25, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  664. 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c,
  665. 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72,
  666. 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x50, 0x0a, 0x0f, 0x73, 0x74, 0x6f,
  667. 0x72, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01,
  668. 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
  669. 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61,
  670. 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x74, 0x6f,
  671. 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x5d, 0x0a, 0x14, 0x6d,
  672. 0x65, 0x6d, 0x6f, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x74, 0x74,
  673. 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  674. 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
  675. 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74,
  676. 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61,
  677. 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61,
  678. 0x6c, 0x75, 0x65, 0x22, 0xd9, 0x03, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  679. 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
  680. 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x75, 0x73, 0x65, 0x72,
  681. 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
  682. 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x73, 0x65,
  683. 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a,
  684. 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
  685. 0x72, 0x64, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64,
  686. 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41,
  687. 0x75, 0x74, 0x68, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  688. 0x6c, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,
  689. 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74,
  690. 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73,
  691. 0x74, 0x79, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69,
  692. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x63,
  693. 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20,
  694. 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  695. 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74,
  696. 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f,
  697. 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x15, 0x77, 0x65, 0x65, 0x6b,
  698. 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65,
  699. 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x77, 0x65, 0x65, 0x6b, 0x53, 0x74, 0x61,
  700. 0x72, 0x74, 0x44, 0x61, 0x79, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x38, 0x0a, 0x18, 0x64,
  701. 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x75,
  702. 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64,
  703. 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x55, 0x73, 0x65,
  704. 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,
  705. 0x77, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
  706. 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,
  707. 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x22,
  708. 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73,
  709. 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
  710. 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
  711. 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
  712. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  713. 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03,
  714. 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a,
  715. 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c,
  716. 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x61,
  717. 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x61,
  718. 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xb7, 0x04, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70,
  719. 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  720. 0x67, 0x12, 0x54, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70,
  721. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
  722. 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,
  723. 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53,
  724. 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72,
  725. 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69, 0x6c, 0x65, 0x70,
  726. 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01,
  727. 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70,
  728. 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73,
  729. 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x62, 0x18, 0x03, 0x20, 0x01,
  730. 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x4c, 0x69,
  731. 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x4b, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
  732. 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
  733. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  734. 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
  735. 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66,
  736. 0x69, 0x67, 0x1a, 0xcc, 0x01, 0x0a, 0x08, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  737. 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64,
  738. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65,
  739. 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65,
  740. 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
  741. 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,
  742. 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
  743. 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72,
  744. 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67,
  745. 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20,
  746. 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x75,
  747. 0x73, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x06, 0x20,
  748. 0x01, 0x28, 0x08, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x50, 0x61, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c,
  749. 0x65, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65,
  750. 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,
  751. 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c,
  752. 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
  753. 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22,
  754. 0xba, 0x04, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d,
  755. 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
  756. 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x6c,
  757. 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20,
  758. 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x75, 0x62,
  759. 0x6c, 0x69, 0x63, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x37, 0x0a,
  760. 0x18, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x75, 0x70,
  761. 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
  762. 0x15, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x57, 0x69, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61,
  763. 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  764. 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03,
  765. 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e,
  766. 0x67, 0x74, 0x68, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62,
  767. 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18,
  768. 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x75, 0x74,
  769. 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62,
  770. 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x5f,
  771. 0x65, 0x64, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62,
  772. 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69,
  773. 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x6b,
  774. 0x5f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11,
  775. 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65,
  776. 0x77, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d,
  777. 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  778. 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x61, 0x62,
  779. 0x6c, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28,
  780. 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
  781. 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x69, 0x73,
  782. 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x64,
  783. 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
  784. 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20,
  785. 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c,
  786. 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x64, 0x6f,
  787. 0x77, 0x6e, 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x01,
  788. 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x64,
  789. 0x6f, 0x77, 0x6e, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x73, 0x22, 0x36, 0x0a, 0x1a,
  790. 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74,
  791. 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61,
  792. 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04,
  793. 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x56, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73,
  794. 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
  795. 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20,
  796. 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  797. 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74,
  798. 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0xd9, 0x02, 0x0a,
  799. 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  800. 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x13, 0x47, 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. 0x47, 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, 0x32, 0xda, 0x41, 0x04, 0x6e,
  807. 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f,
  808. 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x6e, 0x61,
  809. 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa7,
  810. 0x01, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53,
  811. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61,
  812. 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
  813. 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  814. 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  815. 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  816. 0x22, 0x46, 0xda, 0x41, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x82, 0xd3, 0xe4, 0x93,
  817. 0x02, 0x36, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x2b, 0x2f, 0x61, 0x70,
  818. 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b,
  819. 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74,
  820. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d,
  821. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x1c, 0x57,
  822. 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53,
  823. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67,
  824. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d,
  825. 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
  826. 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2,
  827. 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70,
  828. 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69,
  829. 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c,
  830. 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
  831. 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62,
  832. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  833. }
  834. var (
  835. file_api_v1_workspace_setting_service_proto_rawDescOnce sync.Once
  836. file_api_v1_workspace_setting_service_proto_rawDescData = file_api_v1_workspace_setting_service_proto_rawDesc
  837. )
  838. func file_api_v1_workspace_setting_service_proto_rawDescGZIP() []byte {
  839. file_api_v1_workspace_setting_service_proto_rawDescOnce.Do(func() {
  840. file_api_v1_workspace_setting_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_v1_workspace_setting_service_proto_rawDescData)
  841. })
  842. return file_api_v1_workspace_setting_service_proto_rawDescData
  843. }
  844. var file_api_v1_workspace_setting_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  845. var file_api_v1_workspace_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  846. var file_api_v1_workspace_setting_service_proto_goTypes = []any{
  847. (WorkspaceStorageSetting_StorageType)(0), // 0: memos.api.v1.WorkspaceStorageSetting.StorageType
  848. (*WorkspaceSetting)(nil), // 1: memos.api.v1.WorkspaceSetting
  849. (*WorkspaceGeneralSetting)(nil), // 2: memos.api.v1.WorkspaceGeneralSetting
  850. (*WorkspaceCustomProfile)(nil), // 3: memos.api.v1.WorkspaceCustomProfile
  851. (*WorkspaceStorageSetting)(nil), // 4: memos.api.v1.WorkspaceStorageSetting
  852. (*WorkspaceMemoRelatedSetting)(nil), // 5: memos.api.v1.WorkspaceMemoRelatedSetting
  853. (*GetWorkspaceSettingRequest)(nil), // 6: memos.api.v1.GetWorkspaceSettingRequest
  854. (*SetWorkspaceSettingRequest)(nil), // 7: memos.api.v1.SetWorkspaceSettingRequest
  855. (*WorkspaceStorageSetting_S3Config)(nil), // 8: memos.api.v1.WorkspaceStorageSetting.S3Config
  856. }
  857. var file_api_v1_workspace_setting_service_proto_depIdxs = []int32{
  858. 2, // 0: memos.api.v1.WorkspaceSetting.general_setting:type_name -> memos.api.v1.WorkspaceGeneralSetting
  859. 4, // 1: memos.api.v1.WorkspaceSetting.storage_setting:type_name -> memos.api.v1.WorkspaceStorageSetting
  860. 5, // 2: memos.api.v1.WorkspaceSetting.memo_related_setting:type_name -> memos.api.v1.WorkspaceMemoRelatedSetting
  861. 3, // 3: memos.api.v1.WorkspaceGeneralSetting.custom_profile:type_name -> memos.api.v1.WorkspaceCustomProfile
  862. 0, // 4: memos.api.v1.WorkspaceStorageSetting.storage_type:type_name -> memos.api.v1.WorkspaceStorageSetting.StorageType
  863. 8, // 5: memos.api.v1.WorkspaceStorageSetting.s3_config:type_name -> memos.api.v1.WorkspaceStorageSetting.S3Config
  864. 1, // 6: memos.api.v1.SetWorkspaceSettingRequest.setting:type_name -> memos.api.v1.WorkspaceSetting
  865. 6, // 7: memos.api.v1.WorkspaceSettingService.GetWorkspaceSetting:input_type -> memos.api.v1.GetWorkspaceSettingRequest
  866. 7, // 8: memos.api.v1.WorkspaceSettingService.SetWorkspaceSetting:input_type -> memos.api.v1.SetWorkspaceSettingRequest
  867. 1, // 9: memos.api.v1.WorkspaceSettingService.GetWorkspaceSetting:output_type -> memos.api.v1.WorkspaceSetting
  868. 1, // 10: memos.api.v1.WorkspaceSettingService.SetWorkspaceSetting:output_type -> memos.api.v1.WorkspaceSetting
  869. 9, // [9:11] is the sub-list for method output_type
  870. 7, // [7:9] is the sub-list for method input_type
  871. 7, // [7:7] is the sub-list for extension type_name
  872. 7, // [7:7] is the sub-list for extension extendee
  873. 0, // [0:7] is the sub-list for field type_name
  874. }
  875. func init() { file_api_v1_workspace_setting_service_proto_init() }
  876. func file_api_v1_workspace_setting_service_proto_init() {
  877. if File_api_v1_workspace_setting_service_proto != nil {
  878. return
  879. }
  880. file_api_v1_workspace_setting_service_proto_msgTypes[0].OneofWrappers = []any{
  881. (*WorkspaceSetting_GeneralSetting)(nil),
  882. (*WorkspaceSetting_StorageSetting)(nil),
  883. (*WorkspaceSetting_MemoRelatedSetting)(nil),
  884. }
  885. type x struct{}
  886. out := protoimpl.TypeBuilder{
  887. File: protoimpl.DescBuilder{
  888. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  889. RawDescriptor: file_api_v1_workspace_setting_service_proto_rawDesc,
  890. NumEnums: 1,
  891. NumMessages: 8,
  892. NumExtensions: 0,
  893. NumServices: 1,
  894. },
  895. GoTypes: file_api_v1_workspace_setting_service_proto_goTypes,
  896. DependencyIndexes: file_api_v1_workspace_setting_service_proto_depIdxs,
  897. EnumInfos: file_api_v1_workspace_setting_service_proto_enumTypes,
  898. MessageInfos: file_api_v1_workspace_setting_service_proto_msgTypes,
  899. }.Build()
  900. File_api_v1_workspace_setting_service_proto = out.File
  901. file_api_v1_workspace_setting_service_proto_rawDesc = nil
  902. file_api_v1_workspace_setting_service_proto_goTypes = nil
  903. file_api_v1_workspace_setting_service_proto_depIdxs = nil
  904. }