workspace_service.pb.go 9.3 KB

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