|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.28.0
- // protoc (unknown)
- // source: idl/slurm.proto
-
- package slurmpb
-
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
-
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
-
- type ListNodesReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
-
- func (x *ListNodesReq) Reset() {
- *x = ListNodesReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_idl_slurm_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *ListNodesReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*ListNodesReq) ProtoMessage() {}
-
- func (x *ListNodesReq) ProtoReflect() protoreflect.Message {
- mi := &file_idl_slurm_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use ListNodesReq.ProtoReflect.Descriptor instead.
- func (*ListNodesReq) Descriptor() ([]byte, []int) {
- return file_idl_slurm_proto_rawDescGZIP(), []int{0}
- }
-
- type NodeInfo struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Boards int32 `protobuf:"varint,1,opt,name=boards,proto3" json:"boards,omitempty"`
- Cpus int32 `protobuf:"varint,2,opt,name=cpus,proto3" json:"cpus,omitempty"`
- Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
- RealMemory int32 `protobuf:"varint,4,opt,name=realMemory,proto3" json:"realMemory,omitempty"`
- Sockets int32 `protobuf:"varint,5,opt,name=sockets,proto3" json:"sockets,omitempty"`
- Threads int32 `protobuf:"varint,6,opt,name=threads,proto3" json:"threads,omitempty"`
- }
-
- func (x *NodeInfo) Reset() {
- *x = NodeInfo{}
- if protoimpl.UnsafeEnabled {
- mi := &file_idl_slurm_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *NodeInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*NodeInfo) ProtoMessage() {}
-
- func (x *NodeInfo) ProtoReflect() protoreflect.Message {
- mi := &file_idl_slurm_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.
- func (*NodeInfo) Descriptor() ([]byte, []int) {
- return file_idl_slurm_proto_rawDescGZIP(), []int{1}
- }
-
- func (x *NodeInfo) GetBoards() int32 {
- if x != nil {
- return x.Boards
- }
- return 0
- }
-
- func (x *NodeInfo) GetCpus() int32 {
- if x != nil {
- return x.Cpus
- }
- return 0
- }
-
- func (x *NodeInfo) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
-
- func (x *NodeInfo) GetRealMemory() int32 {
- if x != nil {
- return x.RealMemory
- }
- return 0
- }
-
- func (x *NodeInfo) GetSockets() int32 {
- if x != nil {
- return x.Sockets
- }
- return 0
- }
-
- func (x *NodeInfo) GetThreads() int32 {
- if x != nil {
- return x.Threads
- }
- return 0
- }
-
- type ListNodesResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- NodeInfos []*NodeInfo `protobuf:"bytes,1,rep,name=node_infos,json=nodeInfos,proto3" json:"node_infos,omitempty"`
- }
-
- func (x *ListNodesResp) Reset() {
- *x = ListNodesResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_idl_slurm_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *ListNodesResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*ListNodesResp) ProtoMessage() {}
-
- func (x *ListNodesResp) ProtoReflect() protoreflect.Message {
- mi := &file_idl_slurm_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use ListNodesResp.ProtoReflect.Descriptor instead.
- func (*ListNodesResp) Descriptor() ([]byte, []int) {
- return file_idl_slurm_proto_rawDescGZIP(), []int{2}
- }
-
- func (x *ListNodesResp) GetNodeInfos() []*NodeInfo {
- if x != nil {
- return x.NodeInfos
- }
- return nil
- }
-
- var File_idl_slurm_proto protoreflect.FileDescriptor
-
- var file_idl_slurm_proto_rawDesc = []byte{
- 0x0a, 0x0f, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x12, 0x05, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x22, 0x0e, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,
- 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x22, 0x9e, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x64,
- 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x12, 0x0a,
- 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x70, 0x75,
- 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x6c, 0x4d, 0x65, 0x6d,
- 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x6c, 0x4d,
- 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73,
- 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12,
- 0x18, 0x0a, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x22, 0x3f, 0x0a, 0x0d, 0x4c, 0x69, 0x73,
- 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f,
- 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f,
- 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52,
- 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x32, 0x46, 0x0a, 0x0c, 0x53, 0x6c,
- 0x75, 0x72, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x4c, 0x69,
- 0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x13, 0x2e, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x2e,
- 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x73,
- 0x6c, 0x75, 0x72, 0x6d, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x73, 0x6c, 0x75, 0x72, 0x6d, 0x70, 0x62, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
-
- var (
- file_idl_slurm_proto_rawDescOnce sync.Once
- file_idl_slurm_proto_rawDescData = file_idl_slurm_proto_rawDesc
- )
-
- func file_idl_slurm_proto_rawDescGZIP() []byte {
- file_idl_slurm_proto_rawDescOnce.Do(func() {
- file_idl_slurm_proto_rawDescData = protoimpl.X.CompressGZIP(file_idl_slurm_proto_rawDescData)
- })
- return file_idl_slurm_proto_rawDescData
- }
-
- var file_idl_slurm_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_idl_slurm_proto_goTypes = []interface{}{
- (*ListNodesReq)(nil), // 0: slurm.ListNodesReq
- (*NodeInfo)(nil), // 1: slurm.NodeInfo
- (*ListNodesResp)(nil), // 2: slurm.ListNodesResp
- }
- var file_idl_slurm_proto_depIdxs = []int32{
- 1, // 0: slurm.ListNodesResp.node_infos:type_name -> slurm.NodeInfo
- 0, // 1: slurm.SlurmService.ListNodes:input_type -> slurm.ListNodesReq
- 2, // 2: slurm.SlurmService.ListNodes:output_type -> slurm.ListNodesResp
- 2, // [2:3] is the sub-list for method output_type
- 1, // [1:2] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
- }
-
- func init() { file_idl_slurm_proto_init() }
- func file_idl_slurm_proto_init() {
- if File_idl_slurm_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_idl_slurm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ListNodesReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_idl_slurm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*NodeInfo); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_idl_slurm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ListNodesResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_idl_slurm_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_idl_slurm_proto_goTypes,
- DependencyIndexes: file_idl_slurm_proto_depIdxs,
- MessageInfos: file_idl_slurm_proto_msgTypes,
- }.Build()
- File_idl_slurm_proto = out.File
- file_idl_slurm_proto_rawDesc = nil
- file_idl_slurm_proto_goTypes = nil
- file_idl_slurm_proto_depIdxs = nil
- }
|