workspace_service.pb.go 9.2 KB

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