github.com/kaydxh/golang@v0.0.131/pkg/scheduler/types/task.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.13.0 5 // source: pkg/scheduler/types/task.proto 6 7 package types 8 9 import ( 10 _ "github.com/golang/protobuf/ptypes/duration" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type TaskState int32 25 26 const ( 27 TaskState_TASK_STATE_RESERVE TaskState = 0 28 TaskState_TASK_STATE_PENDING TaskState = 1 29 TaskState_TASK_STATE_RUNNING TaskState = 2 30 TaskState_TASK_STATE_SUCCEED TaskState = 3 31 TaskState_TASK_STATE_FAILED TaskState = 4 32 TaskState_TASK_STATE_STOPPING TaskState = 5 33 TaskState_TASK_STATE_STOPPED TaskState = 6 34 ) 35 36 // Enum value maps for TaskState. 37 var ( 38 TaskState_name = map[int32]string{ 39 0: "TASK_STATE_RESERVE", 40 1: "TASK_STATE_PENDING", 41 2: "TASK_STATE_RUNNING", 42 3: "TASK_STATE_SUCCEED", 43 4: "TASK_STATE_FAILED", 44 5: "TASK_STATE_STOPPING", 45 6: "TASK_STATE_STOPPED", 46 } 47 TaskState_value = map[string]int32{ 48 "TASK_STATE_RESERVE": 0, 49 "TASK_STATE_PENDING": 1, 50 "TASK_STATE_RUNNING": 2, 51 "TASK_STATE_SUCCEED": 3, 52 "TASK_STATE_FAILED": 4, 53 "TASK_STATE_STOPPING": 5, 54 "TASK_STATE_STOPPED": 6, 55 } 56 ) 57 58 func (x TaskState) Enum() *TaskState { 59 p := new(TaskState) 60 *p = x 61 return p 62 } 63 64 func (x TaskState) String() string { 65 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 66 } 67 68 func (TaskState) Descriptor() protoreflect.EnumDescriptor { 69 return file_pkg_scheduler_types_task_proto_enumTypes[0].Descriptor() 70 } 71 72 func (TaskState) Type() protoreflect.EnumType { 73 return &file_pkg_scheduler_types_task_proto_enumTypes[0] 74 } 75 76 func (x TaskState) Number() protoreflect.EnumNumber { 77 return protoreflect.EnumNumber(x) 78 } 79 80 // Deprecated: Use TaskState.Descriptor instead. 81 func (TaskState) EnumDescriptor() ([]byte, []int) { 82 return file_pkg_scheduler_types_task_proto_rawDescGZIP(), []int{0} 83 } 84 85 var File_pkg_scheduler_types_task_proto protoreflect.FileDescriptor 86 87 var file_pkg_scheduler_types_task_proto_rawDesc = []byte{ 88 0x0a, 0x1e, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 89 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 90 0x12, 0x16, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 91 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 92 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 93 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2a, 0xb3, 0x01, 0x0a, 0x09, 0x54, 0x61, 0x73, 94 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 95 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x10, 0x00, 0x12, 0x16, 96 0x0a, 0x12, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x45, 0x4e, 97 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 98 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x16, 99 0x0a, 0x12, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x55, 0x43, 100 0x43, 0x45, 0x45, 0x44, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 101 0x54, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x17, 0x0a, 102 0x13, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x50, 103 0x50, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 104 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x06, 0x42, 0x30, 105 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 106 0x64, 0x78, 0x68, 0x2f, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 107 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 108 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 109 } 110 111 var ( 112 file_pkg_scheduler_types_task_proto_rawDescOnce sync.Once 113 file_pkg_scheduler_types_task_proto_rawDescData = file_pkg_scheduler_types_task_proto_rawDesc 114 ) 115 116 func file_pkg_scheduler_types_task_proto_rawDescGZIP() []byte { 117 file_pkg_scheduler_types_task_proto_rawDescOnce.Do(func() { 118 file_pkg_scheduler_types_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_scheduler_types_task_proto_rawDescData) 119 }) 120 return file_pkg_scheduler_types_task_proto_rawDescData 121 } 122 123 var file_pkg_scheduler_types_task_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 124 var file_pkg_scheduler_types_task_proto_goTypes = []interface{}{ 125 (TaskState)(0), // 0: go.pkg.scheduler.types.TaskState 126 } 127 var file_pkg_scheduler_types_task_proto_depIdxs = []int32{ 128 0, // [0:0] is the sub-list for method output_type 129 0, // [0:0] is the sub-list for method input_type 130 0, // [0:0] is the sub-list for extension type_name 131 0, // [0:0] is the sub-list for extension extendee 132 0, // [0:0] is the sub-list for field type_name 133 } 134 135 func init() { file_pkg_scheduler_types_task_proto_init() } 136 func file_pkg_scheduler_types_task_proto_init() { 137 if File_pkg_scheduler_types_task_proto != nil { 138 return 139 } 140 type x struct{} 141 out := protoimpl.TypeBuilder{ 142 File: protoimpl.DescBuilder{ 143 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 144 RawDescriptor: file_pkg_scheduler_types_task_proto_rawDesc, 145 NumEnums: 1, 146 NumMessages: 0, 147 NumExtensions: 0, 148 NumServices: 0, 149 }, 150 GoTypes: file_pkg_scheduler_types_task_proto_goTypes, 151 DependencyIndexes: file_pkg_scheduler_types_task_proto_depIdxs, 152 EnumInfos: file_pkg_scheduler_types_task_proto_enumTypes, 153 }.Build() 154 File_pkg_scheduler_types_task_proto = out.File 155 file_pkg_scheduler_types_task_proto_rawDesc = nil 156 file_pkg_scheduler_types_task_proto_goTypes = nil 157 file_pkg_scheduler_types_task_proto_depIdxs = nil 158 }