workspace_setting_service.pb.go 46 KB

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