go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/api/v1/run.pb.go (about) 1 // Copyright 2021 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.31.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/cv/api/v1/run.proto 20 21 package cvpb 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28 ) 29 30 const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35 ) 36 37 // Status describes the status of a CV Run. 38 type Run_Status int32 39 40 const ( 41 // Unspecified status. 42 Run_STATUS_UNSPECIFIED Run_Status = 0 43 // Run has not started yet. 44 // 45 // It is either because Run Manager hasn't processed the StartEvent yet or 46 // the RunOwner has exhausted all the quota and waiting for new quota to be 47 // available. 48 Run_PENDING Run_Status = 1 49 // Run is running. 50 Run_RUNNING Run_Status = 2 51 // Run is waiting for submission. 52 // 53 // Run is in this status if one of the following scenarios is true: 54 // 1. Tree is closed at the time Run attempts to submit. 55 // 2. There is another Run in the same LUCI Project that is currently 56 // submitting. 57 // 3. The submission is rate-limited according to the submit option in 58 // Project Config. 59 // 60 // This status is cancellable. 61 Run_WAITING_FOR_SUBMISSION Run_Status = 4 62 // Run is submitting. 63 // 64 // A Run can't be cancelled while submitting. A Run may transition from 65 // this status to either `WAITING_FOR_SUBMISSION` status or a non-cancelled 66 // terminal status. 67 Run_SUBMITTING Run_Status = 5 68 // ENDED_MASK can be used as a bitmask to check if a Run has ended. 69 // This MUST NOT be used as the status of a Run. 70 Run_ENDED_MASK Run_Status = 64 71 // Run ends successfully. 72 Run_SUCCEEDED Run_Status = 65 73 // Run ends unsuccessfully. 74 Run_FAILED Run_Status = 66 75 // Run is cancelled. 76 Run_CANCELLED Run_Status = 67 77 ) 78 79 // Enum value maps for Run_Status. 80 var ( 81 Run_Status_name = map[int32]string{ 82 0: "STATUS_UNSPECIFIED", 83 1: "PENDING", 84 2: "RUNNING", 85 4: "WAITING_FOR_SUBMISSION", 86 5: "SUBMITTING", 87 64: "ENDED_MASK", 88 65: "SUCCEEDED", 89 66: "FAILED", 90 67: "CANCELLED", 91 } 92 Run_Status_value = map[string]int32{ 93 "STATUS_UNSPECIFIED": 0, 94 "PENDING": 1, 95 "RUNNING": 2, 96 "WAITING_FOR_SUBMISSION": 4, 97 "SUBMITTING": 5, 98 "ENDED_MASK": 64, 99 "SUCCEEDED": 65, 100 "FAILED": 66, 101 "CANCELLED": 67, 102 } 103 ) 104 105 func (x Run_Status) Enum() *Run_Status { 106 p := new(Run_Status) 107 *p = x 108 return p 109 } 110 111 func (x Run_Status) String() string { 112 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 113 } 114 115 func (Run_Status) Descriptor() protoreflect.EnumDescriptor { 116 return file_go_chromium_org_luci_cv_api_v1_run_proto_enumTypes[0].Descriptor() 117 } 118 119 func (Run_Status) Type() protoreflect.EnumType { 120 return &file_go_chromium_org_luci_cv_api_v1_run_proto_enumTypes[0] 121 } 122 123 func (x Run_Status) Number() protoreflect.EnumNumber { 124 return protoreflect.EnumNumber(x) 125 } 126 127 // Deprecated: Use Run_Status.Descriptor instead. 128 func (Run_Status) EnumDescriptor() ([]byte, []int) { 129 return file_go_chromium_org_luci_cv_api_v1_run_proto_rawDescGZIP(), []int{0, 0} 130 } 131 132 // Run includes the high-level information about a CV Run. 133 type Run struct { 134 state protoimpl.MessageState 135 sizeCache protoimpl.SizeCache 136 unknownFields protoimpl.UnknownFields 137 138 // ID of the Run. 139 // 140 // The format of an ID is "projects/$luci-project/runs/$id", where 141 // - luci-project is the name of the LUCI project the Run belongs to 142 // - id is an opaque key unique in the LUCI project. 143 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 144 // Status of the Run. 145 Status Run_Status `protobuf:"varint,2,opt,name=status,proto3,enum=cv.v1.Run_Status" json:"status,omitempty"` 146 // eversion is the entity version, which is monotonically increasing. 147 Eversion int64 `protobuf:"varint,3,opt,name=eversion,proto3" json:"eversion,omitempty"` 148 } 149 150 func (x *Run) Reset() { 151 *x = Run{} 152 if protoimpl.UnsafeEnabled { 153 mi := &file_go_chromium_org_luci_cv_api_v1_run_proto_msgTypes[0] 154 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 155 ms.StoreMessageInfo(mi) 156 } 157 } 158 159 func (x *Run) String() string { 160 return protoimpl.X.MessageStringOf(x) 161 } 162 163 func (*Run) ProtoMessage() {} 164 165 func (x *Run) ProtoReflect() protoreflect.Message { 166 mi := &file_go_chromium_org_luci_cv_api_v1_run_proto_msgTypes[0] 167 if protoimpl.UnsafeEnabled && x != nil { 168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 169 if ms.LoadMessageInfo() == nil { 170 ms.StoreMessageInfo(mi) 171 } 172 return ms 173 } 174 return mi.MessageOf(x) 175 } 176 177 // Deprecated: Use Run.ProtoReflect.Descriptor instead. 178 func (*Run) Descriptor() ([]byte, []int) { 179 return file_go_chromium_org_luci_cv_api_v1_run_proto_rawDescGZIP(), []int{0} 180 } 181 182 func (x *Run) GetId() string { 183 if x != nil { 184 return x.Id 185 } 186 return "" 187 } 188 189 func (x *Run) GetStatus() Run_Status { 190 if x != nil { 191 return x.Status 192 } 193 return Run_STATUS_UNSPECIFIED 194 } 195 196 func (x *Run) GetEversion() int64 { 197 if x != nil { 198 return x.Eversion 199 } 200 return 0 201 } 202 203 var File_go_chromium_org_luci_cv_api_v1_run_proto protoreflect.FileDescriptor 204 205 var file_go_chromium_org_luci_cv_api_v1_run_proto_rawDesc = []byte{ 206 0x0a, 0x28, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 207 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 208 0x2f, 0x72, 0x75, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x63, 0x76, 0x2e, 0x76, 209 0x31, 0x22, 0xff, 0x01, 0x0a, 0x03, 0x52, 0x75, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 210 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x06, 0x73, 0x74, 0x61, 211 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x63, 0x76, 0x2e, 0x76, 212 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 213 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 214 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x65, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 215 0x22, 0xa0, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 216 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 217 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 218 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x1a, 0x0a, 219 0x16, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x53, 0x55, 0x42, 220 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x55, 0x42, 221 0x4d, 0x49, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x4e, 0x44, 222 0x45, 0x44, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x10, 0x40, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 223 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x41, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 224 0x45, 0x44, 0x10, 0x42, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 225 0x44, 0x10, 0x43, 0x42, 0x25, 0x5a, 0x23, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 226 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x61, 227 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x76, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 228 0x6f, 0x33, 229 } 230 231 var ( 232 file_go_chromium_org_luci_cv_api_v1_run_proto_rawDescOnce sync.Once 233 file_go_chromium_org_luci_cv_api_v1_run_proto_rawDescData = file_go_chromium_org_luci_cv_api_v1_run_proto_rawDesc 234 ) 235 236 func file_go_chromium_org_luci_cv_api_v1_run_proto_rawDescGZIP() []byte { 237 file_go_chromium_org_luci_cv_api_v1_run_proto_rawDescOnce.Do(func() { 238 file_go_chromium_org_luci_cv_api_v1_run_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_api_v1_run_proto_rawDescData) 239 }) 240 return file_go_chromium_org_luci_cv_api_v1_run_proto_rawDescData 241 } 242 243 var file_go_chromium_org_luci_cv_api_v1_run_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 244 var file_go_chromium_org_luci_cv_api_v1_run_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 245 var file_go_chromium_org_luci_cv_api_v1_run_proto_goTypes = []interface{}{ 246 (Run_Status)(0), // 0: cv.v1.Run.Status 247 (*Run)(nil), // 1: cv.v1.Run 248 } 249 var file_go_chromium_org_luci_cv_api_v1_run_proto_depIdxs = []int32{ 250 0, // 0: cv.v1.Run.status:type_name -> cv.v1.Run.Status 251 1, // [1:1] is the sub-list for method output_type 252 1, // [1:1] is the sub-list for method input_type 253 1, // [1:1] is the sub-list for extension type_name 254 1, // [1:1] is the sub-list for extension extendee 255 0, // [0:1] is the sub-list for field type_name 256 } 257 258 func init() { file_go_chromium_org_luci_cv_api_v1_run_proto_init() } 259 func file_go_chromium_org_luci_cv_api_v1_run_proto_init() { 260 if File_go_chromium_org_luci_cv_api_v1_run_proto != nil { 261 return 262 } 263 if !protoimpl.UnsafeEnabled { 264 file_go_chromium_org_luci_cv_api_v1_run_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 265 switch v := v.(*Run); i { 266 case 0: 267 return &v.state 268 case 1: 269 return &v.sizeCache 270 case 2: 271 return &v.unknownFields 272 default: 273 return nil 274 } 275 } 276 } 277 type x struct{} 278 out := protoimpl.TypeBuilder{ 279 File: protoimpl.DescBuilder{ 280 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 281 RawDescriptor: file_go_chromium_org_luci_cv_api_v1_run_proto_rawDesc, 282 NumEnums: 1, 283 NumMessages: 1, 284 NumExtensions: 0, 285 NumServices: 0, 286 }, 287 GoTypes: file_go_chromium_org_luci_cv_api_v1_run_proto_goTypes, 288 DependencyIndexes: file_go_chromium_org_luci_cv_api_v1_run_proto_depIdxs, 289 EnumInfos: file_go_chromium_org_luci_cv_api_v1_run_proto_enumTypes, 290 MessageInfos: file_go_chromium_org_luci_cv_api_v1_run_proto_msgTypes, 291 }.Build() 292 File_go_chromium_org_luci_cv_api_v1_run_proto = out.File 293 file_go_chromium_org_luci_cv_api_v1_run_proto_rawDesc = nil 294 file_go_chromium_org_luci_cv_api_v1_run_proto_goTypes = nil 295 file_go_chromium_org_luci_cv_api_v1_run_proto_depIdxs = nil 296 }