go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cipkg/core/specs.pb.go (about) 1 // Copyright 2023 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/cipkg/core/specs.proto 20 21 package core 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 // HashAlgorithm includes all supported hash algorithms shared by actions. 38 type HashAlgorithm int32 39 40 const ( 41 HashAlgorithm_HASH_UNSPECIFIED HashAlgorithm = 0 42 HashAlgorithm_HASH_MD5 HashAlgorithm = 1 43 HashAlgorithm_HASH_SHA256 HashAlgorithm = 2 44 ) 45 46 // Enum value maps for HashAlgorithm. 47 var ( 48 HashAlgorithm_name = map[int32]string{ 49 0: "HASH_UNSPECIFIED", 50 1: "HASH_MD5", 51 2: "HASH_SHA256", 52 } 53 HashAlgorithm_value = map[string]int32{ 54 "HASH_UNSPECIFIED": 0, 55 "HASH_MD5": 1, 56 "HASH_SHA256": 2, 57 } 58 ) 59 60 func (x HashAlgorithm) Enum() *HashAlgorithm { 61 p := new(HashAlgorithm) 62 *p = x 63 return p 64 } 65 66 func (x HashAlgorithm) String() string { 67 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 68 } 69 70 func (HashAlgorithm) Descriptor() protoreflect.EnumDescriptor { 71 return file_go_chromium_org_luci_cipkg_core_specs_proto_enumTypes[0].Descriptor() 72 } 73 74 func (HashAlgorithm) Type() protoreflect.EnumType { 75 return &file_go_chromium_org_luci_cipkg_core_specs_proto_enumTypes[0] 76 } 77 78 func (x HashAlgorithm) Number() protoreflect.EnumNumber { 79 return protoreflect.EnumNumber(x) 80 } 81 82 // Deprecated: Use HashAlgorithm.Descriptor instead. 83 func (HashAlgorithm) EnumDescriptor() ([]byte, []int) { 84 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP(), []int{0} 85 } 86 87 // ActionCommand executes the command directly. 88 // Template is supported in both args and env: {{.depName}} will be replaced by 89 // the output path of the action's dependency with depName. 90 // e.g. An ActionCommand with python3 as dependency: 91 // 92 // &core.Action{ 93 // Name: "some_script", 94 // Deps: []*core.Action_Dependency{Python3Action}, 95 // Spec: &core.Action_Command{ 96 // Command: &core.ActionCommand{ 97 // Args: []string{"{{.python3}}/bin/python3", "something.py")}, 98 // }, 99 // } 100 // } 101 // 102 // "{{.python3}}/bin/python3" will be replaced by the output path in the 103 // transformed derivation. 104 type ActionCommand struct { 105 state protoimpl.MessageState 106 sizeCache protoimpl.SizeCache 107 unknownFields protoimpl.UnknownFields 108 109 Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` 110 Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"` 111 } 112 113 func (x *ActionCommand) Reset() { 114 *x = ActionCommand{} 115 if protoimpl.UnsafeEnabled { 116 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[0] 117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 118 ms.StoreMessageInfo(mi) 119 } 120 } 121 122 func (x *ActionCommand) String() string { 123 return protoimpl.X.MessageStringOf(x) 124 } 125 126 func (*ActionCommand) ProtoMessage() {} 127 128 func (x *ActionCommand) ProtoReflect() protoreflect.Message { 129 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[0] 130 if protoimpl.UnsafeEnabled && x != nil { 131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 132 if ms.LoadMessageInfo() == nil { 133 ms.StoreMessageInfo(mi) 134 } 135 return ms 136 } 137 return mi.MessageOf(x) 138 } 139 140 // Deprecated: Use ActionCommand.ProtoReflect.Descriptor instead. 141 func (*ActionCommand) Descriptor() ([]byte, []int) { 142 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP(), []int{0} 143 } 144 145 func (x *ActionCommand) GetArgs() []string { 146 if x != nil { 147 return x.Args 148 } 149 return nil 150 } 151 152 func (x *ActionCommand) GetEnv() []string { 153 if x != nil { 154 return x.Env 155 } 156 return nil 157 } 158 159 // ActionURLFetch downloads from url into output directory with name 160 // 'file'. 161 type ActionURLFetch struct { 162 state protoimpl.MessageState 163 sizeCache protoimpl.SizeCache 164 unknownFields protoimpl.UnknownFields 165 166 // HTTP(s) url for the remote resource. 167 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` 168 // HashAlgorithm is the hash function used to calculate hash value. 169 HashAlgorithm HashAlgorithm `protobuf:"varint,2,opt,name=hash_algorithm,json=hashAlgorithm,proto3,enum=HashAlgorithm" json:"hash_algorithm,omitempty"` 170 // HashValue is the lower-case text representation for the hex value of the 171 // hash sum. 172 HashValue string `protobuf:"bytes,3,opt,name=hash_value,json=hashValue,proto3" json:"hash_value,omitempty"` 173 } 174 175 func (x *ActionURLFetch) Reset() { 176 *x = ActionURLFetch{} 177 if protoimpl.UnsafeEnabled { 178 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[1] 179 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 180 ms.StoreMessageInfo(mi) 181 } 182 } 183 184 func (x *ActionURLFetch) String() string { 185 return protoimpl.X.MessageStringOf(x) 186 } 187 188 func (*ActionURLFetch) ProtoMessage() {} 189 190 func (x *ActionURLFetch) ProtoReflect() protoreflect.Message { 191 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[1] 192 if protoimpl.UnsafeEnabled && x != nil { 193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 194 if ms.LoadMessageInfo() == nil { 195 ms.StoreMessageInfo(mi) 196 } 197 return ms 198 } 199 return mi.MessageOf(x) 200 } 201 202 // Deprecated: Use ActionURLFetch.ProtoReflect.Descriptor instead. 203 func (*ActionURLFetch) Descriptor() ([]byte, []int) { 204 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP(), []int{1} 205 } 206 207 func (x *ActionURLFetch) GetUrl() string { 208 if x != nil { 209 return x.Url 210 } 211 return "" 212 } 213 214 func (x *ActionURLFetch) GetHashAlgorithm() HashAlgorithm { 215 if x != nil { 216 return x.HashAlgorithm 217 } 218 return HashAlgorithm_HASH_UNSPECIFIED 219 } 220 221 func (x *ActionURLFetch) GetHashValue() string { 222 if x != nil { 223 return x.HashValue 224 } 225 return "" 226 } 227 228 // ActionFilesCopy copies listed files into the output directory. 229 // TODO(fancl): Local, Embed, Output can be separated into different specs? 230 type ActionFilesCopy struct { 231 state protoimpl.MessageState 232 sizeCache protoimpl.SizeCache 233 unknownFields protoimpl.UnknownFields 234 235 // Files are the destination-source pairs which is the relative path 236 // source files should be copied to. 237 Files map[string]*ActionFilesCopy_Source `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 238 } 239 240 func (x *ActionFilesCopy) Reset() { 241 *x = ActionFilesCopy{} 242 if protoimpl.UnsafeEnabled { 243 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[2] 244 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 245 ms.StoreMessageInfo(mi) 246 } 247 } 248 249 func (x *ActionFilesCopy) String() string { 250 return protoimpl.X.MessageStringOf(x) 251 } 252 253 func (*ActionFilesCopy) ProtoMessage() {} 254 255 func (x *ActionFilesCopy) ProtoReflect() protoreflect.Message { 256 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[2] 257 if protoimpl.UnsafeEnabled && x != nil { 258 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 259 if ms.LoadMessageInfo() == nil { 260 ms.StoreMessageInfo(mi) 261 } 262 return ms 263 } 264 return mi.MessageOf(x) 265 } 266 267 // Deprecated: Use ActionFilesCopy.ProtoReflect.Descriptor instead. 268 func (*ActionFilesCopy) Descriptor() ([]byte, []int) { 269 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP(), []int{2} 270 } 271 272 func (x *ActionFilesCopy) GetFiles() map[string]*ActionFilesCopy_Source { 273 if x != nil { 274 return x.Files 275 } 276 return nil 277 } 278 279 // ActionCIPDExport exports cipd packages to the output directory. 280 // NOTE: this uses cipd export subcommand, which only includes CIPD package 281 // content without any cipd tracking metadata. 282 // TODO(fancl): use a protobuf ensure file instead. 283 type ActionCIPDExport struct { 284 state protoimpl.MessageState 285 sizeCache protoimpl.SizeCache 286 unknownFields protoimpl.UnknownFields 287 288 // Ensure_file is the serialized text ensure file for cipd. 289 EnsureFile string `protobuf:"bytes,1,opt,name=ensure_file,json=ensureFile,proto3" json:"ensure_file,omitempty"` 290 // Env is the extra environment variables passed to the cipd process. 291 Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"` 292 } 293 294 func (x *ActionCIPDExport) Reset() { 295 *x = ActionCIPDExport{} 296 if protoimpl.UnsafeEnabled { 297 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[3] 298 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 299 ms.StoreMessageInfo(mi) 300 } 301 } 302 303 func (x *ActionCIPDExport) String() string { 304 return protoimpl.X.MessageStringOf(x) 305 } 306 307 func (*ActionCIPDExport) ProtoMessage() {} 308 309 func (x *ActionCIPDExport) ProtoReflect() protoreflect.Message { 310 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[3] 311 if protoimpl.UnsafeEnabled && x != nil { 312 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 313 if ms.LoadMessageInfo() == nil { 314 ms.StoreMessageInfo(mi) 315 } 316 return ms 317 } 318 return mi.MessageOf(x) 319 } 320 321 // Deprecated: Use ActionCIPDExport.ProtoReflect.Descriptor instead. 322 func (*ActionCIPDExport) Descriptor() ([]byte, []int) { 323 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP(), []int{3} 324 } 325 326 func (x *ActionCIPDExport) GetEnsureFile() string { 327 if x != nil { 328 return x.EnsureFile 329 } 330 return "" 331 } 332 333 func (x *ActionCIPDExport) GetEnv() []string { 334 if x != nil { 335 return x.Env 336 } 337 return nil 338 } 339 340 // Source defines the source file we want to copied from. 341 type ActionFilesCopy_Source struct { 342 state protoimpl.MessageState 343 sizeCache protoimpl.SizeCache 344 unknownFields protoimpl.UnknownFields 345 346 Mode uint32 `protobuf:"varint,1,opt,name=mode,proto3" json:"mode,omitempty"` 347 // Types that are assignable to Content: 348 // 349 // *ActionFilesCopy_Source_Raw 350 // *ActionFilesCopy_Source_Local_ 351 // *ActionFilesCopy_Source_Embed_ 352 // *ActionFilesCopy_Source_Output_ 353 Content isActionFilesCopy_Source_Content `protobuf_oneof:"content"` 354 } 355 356 func (x *ActionFilesCopy_Source) Reset() { 357 *x = ActionFilesCopy_Source{} 358 if protoimpl.UnsafeEnabled { 359 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[5] 360 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 361 ms.StoreMessageInfo(mi) 362 } 363 } 364 365 func (x *ActionFilesCopy_Source) String() string { 366 return protoimpl.X.MessageStringOf(x) 367 } 368 369 func (*ActionFilesCopy_Source) ProtoMessage() {} 370 371 func (x *ActionFilesCopy_Source) ProtoReflect() protoreflect.Message { 372 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[5] 373 if protoimpl.UnsafeEnabled && x != nil { 374 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 375 if ms.LoadMessageInfo() == nil { 376 ms.StoreMessageInfo(mi) 377 } 378 return ms 379 } 380 return mi.MessageOf(x) 381 } 382 383 // Deprecated: Use ActionFilesCopy_Source.ProtoReflect.Descriptor instead. 384 func (*ActionFilesCopy_Source) Descriptor() ([]byte, []int) { 385 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP(), []int{2, 1} 386 } 387 388 func (x *ActionFilesCopy_Source) GetMode() uint32 { 389 if x != nil { 390 return x.Mode 391 } 392 return 0 393 } 394 395 func (m *ActionFilesCopy_Source) GetContent() isActionFilesCopy_Source_Content { 396 if m != nil { 397 return m.Content 398 } 399 return nil 400 } 401 402 func (x *ActionFilesCopy_Source) GetRaw() []byte { 403 if x, ok := x.GetContent().(*ActionFilesCopy_Source_Raw); ok { 404 return x.Raw 405 } 406 return nil 407 } 408 409 func (x *ActionFilesCopy_Source) GetLocal() *ActionFilesCopy_Source_Local { 410 if x, ok := x.GetContent().(*ActionFilesCopy_Source_Local_); ok { 411 return x.Local 412 } 413 return nil 414 } 415 416 func (x *ActionFilesCopy_Source) GetEmbed() *ActionFilesCopy_Source_Embed { 417 if x, ok := x.GetContent().(*ActionFilesCopy_Source_Embed_); ok { 418 return x.Embed 419 } 420 return nil 421 } 422 423 func (x *ActionFilesCopy_Source) GetOutput() *ActionFilesCopy_Source_Output { 424 if x, ok := x.GetContent().(*ActionFilesCopy_Source_Output_); ok { 425 return x.Output 426 } 427 return nil 428 } 429 430 type isActionFilesCopy_Source_Content interface { 431 isActionFilesCopy_Source_Content() 432 } 433 434 type ActionFilesCopy_Source_Raw struct { 435 // Raw contains the literal content of the file. 436 Raw []byte `protobuf:"bytes,2,opt,name=raw,proto3,oneof"` 437 } 438 439 type ActionFilesCopy_Source_Local_ struct { 440 // Local refers to the local file. 441 Local *ActionFilesCopy_Source_Local `protobuf:"bytes,3,opt,name=local,proto3,oneof"` 442 } 443 444 type ActionFilesCopy_Source_Embed_ struct { 445 // Embed refers to the embedded file in the go binary. 446 Embed *ActionFilesCopy_Source_Embed `protobuf:"bytes,4,opt,name=embed,proto3,oneof"` 447 } 448 449 type ActionFilesCopy_Source_Output_ struct { 450 // Output refers to the output file from other derivations. 451 Output *ActionFilesCopy_Source_Output `protobuf:"bytes,5,opt,name=output,proto3,oneof"` 452 } 453 454 func (*ActionFilesCopy_Source_Raw) isActionFilesCopy_Source_Content() {} 455 456 func (*ActionFilesCopy_Source_Local_) isActionFilesCopy_Source_Content() {} 457 458 func (*ActionFilesCopy_Source_Embed_) isActionFilesCopy_Source_Content() {} 459 460 func (*ActionFilesCopy_Source_Output_) isActionFilesCopy_Source_Content() {} 461 462 type ActionFilesCopy_Source_Local struct { 463 state protoimpl.MessageState 464 sizeCache protoimpl.SizeCache 465 unknownFields protoimpl.UnknownFields 466 467 // Path is the local filesystem absolute path to the file. 468 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` 469 // Version is the version string for the file. 470 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 471 // Follow_symlinks, if set to true, will follow all the symlinks in the 472 // directories while copying. 473 FollowSymlinks bool `protobuf:"varint,3,opt,name=follow_symlinks,json=followSymlinks,proto3" json:"follow_symlinks,omitempty"` 474 } 475 476 func (x *ActionFilesCopy_Source_Local) Reset() { 477 *x = ActionFilesCopy_Source_Local{} 478 if protoimpl.UnsafeEnabled { 479 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[6] 480 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 481 ms.StoreMessageInfo(mi) 482 } 483 } 484 485 func (x *ActionFilesCopy_Source_Local) String() string { 486 return protoimpl.X.MessageStringOf(x) 487 } 488 489 func (*ActionFilesCopy_Source_Local) ProtoMessage() {} 490 491 func (x *ActionFilesCopy_Source_Local) ProtoReflect() protoreflect.Message { 492 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[6] 493 if protoimpl.UnsafeEnabled && x != nil { 494 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 495 if ms.LoadMessageInfo() == nil { 496 ms.StoreMessageInfo(mi) 497 } 498 return ms 499 } 500 return mi.MessageOf(x) 501 } 502 503 // Deprecated: Use ActionFilesCopy_Source_Local.ProtoReflect.Descriptor instead. 504 func (*ActionFilesCopy_Source_Local) Descriptor() ([]byte, []int) { 505 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP(), []int{2, 1, 0} 506 } 507 508 func (x *ActionFilesCopy_Source_Local) GetPath() string { 509 if x != nil { 510 return x.Path 511 } 512 return "" 513 } 514 515 func (x *ActionFilesCopy_Source_Local) GetVersion() string { 516 if x != nil { 517 return x.Version 518 } 519 return "" 520 } 521 522 func (x *ActionFilesCopy_Source_Local) GetFollowSymlinks() bool { 523 if x != nil { 524 return x.FollowSymlinks 525 } 526 return false 527 } 528 529 type ActionFilesCopy_Source_Embed struct { 530 state protoimpl.MessageState 531 sizeCache protoimpl.SizeCache 532 unknownFields protoimpl.UnknownFields 533 534 // Ref is the reference to the embed.FS. 535 Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` 536 // Path is the relative path to the file inside the embedded filesystem. 537 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 538 } 539 540 func (x *ActionFilesCopy_Source_Embed) Reset() { 541 *x = ActionFilesCopy_Source_Embed{} 542 if protoimpl.UnsafeEnabled { 543 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[7] 544 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 545 ms.StoreMessageInfo(mi) 546 } 547 } 548 549 func (x *ActionFilesCopy_Source_Embed) String() string { 550 return protoimpl.X.MessageStringOf(x) 551 } 552 553 func (*ActionFilesCopy_Source_Embed) ProtoMessage() {} 554 555 func (x *ActionFilesCopy_Source_Embed) ProtoReflect() protoreflect.Message { 556 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[7] 557 if protoimpl.UnsafeEnabled && x != nil { 558 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 559 if ms.LoadMessageInfo() == nil { 560 ms.StoreMessageInfo(mi) 561 } 562 return ms 563 } 564 return mi.MessageOf(x) 565 } 566 567 // Deprecated: Use ActionFilesCopy_Source_Embed.ProtoReflect.Descriptor instead. 568 func (*ActionFilesCopy_Source_Embed) Descriptor() ([]byte, []int) { 569 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP(), []int{2, 1, 1} 570 } 571 572 func (x *ActionFilesCopy_Source_Embed) GetRef() string { 573 if x != nil { 574 return x.Ref 575 } 576 return "" 577 } 578 579 func (x *ActionFilesCopy_Source_Embed) GetPath() string { 580 if x != nil { 581 return x.Path 582 } 583 return "" 584 } 585 586 type ActionFilesCopy_Source_Output struct { 587 state protoimpl.MessageState 588 sizeCache protoimpl.SizeCache 589 unknownFields protoimpl.UnknownFields 590 591 // Name is the output action's Metadata.Name 592 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 593 // Path is the relative path to the file inside the output. 594 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 595 } 596 597 func (x *ActionFilesCopy_Source_Output) Reset() { 598 *x = ActionFilesCopy_Source_Output{} 599 if protoimpl.UnsafeEnabled { 600 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[8] 601 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 602 ms.StoreMessageInfo(mi) 603 } 604 } 605 606 func (x *ActionFilesCopy_Source_Output) String() string { 607 return protoimpl.X.MessageStringOf(x) 608 } 609 610 func (*ActionFilesCopy_Source_Output) ProtoMessage() {} 611 612 func (x *ActionFilesCopy_Source_Output) ProtoReflect() protoreflect.Message { 613 mi := &file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[8] 614 if protoimpl.UnsafeEnabled && x != nil { 615 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 616 if ms.LoadMessageInfo() == nil { 617 ms.StoreMessageInfo(mi) 618 } 619 return ms 620 } 621 return mi.MessageOf(x) 622 } 623 624 // Deprecated: Use ActionFilesCopy_Source_Output.ProtoReflect.Descriptor instead. 625 func (*ActionFilesCopy_Source_Output) Descriptor() ([]byte, []int) { 626 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP(), []int{2, 1, 2} 627 } 628 629 func (x *ActionFilesCopy_Source_Output) GetName() string { 630 if x != nil { 631 return x.Name 632 } 633 return "" 634 } 635 636 func (x *ActionFilesCopy_Source_Output) GetPath() string { 637 if x != nil { 638 return x.Path 639 } 640 return "" 641 } 642 643 var File_go_chromium_org_luci_cipkg_core_specs_proto protoreflect.FileDescriptor 644 645 var file_go_chromium_org_luci_cipkg_core_specs_proto_rawDesc = []byte{ 646 0x0a, 0x2b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 647 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x6f, 0x72, 648 0x65, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x35, 0x0a, 649 0x0d, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 650 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 651 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 652 0x03, 0x65, 0x6e, 0x76, 0x22, 0x78, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x52, 653 0x4c, 0x46, 0x65, 0x74, 0x63, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 654 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x35, 0x0a, 0x0e, 0x68, 0x61, 0x73, 0x68, 655 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 656 0x32, 0x0e, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 657 0x52, 0x0d, 0x68, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 658 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 659 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x61, 0x73, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xbe, 660 0x04, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x43, 0x6f, 661 0x70, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 662 0x0b, 0x32, 0x1b, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x43, 663 0x6f, 0x70, 0x79, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 664 0x66, 0x69, 0x6c, 0x65, 0x73, 0x1a, 0x51, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x45, 0x6e, 665 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 666 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 667 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 668 0x65, 0x73, 0x43, 0x6f, 0x70, 0x79, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x05, 0x76, 669 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xa4, 0x03, 0x0a, 0x06, 0x53, 0x6f, 0x75, 670 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 671 0x0d, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x02, 672 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x03, 0x72, 0x61, 0x77, 0x12, 0x35, 0x0a, 0x05, 0x6c, 673 0x6f, 0x63, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x41, 0x63, 0x74, 674 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x70, 0x79, 0x2e, 0x53, 0x6f, 0x75, 675 0x72, 0x63, 0x65, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x05, 0x6c, 0x6f, 0x63, 676 0x61, 0x6c, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 677 0x0b, 0x32, 0x1d, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x43, 678 0x6f, 0x70, 0x79, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x45, 0x6d, 0x62, 0x65, 0x64, 679 0x48, 0x00, 0x52, 0x05, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x06, 0x6f, 0x75, 0x74, 680 0x70, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x41, 0x63, 0x74, 0x69, 681 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x70, 0x79, 0x2e, 0x53, 0x6f, 0x75, 0x72, 682 0x63, 0x65, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x48, 0x00, 0x52, 0x06, 0x6f, 0x75, 0x74, 683 0x70, 0x75, 0x74, 0x1a, 0x5e, 0x0a, 0x05, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x12, 0x12, 0x0a, 0x04, 684 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 685 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 686 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x6f, 687 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x03, 0x20, 688 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x79, 0x6d, 0x6c, 0x69, 689 0x6e, 0x6b, 0x73, 0x1a, 0x2d, 0x0a, 0x05, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 690 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x12, 691 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 692 0x74, 0x68, 0x1a, 0x30, 0x0a, 0x06, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 693 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 694 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 695 0x70, 0x61, 0x74, 0x68, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 696 0x45, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x49, 0x50, 0x44, 0x45, 0x78, 0x70, 697 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x73, 0x75, 0x72, 0x65, 0x5f, 0x66, 0x69, 698 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x73, 0x75, 0x72, 0x65, 699 0x46, 0x69, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x03, 0x28, 700 0x09, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x2a, 0x44, 0x0a, 0x0d, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6c, 701 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x14, 0x0a, 0x10, 0x48, 0x41, 0x53, 0x48, 0x5f, 702 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 703 0x08, 0x48, 0x41, 0x53, 0x48, 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x48, 704 0x41, 0x53, 0x48, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x02, 0x42, 0x21, 0x5a, 0x1f, 705 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 706 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x62, 707 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 708 } 709 710 var ( 711 file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescOnce sync.Once 712 file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescData = file_go_chromium_org_luci_cipkg_core_specs_proto_rawDesc 713 ) 714 715 func file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescGZIP() []byte { 716 file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescOnce.Do(func() { 717 file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescData) 718 }) 719 return file_go_chromium_org_luci_cipkg_core_specs_proto_rawDescData 720 } 721 722 var file_go_chromium_org_luci_cipkg_core_specs_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 723 var file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 724 var file_go_chromium_org_luci_cipkg_core_specs_proto_goTypes = []interface{}{ 725 (HashAlgorithm)(0), // 0: HashAlgorithm 726 (*ActionCommand)(nil), // 1: ActionCommand 727 (*ActionURLFetch)(nil), // 2: ActionURLFetch 728 (*ActionFilesCopy)(nil), // 3: ActionFilesCopy 729 (*ActionCIPDExport)(nil), // 4: ActionCIPDExport 730 nil, // 5: ActionFilesCopy.FilesEntry 731 (*ActionFilesCopy_Source)(nil), // 6: ActionFilesCopy.Source 732 (*ActionFilesCopy_Source_Local)(nil), // 7: ActionFilesCopy.Source.Local 733 (*ActionFilesCopy_Source_Embed)(nil), // 8: ActionFilesCopy.Source.Embed 734 (*ActionFilesCopy_Source_Output)(nil), // 9: ActionFilesCopy.Source.Output 735 } 736 var file_go_chromium_org_luci_cipkg_core_specs_proto_depIdxs = []int32{ 737 0, // 0: ActionURLFetch.hash_algorithm:type_name -> HashAlgorithm 738 5, // 1: ActionFilesCopy.files:type_name -> ActionFilesCopy.FilesEntry 739 6, // 2: ActionFilesCopy.FilesEntry.value:type_name -> ActionFilesCopy.Source 740 7, // 3: ActionFilesCopy.Source.local:type_name -> ActionFilesCopy.Source.Local 741 8, // 4: ActionFilesCopy.Source.embed:type_name -> ActionFilesCopy.Source.Embed 742 9, // 5: ActionFilesCopy.Source.output:type_name -> ActionFilesCopy.Source.Output 743 6, // [6:6] is the sub-list for method output_type 744 6, // [6:6] is the sub-list for method input_type 745 6, // [6:6] is the sub-list for extension type_name 746 6, // [6:6] is the sub-list for extension extendee 747 0, // [0:6] is the sub-list for field type_name 748 } 749 750 func init() { file_go_chromium_org_luci_cipkg_core_specs_proto_init() } 751 func file_go_chromium_org_luci_cipkg_core_specs_proto_init() { 752 if File_go_chromium_org_luci_cipkg_core_specs_proto != nil { 753 return 754 } 755 if !protoimpl.UnsafeEnabled { 756 file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 757 switch v := v.(*ActionCommand); i { 758 case 0: 759 return &v.state 760 case 1: 761 return &v.sizeCache 762 case 2: 763 return &v.unknownFields 764 default: 765 return nil 766 } 767 } 768 file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 769 switch v := v.(*ActionURLFetch); i { 770 case 0: 771 return &v.state 772 case 1: 773 return &v.sizeCache 774 case 2: 775 return &v.unknownFields 776 default: 777 return nil 778 } 779 } 780 file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 781 switch v := v.(*ActionFilesCopy); i { 782 case 0: 783 return &v.state 784 case 1: 785 return &v.sizeCache 786 case 2: 787 return &v.unknownFields 788 default: 789 return nil 790 } 791 } 792 file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 793 switch v := v.(*ActionCIPDExport); i { 794 case 0: 795 return &v.state 796 case 1: 797 return &v.sizeCache 798 case 2: 799 return &v.unknownFields 800 default: 801 return nil 802 } 803 } 804 file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 805 switch v := v.(*ActionFilesCopy_Source); i { 806 case 0: 807 return &v.state 808 case 1: 809 return &v.sizeCache 810 case 2: 811 return &v.unknownFields 812 default: 813 return nil 814 } 815 } 816 file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 817 switch v := v.(*ActionFilesCopy_Source_Local); i { 818 case 0: 819 return &v.state 820 case 1: 821 return &v.sizeCache 822 case 2: 823 return &v.unknownFields 824 default: 825 return nil 826 } 827 } 828 file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 829 switch v := v.(*ActionFilesCopy_Source_Embed); i { 830 case 0: 831 return &v.state 832 case 1: 833 return &v.sizeCache 834 case 2: 835 return &v.unknownFields 836 default: 837 return nil 838 } 839 } 840 file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 841 switch v := v.(*ActionFilesCopy_Source_Output); i { 842 case 0: 843 return &v.state 844 case 1: 845 return &v.sizeCache 846 case 2: 847 return &v.unknownFields 848 default: 849 return nil 850 } 851 } 852 } 853 file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes[5].OneofWrappers = []interface{}{ 854 (*ActionFilesCopy_Source_Raw)(nil), 855 (*ActionFilesCopy_Source_Local_)(nil), 856 (*ActionFilesCopy_Source_Embed_)(nil), 857 (*ActionFilesCopy_Source_Output_)(nil), 858 } 859 type x struct{} 860 out := protoimpl.TypeBuilder{ 861 File: protoimpl.DescBuilder{ 862 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 863 RawDescriptor: file_go_chromium_org_luci_cipkg_core_specs_proto_rawDesc, 864 NumEnums: 1, 865 NumMessages: 9, 866 NumExtensions: 0, 867 NumServices: 0, 868 }, 869 GoTypes: file_go_chromium_org_luci_cipkg_core_specs_proto_goTypes, 870 DependencyIndexes: file_go_chromium_org_luci_cipkg_core_specs_proto_depIdxs, 871 EnumInfos: file_go_chromium_org_luci_cipkg_core_specs_proto_enumTypes, 872 MessageInfos: file_go_chromium_org_luci_cipkg_core_specs_proto_msgTypes, 873 }.Build() 874 File_go_chromium_org_luci_cipkg_core_specs_proto = out.File 875 file_go_chromium_org_luci_cipkg_core_specs_proto_rawDesc = nil 876 file_go_chromium_org_luci_cipkg_core_specs_proto_goTypes = nil 877 file_go_chromium_org_luci_cipkg_core_specs_proto_depIdxs = nil 878 }