You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

slurm.pb.go 9.7 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.0
  4. // protoc (unknown)
  5. // source: idl/slurm.proto
  6. package slurmpb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type ListNodesReq struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. }
  24. func (x *ListNodesReq) Reset() {
  25. *x = ListNodesReq{}
  26. if protoimpl.UnsafeEnabled {
  27. mi := &file_idl_slurm_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. }
  32. func (x *ListNodesReq) String() string {
  33. return protoimpl.X.MessageStringOf(x)
  34. }
  35. func (*ListNodesReq) ProtoMessage() {}
  36. func (x *ListNodesReq) ProtoReflect() protoreflect.Message {
  37. mi := &file_idl_slurm_proto_msgTypes[0]
  38. if protoimpl.UnsafeEnabled && x != nil {
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. if ms.LoadMessageInfo() == nil {
  41. ms.StoreMessageInfo(mi)
  42. }
  43. return ms
  44. }
  45. return mi.MessageOf(x)
  46. }
  47. // Deprecated: Use ListNodesReq.ProtoReflect.Descriptor instead.
  48. func (*ListNodesReq) Descriptor() ([]byte, []int) {
  49. return file_idl_slurm_proto_rawDescGZIP(), []int{0}
  50. }
  51. type NodeInfo struct {
  52. state protoimpl.MessageState
  53. sizeCache protoimpl.SizeCache
  54. unknownFields protoimpl.UnknownFields
  55. Boards int32 `protobuf:"varint,1,opt,name=boards,proto3" json:"boards,omitempty"`
  56. Cpus int32 `protobuf:"varint,2,opt,name=cpus,proto3" json:"cpus,omitempty"`
  57. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  58. RealMemory int32 `protobuf:"varint,4,opt,name=realMemory,proto3" json:"realMemory,omitempty"`
  59. Sockets int32 `protobuf:"varint,5,opt,name=sockets,proto3" json:"sockets,omitempty"`
  60. Threads int32 `protobuf:"varint,6,opt,name=threads,proto3" json:"threads,omitempty"`
  61. }
  62. func (x *NodeInfo) Reset() {
  63. *x = NodeInfo{}
  64. if protoimpl.UnsafeEnabled {
  65. mi := &file_idl_slurm_proto_msgTypes[1]
  66. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  67. ms.StoreMessageInfo(mi)
  68. }
  69. }
  70. func (x *NodeInfo) String() string {
  71. return protoimpl.X.MessageStringOf(x)
  72. }
  73. func (*NodeInfo) ProtoMessage() {}
  74. func (x *NodeInfo) ProtoReflect() protoreflect.Message {
  75. mi := &file_idl_slurm_proto_msgTypes[1]
  76. if protoimpl.UnsafeEnabled && x != nil {
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. if ms.LoadMessageInfo() == nil {
  79. ms.StoreMessageInfo(mi)
  80. }
  81. return ms
  82. }
  83. return mi.MessageOf(x)
  84. }
  85. // Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.
  86. func (*NodeInfo) Descriptor() ([]byte, []int) {
  87. return file_idl_slurm_proto_rawDescGZIP(), []int{1}
  88. }
  89. func (x *NodeInfo) GetBoards() int32 {
  90. if x != nil {
  91. return x.Boards
  92. }
  93. return 0
  94. }
  95. func (x *NodeInfo) GetCpus() int32 {
  96. if x != nil {
  97. return x.Cpus
  98. }
  99. return 0
  100. }
  101. func (x *NodeInfo) GetName() string {
  102. if x != nil {
  103. return x.Name
  104. }
  105. return ""
  106. }
  107. func (x *NodeInfo) GetRealMemory() int32 {
  108. if x != nil {
  109. return x.RealMemory
  110. }
  111. return 0
  112. }
  113. func (x *NodeInfo) GetSockets() int32 {
  114. if x != nil {
  115. return x.Sockets
  116. }
  117. return 0
  118. }
  119. func (x *NodeInfo) GetThreads() int32 {
  120. if x != nil {
  121. return x.Threads
  122. }
  123. return 0
  124. }
  125. type ListNodesResp struct {
  126. state protoimpl.MessageState
  127. sizeCache protoimpl.SizeCache
  128. unknownFields protoimpl.UnknownFields
  129. NodeInfos []*NodeInfo `protobuf:"bytes,1,rep,name=node_infos,json=nodeInfos,proto3" json:"node_infos,omitempty"`
  130. }
  131. func (x *ListNodesResp) Reset() {
  132. *x = ListNodesResp{}
  133. if protoimpl.UnsafeEnabled {
  134. mi := &file_idl_slurm_proto_msgTypes[2]
  135. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  136. ms.StoreMessageInfo(mi)
  137. }
  138. }
  139. func (x *ListNodesResp) String() string {
  140. return protoimpl.X.MessageStringOf(x)
  141. }
  142. func (*ListNodesResp) ProtoMessage() {}
  143. func (x *ListNodesResp) ProtoReflect() protoreflect.Message {
  144. mi := &file_idl_slurm_proto_msgTypes[2]
  145. if protoimpl.UnsafeEnabled && x != nil {
  146. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  147. if ms.LoadMessageInfo() == nil {
  148. ms.StoreMessageInfo(mi)
  149. }
  150. return ms
  151. }
  152. return mi.MessageOf(x)
  153. }
  154. // Deprecated: Use ListNodesResp.ProtoReflect.Descriptor instead.
  155. func (*ListNodesResp) Descriptor() ([]byte, []int) {
  156. return file_idl_slurm_proto_rawDescGZIP(), []int{2}
  157. }
  158. func (x *ListNodesResp) GetNodeInfos() []*NodeInfo {
  159. if x != nil {
  160. return x.NodeInfos
  161. }
  162. return nil
  163. }
  164. var File_idl_slurm_proto protoreflect.FileDescriptor
  165. var file_idl_slurm_proto_rawDesc = []byte{
  166. 0x0a, 0x0f, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  167. 0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x22, 0x0e, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,
  168. 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x22, 0x9e, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x64,
  169. 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18,
  170. 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x12, 0x0a,
  171. 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x70, 0x75,
  172. 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  173. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x6c, 0x4d, 0x65, 0x6d,
  174. 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x6c, 0x4d,
  175. 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73,
  176. 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12,
  177. 0x18, 0x0a, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
  178. 0x52, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x22, 0x3f, 0x0a, 0x0d, 0x4c, 0x69, 0x73,
  179. 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f,
  180. 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f,
  181. 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52,
  182. 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x32, 0x46, 0x0a, 0x0c, 0x53, 0x6c,
  183. 0x75, 0x72, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x4c, 0x69,
  184. 0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e,
  185. 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x73,
  186. 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65,
  187. 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62, 0x62, 0x06,
  188. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  189. }
  190. var (
  191. file_idl_slurm_proto_rawDescOnce sync.Once
  192. file_idl_slurm_proto_rawDescData = file_idl_slurm_proto_rawDesc
  193. )
  194. func file_idl_slurm_proto_rawDescGZIP() []byte {
  195. file_idl_slurm_proto_rawDescOnce.Do(func() {
  196. file_idl_slurm_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_slurm_proto_rawDescData)
  197. })
  198. return file_idl_slurm_proto_rawDescData
  199. }
  200. var file_idl_slurm_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  201. var file_idl_slurm_proto_goTypes = []interface{}{
  202. (*ListNodesReq)(nil), // 0: slurm.ListNodesReq
  203. (*NodeInfo)(nil), // 1: slurm.NodeInfo
  204. (*ListNodesResp)(nil), // 2: slurm.ListNodesResp
  205. }
  206. var file_idl_slurm_proto_depIdxs = []int32{
  207. 1, // 0: slurm.ListNodesResp.node_infos:type_name -> slurm.NodeInfo
  208. 0, // 1: slurm.SlurmService.ListNodes:input_type -> slurm.ListNodesReq
  209. 2, // 2: slurm.SlurmService.ListNodes:output_type -> slurm.ListNodesResp
  210. 2, // [2:3] is the sub-list for method output_type
  211. 1, // [1:2] is the sub-list for method input_type
  212. 1, // [1:1] is the sub-list for extension type_name
  213. 1, // [1:1] is the sub-list for extension extendee
  214. 0, // [0:1] is the sub-list for field type_name
  215. }
  216. func init() { file_idl_slurm_proto_init() }
  217. func file_idl_slurm_proto_init() {
  218. if File_idl_slurm_proto != nil {
  219. return
  220. }
  221. if !protoimpl.UnsafeEnabled {
  222. file_idl_slurm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  223. switch v := v.(*ListNodesReq); i {
  224. case 0:
  225. return &v.state
  226. case 1:
  227. return &v.sizeCache
  228. case 2:
  229. return &v.unknownFields
  230. default:
  231. return nil
  232. }
  233. }
  234. file_idl_slurm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  235. switch v := v.(*NodeInfo); i {
  236. case 0:
  237. return &v.state
  238. case 1:
  239. return &v.sizeCache
  240. case 2:
  241. return &v.unknownFields
  242. default:
  243. return nil
  244. }
  245. }
  246. file_idl_slurm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  247. switch v := v.(*ListNodesResp); i {
  248. case 0:
  249. return &v.state
  250. case 1:
  251. return &v.sizeCache
  252. case 2:
  253. return &v.unknownFields
  254. default:
  255. return nil
  256. }
  257. }
  258. }
  259. type x struct{}
  260. out := protoimpl.TypeBuilder{
  261. File: protoimpl.DescBuilder{
  262. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  263. RawDescriptor: file_idl_slurm_proto_rawDesc,
  264. NumEnums: 0,
  265. NumMessages: 3,
  266. NumExtensions: 0,
  267. NumServices: 1,
  268. },
  269. GoTypes: file_idl_slurm_proto_goTypes,
  270. DependencyIndexes: file_idl_slurm_proto_depIdxs,
  271. MessageInfos: file_idl_slurm_proto_msgTypes,
  272. }.Build()
  273. File_idl_slurm_proto = out.File
  274. file_idl_slurm_proto_rawDesc = nil
  275. file_idl_slurm_proto_goTypes = nil
  276. file_idl_slurm_proto_depIdxs = nil
  277. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.