workspace_service.pb.go 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc (unknown)
  5. // source: api/v1/workspace_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 WorkspaceProfile struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. // The name of instance owner.
  25. // Format: "users/{id}"
  26. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
  27. // version is the current version of instance
  28. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  29. // mode is the instance mode (e.g. "prod", "dev" or "demo").
  30. Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
  31. // instance_url is the URL of the instance.
  32. InstanceUrl string `protobuf:"bytes,6,opt,name=instance_url,json=instanceUrl,proto3" json:"instance_url,omitempty"`
  33. }
  34. func (x *WorkspaceProfile) Reset() {
  35. *x = WorkspaceProfile{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_api_v1_workspace_service_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *WorkspaceProfile) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*WorkspaceProfile) ProtoMessage() {}
  46. func (x *WorkspaceProfile) ProtoReflect() protoreflect.Message {
  47. mi := &file_api_v1_workspace_service_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use WorkspaceProfile.ProtoReflect.Descriptor instead.
  58. func (*WorkspaceProfile) Descriptor() ([]byte, []int) {
  59. return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *WorkspaceProfile) GetOwner() string {
  62. if x != nil {
  63. return x.Owner
  64. }
  65. return ""
  66. }
  67. func (x *WorkspaceProfile) GetVersion() string {
  68. if x != nil {
  69. return x.Version
  70. }
  71. return ""
  72. }
  73. func (x *WorkspaceProfile) GetMode() string {
  74. if x != nil {
  75. return x.Mode
  76. }
  77. return ""
  78. }
  79. func (x *WorkspaceProfile) GetInstanceUrl() string {
  80. if x != nil {
  81. return x.InstanceUrl
  82. }
  83. return ""
  84. }
  85. type GetWorkspaceProfileRequest struct {
  86. state protoimpl.MessageState
  87. sizeCache protoimpl.SizeCache
  88. unknownFields protoimpl.UnknownFields
  89. }
  90. func (x *GetWorkspaceProfileRequest) Reset() {
  91. *x = GetWorkspaceProfileRequest{}
  92. if protoimpl.UnsafeEnabled {
  93. mi := &file_api_v1_workspace_service_proto_msgTypes[1]
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. ms.StoreMessageInfo(mi)
  96. }
  97. }
  98. func (x *GetWorkspaceProfileRequest) String() string {
  99. return protoimpl.X.MessageStringOf(x)
  100. }
  101. func (*GetWorkspaceProfileRequest) ProtoMessage() {}
  102. func (x *GetWorkspaceProfileRequest) ProtoReflect() protoreflect.Message {
  103. mi := &file_api_v1_workspace_service_proto_msgTypes[1]
  104. if protoimpl.UnsafeEnabled && x != nil {
  105. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  106. if ms.LoadMessageInfo() == nil {
  107. ms.StoreMessageInfo(mi)
  108. }
  109. return ms
  110. }
  111. return mi.MessageOf(x)
  112. }
  113. // Deprecated: Use GetWorkspaceProfileRequest.ProtoReflect.Descriptor instead.
  114. func (*GetWorkspaceProfileRequest) Descriptor() ([]byte, []int) {
  115. return file_api_v1_workspace_service_proto_rawDescGZIP(), []int{1}
  116. }
  117. var File_api_v1_workspace_service_proto protoreflect.FileDescriptor
  118. var file_api_v1_workspace_service_proto_rawDesc = []byte{
  119. 0x0a, 0x1e, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
  120. 0x63, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  121. 0x12, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c,
  122. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
  123. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x79, 0x0a, 0x10,
  124. 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65,
  125. 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  126. 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
  127. 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
  128. 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  129. 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
  130. 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, 0x73, 0x74,
  131. 0x61, 0x6e, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x1c, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x57, 0x6f,
  132. 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65,
  133. 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0x97, 0x01, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70,
  134. 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x13, 0x47,
  135. 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69,
  136. 0x6c, 0x65, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
  137. 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72,
  138. 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d,
  139. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b,
  140. 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x21, 0x82, 0xd3,
  141. 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f,
  142. 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x42,
  143. 0xad, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,
  144. 0x69, 0x2e, 0x76, 0x31, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53,
  145. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67,
  146. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d,
  147. 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
  148. 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2,
  149. 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70,
  150. 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69,
  151. 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c,
  152. 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
  153. 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62,
  154. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  155. }
  156. var (
  157. file_api_v1_workspace_service_proto_rawDescOnce sync.Once
  158. file_api_v1_workspace_service_proto_rawDescData = file_api_v1_workspace_service_proto_rawDesc
  159. )
  160. func file_api_v1_workspace_service_proto_rawDescGZIP() []byte {
  161. file_api_v1_workspace_service_proto_rawDescOnce.Do(func() {
  162. file_api_v1_workspace_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_v1_workspace_service_proto_rawDescData)
  163. })
  164. return file_api_v1_workspace_service_proto_rawDescData
  165. }
  166. var file_api_v1_workspace_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  167. var file_api_v1_workspace_service_proto_goTypes = []any{
  168. (*WorkspaceProfile)(nil), // 0: memos.api.v1.WorkspaceProfile
  169. (*GetWorkspaceProfileRequest)(nil), // 1: memos.api.v1.GetWorkspaceProfileRequest
  170. }
  171. var file_api_v1_workspace_service_proto_depIdxs = []int32{
  172. 1, // 0: memos.api.v1.WorkspaceService.GetWorkspaceProfile:input_type -> memos.api.v1.GetWorkspaceProfileRequest
  173. 0, // 1: memos.api.v1.WorkspaceService.GetWorkspaceProfile:output_type -> memos.api.v1.WorkspaceProfile
  174. 1, // [1:2] is the sub-list for method output_type
  175. 0, // [0:1] is the sub-list for method input_type
  176. 0, // [0:0] is the sub-list for extension type_name
  177. 0, // [0:0] is the sub-list for extension extendee
  178. 0, // [0:0] is the sub-list for field type_name
  179. }
  180. func init() { file_api_v1_workspace_service_proto_init() }
  181. func file_api_v1_workspace_service_proto_init() {
  182. if File_api_v1_workspace_service_proto != nil {
  183. return
  184. }
  185. if !protoimpl.UnsafeEnabled {
  186. file_api_v1_workspace_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
  187. switch v := v.(*WorkspaceProfile); i {
  188. case 0:
  189. return &v.state
  190. case 1:
  191. return &v.sizeCache
  192. case 2:
  193. return &v.unknownFields
  194. default:
  195. return nil
  196. }
  197. }
  198. file_api_v1_workspace_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
  199. switch v := v.(*GetWorkspaceProfileRequest); i {
  200. case 0:
  201. return &v.state
  202. case 1:
  203. return &v.sizeCache
  204. case 2:
  205. return &v.unknownFields
  206. default:
  207. return nil
  208. }
  209. }
  210. }
  211. type x struct{}
  212. out := protoimpl.TypeBuilder{
  213. File: protoimpl.DescBuilder{
  214. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  215. RawDescriptor: file_api_v1_workspace_service_proto_rawDesc,
  216. NumEnums: 0,
  217. NumMessages: 2,
  218. NumExtensions: 0,
  219. NumServices: 1,
  220. },
  221. GoTypes: file_api_v1_workspace_service_proto_goTypes,
  222. DependencyIndexes: file_api_v1_workspace_service_proto_depIdxs,
  223. MessageInfos: file_api_v1_workspace_service_proto_msgTypes,
  224. }.Build()
  225. File_api_v1_workspace_service_proto = out.File
  226. file_api_v1_workspace_service_proto_rawDesc = nil
  227. file_api_v1_workspace_service_proto_goTypes = nil
  228. file_api_v1_workspace_service_proto_depIdxs = nil
  229. }