1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/devtools/cloudbuild/v1/cloudbuild.proto 18 19 package com.google.cloudbuild.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A step in the build pipeline. 26 * </pre> 27 * 28 * Protobuf type {@code google.devtools.cloudbuild.v1.BuildStep} 29 */ 30 public final class BuildStep extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.BuildStep) 33 BuildStepOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use BuildStep.newBuilder() to construct. BuildStep(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private BuildStep(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 BuildStep()40 private BuildStep() { 41 name_ = ""; 42 env_ = com.google.protobuf.LazyStringArrayList.EMPTY; 43 args_ = com.google.protobuf.LazyStringArrayList.EMPTY; 44 dir_ = ""; 45 id_ = ""; 46 waitFor_ = com.google.protobuf.LazyStringArrayList.EMPTY; 47 entrypoint_ = ""; 48 secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; 49 volumes_ = java.util.Collections.emptyList(); 50 status_ = 0; 51 allowExitCodes_ = emptyIntList(); 52 script_ = ""; 53 } 54 55 @java.lang.Override 56 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)57 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 58 return new BuildStep(); 59 } 60 61 @java.lang.Override getUnknownFields()62 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 63 return this.unknownFields; 64 } 65 getDescriptor()66 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 67 return com.google.cloudbuild.v1.Cloudbuild 68 .internal_static_google_devtools_cloudbuild_v1_BuildStep_descriptor; 69 } 70 71 @java.lang.Override 72 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()73 internalGetFieldAccessorTable() { 74 return com.google.cloudbuild.v1.Cloudbuild 75 .internal_static_google_devtools_cloudbuild_v1_BuildStep_fieldAccessorTable 76 .ensureFieldAccessorsInitialized( 77 com.google.cloudbuild.v1.BuildStep.class, 78 com.google.cloudbuild.v1.BuildStep.Builder.class); 79 } 80 81 public static final int NAME_FIELD_NUMBER = 1; 82 83 @SuppressWarnings("serial") 84 private volatile java.lang.Object name_ = ""; 85 /** 86 * 87 * 88 * <pre> 89 * Required. The name of the container image that will run this particular 90 * build step. 91 * If the image is available in the host's Docker daemon's cache, it 92 * will be run directly. If not, the host will attempt to pull the image 93 * first, using the builder service account's credentials if necessary. 94 * The Docker daemon's cache will already have the latest versions of all of 95 * the officially supported build steps 96 * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). 97 * The Docker daemon will also have cached many of the layers for some popular 98 * images, like "ubuntu", "debian", but they will be refreshed at the time you 99 * attempt to use them. 100 * If you built an image in a previous build step, it will be stored in the 101 * host's Docker daemon's cache and is available to use as the name for a 102 * later build step. 103 * </pre> 104 * 105 * <code>string name = 1;</code> 106 * 107 * @return The name. 108 */ 109 @java.lang.Override getName()110 public java.lang.String getName() { 111 java.lang.Object ref = name_; 112 if (ref instanceof java.lang.String) { 113 return (java.lang.String) ref; 114 } else { 115 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 116 java.lang.String s = bs.toStringUtf8(); 117 name_ = s; 118 return s; 119 } 120 } 121 /** 122 * 123 * 124 * <pre> 125 * Required. The name of the container image that will run this particular 126 * build step. 127 * If the image is available in the host's Docker daemon's cache, it 128 * will be run directly. If not, the host will attempt to pull the image 129 * first, using the builder service account's credentials if necessary. 130 * The Docker daemon's cache will already have the latest versions of all of 131 * the officially supported build steps 132 * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). 133 * The Docker daemon will also have cached many of the layers for some popular 134 * images, like "ubuntu", "debian", but they will be refreshed at the time you 135 * attempt to use them. 136 * If you built an image in a previous build step, it will be stored in the 137 * host's Docker daemon's cache and is available to use as the name for a 138 * later build step. 139 * </pre> 140 * 141 * <code>string name = 1;</code> 142 * 143 * @return The bytes for name. 144 */ 145 @java.lang.Override getNameBytes()146 public com.google.protobuf.ByteString getNameBytes() { 147 java.lang.Object ref = name_; 148 if (ref instanceof java.lang.String) { 149 com.google.protobuf.ByteString b = 150 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 151 name_ = b; 152 return b; 153 } else { 154 return (com.google.protobuf.ByteString) ref; 155 } 156 } 157 158 public static final int ENV_FIELD_NUMBER = 2; 159 160 @SuppressWarnings("serial") 161 private com.google.protobuf.LazyStringList env_; 162 /** 163 * 164 * 165 * <pre> 166 * A list of environment variable definitions to be used when running a step. 167 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 168 * being given the value "VALUE". 169 * </pre> 170 * 171 * <code>repeated string env = 2;</code> 172 * 173 * @return A list containing the env. 174 */ getEnvList()175 public com.google.protobuf.ProtocolStringList getEnvList() { 176 return env_; 177 } 178 /** 179 * 180 * 181 * <pre> 182 * A list of environment variable definitions to be used when running a step. 183 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 184 * being given the value "VALUE". 185 * </pre> 186 * 187 * <code>repeated string env = 2;</code> 188 * 189 * @return The count of env. 190 */ getEnvCount()191 public int getEnvCount() { 192 return env_.size(); 193 } 194 /** 195 * 196 * 197 * <pre> 198 * A list of environment variable definitions to be used when running a step. 199 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 200 * being given the value "VALUE". 201 * </pre> 202 * 203 * <code>repeated string env = 2;</code> 204 * 205 * @param index The index of the element to return. 206 * @return The env at the given index. 207 */ getEnv(int index)208 public java.lang.String getEnv(int index) { 209 return env_.get(index); 210 } 211 /** 212 * 213 * 214 * <pre> 215 * A list of environment variable definitions to be used when running a step. 216 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 217 * being given the value "VALUE". 218 * </pre> 219 * 220 * <code>repeated string env = 2;</code> 221 * 222 * @param index The index of the value to return. 223 * @return The bytes of the env at the given index. 224 */ getEnvBytes(int index)225 public com.google.protobuf.ByteString getEnvBytes(int index) { 226 return env_.getByteString(index); 227 } 228 229 public static final int ARGS_FIELD_NUMBER = 3; 230 231 @SuppressWarnings("serial") 232 private com.google.protobuf.LazyStringList args_; 233 /** 234 * 235 * 236 * <pre> 237 * A list of arguments that will be presented to the step when it is started. 238 * If the image used to run the step's container has an entrypoint, the `args` 239 * are used as arguments to that entrypoint. If the image does not define 240 * an entrypoint, the first element in args is used as the entrypoint, 241 * and the remainder will be used as arguments. 242 * </pre> 243 * 244 * <code>repeated string args = 3;</code> 245 * 246 * @return A list containing the args. 247 */ getArgsList()248 public com.google.protobuf.ProtocolStringList getArgsList() { 249 return args_; 250 } 251 /** 252 * 253 * 254 * <pre> 255 * A list of arguments that will be presented to the step when it is started. 256 * If the image used to run the step's container has an entrypoint, the `args` 257 * are used as arguments to that entrypoint. If the image does not define 258 * an entrypoint, the first element in args is used as the entrypoint, 259 * and the remainder will be used as arguments. 260 * </pre> 261 * 262 * <code>repeated string args = 3;</code> 263 * 264 * @return The count of args. 265 */ getArgsCount()266 public int getArgsCount() { 267 return args_.size(); 268 } 269 /** 270 * 271 * 272 * <pre> 273 * A list of arguments that will be presented to the step when it is started. 274 * If the image used to run the step's container has an entrypoint, the `args` 275 * are used as arguments to that entrypoint. If the image does not define 276 * an entrypoint, the first element in args is used as the entrypoint, 277 * and the remainder will be used as arguments. 278 * </pre> 279 * 280 * <code>repeated string args = 3;</code> 281 * 282 * @param index The index of the element to return. 283 * @return The args at the given index. 284 */ getArgs(int index)285 public java.lang.String getArgs(int index) { 286 return args_.get(index); 287 } 288 /** 289 * 290 * 291 * <pre> 292 * A list of arguments that will be presented to the step when it is started. 293 * If the image used to run the step's container has an entrypoint, the `args` 294 * are used as arguments to that entrypoint. If the image does not define 295 * an entrypoint, the first element in args is used as the entrypoint, 296 * and the remainder will be used as arguments. 297 * </pre> 298 * 299 * <code>repeated string args = 3;</code> 300 * 301 * @param index The index of the value to return. 302 * @return The bytes of the args at the given index. 303 */ getArgsBytes(int index)304 public com.google.protobuf.ByteString getArgsBytes(int index) { 305 return args_.getByteString(index); 306 } 307 308 public static final int DIR_FIELD_NUMBER = 4; 309 310 @SuppressWarnings("serial") 311 private volatile java.lang.Object dir_ = ""; 312 /** 313 * 314 * 315 * <pre> 316 * Working directory to use when running this step's container. 317 * If this value is a relative path, it is relative to the build's working 318 * directory. If this value is absolute, it may be outside the build's working 319 * directory, in which case the contents of the path may not be persisted 320 * across build step executions, unless a `volume` for that path is specified. 321 * If the build specifies a `RepoSource` with `dir` and a step with a `dir`, 322 * which specifies an absolute path, the `RepoSource` `dir` is ignored for 323 * the step's execution. 324 * </pre> 325 * 326 * <code>string dir = 4;</code> 327 * 328 * @return The dir. 329 */ 330 @java.lang.Override getDir()331 public java.lang.String getDir() { 332 java.lang.Object ref = dir_; 333 if (ref instanceof java.lang.String) { 334 return (java.lang.String) ref; 335 } else { 336 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 337 java.lang.String s = bs.toStringUtf8(); 338 dir_ = s; 339 return s; 340 } 341 } 342 /** 343 * 344 * 345 * <pre> 346 * Working directory to use when running this step's container. 347 * If this value is a relative path, it is relative to the build's working 348 * directory. If this value is absolute, it may be outside the build's working 349 * directory, in which case the contents of the path may not be persisted 350 * across build step executions, unless a `volume` for that path is specified. 351 * If the build specifies a `RepoSource` with `dir` and a step with a `dir`, 352 * which specifies an absolute path, the `RepoSource` `dir` is ignored for 353 * the step's execution. 354 * </pre> 355 * 356 * <code>string dir = 4;</code> 357 * 358 * @return The bytes for dir. 359 */ 360 @java.lang.Override getDirBytes()361 public com.google.protobuf.ByteString getDirBytes() { 362 java.lang.Object ref = dir_; 363 if (ref instanceof java.lang.String) { 364 com.google.protobuf.ByteString b = 365 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 366 dir_ = b; 367 return b; 368 } else { 369 return (com.google.protobuf.ByteString) ref; 370 } 371 } 372 373 public static final int ID_FIELD_NUMBER = 5; 374 375 @SuppressWarnings("serial") 376 private volatile java.lang.Object id_ = ""; 377 /** 378 * 379 * 380 * <pre> 381 * Unique identifier for this build step, used in `wait_for` to 382 * reference this build step as a dependency. 383 * </pre> 384 * 385 * <code>string id = 5;</code> 386 * 387 * @return The id. 388 */ 389 @java.lang.Override getId()390 public java.lang.String getId() { 391 java.lang.Object ref = id_; 392 if (ref instanceof java.lang.String) { 393 return (java.lang.String) ref; 394 } else { 395 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 396 java.lang.String s = bs.toStringUtf8(); 397 id_ = s; 398 return s; 399 } 400 } 401 /** 402 * 403 * 404 * <pre> 405 * Unique identifier for this build step, used in `wait_for` to 406 * reference this build step as a dependency. 407 * </pre> 408 * 409 * <code>string id = 5;</code> 410 * 411 * @return The bytes for id. 412 */ 413 @java.lang.Override getIdBytes()414 public com.google.protobuf.ByteString getIdBytes() { 415 java.lang.Object ref = id_; 416 if (ref instanceof java.lang.String) { 417 com.google.protobuf.ByteString b = 418 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 419 id_ = b; 420 return b; 421 } else { 422 return (com.google.protobuf.ByteString) ref; 423 } 424 } 425 426 public static final int WAIT_FOR_FIELD_NUMBER = 6; 427 428 @SuppressWarnings("serial") 429 private com.google.protobuf.LazyStringList waitFor_; 430 /** 431 * 432 * 433 * <pre> 434 * The ID(s) of the step(s) that this build step depends on. 435 * This build step will not start until all the build steps in `wait_for` 436 * have completed successfully. If `wait_for` is empty, this build step will 437 * start when all previous build steps in the `Build.Steps` list have 438 * completed successfully. 439 * </pre> 440 * 441 * <code>repeated string wait_for = 6;</code> 442 * 443 * @return A list containing the waitFor. 444 */ getWaitForList()445 public com.google.protobuf.ProtocolStringList getWaitForList() { 446 return waitFor_; 447 } 448 /** 449 * 450 * 451 * <pre> 452 * The ID(s) of the step(s) that this build step depends on. 453 * This build step will not start until all the build steps in `wait_for` 454 * have completed successfully. If `wait_for` is empty, this build step will 455 * start when all previous build steps in the `Build.Steps` list have 456 * completed successfully. 457 * </pre> 458 * 459 * <code>repeated string wait_for = 6;</code> 460 * 461 * @return The count of waitFor. 462 */ getWaitForCount()463 public int getWaitForCount() { 464 return waitFor_.size(); 465 } 466 /** 467 * 468 * 469 * <pre> 470 * The ID(s) of the step(s) that this build step depends on. 471 * This build step will not start until all the build steps in `wait_for` 472 * have completed successfully. If `wait_for` is empty, this build step will 473 * start when all previous build steps in the `Build.Steps` list have 474 * completed successfully. 475 * </pre> 476 * 477 * <code>repeated string wait_for = 6;</code> 478 * 479 * @param index The index of the element to return. 480 * @return The waitFor at the given index. 481 */ getWaitFor(int index)482 public java.lang.String getWaitFor(int index) { 483 return waitFor_.get(index); 484 } 485 /** 486 * 487 * 488 * <pre> 489 * The ID(s) of the step(s) that this build step depends on. 490 * This build step will not start until all the build steps in `wait_for` 491 * have completed successfully. If `wait_for` is empty, this build step will 492 * start when all previous build steps in the `Build.Steps` list have 493 * completed successfully. 494 * </pre> 495 * 496 * <code>repeated string wait_for = 6;</code> 497 * 498 * @param index The index of the value to return. 499 * @return The bytes of the waitFor at the given index. 500 */ getWaitForBytes(int index)501 public com.google.protobuf.ByteString getWaitForBytes(int index) { 502 return waitFor_.getByteString(index); 503 } 504 505 public static final int ENTRYPOINT_FIELD_NUMBER = 7; 506 507 @SuppressWarnings("serial") 508 private volatile java.lang.Object entrypoint_ = ""; 509 /** 510 * 511 * 512 * <pre> 513 * Entrypoint to be used instead of the build step image's default entrypoint. 514 * If unset, the image's default entrypoint is used. 515 * </pre> 516 * 517 * <code>string entrypoint = 7;</code> 518 * 519 * @return The entrypoint. 520 */ 521 @java.lang.Override getEntrypoint()522 public java.lang.String getEntrypoint() { 523 java.lang.Object ref = entrypoint_; 524 if (ref instanceof java.lang.String) { 525 return (java.lang.String) ref; 526 } else { 527 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 528 java.lang.String s = bs.toStringUtf8(); 529 entrypoint_ = s; 530 return s; 531 } 532 } 533 /** 534 * 535 * 536 * <pre> 537 * Entrypoint to be used instead of the build step image's default entrypoint. 538 * If unset, the image's default entrypoint is used. 539 * </pre> 540 * 541 * <code>string entrypoint = 7;</code> 542 * 543 * @return The bytes for entrypoint. 544 */ 545 @java.lang.Override getEntrypointBytes()546 public com.google.protobuf.ByteString getEntrypointBytes() { 547 java.lang.Object ref = entrypoint_; 548 if (ref instanceof java.lang.String) { 549 com.google.protobuf.ByteString b = 550 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 551 entrypoint_ = b; 552 return b; 553 } else { 554 return (com.google.protobuf.ByteString) ref; 555 } 556 } 557 558 public static final int SECRET_ENV_FIELD_NUMBER = 8; 559 560 @SuppressWarnings("serial") 561 private com.google.protobuf.LazyStringList secretEnv_; 562 /** 563 * 564 * 565 * <pre> 566 * A list of environment variables which are encrypted using a Cloud Key 567 * Management Service crypto key. These values must be specified in the 568 * build's `Secret`. 569 * </pre> 570 * 571 * <code>repeated string secret_env = 8;</code> 572 * 573 * @return A list containing the secretEnv. 574 */ getSecretEnvList()575 public com.google.protobuf.ProtocolStringList getSecretEnvList() { 576 return secretEnv_; 577 } 578 /** 579 * 580 * 581 * <pre> 582 * A list of environment variables which are encrypted using a Cloud Key 583 * Management Service crypto key. These values must be specified in the 584 * build's `Secret`. 585 * </pre> 586 * 587 * <code>repeated string secret_env = 8;</code> 588 * 589 * @return The count of secretEnv. 590 */ getSecretEnvCount()591 public int getSecretEnvCount() { 592 return secretEnv_.size(); 593 } 594 /** 595 * 596 * 597 * <pre> 598 * A list of environment variables which are encrypted using a Cloud Key 599 * Management Service crypto key. These values must be specified in the 600 * build's `Secret`. 601 * </pre> 602 * 603 * <code>repeated string secret_env = 8;</code> 604 * 605 * @param index The index of the element to return. 606 * @return The secretEnv at the given index. 607 */ getSecretEnv(int index)608 public java.lang.String getSecretEnv(int index) { 609 return secretEnv_.get(index); 610 } 611 /** 612 * 613 * 614 * <pre> 615 * A list of environment variables which are encrypted using a Cloud Key 616 * Management Service crypto key. These values must be specified in the 617 * build's `Secret`. 618 * </pre> 619 * 620 * <code>repeated string secret_env = 8;</code> 621 * 622 * @param index The index of the value to return. 623 * @return The bytes of the secretEnv at the given index. 624 */ getSecretEnvBytes(int index)625 public com.google.protobuf.ByteString getSecretEnvBytes(int index) { 626 return secretEnv_.getByteString(index); 627 } 628 629 public static final int VOLUMES_FIELD_NUMBER = 9; 630 631 @SuppressWarnings("serial") 632 private java.util.List<com.google.cloudbuild.v1.Volume> volumes_; 633 /** 634 * 635 * 636 * <pre> 637 * List of volumes to mount into the build step. 638 * Each volume is created as an empty volume prior to execution of the 639 * build step. Upon completion of the build, volumes and their contents are 640 * discarded. 641 * Using a named volume in only one step is not valid as it is indicative 642 * of a build request with an incorrect configuration. 643 * </pre> 644 * 645 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 646 */ 647 @java.lang.Override getVolumesList()648 public java.util.List<com.google.cloudbuild.v1.Volume> getVolumesList() { 649 return volumes_; 650 } 651 /** 652 * 653 * 654 * <pre> 655 * List of volumes to mount into the build step. 656 * Each volume is created as an empty volume prior to execution of the 657 * build step. Upon completion of the build, volumes and their contents are 658 * discarded. 659 * Using a named volume in only one step is not valid as it is indicative 660 * of a build request with an incorrect configuration. 661 * </pre> 662 * 663 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 664 */ 665 @java.lang.Override 666 public java.util.List<? extends com.google.cloudbuild.v1.VolumeOrBuilder> getVolumesOrBuilderList()667 getVolumesOrBuilderList() { 668 return volumes_; 669 } 670 /** 671 * 672 * 673 * <pre> 674 * List of volumes to mount into the build step. 675 * Each volume is created as an empty volume prior to execution of the 676 * build step. Upon completion of the build, volumes and their contents are 677 * discarded. 678 * Using a named volume in only one step is not valid as it is indicative 679 * of a build request with an incorrect configuration. 680 * </pre> 681 * 682 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 683 */ 684 @java.lang.Override getVolumesCount()685 public int getVolumesCount() { 686 return volumes_.size(); 687 } 688 /** 689 * 690 * 691 * <pre> 692 * List of volumes to mount into the build step. 693 * Each volume is created as an empty volume prior to execution of the 694 * build step. Upon completion of the build, volumes and their contents are 695 * discarded. 696 * Using a named volume in only one step is not valid as it is indicative 697 * of a build request with an incorrect configuration. 698 * </pre> 699 * 700 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 701 */ 702 @java.lang.Override getVolumes(int index)703 public com.google.cloudbuild.v1.Volume getVolumes(int index) { 704 return volumes_.get(index); 705 } 706 /** 707 * 708 * 709 * <pre> 710 * List of volumes to mount into the build step. 711 * Each volume is created as an empty volume prior to execution of the 712 * build step. Upon completion of the build, volumes and their contents are 713 * discarded. 714 * Using a named volume in only one step is not valid as it is indicative 715 * of a build request with an incorrect configuration. 716 * </pre> 717 * 718 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 719 */ 720 @java.lang.Override getVolumesOrBuilder(int index)721 public com.google.cloudbuild.v1.VolumeOrBuilder getVolumesOrBuilder(int index) { 722 return volumes_.get(index); 723 } 724 725 public static final int TIMING_FIELD_NUMBER = 10; 726 private com.google.cloudbuild.v1.TimeSpan timing_; 727 /** 728 * 729 * 730 * <pre> 731 * Output only. Stores timing information for executing this build step. 732 * </pre> 733 * 734 * <code> 735 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 736 * </code> 737 * 738 * @return Whether the timing field is set. 739 */ 740 @java.lang.Override hasTiming()741 public boolean hasTiming() { 742 return timing_ != null; 743 } 744 /** 745 * 746 * 747 * <pre> 748 * Output only. Stores timing information for executing this build step. 749 * </pre> 750 * 751 * <code> 752 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 753 * </code> 754 * 755 * @return The timing. 756 */ 757 @java.lang.Override getTiming()758 public com.google.cloudbuild.v1.TimeSpan getTiming() { 759 return timing_ == null ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() : timing_; 760 } 761 /** 762 * 763 * 764 * <pre> 765 * Output only. Stores timing information for executing this build step. 766 * </pre> 767 * 768 * <code> 769 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 770 * </code> 771 */ 772 @java.lang.Override getTimingOrBuilder()773 public com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder() { 774 return timing_ == null ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() : timing_; 775 } 776 777 public static final int PULL_TIMING_FIELD_NUMBER = 13; 778 private com.google.cloudbuild.v1.TimeSpan pullTiming_; 779 /** 780 * 781 * 782 * <pre> 783 * Output only. Stores timing information for pulling this build step's 784 * builder image only. 785 * </pre> 786 * 787 * <code> 788 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 789 * </code> 790 * 791 * @return Whether the pullTiming field is set. 792 */ 793 @java.lang.Override hasPullTiming()794 public boolean hasPullTiming() { 795 return pullTiming_ != null; 796 } 797 /** 798 * 799 * 800 * <pre> 801 * Output only. Stores timing information for pulling this build step's 802 * builder image only. 803 * </pre> 804 * 805 * <code> 806 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 807 * </code> 808 * 809 * @return The pullTiming. 810 */ 811 @java.lang.Override getPullTiming()812 public com.google.cloudbuild.v1.TimeSpan getPullTiming() { 813 return pullTiming_ == null 814 ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() 815 : pullTiming_; 816 } 817 /** 818 * 819 * 820 * <pre> 821 * Output only. Stores timing information for pulling this build step's 822 * builder image only. 823 * </pre> 824 * 825 * <code> 826 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 827 * </code> 828 */ 829 @java.lang.Override getPullTimingOrBuilder()830 public com.google.cloudbuild.v1.TimeSpanOrBuilder getPullTimingOrBuilder() { 831 return pullTiming_ == null 832 ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() 833 : pullTiming_; 834 } 835 836 public static final int TIMEOUT_FIELD_NUMBER = 11; 837 private com.google.protobuf.Duration timeout_; 838 /** 839 * 840 * 841 * <pre> 842 * Time limit for executing this build step. If not defined, the step has no 843 * time limit and will be allowed to continue to run until either it completes 844 * or the build itself times out. 845 * </pre> 846 * 847 * <code>.google.protobuf.Duration timeout = 11;</code> 848 * 849 * @return Whether the timeout field is set. 850 */ 851 @java.lang.Override hasTimeout()852 public boolean hasTimeout() { 853 return timeout_ != null; 854 } 855 /** 856 * 857 * 858 * <pre> 859 * Time limit for executing this build step. If not defined, the step has no 860 * time limit and will be allowed to continue to run until either it completes 861 * or the build itself times out. 862 * </pre> 863 * 864 * <code>.google.protobuf.Duration timeout = 11;</code> 865 * 866 * @return The timeout. 867 */ 868 @java.lang.Override getTimeout()869 public com.google.protobuf.Duration getTimeout() { 870 return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; 871 } 872 /** 873 * 874 * 875 * <pre> 876 * Time limit for executing this build step. If not defined, the step has no 877 * time limit and will be allowed to continue to run until either it completes 878 * or the build itself times out. 879 * </pre> 880 * 881 * <code>.google.protobuf.Duration timeout = 11;</code> 882 */ 883 @java.lang.Override getTimeoutOrBuilder()884 public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { 885 return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; 886 } 887 888 public static final int STATUS_FIELD_NUMBER = 12; 889 private int status_ = 0; 890 /** 891 * 892 * 893 * <pre> 894 * Output only. Status of the build step. At this time, build step status is 895 * only updated on build completion; step status is not updated in real-time 896 * as the build progresses. 897 * </pre> 898 * 899 * <code> 900 * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 901 * </code> 902 * 903 * @return The enum numeric value on the wire for status. 904 */ 905 @java.lang.Override getStatusValue()906 public int getStatusValue() { 907 return status_; 908 } 909 /** 910 * 911 * 912 * <pre> 913 * Output only. Status of the build step. At this time, build step status is 914 * only updated on build completion; step status is not updated in real-time 915 * as the build progresses. 916 * </pre> 917 * 918 * <code> 919 * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 920 * </code> 921 * 922 * @return The status. 923 */ 924 @java.lang.Override getStatus()925 public com.google.cloudbuild.v1.Build.Status getStatus() { 926 com.google.cloudbuild.v1.Build.Status result = 927 com.google.cloudbuild.v1.Build.Status.forNumber(status_); 928 return result == null ? com.google.cloudbuild.v1.Build.Status.UNRECOGNIZED : result; 929 } 930 931 public static final int ALLOW_FAILURE_FIELD_NUMBER = 14; 932 private boolean allowFailure_ = false; 933 /** 934 * 935 * 936 * <pre> 937 * Allow this build step to fail without failing the entire build. 938 * If false, the entire build will fail if this step fails. Otherwise, the 939 * build will succeed, but this step will still have a failure status. 940 * Error information will be reported in the failure_detail field. 941 * </pre> 942 * 943 * <code>bool allow_failure = 14;</code> 944 * 945 * @return The allowFailure. 946 */ 947 @java.lang.Override getAllowFailure()948 public boolean getAllowFailure() { 949 return allowFailure_; 950 } 951 952 public static final int EXIT_CODE_FIELD_NUMBER = 16; 953 private int exitCode_ = 0; 954 /** 955 * 956 * 957 * <pre> 958 * Output only. Return code from running the step. 959 * </pre> 960 * 961 * <code>int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 962 * 963 * @return The exitCode. 964 */ 965 @java.lang.Override getExitCode()966 public int getExitCode() { 967 return exitCode_; 968 } 969 970 public static final int ALLOW_EXIT_CODES_FIELD_NUMBER = 18; 971 972 @SuppressWarnings("serial") 973 private com.google.protobuf.Internal.IntList allowExitCodes_; 974 /** 975 * 976 * 977 * <pre> 978 * Allow this build step to fail without failing the entire build if and 979 * only if the exit code is one of the specified codes. If allow_failure 980 * is also specified, this field will take precedence. 981 * </pre> 982 * 983 * <code>repeated int32 allow_exit_codes = 18;</code> 984 * 985 * @return A list containing the allowExitCodes. 986 */ 987 @java.lang.Override getAllowExitCodesList()988 public java.util.List<java.lang.Integer> getAllowExitCodesList() { 989 return allowExitCodes_; 990 } 991 /** 992 * 993 * 994 * <pre> 995 * Allow this build step to fail without failing the entire build if and 996 * only if the exit code is one of the specified codes. If allow_failure 997 * is also specified, this field will take precedence. 998 * </pre> 999 * 1000 * <code>repeated int32 allow_exit_codes = 18;</code> 1001 * 1002 * @return The count of allowExitCodes. 1003 */ getAllowExitCodesCount()1004 public int getAllowExitCodesCount() { 1005 return allowExitCodes_.size(); 1006 } 1007 /** 1008 * 1009 * 1010 * <pre> 1011 * Allow this build step to fail without failing the entire build if and 1012 * only if the exit code is one of the specified codes. If allow_failure 1013 * is also specified, this field will take precedence. 1014 * </pre> 1015 * 1016 * <code>repeated int32 allow_exit_codes = 18;</code> 1017 * 1018 * @param index The index of the element to return. 1019 * @return The allowExitCodes at the given index. 1020 */ getAllowExitCodes(int index)1021 public int getAllowExitCodes(int index) { 1022 return allowExitCodes_.getInt(index); 1023 } 1024 1025 private int allowExitCodesMemoizedSerializedSize = -1; 1026 1027 public static final int SCRIPT_FIELD_NUMBER = 19; 1028 1029 @SuppressWarnings("serial") 1030 private volatile java.lang.Object script_ = ""; 1031 /** 1032 * 1033 * 1034 * <pre> 1035 * A shell script to be executed in the step. 1036 * When script is provided, the user cannot specify the entrypoint or args. 1037 * </pre> 1038 * 1039 * <code>string script = 19;</code> 1040 * 1041 * @return The script. 1042 */ 1043 @java.lang.Override getScript()1044 public java.lang.String getScript() { 1045 java.lang.Object ref = script_; 1046 if (ref instanceof java.lang.String) { 1047 return (java.lang.String) ref; 1048 } else { 1049 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1050 java.lang.String s = bs.toStringUtf8(); 1051 script_ = s; 1052 return s; 1053 } 1054 } 1055 /** 1056 * 1057 * 1058 * <pre> 1059 * A shell script to be executed in the step. 1060 * When script is provided, the user cannot specify the entrypoint or args. 1061 * </pre> 1062 * 1063 * <code>string script = 19;</code> 1064 * 1065 * @return The bytes for script. 1066 */ 1067 @java.lang.Override getScriptBytes()1068 public com.google.protobuf.ByteString getScriptBytes() { 1069 java.lang.Object ref = script_; 1070 if (ref instanceof java.lang.String) { 1071 com.google.protobuf.ByteString b = 1072 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1073 script_ = b; 1074 return b; 1075 } else { 1076 return (com.google.protobuf.ByteString) ref; 1077 } 1078 } 1079 1080 private byte memoizedIsInitialized = -1; 1081 1082 @java.lang.Override isInitialized()1083 public final boolean isInitialized() { 1084 byte isInitialized = memoizedIsInitialized; 1085 if (isInitialized == 1) return true; 1086 if (isInitialized == 0) return false; 1087 1088 memoizedIsInitialized = 1; 1089 return true; 1090 } 1091 1092 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1093 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1094 getSerializedSize(); 1095 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1096 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 1097 } 1098 for (int i = 0; i < env_.size(); i++) { 1099 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, env_.getRaw(i)); 1100 } 1101 for (int i = 0; i < args_.size(); i++) { 1102 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); 1103 } 1104 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { 1105 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dir_); 1106 } 1107 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 1108 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, id_); 1109 } 1110 for (int i = 0; i < waitFor_.size(); i++) { 1111 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, waitFor_.getRaw(i)); 1112 } 1113 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypoint_)) { 1114 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, entrypoint_); 1115 } 1116 for (int i = 0; i < secretEnv_.size(); i++) { 1117 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, secretEnv_.getRaw(i)); 1118 } 1119 for (int i = 0; i < volumes_.size(); i++) { 1120 output.writeMessage(9, volumes_.get(i)); 1121 } 1122 if (timing_ != null) { 1123 output.writeMessage(10, getTiming()); 1124 } 1125 if (timeout_ != null) { 1126 output.writeMessage(11, getTimeout()); 1127 } 1128 if (status_ != com.google.cloudbuild.v1.Build.Status.STATUS_UNKNOWN.getNumber()) { 1129 output.writeEnum(12, status_); 1130 } 1131 if (pullTiming_ != null) { 1132 output.writeMessage(13, getPullTiming()); 1133 } 1134 if (allowFailure_ != false) { 1135 output.writeBool(14, allowFailure_); 1136 } 1137 if (exitCode_ != 0) { 1138 output.writeInt32(16, exitCode_); 1139 } 1140 if (getAllowExitCodesList().size() > 0) { 1141 output.writeUInt32NoTag(146); 1142 output.writeUInt32NoTag(allowExitCodesMemoizedSerializedSize); 1143 } 1144 for (int i = 0; i < allowExitCodes_.size(); i++) { 1145 output.writeInt32NoTag(allowExitCodes_.getInt(i)); 1146 } 1147 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(script_)) { 1148 com.google.protobuf.GeneratedMessageV3.writeString(output, 19, script_); 1149 } 1150 getUnknownFields().writeTo(output); 1151 } 1152 1153 @java.lang.Override getSerializedSize()1154 public int getSerializedSize() { 1155 int size = memoizedSize; 1156 if (size != -1) return size; 1157 1158 size = 0; 1159 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1160 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 1161 } 1162 { 1163 int dataSize = 0; 1164 for (int i = 0; i < env_.size(); i++) { 1165 dataSize += computeStringSizeNoTag(env_.getRaw(i)); 1166 } 1167 size += dataSize; 1168 size += 1 * getEnvList().size(); 1169 } 1170 { 1171 int dataSize = 0; 1172 for (int i = 0; i < args_.size(); i++) { 1173 dataSize += computeStringSizeNoTag(args_.getRaw(i)); 1174 } 1175 size += dataSize; 1176 size += 1 * getArgsList().size(); 1177 } 1178 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { 1179 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dir_); 1180 } 1181 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 1182 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); 1183 } 1184 { 1185 int dataSize = 0; 1186 for (int i = 0; i < waitFor_.size(); i++) { 1187 dataSize += computeStringSizeNoTag(waitFor_.getRaw(i)); 1188 } 1189 size += dataSize; 1190 size += 1 * getWaitForList().size(); 1191 } 1192 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypoint_)) { 1193 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, entrypoint_); 1194 } 1195 { 1196 int dataSize = 0; 1197 for (int i = 0; i < secretEnv_.size(); i++) { 1198 dataSize += computeStringSizeNoTag(secretEnv_.getRaw(i)); 1199 } 1200 size += dataSize; 1201 size += 1 * getSecretEnvList().size(); 1202 } 1203 for (int i = 0; i < volumes_.size(); i++) { 1204 size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, volumes_.get(i)); 1205 } 1206 if (timing_ != null) { 1207 size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getTiming()); 1208 } 1209 if (timeout_ != null) { 1210 size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getTimeout()); 1211 } 1212 if (status_ != com.google.cloudbuild.v1.Build.Status.STATUS_UNKNOWN.getNumber()) { 1213 size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, status_); 1214 } 1215 if (pullTiming_ != null) { 1216 size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getPullTiming()); 1217 } 1218 if (allowFailure_ != false) { 1219 size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, allowFailure_); 1220 } 1221 if (exitCode_ != 0) { 1222 size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, exitCode_); 1223 } 1224 { 1225 int dataSize = 0; 1226 for (int i = 0; i < allowExitCodes_.size(); i++) { 1227 dataSize += 1228 com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(allowExitCodes_.getInt(i)); 1229 } 1230 size += dataSize; 1231 if (!getAllowExitCodesList().isEmpty()) { 1232 size += 2; 1233 size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); 1234 } 1235 allowExitCodesMemoizedSerializedSize = dataSize; 1236 } 1237 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(script_)) { 1238 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, script_); 1239 } 1240 size += getUnknownFields().getSerializedSize(); 1241 memoizedSize = size; 1242 return size; 1243 } 1244 1245 @java.lang.Override equals(final java.lang.Object obj)1246 public boolean equals(final java.lang.Object obj) { 1247 if (obj == this) { 1248 return true; 1249 } 1250 if (!(obj instanceof com.google.cloudbuild.v1.BuildStep)) { 1251 return super.equals(obj); 1252 } 1253 com.google.cloudbuild.v1.BuildStep other = (com.google.cloudbuild.v1.BuildStep) obj; 1254 1255 if (!getName().equals(other.getName())) return false; 1256 if (!getEnvList().equals(other.getEnvList())) return false; 1257 if (!getArgsList().equals(other.getArgsList())) return false; 1258 if (!getDir().equals(other.getDir())) return false; 1259 if (!getId().equals(other.getId())) return false; 1260 if (!getWaitForList().equals(other.getWaitForList())) return false; 1261 if (!getEntrypoint().equals(other.getEntrypoint())) return false; 1262 if (!getSecretEnvList().equals(other.getSecretEnvList())) return false; 1263 if (!getVolumesList().equals(other.getVolumesList())) return false; 1264 if (hasTiming() != other.hasTiming()) return false; 1265 if (hasTiming()) { 1266 if (!getTiming().equals(other.getTiming())) return false; 1267 } 1268 if (hasPullTiming() != other.hasPullTiming()) return false; 1269 if (hasPullTiming()) { 1270 if (!getPullTiming().equals(other.getPullTiming())) return false; 1271 } 1272 if (hasTimeout() != other.hasTimeout()) return false; 1273 if (hasTimeout()) { 1274 if (!getTimeout().equals(other.getTimeout())) return false; 1275 } 1276 if (status_ != other.status_) return false; 1277 if (getAllowFailure() != other.getAllowFailure()) return false; 1278 if (getExitCode() != other.getExitCode()) return false; 1279 if (!getAllowExitCodesList().equals(other.getAllowExitCodesList())) return false; 1280 if (!getScript().equals(other.getScript())) return false; 1281 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1282 return true; 1283 } 1284 1285 @java.lang.Override hashCode()1286 public int hashCode() { 1287 if (memoizedHashCode != 0) { 1288 return memoizedHashCode; 1289 } 1290 int hash = 41; 1291 hash = (19 * hash) + getDescriptor().hashCode(); 1292 hash = (37 * hash) + NAME_FIELD_NUMBER; 1293 hash = (53 * hash) + getName().hashCode(); 1294 if (getEnvCount() > 0) { 1295 hash = (37 * hash) + ENV_FIELD_NUMBER; 1296 hash = (53 * hash) + getEnvList().hashCode(); 1297 } 1298 if (getArgsCount() > 0) { 1299 hash = (37 * hash) + ARGS_FIELD_NUMBER; 1300 hash = (53 * hash) + getArgsList().hashCode(); 1301 } 1302 hash = (37 * hash) + DIR_FIELD_NUMBER; 1303 hash = (53 * hash) + getDir().hashCode(); 1304 hash = (37 * hash) + ID_FIELD_NUMBER; 1305 hash = (53 * hash) + getId().hashCode(); 1306 if (getWaitForCount() > 0) { 1307 hash = (37 * hash) + WAIT_FOR_FIELD_NUMBER; 1308 hash = (53 * hash) + getWaitForList().hashCode(); 1309 } 1310 hash = (37 * hash) + ENTRYPOINT_FIELD_NUMBER; 1311 hash = (53 * hash) + getEntrypoint().hashCode(); 1312 if (getSecretEnvCount() > 0) { 1313 hash = (37 * hash) + SECRET_ENV_FIELD_NUMBER; 1314 hash = (53 * hash) + getSecretEnvList().hashCode(); 1315 } 1316 if (getVolumesCount() > 0) { 1317 hash = (37 * hash) + VOLUMES_FIELD_NUMBER; 1318 hash = (53 * hash) + getVolumesList().hashCode(); 1319 } 1320 if (hasTiming()) { 1321 hash = (37 * hash) + TIMING_FIELD_NUMBER; 1322 hash = (53 * hash) + getTiming().hashCode(); 1323 } 1324 if (hasPullTiming()) { 1325 hash = (37 * hash) + PULL_TIMING_FIELD_NUMBER; 1326 hash = (53 * hash) + getPullTiming().hashCode(); 1327 } 1328 if (hasTimeout()) { 1329 hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; 1330 hash = (53 * hash) + getTimeout().hashCode(); 1331 } 1332 hash = (37 * hash) + STATUS_FIELD_NUMBER; 1333 hash = (53 * hash) + status_; 1334 hash = (37 * hash) + ALLOW_FAILURE_FIELD_NUMBER; 1335 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowFailure()); 1336 hash = (37 * hash) + EXIT_CODE_FIELD_NUMBER; 1337 hash = (53 * hash) + getExitCode(); 1338 if (getAllowExitCodesCount() > 0) { 1339 hash = (37 * hash) + ALLOW_EXIT_CODES_FIELD_NUMBER; 1340 hash = (53 * hash) + getAllowExitCodesList().hashCode(); 1341 } 1342 hash = (37 * hash) + SCRIPT_FIELD_NUMBER; 1343 hash = (53 * hash) + getScript().hashCode(); 1344 hash = (29 * hash) + getUnknownFields().hashCode(); 1345 memoizedHashCode = hash; 1346 return hash; 1347 } 1348 parseFrom(java.nio.ByteBuffer data)1349 public static com.google.cloudbuild.v1.BuildStep parseFrom(java.nio.ByteBuffer data) 1350 throws com.google.protobuf.InvalidProtocolBufferException { 1351 return PARSER.parseFrom(data); 1352 } 1353 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1354 public static com.google.cloudbuild.v1.BuildStep parseFrom( 1355 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1356 throws com.google.protobuf.InvalidProtocolBufferException { 1357 return PARSER.parseFrom(data, extensionRegistry); 1358 } 1359 parseFrom(com.google.protobuf.ByteString data)1360 public static com.google.cloudbuild.v1.BuildStep parseFrom(com.google.protobuf.ByteString data) 1361 throws com.google.protobuf.InvalidProtocolBufferException { 1362 return PARSER.parseFrom(data); 1363 } 1364 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1365 public static com.google.cloudbuild.v1.BuildStep parseFrom( 1366 com.google.protobuf.ByteString data, 1367 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1368 throws com.google.protobuf.InvalidProtocolBufferException { 1369 return PARSER.parseFrom(data, extensionRegistry); 1370 } 1371 parseFrom(byte[] data)1372 public static com.google.cloudbuild.v1.BuildStep parseFrom(byte[] data) 1373 throws com.google.protobuf.InvalidProtocolBufferException { 1374 return PARSER.parseFrom(data); 1375 } 1376 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1377 public static com.google.cloudbuild.v1.BuildStep parseFrom( 1378 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1379 throws com.google.protobuf.InvalidProtocolBufferException { 1380 return PARSER.parseFrom(data, extensionRegistry); 1381 } 1382 parseFrom(java.io.InputStream input)1383 public static com.google.cloudbuild.v1.BuildStep parseFrom(java.io.InputStream input) 1384 throws java.io.IOException { 1385 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1386 } 1387 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1388 public static com.google.cloudbuild.v1.BuildStep parseFrom( 1389 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1390 throws java.io.IOException { 1391 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1392 PARSER, input, extensionRegistry); 1393 } 1394 parseDelimitedFrom(java.io.InputStream input)1395 public static com.google.cloudbuild.v1.BuildStep parseDelimitedFrom(java.io.InputStream input) 1396 throws java.io.IOException { 1397 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1398 } 1399 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1400 public static com.google.cloudbuild.v1.BuildStep parseDelimitedFrom( 1401 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1402 throws java.io.IOException { 1403 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1404 PARSER, input, extensionRegistry); 1405 } 1406 parseFrom( com.google.protobuf.CodedInputStream input)1407 public static com.google.cloudbuild.v1.BuildStep parseFrom( 1408 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1409 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1410 } 1411 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1412 public static com.google.cloudbuild.v1.BuildStep parseFrom( 1413 com.google.protobuf.CodedInputStream input, 1414 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1415 throws java.io.IOException { 1416 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1417 PARSER, input, extensionRegistry); 1418 } 1419 1420 @java.lang.Override newBuilderForType()1421 public Builder newBuilderForType() { 1422 return newBuilder(); 1423 } 1424 newBuilder()1425 public static Builder newBuilder() { 1426 return DEFAULT_INSTANCE.toBuilder(); 1427 } 1428 newBuilder(com.google.cloudbuild.v1.BuildStep prototype)1429 public static Builder newBuilder(com.google.cloudbuild.v1.BuildStep prototype) { 1430 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1431 } 1432 1433 @java.lang.Override toBuilder()1434 public Builder toBuilder() { 1435 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1436 } 1437 1438 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1439 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1440 Builder builder = new Builder(parent); 1441 return builder; 1442 } 1443 /** 1444 * 1445 * 1446 * <pre> 1447 * A step in the build pipeline. 1448 * </pre> 1449 * 1450 * Protobuf type {@code google.devtools.cloudbuild.v1.BuildStep} 1451 */ 1452 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1453 implements 1454 // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.BuildStep) 1455 com.google.cloudbuild.v1.BuildStepOrBuilder { getDescriptor()1456 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1457 return com.google.cloudbuild.v1.Cloudbuild 1458 .internal_static_google_devtools_cloudbuild_v1_BuildStep_descriptor; 1459 } 1460 1461 @java.lang.Override 1462 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1463 internalGetFieldAccessorTable() { 1464 return com.google.cloudbuild.v1.Cloudbuild 1465 .internal_static_google_devtools_cloudbuild_v1_BuildStep_fieldAccessorTable 1466 .ensureFieldAccessorsInitialized( 1467 com.google.cloudbuild.v1.BuildStep.class, 1468 com.google.cloudbuild.v1.BuildStep.Builder.class); 1469 } 1470 1471 // Construct using com.google.cloudbuild.v1.BuildStep.newBuilder() Builder()1472 private Builder() {} 1473 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1474 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1475 super(parent); 1476 } 1477 1478 @java.lang.Override clear()1479 public Builder clear() { 1480 super.clear(); 1481 bitField0_ = 0; 1482 name_ = ""; 1483 env_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1484 bitField0_ = (bitField0_ & ~0x00000002); 1485 args_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1486 bitField0_ = (bitField0_ & ~0x00000004); 1487 dir_ = ""; 1488 id_ = ""; 1489 waitFor_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1490 bitField0_ = (bitField0_ & ~0x00000020); 1491 entrypoint_ = ""; 1492 secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1493 bitField0_ = (bitField0_ & ~0x00000080); 1494 if (volumesBuilder_ == null) { 1495 volumes_ = java.util.Collections.emptyList(); 1496 } else { 1497 volumes_ = null; 1498 volumesBuilder_.clear(); 1499 } 1500 bitField0_ = (bitField0_ & ~0x00000100); 1501 timing_ = null; 1502 if (timingBuilder_ != null) { 1503 timingBuilder_.dispose(); 1504 timingBuilder_ = null; 1505 } 1506 pullTiming_ = null; 1507 if (pullTimingBuilder_ != null) { 1508 pullTimingBuilder_.dispose(); 1509 pullTimingBuilder_ = null; 1510 } 1511 timeout_ = null; 1512 if (timeoutBuilder_ != null) { 1513 timeoutBuilder_.dispose(); 1514 timeoutBuilder_ = null; 1515 } 1516 status_ = 0; 1517 allowFailure_ = false; 1518 exitCode_ = 0; 1519 allowExitCodes_ = emptyIntList(); 1520 script_ = ""; 1521 return this; 1522 } 1523 1524 @java.lang.Override getDescriptorForType()1525 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1526 return com.google.cloudbuild.v1.Cloudbuild 1527 .internal_static_google_devtools_cloudbuild_v1_BuildStep_descriptor; 1528 } 1529 1530 @java.lang.Override getDefaultInstanceForType()1531 public com.google.cloudbuild.v1.BuildStep getDefaultInstanceForType() { 1532 return com.google.cloudbuild.v1.BuildStep.getDefaultInstance(); 1533 } 1534 1535 @java.lang.Override build()1536 public com.google.cloudbuild.v1.BuildStep build() { 1537 com.google.cloudbuild.v1.BuildStep result = buildPartial(); 1538 if (!result.isInitialized()) { 1539 throw newUninitializedMessageException(result); 1540 } 1541 return result; 1542 } 1543 1544 @java.lang.Override buildPartial()1545 public com.google.cloudbuild.v1.BuildStep buildPartial() { 1546 com.google.cloudbuild.v1.BuildStep result = new com.google.cloudbuild.v1.BuildStep(this); 1547 buildPartialRepeatedFields(result); 1548 if (bitField0_ != 0) { 1549 buildPartial0(result); 1550 } 1551 onBuilt(); 1552 return result; 1553 } 1554 buildPartialRepeatedFields(com.google.cloudbuild.v1.BuildStep result)1555 private void buildPartialRepeatedFields(com.google.cloudbuild.v1.BuildStep result) { 1556 if (((bitField0_ & 0x00000002) != 0)) { 1557 env_ = env_.getUnmodifiableView(); 1558 bitField0_ = (bitField0_ & ~0x00000002); 1559 } 1560 result.env_ = env_; 1561 if (((bitField0_ & 0x00000004) != 0)) { 1562 args_ = args_.getUnmodifiableView(); 1563 bitField0_ = (bitField0_ & ~0x00000004); 1564 } 1565 result.args_ = args_; 1566 if (((bitField0_ & 0x00000020) != 0)) { 1567 waitFor_ = waitFor_.getUnmodifiableView(); 1568 bitField0_ = (bitField0_ & ~0x00000020); 1569 } 1570 result.waitFor_ = waitFor_; 1571 if (((bitField0_ & 0x00000080) != 0)) { 1572 secretEnv_ = secretEnv_.getUnmodifiableView(); 1573 bitField0_ = (bitField0_ & ~0x00000080); 1574 } 1575 result.secretEnv_ = secretEnv_; 1576 if (volumesBuilder_ == null) { 1577 if (((bitField0_ & 0x00000100) != 0)) { 1578 volumes_ = java.util.Collections.unmodifiableList(volumes_); 1579 bitField0_ = (bitField0_ & ~0x00000100); 1580 } 1581 result.volumes_ = volumes_; 1582 } else { 1583 result.volumes_ = volumesBuilder_.build(); 1584 } 1585 if (((bitField0_ & 0x00008000) != 0)) { 1586 allowExitCodes_.makeImmutable(); 1587 bitField0_ = (bitField0_ & ~0x00008000); 1588 } 1589 result.allowExitCodes_ = allowExitCodes_; 1590 } 1591 buildPartial0(com.google.cloudbuild.v1.BuildStep result)1592 private void buildPartial0(com.google.cloudbuild.v1.BuildStep result) { 1593 int from_bitField0_ = bitField0_; 1594 if (((from_bitField0_ & 0x00000001) != 0)) { 1595 result.name_ = name_; 1596 } 1597 if (((from_bitField0_ & 0x00000008) != 0)) { 1598 result.dir_ = dir_; 1599 } 1600 if (((from_bitField0_ & 0x00000010) != 0)) { 1601 result.id_ = id_; 1602 } 1603 if (((from_bitField0_ & 0x00000040) != 0)) { 1604 result.entrypoint_ = entrypoint_; 1605 } 1606 if (((from_bitField0_ & 0x00000200) != 0)) { 1607 result.timing_ = timingBuilder_ == null ? timing_ : timingBuilder_.build(); 1608 } 1609 if (((from_bitField0_ & 0x00000400) != 0)) { 1610 result.pullTiming_ = pullTimingBuilder_ == null ? pullTiming_ : pullTimingBuilder_.build(); 1611 } 1612 if (((from_bitField0_ & 0x00000800) != 0)) { 1613 result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); 1614 } 1615 if (((from_bitField0_ & 0x00001000) != 0)) { 1616 result.status_ = status_; 1617 } 1618 if (((from_bitField0_ & 0x00002000) != 0)) { 1619 result.allowFailure_ = allowFailure_; 1620 } 1621 if (((from_bitField0_ & 0x00004000) != 0)) { 1622 result.exitCode_ = exitCode_; 1623 } 1624 if (((from_bitField0_ & 0x00010000) != 0)) { 1625 result.script_ = script_; 1626 } 1627 } 1628 1629 @java.lang.Override clone()1630 public Builder clone() { 1631 return super.clone(); 1632 } 1633 1634 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1635 public Builder setField( 1636 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1637 return super.setField(field, value); 1638 } 1639 1640 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1641 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1642 return super.clearField(field); 1643 } 1644 1645 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1646 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1647 return super.clearOneof(oneof); 1648 } 1649 1650 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1651 public Builder setRepeatedField( 1652 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1653 return super.setRepeatedField(field, index, value); 1654 } 1655 1656 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1657 public Builder addRepeatedField( 1658 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1659 return super.addRepeatedField(field, value); 1660 } 1661 1662 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1663 public Builder mergeFrom(com.google.protobuf.Message other) { 1664 if (other instanceof com.google.cloudbuild.v1.BuildStep) { 1665 return mergeFrom((com.google.cloudbuild.v1.BuildStep) other); 1666 } else { 1667 super.mergeFrom(other); 1668 return this; 1669 } 1670 } 1671 mergeFrom(com.google.cloudbuild.v1.BuildStep other)1672 public Builder mergeFrom(com.google.cloudbuild.v1.BuildStep other) { 1673 if (other == com.google.cloudbuild.v1.BuildStep.getDefaultInstance()) return this; 1674 if (!other.getName().isEmpty()) { 1675 name_ = other.name_; 1676 bitField0_ |= 0x00000001; 1677 onChanged(); 1678 } 1679 if (!other.env_.isEmpty()) { 1680 if (env_.isEmpty()) { 1681 env_ = other.env_; 1682 bitField0_ = (bitField0_ & ~0x00000002); 1683 } else { 1684 ensureEnvIsMutable(); 1685 env_.addAll(other.env_); 1686 } 1687 onChanged(); 1688 } 1689 if (!other.args_.isEmpty()) { 1690 if (args_.isEmpty()) { 1691 args_ = other.args_; 1692 bitField0_ = (bitField0_ & ~0x00000004); 1693 } else { 1694 ensureArgsIsMutable(); 1695 args_.addAll(other.args_); 1696 } 1697 onChanged(); 1698 } 1699 if (!other.getDir().isEmpty()) { 1700 dir_ = other.dir_; 1701 bitField0_ |= 0x00000008; 1702 onChanged(); 1703 } 1704 if (!other.getId().isEmpty()) { 1705 id_ = other.id_; 1706 bitField0_ |= 0x00000010; 1707 onChanged(); 1708 } 1709 if (!other.waitFor_.isEmpty()) { 1710 if (waitFor_.isEmpty()) { 1711 waitFor_ = other.waitFor_; 1712 bitField0_ = (bitField0_ & ~0x00000020); 1713 } else { 1714 ensureWaitForIsMutable(); 1715 waitFor_.addAll(other.waitFor_); 1716 } 1717 onChanged(); 1718 } 1719 if (!other.getEntrypoint().isEmpty()) { 1720 entrypoint_ = other.entrypoint_; 1721 bitField0_ |= 0x00000040; 1722 onChanged(); 1723 } 1724 if (!other.secretEnv_.isEmpty()) { 1725 if (secretEnv_.isEmpty()) { 1726 secretEnv_ = other.secretEnv_; 1727 bitField0_ = (bitField0_ & ~0x00000080); 1728 } else { 1729 ensureSecretEnvIsMutable(); 1730 secretEnv_.addAll(other.secretEnv_); 1731 } 1732 onChanged(); 1733 } 1734 if (volumesBuilder_ == null) { 1735 if (!other.volumes_.isEmpty()) { 1736 if (volumes_.isEmpty()) { 1737 volumes_ = other.volumes_; 1738 bitField0_ = (bitField0_ & ~0x00000100); 1739 } else { 1740 ensureVolumesIsMutable(); 1741 volumes_.addAll(other.volumes_); 1742 } 1743 onChanged(); 1744 } 1745 } else { 1746 if (!other.volumes_.isEmpty()) { 1747 if (volumesBuilder_.isEmpty()) { 1748 volumesBuilder_.dispose(); 1749 volumesBuilder_ = null; 1750 volumes_ = other.volumes_; 1751 bitField0_ = (bitField0_ & ~0x00000100); 1752 volumesBuilder_ = 1753 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 1754 ? getVolumesFieldBuilder() 1755 : null; 1756 } else { 1757 volumesBuilder_.addAllMessages(other.volumes_); 1758 } 1759 } 1760 } 1761 if (other.hasTiming()) { 1762 mergeTiming(other.getTiming()); 1763 } 1764 if (other.hasPullTiming()) { 1765 mergePullTiming(other.getPullTiming()); 1766 } 1767 if (other.hasTimeout()) { 1768 mergeTimeout(other.getTimeout()); 1769 } 1770 if (other.status_ != 0) { 1771 setStatusValue(other.getStatusValue()); 1772 } 1773 if (other.getAllowFailure() != false) { 1774 setAllowFailure(other.getAllowFailure()); 1775 } 1776 if (other.getExitCode() != 0) { 1777 setExitCode(other.getExitCode()); 1778 } 1779 if (!other.allowExitCodes_.isEmpty()) { 1780 if (allowExitCodes_.isEmpty()) { 1781 allowExitCodes_ = other.allowExitCodes_; 1782 bitField0_ = (bitField0_ & ~0x00008000); 1783 } else { 1784 ensureAllowExitCodesIsMutable(); 1785 allowExitCodes_.addAll(other.allowExitCodes_); 1786 } 1787 onChanged(); 1788 } 1789 if (!other.getScript().isEmpty()) { 1790 script_ = other.script_; 1791 bitField0_ |= 0x00010000; 1792 onChanged(); 1793 } 1794 this.mergeUnknownFields(other.getUnknownFields()); 1795 onChanged(); 1796 return this; 1797 } 1798 1799 @java.lang.Override isInitialized()1800 public final boolean isInitialized() { 1801 return true; 1802 } 1803 1804 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1805 public Builder mergeFrom( 1806 com.google.protobuf.CodedInputStream input, 1807 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1808 throws java.io.IOException { 1809 if (extensionRegistry == null) { 1810 throw new java.lang.NullPointerException(); 1811 } 1812 try { 1813 boolean done = false; 1814 while (!done) { 1815 int tag = input.readTag(); 1816 switch (tag) { 1817 case 0: 1818 done = true; 1819 break; 1820 case 10: 1821 { 1822 name_ = input.readStringRequireUtf8(); 1823 bitField0_ |= 0x00000001; 1824 break; 1825 } // case 10 1826 case 18: 1827 { 1828 java.lang.String s = input.readStringRequireUtf8(); 1829 ensureEnvIsMutable(); 1830 env_.add(s); 1831 break; 1832 } // case 18 1833 case 26: 1834 { 1835 java.lang.String s = input.readStringRequireUtf8(); 1836 ensureArgsIsMutable(); 1837 args_.add(s); 1838 break; 1839 } // case 26 1840 case 34: 1841 { 1842 dir_ = input.readStringRequireUtf8(); 1843 bitField0_ |= 0x00000008; 1844 break; 1845 } // case 34 1846 case 42: 1847 { 1848 id_ = input.readStringRequireUtf8(); 1849 bitField0_ |= 0x00000010; 1850 break; 1851 } // case 42 1852 case 50: 1853 { 1854 java.lang.String s = input.readStringRequireUtf8(); 1855 ensureWaitForIsMutable(); 1856 waitFor_.add(s); 1857 break; 1858 } // case 50 1859 case 58: 1860 { 1861 entrypoint_ = input.readStringRequireUtf8(); 1862 bitField0_ |= 0x00000040; 1863 break; 1864 } // case 58 1865 case 66: 1866 { 1867 java.lang.String s = input.readStringRequireUtf8(); 1868 ensureSecretEnvIsMutable(); 1869 secretEnv_.add(s); 1870 break; 1871 } // case 66 1872 case 74: 1873 { 1874 com.google.cloudbuild.v1.Volume m = 1875 input.readMessage(com.google.cloudbuild.v1.Volume.parser(), extensionRegistry); 1876 if (volumesBuilder_ == null) { 1877 ensureVolumesIsMutable(); 1878 volumes_.add(m); 1879 } else { 1880 volumesBuilder_.addMessage(m); 1881 } 1882 break; 1883 } // case 74 1884 case 82: 1885 { 1886 input.readMessage(getTimingFieldBuilder().getBuilder(), extensionRegistry); 1887 bitField0_ |= 0x00000200; 1888 break; 1889 } // case 82 1890 case 90: 1891 { 1892 input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry); 1893 bitField0_ |= 0x00000800; 1894 break; 1895 } // case 90 1896 case 96: 1897 { 1898 status_ = input.readEnum(); 1899 bitField0_ |= 0x00001000; 1900 break; 1901 } // case 96 1902 case 106: 1903 { 1904 input.readMessage(getPullTimingFieldBuilder().getBuilder(), extensionRegistry); 1905 bitField0_ |= 0x00000400; 1906 break; 1907 } // case 106 1908 case 112: 1909 { 1910 allowFailure_ = input.readBool(); 1911 bitField0_ |= 0x00002000; 1912 break; 1913 } // case 112 1914 case 128: 1915 { 1916 exitCode_ = input.readInt32(); 1917 bitField0_ |= 0x00004000; 1918 break; 1919 } // case 128 1920 case 144: 1921 { 1922 int v = input.readInt32(); 1923 ensureAllowExitCodesIsMutable(); 1924 allowExitCodes_.addInt(v); 1925 break; 1926 } // case 144 1927 case 146: 1928 { 1929 int length = input.readRawVarint32(); 1930 int limit = input.pushLimit(length); 1931 ensureAllowExitCodesIsMutable(); 1932 while (input.getBytesUntilLimit() > 0) { 1933 allowExitCodes_.addInt(input.readInt32()); 1934 } 1935 input.popLimit(limit); 1936 break; 1937 } // case 146 1938 case 154: 1939 { 1940 script_ = input.readStringRequireUtf8(); 1941 bitField0_ |= 0x00010000; 1942 break; 1943 } // case 154 1944 default: 1945 { 1946 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1947 done = true; // was an endgroup tag 1948 } 1949 break; 1950 } // default: 1951 } // switch (tag) 1952 } // while (!done) 1953 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1954 throw e.unwrapIOException(); 1955 } finally { 1956 onChanged(); 1957 } // finally 1958 return this; 1959 } 1960 1961 private int bitField0_; 1962 1963 private java.lang.Object name_ = ""; 1964 /** 1965 * 1966 * 1967 * <pre> 1968 * Required. The name of the container image that will run this particular 1969 * build step. 1970 * If the image is available in the host's Docker daemon's cache, it 1971 * will be run directly. If not, the host will attempt to pull the image 1972 * first, using the builder service account's credentials if necessary. 1973 * The Docker daemon's cache will already have the latest versions of all of 1974 * the officially supported build steps 1975 * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). 1976 * The Docker daemon will also have cached many of the layers for some popular 1977 * images, like "ubuntu", "debian", but they will be refreshed at the time you 1978 * attempt to use them. 1979 * If you built an image in a previous build step, it will be stored in the 1980 * host's Docker daemon's cache and is available to use as the name for a 1981 * later build step. 1982 * </pre> 1983 * 1984 * <code>string name = 1;</code> 1985 * 1986 * @return The name. 1987 */ getName()1988 public java.lang.String getName() { 1989 java.lang.Object ref = name_; 1990 if (!(ref instanceof java.lang.String)) { 1991 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1992 java.lang.String s = bs.toStringUtf8(); 1993 name_ = s; 1994 return s; 1995 } else { 1996 return (java.lang.String) ref; 1997 } 1998 } 1999 /** 2000 * 2001 * 2002 * <pre> 2003 * Required. The name of the container image that will run this particular 2004 * build step. 2005 * If the image is available in the host's Docker daemon's cache, it 2006 * will be run directly. If not, the host will attempt to pull the image 2007 * first, using the builder service account's credentials if necessary. 2008 * The Docker daemon's cache will already have the latest versions of all of 2009 * the officially supported build steps 2010 * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). 2011 * The Docker daemon will also have cached many of the layers for some popular 2012 * images, like "ubuntu", "debian", but they will be refreshed at the time you 2013 * attempt to use them. 2014 * If you built an image in a previous build step, it will be stored in the 2015 * host's Docker daemon's cache and is available to use as the name for a 2016 * later build step. 2017 * </pre> 2018 * 2019 * <code>string name = 1;</code> 2020 * 2021 * @return The bytes for name. 2022 */ getNameBytes()2023 public com.google.protobuf.ByteString getNameBytes() { 2024 java.lang.Object ref = name_; 2025 if (ref instanceof String) { 2026 com.google.protobuf.ByteString b = 2027 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2028 name_ = b; 2029 return b; 2030 } else { 2031 return (com.google.protobuf.ByteString) ref; 2032 } 2033 } 2034 /** 2035 * 2036 * 2037 * <pre> 2038 * Required. The name of the container image that will run this particular 2039 * build step. 2040 * If the image is available in the host's Docker daemon's cache, it 2041 * will be run directly. If not, the host will attempt to pull the image 2042 * first, using the builder service account's credentials if necessary. 2043 * The Docker daemon's cache will already have the latest versions of all of 2044 * the officially supported build steps 2045 * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). 2046 * The Docker daemon will also have cached many of the layers for some popular 2047 * images, like "ubuntu", "debian", but they will be refreshed at the time you 2048 * attempt to use them. 2049 * If you built an image in a previous build step, it will be stored in the 2050 * host's Docker daemon's cache and is available to use as the name for a 2051 * later build step. 2052 * </pre> 2053 * 2054 * <code>string name = 1;</code> 2055 * 2056 * @param value The name to set. 2057 * @return This builder for chaining. 2058 */ setName(java.lang.String value)2059 public Builder setName(java.lang.String value) { 2060 if (value == null) { 2061 throw new NullPointerException(); 2062 } 2063 name_ = value; 2064 bitField0_ |= 0x00000001; 2065 onChanged(); 2066 return this; 2067 } 2068 /** 2069 * 2070 * 2071 * <pre> 2072 * Required. The name of the container image that will run this particular 2073 * build step. 2074 * If the image is available in the host's Docker daemon's cache, it 2075 * will be run directly. If not, the host will attempt to pull the image 2076 * first, using the builder service account's credentials if necessary. 2077 * The Docker daemon's cache will already have the latest versions of all of 2078 * the officially supported build steps 2079 * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). 2080 * The Docker daemon will also have cached many of the layers for some popular 2081 * images, like "ubuntu", "debian", but they will be refreshed at the time you 2082 * attempt to use them. 2083 * If you built an image in a previous build step, it will be stored in the 2084 * host's Docker daemon's cache and is available to use as the name for a 2085 * later build step. 2086 * </pre> 2087 * 2088 * <code>string name = 1;</code> 2089 * 2090 * @return This builder for chaining. 2091 */ clearName()2092 public Builder clearName() { 2093 name_ = getDefaultInstance().getName(); 2094 bitField0_ = (bitField0_ & ~0x00000001); 2095 onChanged(); 2096 return this; 2097 } 2098 /** 2099 * 2100 * 2101 * <pre> 2102 * Required. The name of the container image that will run this particular 2103 * build step. 2104 * If the image is available in the host's Docker daemon's cache, it 2105 * will be run directly. If not, the host will attempt to pull the image 2106 * first, using the builder service account's credentials if necessary. 2107 * The Docker daemon's cache will already have the latest versions of all of 2108 * the officially supported build steps 2109 * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). 2110 * The Docker daemon will also have cached many of the layers for some popular 2111 * images, like "ubuntu", "debian", but they will be refreshed at the time you 2112 * attempt to use them. 2113 * If you built an image in a previous build step, it will be stored in the 2114 * host's Docker daemon's cache and is available to use as the name for a 2115 * later build step. 2116 * </pre> 2117 * 2118 * <code>string name = 1;</code> 2119 * 2120 * @param value The bytes for name to set. 2121 * @return This builder for chaining. 2122 */ setNameBytes(com.google.protobuf.ByteString value)2123 public Builder setNameBytes(com.google.protobuf.ByteString value) { 2124 if (value == null) { 2125 throw new NullPointerException(); 2126 } 2127 checkByteStringIsUtf8(value); 2128 name_ = value; 2129 bitField0_ |= 0x00000001; 2130 onChanged(); 2131 return this; 2132 } 2133 2134 private com.google.protobuf.LazyStringList env_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2135 ensureEnvIsMutable()2136 private void ensureEnvIsMutable() { 2137 if (!((bitField0_ & 0x00000002) != 0)) { 2138 env_ = new com.google.protobuf.LazyStringArrayList(env_); 2139 bitField0_ |= 0x00000002; 2140 } 2141 } 2142 /** 2143 * 2144 * 2145 * <pre> 2146 * A list of environment variable definitions to be used when running a step. 2147 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 2148 * being given the value "VALUE". 2149 * </pre> 2150 * 2151 * <code>repeated string env = 2;</code> 2152 * 2153 * @return A list containing the env. 2154 */ getEnvList()2155 public com.google.protobuf.ProtocolStringList getEnvList() { 2156 return env_.getUnmodifiableView(); 2157 } 2158 /** 2159 * 2160 * 2161 * <pre> 2162 * A list of environment variable definitions to be used when running a step. 2163 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 2164 * being given the value "VALUE". 2165 * </pre> 2166 * 2167 * <code>repeated string env = 2;</code> 2168 * 2169 * @return The count of env. 2170 */ getEnvCount()2171 public int getEnvCount() { 2172 return env_.size(); 2173 } 2174 /** 2175 * 2176 * 2177 * <pre> 2178 * A list of environment variable definitions to be used when running a step. 2179 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 2180 * being given the value "VALUE". 2181 * </pre> 2182 * 2183 * <code>repeated string env = 2;</code> 2184 * 2185 * @param index The index of the element to return. 2186 * @return The env at the given index. 2187 */ getEnv(int index)2188 public java.lang.String getEnv(int index) { 2189 return env_.get(index); 2190 } 2191 /** 2192 * 2193 * 2194 * <pre> 2195 * A list of environment variable definitions to be used when running a step. 2196 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 2197 * being given the value "VALUE". 2198 * </pre> 2199 * 2200 * <code>repeated string env = 2;</code> 2201 * 2202 * @param index The index of the value to return. 2203 * @return The bytes of the env at the given index. 2204 */ getEnvBytes(int index)2205 public com.google.protobuf.ByteString getEnvBytes(int index) { 2206 return env_.getByteString(index); 2207 } 2208 /** 2209 * 2210 * 2211 * <pre> 2212 * A list of environment variable definitions to be used when running a step. 2213 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 2214 * being given the value "VALUE". 2215 * </pre> 2216 * 2217 * <code>repeated string env = 2;</code> 2218 * 2219 * @param index The index to set the value at. 2220 * @param value The env to set. 2221 * @return This builder for chaining. 2222 */ setEnv(int index, java.lang.String value)2223 public Builder setEnv(int index, java.lang.String value) { 2224 if (value == null) { 2225 throw new NullPointerException(); 2226 } 2227 ensureEnvIsMutable(); 2228 env_.set(index, value); 2229 onChanged(); 2230 return this; 2231 } 2232 /** 2233 * 2234 * 2235 * <pre> 2236 * A list of environment variable definitions to be used when running a step. 2237 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 2238 * being given the value "VALUE". 2239 * </pre> 2240 * 2241 * <code>repeated string env = 2;</code> 2242 * 2243 * @param value The env to add. 2244 * @return This builder for chaining. 2245 */ addEnv(java.lang.String value)2246 public Builder addEnv(java.lang.String value) { 2247 if (value == null) { 2248 throw new NullPointerException(); 2249 } 2250 ensureEnvIsMutable(); 2251 env_.add(value); 2252 onChanged(); 2253 return this; 2254 } 2255 /** 2256 * 2257 * 2258 * <pre> 2259 * A list of environment variable definitions to be used when running a step. 2260 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 2261 * being given the value "VALUE". 2262 * </pre> 2263 * 2264 * <code>repeated string env = 2;</code> 2265 * 2266 * @param values The env to add. 2267 * @return This builder for chaining. 2268 */ addAllEnv(java.lang.Iterable<java.lang.String> values)2269 public Builder addAllEnv(java.lang.Iterable<java.lang.String> values) { 2270 ensureEnvIsMutable(); 2271 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, env_); 2272 onChanged(); 2273 return this; 2274 } 2275 /** 2276 * 2277 * 2278 * <pre> 2279 * A list of environment variable definitions to be used when running a step. 2280 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 2281 * being given the value "VALUE". 2282 * </pre> 2283 * 2284 * <code>repeated string env = 2;</code> 2285 * 2286 * @return This builder for chaining. 2287 */ clearEnv()2288 public Builder clearEnv() { 2289 env_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2290 bitField0_ = (bitField0_ & ~0x00000002); 2291 onChanged(); 2292 return this; 2293 } 2294 /** 2295 * 2296 * 2297 * <pre> 2298 * A list of environment variable definitions to be used when running a step. 2299 * The elements are of the form "KEY=VALUE" for the environment variable "KEY" 2300 * being given the value "VALUE". 2301 * </pre> 2302 * 2303 * <code>repeated string env = 2;</code> 2304 * 2305 * @param value The bytes of the env to add. 2306 * @return This builder for chaining. 2307 */ addEnvBytes(com.google.protobuf.ByteString value)2308 public Builder addEnvBytes(com.google.protobuf.ByteString value) { 2309 if (value == null) { 2310 throw new NullPointerException(); 2311 } 2312 checkByteStringIsUtf8(value); 2313 ensureEnvIsMutable(); 2314 env_.add(value); 2315 onChanged(); 2316 return this; 2317 } 2318 2319 private com.google.protobuf.LazyStringList args_ = 2320 com.google.protobuf.LazyStringArrayList.EMPTY; 2321 ensureArgsIsMutable()2322 private void ensureArgsIsMutable() { 2323 if (!((bitField0_ & 0x00000004) != 0)) { 2324 args_ = new com.google.protobuf.LazyStringArrayList(args_); 2325 bitField0_ |= 0x00000004; 2326 } 2327 } 2328 /** 2329 * 2330 * 2331 * <pre> 2332 * A list of arguments that will be presented to the step when it is started. 2333 * If the image used to run the step's container has an entrypoint, the `args` 2334 * are used as arguments to that entrypoint. If the image does not define 2335 * an entrypoint, the first element in args is used as the entrypoint, 2336 * and the remainder will be used as arguments. 2337 * </pre> 2338 * 2339 * <code>repeated string args = 3;</code> 2340 * 2341 * @return A list containing the args. 2342 */ getArgsList()2343 public com.google.protobuf.ProtocolStringList getArgsList() { 2344 return args_.getUnmodifiableView(); 2345 } 2346 /** 2347 * 2348 * 2349 * <pre> 2350 * A list of arguments that will be presented to the step when it is started. 2351 * If the image used to run the step's container has an entrypoint, the `args` 2352 * are used as arguments to that entrypoint. If the image does not define 2353 * an entrypoint, the first element in args is used as the entrypoint, 2354 * and the remainder will be used as arguments. 2355 * </pre> 2356 * 2357 * <code>repeated string args = 3;</code> 2358 * 2359 * @return The count of args. 2360 */ getArgsCount()2361 public int getArgsCount() { 2362 return args_.size(); 2363 } 2364 /** 2365 * 2366 * 2367 * <pre> 2368 * A list of arguments that will be presented to the step when it is started. 2369 * If the image used to run the step's container has an entrypoint, the `args` 2370 * are used as arguments to that entrypoint. If the image does not define 2371 * an entrypoint, the first element in args is used as the entrypoint, 2372 * and the remainder will be used as arguments. 2373 * </pre> 2374 * 2375 * <code>repeated string args = 3;</code> 2376 * 2377 * @param index The index of the element to return. 2378 * @return The args at the given index. 2379 */ getArgs(int index)2380 public java.lang.String getArgs(int index) { 2381 return args_.get(index); 2382 } 2383 /** 2384 * 2385 * 2386 * <pre> 2387 * A list of arguments that will be presented to the step when it is started. 2388 * If the image used to run the step's container has an entrypoint, the `args` 2389 * are used as arguments to that entrypoint. If the image does not define 2390 * an entrypoint, the first element in args is used as the entrypoint, 2391 * and the remainder will be used as arguments. 2392 * </pre> 2393 * 2394 * <code>repeated string args = 3;</code> 2395 * 2396 * @param index The index of the value to return. 2397 * @return The bytes of the args at the given index. 2398 */ getArgsBytes(int index)2399 public com.google.protobuf.ByteString getArgsBytes(int index) { 2400 return args_.getByteString(index); 2401 } 2402 /** 2403 * 2404 * 2405 * <pre> 2406 * A list of arguments that will be presented to the step when it is started. 2407 * If the image used to run the step's container has an entrypoint, the `args` 2408 * are used as arguments to that entrypoint. If the image does not define 2409 * an entrypoint, the first element in args is used as the entrypoint, 2410 * and the remainder will be used as arguments. 2411 * </pre> 2412 * 2413 * <code>repeated string args = 3;</code> 2414 * 2415 * @param index The index to set the value at. 2416 * @param value The args to set. 2417 * @return This builder for chaining. 2418 */ setArgs(int index, java.lang.String value)2419 public Builder setArgs(int index, java.lang.String value) { 2420 if (value == null) { 2421 throw new NullPointerException(); 2422 } 2423 ensureArgsIsMutable(); 2424 args_.set(index, value); 2425 onChanged(); 2426 return this; 2427 } 2428 /** 2429 * 2430 * 2431 * <pre> 2432 * A list of arguments that will be presented to the step when it is started. 2433 * If the image used to run the step's container has an entrypoint, the `args` 2434 * are used as arguments to that entrypoint. If the image does not define 2435 * an entrypoint, the first element in args is used as the entrypoint, 2436 * and the remainder will be used as arguments. 2437 * </pre> 2438 * 2439 * <code>repeated string args = 3;</code> 2440 * 2441 * @param value The args to add. 2442 * @return This builder for chaining. 2443 */ addArgs(java.lang.String value)2444 public Builder addArgs(java.lang.String value) { 2445 if (value == null) { 2446 throw new NullPointerException(); 2447 } 2448 ensureArgsIsMutable(); 2449 args_.add(value); 2450 onChanged(); 2451 return this; 2452 } 2453 /** 2454 * 2455 * 2456 * <pre> 2457 * A list of arguments that will be presented to the step when it is started. 2458 * If the image used to run the step's container has an entrypoint, the `args` 2459 * are used as arguments to that entrypoint. If the image does not define 2460 * an entrypoint, the first element in args is used as the entrypoint, 2461 * and the remainder will be used as arguments. 2462 * </pre> 2463 * 2464 * <code>repeated string args = 3;</code> 2465 * 2466 * @param values The args to add. 2467 * @return This builder for chaining. 2468 */ addAllArgs(java.lang.Iterable<java.lang.String> values)2469 public Builder addAllArgs(java.lang.Iterable<java.lang.String> values) { 2470 ensureArgsIsMutable(); 2471 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); 2472 onChanged(); 2473 return this; 2474 } 2475 /** 2476 * 2477 * 2478 * <pre> 2479 * A list of arguments that will be presented to the step when it is started. 2480 * If the image used to run the step's container has an entrypoint, the `args` 2481 * are used as arguments to that entrypoint. If the image does not define 2482 * an entrypoint, the first element in args is used as the entrypoint, 2483 * and the remainder will be used as arguments. 2484 * </pre> 2485 * 2486 * <code>repeated string args = 3;</code> 2487 * 2488 * @return This builder for chaining. 2489 */ clearArgs()2490 public Builder clearArgs() { 2491 args_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2492 bitField0_ = (bitField0_ & ~0x00000004); 2493 onChanged(); 2494 return this; 2495 } 2496 /** 2497 * 2498 * 2499 * <pre> 2500 * A list of arguments that will be presented to the step when it is started. 2501 * If the image used to run the step's container has an entrypoint, the `args` 2502 * are used as arguments to that entrypoint. If the image does not define 2503 * an entrypoint, the first element in args is used as the entrypoint, 2504 * and the remainder will be used as arguments. 2505 * </pre> 2506 * 2507 * <code>repeated string args = 3;</code> 2508 * 2509 * @param value The bytes of the args to add. 2510 * @return This builder for chaining. 2511 */ addArgsBytes(com.google.protobuf.ByteString value)2512 public Builder addArgsBytes(com.google.protobuf.ByteString value) { 2513 if (value == null) { 2514 throw new NullPointerException(); 2515 } 2516 checkByteStringIsUtf8(value); 2517 ensureArgsIsMutable(); 2518 args_.add(value); 2519 onChanged(); 2520 return this; 2521 } 2522 2523 private java.lang.Object dir_ = ""; 2524 /** 2525 * 2526 * 2527 * <pre> 2528 * Working directory to use when running this step's container. 2529 * If this value is a relative path, it is relative to the build's working 2530 * directory. If this value is absolute, it may be outside the build's working 2531 * directory, in which case the contents of the path may not be persisted 2532 * across build step executions, unless a `volume` for that path is specified. 2533 * If the build specifies a `RepoSource` with `dir` and a step with a `dir`, 2534 * which specifies an absolute path, the `RepoSource` `dir` is ignored for 2535 * the step's execution. 2536 * </pre> 2537 * 2538 * <code>string dir = 4;</code> 2539 * 2540 * @return The dir. 2541 */ getDir()2542 public java.lang.String getDir() { 2543 java.lang.Object ref = dir_; 2544 if (!(ref instanceof java.lang.String)) { 2545 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2546 java.lang.String s = bs.toStringUtf8(); 2547 dir_ = s; 2548 return s; 2549 } else { 2550 return (java.lang.String) ref; 2551 } 2552 } 2553 /** 2554 * 2555 * 2556 * <pre> 2557 * Working directory to use when running this step's container. 2558 * If this value is a relative path, it is relative to the build's working 2559 * directory. If this value is absolute, it may be outside the build's working 2560 * directory, in which case the contents of the path may not be persisted 2561 * across build step executions, unless a `volume` for that path is specified. 2562 * If the build specifies a `RepoSource` with `dir` and a step with a `dir`, 2563 * which specifies an absolute path, the `RepoSource` `dir` is ignored for 2564 * the step's execution. 2565 * </pre> 2566 * 2567 * <code>string dir = 4;</code> 2568 * 2569 * @return The bytes for dir. 2570 */ getDirBytes()2571 public com.google.protobuf.ByteString getDirBytes() { 2572 java.lang.Object ref = dir_; 2573 if (ref instanceof String) { 2574 com.google.protobuf.ByteString b = 2575 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2576 dir_ = b; 2577 return b; 2578 } else { 2579 return (com.google.protobuf.ByteString) ref; 2580 } 2581 } 2582 /** 2583 * 2584 * 2585 * <pre> 2586 * Working directory to use when running this step's container. 2587 * If this value is a relative path, it is relative to the build's working 2588 * directory. If this value is absolute, it may be outside the build's working 2589 * directory, in which case the contents of the path may not be persisted 2590 * across build step executions, unless a `volume` for that path is specified. 2591 * If the build specifies a `RepoSource` with `dir` and a step with a `dir`, 2592 * which specifies an absolute path, the `RepoSource` `dir` is ignored for 2593 * the step's execution. 2594 * </pre> 2595 * 2596 * <code>string dir = 4;</code> 2597 * 2598 * @param value The dir to set. 2599 * @return This builder for chaining. 2600 */ setDir(java.lang.String value)2601 public Builder setDir(java.lang.String value) { 2602 if (value == null) { 2603 throw new NullPointerException(); 2604 } 2605 dir_ = value; 2606 bitField0_ |= 0x00000008; 2607 onChanged(); 2608 return this; 2609 } 2610 /** 2611 * 2612 * 2613 * <pre> 2614 * Working directory to use when running this step's container. 2615 * If this value is a relative path, it is relative to the build's working 2616 * directory. If this value is absolute, it may be outside the build's working 2617 * directory, in which case the contents of the path may not be persisted 2618 * across build step executions, unless a `volume` for that path is specified. 2619 * If the build specifies a `RepoSource` with `dir` and a step with a `dir`, 2620 * which specifies an absolute path, the `RepoSource` `dir` is ignored for 2621 * the step's execution. 2622 * </pre> 2623 * 2624 * <code>string dir = 4;</code> 2625 * 2626 * @return This builder for chaining. 2627 */ clearDir()2628 public Builder clearDir() { 2629 dir_ = getDefaultInstance().getDir(); 2630 bitField0_ = (bitField0_ & ~0x00000008); 2631 onChanged(); 2632 return this; 2633 } 2634 /** 2635 * 2636 * 2637 * <pre> 2638 * Working directory to use when running this step's container. 2639 * If this value is a relative path, it is relative to the build's working 2640 * directory. If this value is absolute, it may be outside the build's working 2641 * directory, in which case the contents of the path may not be persisted 2642 * across build step executions, unless a `volume` for that path is specified. 2643 * If the build specifies a `RepoSource` with `dir` and a step with a `dir`, 2644 * which specifies an absolute path, the `RepoSource` `dir` is ignored for 2645 * the step's execution. 2646 * </pre> 2647 * 2648 * <code>string dir = 4;</code> 2649 * 2650 * @param value The bytes for dir to set. 2651 * @return This builder for chaining. 2652 */ setDirBytes(com.google.protobuf.ByteString value)2653 public Builder setDirBytes(com.google.protobuf.ByteString value) { 2654 if (value == null) { 2655 throw new NullPointerException(); 2656 } 2657 checkByteStringIsUtf8(value); 2658 dir_ = value; 2659 bitField0_ |= 0x00000008; 2660 onChanged(); 2661 return this; 2662 } 2663 2664 private java.lang.Object id_ = ""; 2665 /** 2666 * 2667 * 2668 * <pre> 2669 * Unique identifier for this build step, used in `wait_for` to 2670 * reference this build step as a dependency. 2671 * </pre> 2672 * 2673 * <code>string id = 5;</code> 2674 * 2675 * @return The id. 2676 */ getId()2677 public java.lang.String getId() { 2678 java.lang.Object ref = id_; 2679 if (!(ref instanceof java.lang.String)) { 2680 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2681 java.lang.String s = bs.toStringUtf8(); 2682 id_ = s; 2683 return s; 2684 } else { 2685 return (java.lang.String) ref; 2686 } 2687 } 2688 /** 2689 * 2690 * 2691 * <pre> 2692 * Unique identifier for this build step, used in `wait_for` to 2693 * reference this build step as a dependency. 2694 * </pre> 2695 * 2696 * <code>string id = 5;</code> 2697 * 2698 * @return The bytes for id. 2699 */ getIdBytes()2700 public com.google.protobuf.ByteString getIdBytes() { 2701 java.lang.Object ref = id_; 2702 if (ref instanceof String) { 2703 com.google.protobuf.ByteString b = 2704 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2705 id_ = b; 2706 return b; 2707 } else { 2708 return (com.google.protobuf.ByteString) ref; 2709 } 2710 } 2711 /** 2712 * 2713 * 2714 * <pre> 2715 * Unique identifier for this build step, used in `wait_for` to 2716 * reference this build step as a dependency. 2717 * </pre> 2718 * 2719 * <code>string id = 5;</code> 2720 * 2721 * @param value The id to set. 2722 * @return This builder for chaining. 2723 */ setId(java.lang.String value)2724 public Builder setId(java.lang.String value) { 2725 if (value == null) { 2726 throw new NullPointerException(); 2727 } 2728 id_ = value; 2729 bitField0_ |= 0x00000010; 2730 onChanged(); 2731 return this; 2732 } 2733 /** 2734 * 2735 * 2736 * <pre> 2737 * Unique identifier for this build step, used in `wait_for` to 2738 * reference this build step as a dependency. 2739 * </pre> 2740 * 2741 * <code>string id = 5;</code> 2742 * 2743 * @return This builder for chaining. 2744 */ clearId()2745 public Builder clearId() { 2746 id_ = getDefaultInstance().getId(); 2747 bitField0_ = (bitField0_ & ~0x00000010); 2748 onChanged(); 2749 return this; 2750 } 2751 /** 2752 * 2753 * 2754 * <pre> 2755 * Unique identifier for this build step, used in `wait_for` to 2756 * reference this build step as a dependency. 2757 * </pre> 2758 * 2759 * <code>string id = 5;</code> 2760 * 2761 * @param value The bytes for id to set. 2762 * @return This builder for chaining. 2763 */ setIdBytes(com.google.protobuf.ByteString value)2764 public Builder setIdBytes(com.google.protobuf.ByteString value) { 2765 if (value == null) { 2766 throw new NullPointerException(); 2767 } 2768 checkByteStringIsUtf8(value); 2769 id_ = value; 2770 bitField0_ |= 0x00000010; 2771 onChanged(); 2772 return this; 2773 } 2774 2775 private com.google.protobuf.LazyStringList waitFor_ = 2776 com.google.protobuf.LazyStringArrayList.EMPTY; 2777 ensureWaitForIsMutable()2778 private void ensureWaitForIsMutable() { 2779 if (!((bitField0_ & 0x00000020) != 0)) { 2780 waitFor_ = new com.google.protobuf.LazyStringArrayList(waitFor_); 2781 bitField0_ |= 0x00000020; 2782 } 2783 } 2784 /** 2785 * 2786 * 2787 * <pre> 2788 * The ID(s) of the step(s) that this build step depends on. 2789 * This build step will not start until all the build steps in `wait_for` 2790 * have completed successfully. If `wait_for` is empty, this build step will 2791 * start when all previous build steps in the `Build.Steps` list have 2792 * completed successfully. 2793 * </pre> 2794 * 2795 * <code>repeated string wait_for = 6;</code> 2796 * 2797 * @return A list containing the waitFor. 2798 */ getWaitForList()2799 public com.google.protobuf.ProtocolStringList getWaitForList() { 2800 return waitFor_.getUnmodifiableView(); 2801 } 2802 /** 2803 * 2804 * 2805 * <pre> 2806 * The ID(s) of the step(s) that this build step depends on. 2807 * This build step will not start until all the build steps in `wait_for` 2808 * have completed successfully. If `wait_for` is empty, this build step will 2809 * start when all previous build steps in the `Build.Steps` list have 2810 * completed successfully. 2811 * </pre> 2812 * 2813 * <code>repeated string wait_for = 6;</code> 2814 * 2815 * @return The count of waitFor. 2816 */ getWaitForCount()2817 public int getWaitForCount() { 2818 return waitFor_.size(); 2819 } 2820 /** 2821 * 2822 * 2823 * <pre> 2824 * The ID(s) of the step(s) that this build step depends on. 2825 * This build step will not start until all the build steps in `wait_for` 2826 * have completed successfully. If `wait_for` is empty, this build step will 2827 * start when all previous build steps in the `Build.Steps` list have 2828 * completed successfully. 2829 * </pre> 2830 * 2831 * <code>repeated string wait_for = 6;</code> 2832 * 2833 * @param index The index of the element to return. 2834 * @return The waitFor at the given index. 2835 */ getWaitFor(int index)2836 public java.lang.String getWaitFor(int index) { 2837 return waitFor_.get(index); 2838 } 2839 /** 2840 * 2841 * 2842 * <pre> 2843 * The ID(s) of the step(s) that this build step depends on. 2844 * This build step will not start until all the build steps in `wait_for` 2845 * have completed successfully. If `wait_for` is empty, this build step will 2846 * start when all previous build steps in the `Build.Steps` list have 2847 * completed successfully. 2848 * </pre> 2849 * 2850 * <code>repeated string wait_for = 6;</code> 2851 * 2852 * @param index The index of the value to return. 2853 * @return The bytes of the waitFor at the given index. 2854 */ getWaitForBytes(int index)2855 public com.google.protobuf.ByteString getWaitForBytes(int index) { 2856 return waitFor_.getByteString(index); 2857 } 2858 /** 2859 * 2860 * 2861 * <pre> 2862 * The ID(s) of the step(s) that this build step depends on. 2863 * This build step will not start until all the build steps in `wait_for` 2864 * have completed successfully. If `wait_for` is empty, this build step will 2865 * start when all previous build steps in the `Build.Steps` list have 2866 * completed successfully. 2867 * </pre> 2868 * 2869 * <code>repeated string wait_for = 6;</code> 2870 * 2871 * @param index The index to set the value at. 2872 * @param value The waitFor to set. 2873 * @return This builder for chaining. 2874 */ setWaitFor(int index, java.lang.String value)2875 public Builder setWaitFor(int index, java.lang.String value) { 2876 if (value == null) { 2877 throw new NullPointerException(); 2878 } 2879 ensureWaitForIsMutable(); 2880 waitFor_.set(index, value); 2881 onChanged(); 2882 return this; 2883 } 2884 /** 2885 * 2886 * 2887 * <pre> 2888 * The ID(s) of the step(s) that this build step depends on. 2889 * This build step will not start until all the build steps in `wait_for` 2890 * have completed successfully. If `wait_for` is empty, this build step will 2891 * start when all previous build steps in the `Build.Steps` list have 2892 * completed successfully. 2893 * </pre> 2894 * 2895 * <code>repeated string wait_for = 6;</code> 2896 * 2897 * @param value The waitFor to add. 2898 * @return This builder for chaining. 2899 */ addWaitFor(java.lang.String value)2900 public Builder addWaitFor(java.lang.String value) { 2901 if (value == null) { 2902 throw new NullPointerException(); 2903 } 2904 ensureWaitForIsMutable(); 2905 waitFor_.add(value); 2906 onChanged(); 2907 return this; 2908 } 2909 /** 2910 * 2911 * 2912 * <pre> 2913 * The ID(s) of the step(s) that this build step depends on. 2914 * This build step will not start until all the build steps in `wait_for` 2915 * have completed successfully. If `wait_for` is empty, this build step will 2916 * start when all previous build steps in the `Build.Steps` list have 2917 * completed successfully. 2918 * </pre> 2919 * 2920 * <code>repeated string wait_for = 6;</code> 2921 * 2922 * @param values The waitFor to add. 2923 * @return This builder for chaining. 2924 */ addAllWaitFor(java.lang.Iterable<java.lang.String> values)2925 public Builder addAllWaitFor(java.lang.Iterable<java.lang.String> values) { 2926 ensureWaitForIsMutable(); 2927 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, waitFor_); 2928 onChanged(); 2929 return this; 2930 } 2931 /** 2932 * 2933 * 2934 * <pre> 2935 * The ID(s) of the step(s) that this build step depends on. 2936 * This build step will not start until all the build steps in `wait_for` 2937 * have completed successfully. If `wait_for` is empty, this build step will 2938 * start when all previous build steps in the `Build.Steps` list have 2939 * completed successfully. 2940 * </pre> 2941 * 2942 * <code>repeated string wait_for = 6;</code> 2943 * 2944 * @return This builder for chaining. 2945 */ clearWaitFor()2946 public Builder clearWaitFor() { 2947 waitFor_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2948 bitField0_ = (bitField0_ & ~0x00000020); 2949 onChanged(); 2950 return this; 2951 } 2952 /** 2953 * 2954 * 2955 * <pre> 2956 * The ID(s) of the step(s) that this build step depends on. 2957 * This build step will not start until all the build steps in `wait_for` 2958 * have completed successfully. If `wait_for` is empty, this build step will 2959 * start when all previous build steps in the `Build.Steps` list have 2960 * completed successfully. 2961 * </pre> 2962 * 2963 * <code>repeated string wait_for = 6;</code> 2964 * 2965 * @param value The bytes of the waitFor to add. 2966 * @return This builder for chaining. 2967 */ addWaitForBytes(com.google.protobuf.ByteString value)2968 public Builder addWaitForBytes(com.google.protobuf.ByteString value) { 2969 if (value == null) { 2970 throw new NullPointerException(); 2971 } 2972 checkByteStringIsUtf8(value); 2973 ensureWaitForIsMutable(); 2974 waitFor_.add(value); 2975 onChanged(); 2976 return this; 2977 } 2978 2979 private java.lang.Object entrypoint_ = ""; 2980 /** 2981 * 2982 * 2983 * <pre> 2984 * Entrypoint to be used instead of the build step image's default entrypoint. 2985 * If unset, the image's default entrypoint is used. 2986 * </pre> 2987 * 2988 * <code>string entrypoint = 7;</code> 2989 * 2990 * @return The entrypoint. 2991 */ getEntrypoint()2992 public java.lang.String getEntrypoint() { 2993 java.lang.Object ref = entrypoint_; 2994 if (!(ref instanceof java.lang.String)) { 2995 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2996 java.lang.String s = bs.toStringUtf8(); 2997 entrypoint_ = s; 2998 return s; 2999 } else { 3000 return (java.lang.String) ref; 3001 } 3002 } 3003 /** 3004 * 3005 * 3006 * <pre> 3007 * Entrypoint to be used instead of the build step image's default entrypoint. 3008 * If unset, the image's default entrypoint is used. 3009 * </pre> 3010 * 3011 * <code>string entrypoint = 7;</code> 3012 * 3013 * @return The bytes for entrypoint. 3014 */ getEntrypointBytes()3015 public com.google.protobuf.ByteString getEntrypointBytes() { 3016 java.lang.Object ref = entrypoint_; 3017 if (ref instanceof String) { 3018 com.google.protobuf.ByteString b = 3019 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3020 entrypoint_ = b; 3021 return b; 3022 } else { 3023 return (com.google.protobuf.ByteString) ref; 3024 } 3025 } 3026 /** 3027 * 3028 * 3029 * <pre> 3030 * Entrypoint to be used instead of the build step image's default entrypoint. 3031 * If unset, the image's default entrypoint is used. 3032 * </pre> 3033 * 3034 * <code>string entrypoint = 7;</code> 3035 * 3036 * @param value The entrypoint to set. 3037 * @return This builder for chaining. 3038 */ setEntrypoint(java.lang.String value)3039 public Builder setEntrypoint(java.lang.String value) { 3040 if (value == null) { 3041 throw new NullPointerException(); 3042 } 3043 entrypoint_ = value; 3044 bitField0_ |= 0x00000040; 3045 onChanged(); 3046 return this; 3047 } 3048 /** 3049 * 3050 * 3051 * <pre> 3052 * Entrypoint to be used instead of the build step image's default entrypoint. 3053 * If unset, the image's default entrypoint is used. 3054 * </pre> 3055 * 3056 * <code>string entrypoint = 7;</code> 3057 * 3058 * @return This builder for chaining. 3059 */ clearEntrypoint()3060 public Builder clearEntrypoint() { 3061 entrypoint_ = getDefaultInstance().getEntrypoint(); 3062 bitField0_ = (bitField0_ & ~0x00000040); 3063 onChanged(); 3064 return this; 3065 } 3066 /** 3067 * 3068 * 3069 * <pre> 3070 * Entrypoint to be used instead of the build step image's default entrypoint. 3071 * If unset, the image's default entrypoint is used. 3072 * </pre> 3073 * 3074 * <code>string entrypoint = 7;</code> 3075 * 3076 * @param value The bytes for entrypoint to set. 3077 * @return This builder for chaining. 3078 */ setEntrypointBytes(com.google.protobuf.ByteString value)3079 public Builder setEntrypointBytes(com.google.protobuf.ByteString value) { 3080 if (value == null) { 3081 throw new NullPointerException(); 3082 } 3083 checkByteStringIsUtf8(value); 3084 entrypoint_ = value; 3085 bitField0_ |= 0x00000040; 3086 onChanged(); 3087 return this; 3088 } 3089 3090 private com.google.protobuf.LazyStringList secretEnv_ = 3091 com.google.protobuf.LazyStringArrayList.EMPTY; 3092 ensureSecretEnvIsMutable()3093 private void ensureSecretEnvIsMutable() { 3094 if (!((bitField0_ & 0x00000080) != 0)) { 3095 secretEnv_ = new com.google.protobuf.LazyStringArrayList(secretEnv_); 3096 bitField0_ |= 0x00000080; 3097 } 3098 } 3099 /** 3100 * 3101 * 3102 * <pre> 3103 * A list of environment variables which are encrypted using a Cloud Key 3104 * Management Service crypto key. These values must be specified in the 3105 * build's `Secret`. 3106 * </pre> 3107 * 3108 * <code>repeated string secret_env = 8;</code> 3109 * 3110 * @return A list containing the secretEnv. 3111 */ getSecretEnvList()3112 public com.google.protobuf.ProtocolStringList getSecretEnvList() { 3113 return secretEnv_.getUnmodifiableView(); 3114 } 3115 /** 3116 * 3117 * 3118 * <pre> 3119 * A list of environment variables which are encrypted using a Cloud Key 3120 * Management Service crypto key. These values must be specified in the 3121 * build's `Secret`. 3122 * </pre> 3123 * 3124 * <code>repeated string secret_env = 8;</code> 3125 * 3126 * @return The count of secretEnv. 3127 */ getSecretEnvCount()3128 public int getSecretEnvCount() { 3129 return secretEnv_.size(); 3130 } 3131 /** 3132 * 3133 * 3134 * <pre> 3135 * A list of environment variables which are encrypted using a Cloud Key 3136 * Management Service crypto key. These values must be specified in the 3137 * build's `Secret`. 3138 * </pre> 3139 * 3140 * <code>repeated string secret_env = 8;</code> 3141 * 3142 * @param index The index of the element to return. 3143 * @return The secretEnv at the given index. 3144 */ getSecretEnv(int index)3145 public java.lang.String getSecretEnv(int index) { 3146 return secretEnv_.get(index); 3147 } 3148 /** 3149 * 3150 * 3151 * <pre> 3152 * A list of environment variables which are encrypted using a Cloud Key 3153 * Management Service crypto key. These values must be specified in the 3154 * build's `Secret`. 3155 * </pre> 3156 * 3157 * <code>repeated string secret_env = 8;</code> 3158 * 3159 * @param index The index of the value to return. 3160 * @return The bytes of the secretEnv at the given index. 3161 */ getSecretEnvBytes(int index)3162 public com.google.protobuf.ByteString getSecretEnvBytes(int index) { 3163 return secretEnv_.getByteString(index); 3164 } 3165 /** 3166 * 3167 * 3168 * <pre> 3169 * A list of environment variables which are encrypted using a Cloud Key 3170 * Management Service crypto key. These values must be specified in the 3171 * build's `Secret`. 3172 * </pre> 3173 * 3174 * <code>repeated string secret_env = 8;</code> 3175 * 3176 * @param index The index to set the value at. 3177 * @param value The secretEnv to set. 3178 * @return This builder for chaining. 3179 */ setSecretEnv(int index, java.lang.String value)3180 public Builder setSecretEnv(int index, java.lang.String value) { 3181 if (value == null) { 3182 throw new NullPointerException(); 3183 } 3184 ensureSecretEnvIsMutable(); 3185 secretEnv_.set(index, value); 3186 onChanged(); 3187 return this; 3188 } 3189 /** 3190 * 3191 * 3192 * <pre> 3193 * A list of environment variables which are encrypted using a Cloud Key 3194 * Management Service crypto key. These values must be specified in the 3195 * build's `Secret`. 3196 * </pre> 3197 * 3198 * <code>repeated string secret_env = 8;</code> 3199 * 3200 * @param value The secretEnv to add. 3201 * @return This builder for chaining. 3202 */ addSecretEnv(java.lang.String value)3203 public Builder addSecretEnv(java.lang.String value) { 3204 if (value == null) { 3205 throw new NullPointerException(); 3206 } 3207 ensureSecretEnvIsMutable(); 3208 secretEnv_.add(value); 3209 onChanged(); 3210 return this; 3211 } 3212 /** 3213 * 3214 * 3215 * <pre> 3216 * A list of environment variables which are encrypted using a Cloud Key 3217 * Management Service crypto key. These values must be specified in the 3218 * build's `Secret`. 3219 * </pre> 3220 * 3221 * <code>repeated string secret_env = 8;</code> 3222 * 3223 * @param values The secretEnv to add. 3224 * @return This builder for chaining. 3225 */ addAllSecretEnv(java.lang.Iterable<java.lang.String> values)3226 public Builder addAllSecretEnv(java.lang.Iterable<java.lang.String> values) { 3227 ensureSecretEnvIsMutable(); 3228 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretEnv_); 3229 onChanged(); 3230 return this; 3231 } 3232 /** 3233 * 3234 * 3235 * <pre> 3236 * A list of environment variables which are encrypted using a Cloud Key 3237 * Management Service crypto key. These values must be specified in the 3238 * build's `Secret`. 3239 * </pre> 3240 * 3241 * <code>repeated string secret_env = 8;</code> 3242 * 3243 * @return This builder for chaining. 3244 */ clearSecretEnv()3245 public Builder clearSecretEnv() { 3246 secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3247 bitField0_ = (bitField0_ & ~0x00000080); 3248 onChanged(); 3249 return this; 3250 } 3251 /** 3252 * 3253 * 3254 * <pre> 3255 * A list of environment variables which are encrypted using a Cloud Key 3256 * Management Service crypto key. These values must be specified in the 3257 * build's `Secret`. 3258 * </pre> 3259 * 3260 * <code>repeated string secret_env = 8;</code> 3261 * 3262 * @param value The bytes of the secretEnv to add. 3263 * @return This builder for chaining. 3264 */ addSecretEnvBytes(com.google.protobuf.ByteString value)3265 public Builder addSecretEnvBytes(com.google.protobuf.ByteString value) { 3266 if (value == null) { 3267 throw new NullPointerException(); 3268 } 3269 checkByteStringIsUtf8(value); 3270 ensureSecretEnvIsMutable(); 3271 secretEnv_.add(value); 3272 onChanged(); 3273 return this; 3274 } 3275 3276 private java.util.List<com.google.cloudbuild.v1.Volume> volumes_ = 3277 java.util.Collections.emptyList(); 3278 ensureVolumesIsMutable()3279 private void ensureVolumesIsMutable() { 3280 if (!((bitField0_ & 0x00000100) != 0)) { 3281 volumes_ = new java.util.ArrayList<com.google.cloudbuild.v1.Volume>(volumes_); 3282 bitField0_ |= 0x00000100; 3283 } 3284 } 3285 3286 private com.google.protobuf.RepeatedFieldBuilderV3< 3287 com.google.cloudbuild.v1.Volume, 3288 com.google.cloudbuild.v1.Volume.Builder, 3289 com.google.cloudbuild.v1.VolumeOrBuilder> 3290 volumesBuilder_; 3291 3292 /** 3293 * 3294 * 3295 * <pre> 3296 * List of volumes to mount into the build step. 3297 * Each volume is created as an empty volume prior to execution of the 3298 * build step. Upon completion of the build, volumes and their contents are 3299 * discarded. 3300 * Using a named volume in only one step is not valid as it is indicative 3301 * of a build request with an incorrect configuration. 3302 * </pre> 3303 * 3304 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3305 */ getVolumesList()3306 public java.util.List<com.google.cloudbuild.v1.Volume> getVolumesList() { 3307 if (volumesBuilder_ == null) { 3308 return java.util.Collections.unmodifiableList(volumes_); 3309 } else { 3310 return volumesBuilder_.getMessageList(); 3311 } 3312 } 3313 /** 3314 * 3315 * 3316 * <pre> 3317 * List of volumes to mount into the build step. 3318 * Each volume is created as an empty volume prior to execution of the 3319 * build step. Upon completion of the build, volumes and their contents are 3320 * discarded. 3321 * Using a named volume in only one step is not valid as it is indicative 3322 * of a build request with an incorrect configuration. 3323 * </pre> 3324 * 3325 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3326 */ getVolumesCount()3327 public int getVolumesCount() { 3328 if (volumesBuilder_ == null) { 3329 return volumes_.size(); 3330 } else { 3331 return volumesBuilder_.getCount(); 3332 } 3333 } 3334 /** 3335 * 3336 * 3337 * <pre> 3338 * List of volumes to mount into the build step. 3339 * Each volume is created as an empty volume prior to execution of the 3340 * build step. Upon completion of the build, volumes and their contents are 3341 * discarded. 3342 * Using a named volume in only one step is not valid as it is indicative 3343 * of a build request with an incorrect configuration. 3344 * </pre> 3345 * 3346 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3347 */ getVolumes(int index)3348 public com.google.cloudbuild.v1.Volume getVolumes(int index) { 3349 if (volumesBuilder_ == null) { 3350 return volumes_.get(index); 3351 } else { 3352 return volumesBuilder_.getMessage(index); 3353 } 3354 } 3355 /** 3356 * 3357 * 3358 * <pre> 3359 * List of volumes to mount into the build step. 3360 * Each volume is created as an empty volume prior to execution of the 3361 * build step. Upon completion of the build, volumes and their contents are 3362 * discarded. 3363 * Using a named volume in only one step is not valid as it is indicative 3364 * of a build request with an incorrect configuration. 3365 * </pre> 3366 * 3367 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3368 */ setVolumes(int index, com.google.cloudbuild.v1.Volume value)3369 public Builder setVolumes(int index, com.google.cloudbuild.v1.Volume value) { 3370 if (volumesBuilder_ == null) { 3371 if (value == null) { 3372 throw new NullPointerException(); 3373 } 3374 ensureVolumesIsMutable(); 3375 volumes_.set(index, value); 3376 onChanged(); 3377 } else { 3378 volumesBuilder_.setMessage(index, value); 3379 } 3380 return this; 3381 } 3382 /** 3383 * 3384 * 3385 * <pre> 3386 * List of volumes to mount into the build step. 3387 * Each volume is created as an empty volume prior to execution of the 3388 * build step. Upon completion of the build, volumes and their contents are 3389 * discarded. 3390 * Using a named volume in only one step is not valid as it is indicative 3391 * of a build request with an incorrect configuration. 3392 * </pre> 3393 * 3394 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3395 */ setVolumes(int index, com.google.cloudbuild.v1.Volume.Builder builderForValue)3396 public Builder setVolumes(int index, com.google.cloudbuild.v1.Volume.Builder builderForValue) { 3397 if (volumesBuilder_ == null) { 3398 ensureVolumesIsMutable(); 3399 volumes_.set(index, builderForValue.build()); 3400 onChanged(); 3401 } else { 3402 volumesBuilder_.setMessage(index, builderForValue.build()); 3403 } 3404 return this; 3405 } 3406 /** 3407 * 3408 * 3409 * <pre> 3410 * List of volumes to mount into the build step. 3411 * Each volume is created as an empty volume prior to execution of the 3412 * build step. Upon completion of the build, volumes and their contents are 3413 * discarded. 3414 * Using a named volume in only one step is not valid as it is indicative 3415 * of a build request with an incorrect configuration. 3416 * </pre> 3417 * 3418 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3419 */ addVolumes(com.google.cloudbuild.v1.Volume value)3420 public Builder addVolumes(com.google.cloudbuild.v1.Volume value) { 3421 if (volumesBuilder_ == null) { 3422 if (value == null) { 3423 throw new NullPointerException(); 3424 } 3425 ensureVolumesIsMutable(); 3426 volumes_.add(value); 3427 onChanged(); 3428 } else { 3429 volumesBuilder_.addMessage(value); 3430 } 3431 return this; 3432 } 3433 /** 3434 * 3435 * 3436 * <pre> 3437 * List of volumes to mount into the build step. 3438 * Each volume is created as an empty volume prior to execution of the 3439 * build step. Upon completion of the build, volumes and their contents are 3440 * discarded. 3441 * Using a named volume in only one step is not valid as it is indicative 3442 * of a build request with an incorrect configuration. 3443 * </pre> 3444 * 3445 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3446 */ addVolumes(int index, com.google.cloudbuild.v1.Volume value)3447 public Builder addVolumes(int index, com.google.cloudbuild.v1.Volume value) { 3448 if (volumesBuilder_ == null) { 3449 if (value == null) { 3450 throw new NullPointerException(); 3451 } 3452 ensureVolumesIsMutable(); 3453 volumes_.add(index, value); 3454 onChanged(); 3455 } else { 3456 volumesBuilder_.addMessage(index, value); 3457 } 3458 return this; 3459 } 3460 /** 3461 * 3462 * 3463 * <pre> 3464 * List of volumes to mount into the build step. 3465 * Each volume is created as an empty volume prior to execution of the 3466 * build step. Upon completion of the build, volumes and their contents are 3467 * discarded. 3468 * Using a named volume in only one step is not valid as it is indicative 3469 * of a build request with an incorrect configuration. 3470 * </pre> 3471 * 3472 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3473 */ addVolumes(com.google.cloudbuild.v1.Volume.Builder builderForValue)3474 public Builder addVolumes(com.google.cloudbuild.v1.Volume.Builder builderForValue) { 3475 if (volumesBuilder_ == null) { 3476 ensureVolumesIsMutable(); 3477 volumes_.add(builderForValue.build()); 3478 onChanged(); 3479 } else { 3480 volumesBuilder_.addMessage(builderForValue.build()); 3481 } 3482 return this; 3483 } 3484 /** 3485 * 3486 * 3487 * <pre> 3488 * List of volumes to mount into the build step. 3489 * Each volume is created as an empty volume prior to execution of the 3490 * build step. Upon completion of the build, volumes and their contents are 3491 * discarded. 3492 * Using a named volume in only one step is not valid as it is indicative 3493 * of a build request with an incorrect configuration. 3494 * </pre> 3495 * 3496 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3497 */ addVolumes(int index, com.google.cloudbuild.v1.Volume.Builder builderForValue)3498 public Builder addVolumes(int index, com.google.cloudbuild.v1.Volume.Builder builderForValue) { 3499 if (volumesBuilder_ == null) { 3500 ensureVolumesIsMutable(); 3501 volumes_.add(index, builderForValue.build()); 3502 onChanged(); 3503 } else { 3504 volumesBuilder_.addMessage(index, builderForValue.build()); 3505 } 3506 return this; 3507 } 3508 /** 3509 * 3510 * 3511 * <pre> 3512 * List of volumes to mount into the build step. 3513 * Each volume is created as an empty volume prior to execution of the 3514 * build step. Upon completion of the build, volumes and their contents are 3515 * discarded. 3516 * Using a named volume in only one step is not valid as it is indicative 3517 * of a build request with an incorrect configuration. 3518 * </pre> 3519 * 3520 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3521 */ addAllVolumes( java.lang.Iterable<? extends com.google.cloudbuild.v1.Volume> values)3522 public Builder addAllVolumes( 3523 java.lang.Iterable<? extends com.google.cloudbuild.v1.Volume> values) { 3524 if (volumesBuilder_ == null) { 3525 ensureVolumesIsMutable(); 3526 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); 3527 onChanged(); 3528 } else { 3529 volumesBuilder_.addAllMessages(values); 3530 } 3531 return this; 3532 } 3533 /** 3534 * 3535 * 3536 * <pre> 3537 * List of volumes to mount into the build step. 3538 * Each volume is created as an empty volume prior to execution of the 3539 * build step. Upon completion of the build, volumes and their contents are 3540 * discarded. 3541 * Using a named volume in only one step is not valid as it is indicative 3542 * of a build request with an incorrect configuration. 3543 * </pre> 3544 * 3545 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3546 */ clearVolumes()3547 public Builder clearVolumes() { 3548 if (volumesBuilder_ == null) { 3549 volumes_ = java.util.Collections.emptyList(); 3550 bitField0_ = (bitField0_ & ~0x00000100); 3551 onChanged(); 3552 } else { 3553 volumesBuilder_.clear(); 3554 } 3555 return this; 3556 } 3557 /** 3558 * 3559 * 3560 * <pre> 3561 * List of volumes to mount into the build step. 3562 * Each volume is created as an empty volume prior to execution of the 3563 * build step. Upon completion of the build, volumes and their contents are 3564 * discarded. 3565 * Using a named volume in only one step is not valid as it is indicative 3566 * of a build request with an incorrect configuration. 3567 * </pre> 3568 * 3569 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3570 */ removeVolumes(int index)3571 public Builder removeVolumes(int index) { 3572 if (volumesBuilder_ == null) { 3573 ensureVolumesIsMutable(); 3574 volumes_.remove(index); 3575 onChanged(); 3576 } else { 3577 volumesBuilder_.remove(index); 3578 } 3579 return this; 3580 } 3581 /** 3582 * 3583 * 3584 * <pre> 3585 * List of volumes to mount into the build step. 3586 * Each volume is created as an empty volume prior to execution of the 3587 * build step. Upon completion of the build, volumes and their contents are 3588 * discarded. 3589 * Using a named volume in only one step is not valid as it is indicative 3590 * of a build request with an incorrect configuration. 3591 * </pre> 3592 * 3593 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3594 */ getVolumesBuilder(int index)3595 public com.google.cloudbuild.v1.Volume.Builder getVolumesBuilder(int index) { 3596 return getVolumesFieldBuilder().getBuilder(index); 3597 } 3598 /** 3599 * 3600 * 3601 * <pre> 3602 * List of volumes to mount into the build step. 3603 * Each volume is created as an empty volume prior to execution of the 3604 * build step. Upon completion of the build, volumes and their contents are 3605 * discarded. 3606 * Using a named volume in only one step is not valid as it is indicative 3607 * of a build request with an incorrect configuration. 3608 * </pre> 3609 * 3610 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3611 */ getVolumesOrBuilder(int index)3612 public com.google.cloudbuild.v1.VolumeOrBuilder getVolumesOrBuilder(int index) { 3613 if (volumesBuilder_ == null) { 3614 return volumes_.get(index); 3615 } else { 3616 return volumesBuilder_.getMessageOrBuilder(index); 3617 } 3618 } 3619 /** 3620 * 3621 * 3622 * <pre> 3623 * List of volumes to mount into the build step. 3624 * Each volume is created as an empty volume prior to execution of the 3625 * build step. Upon completion of the build, volumes and their contents are 3626 * discarded. 3627 * Using a named volume in only one step is not valid as it is indicative 3628 * of a build request with an incorrect configuration. 3629 * </pre> 3630 * 3631 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3632 */ 3633 public java.util.List<? extends com.google.cloudbuild.v1.VolumeOrBuilder> getVolumesOrBuilderList()3634 getVolumesOrBuilderList() { 3635 if (volumesBuilder_ != null) { 3636 return volumesBuilder_.getMessageOrBuilderList(); 3637 } else { 3638 return java.util.Collections.unmodifiableList(volumes_); 3639 } 3640 } 3641 /** 3642 * 3643 * 3644 * <pre> 3645 * List of volumes to mount into the build step. 3646 * Each volume is created as an empty volume prior to execution of the 3647 * build step. Upon completion of the build, volumes and their contents are 3648 * discarded. 3649 * Using a named volume in only one step is not valid as it is indicative 3650 * of a build request with an incorrect configuration. 3651 * </pre> 3652 * 3653 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3654 */ addVolumesBuilder()3655 public com.google.cloudbuild.v1.Volume.Builder addVolumesBuilder() { 3656 return getVolumesFieldBuilder() 3657 .addBuilder(com.google.cloudbuild.v1.Volume.getDefaultInstance()); 3658 } 3659 /** 3660 * 3661 * 3662 * <pre> 3663 * List of volumes to mount into the build step. 3664 * Each volume is created as an empty volume prior to execution of the 3665 * build step. Upon completion of the build, volumes and their contents are 3666 * discarded. 3667 * Using a named volume in only one step is not valid as it is indicative 3668 * of a build request with an incorrect configuration. 3669 * </pre> 3670 * 3671 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3672 */ addVolumesBuilder(int index)3673 public com.google.cloudbuild.v1.Volume.Builder addVolumesBuilder(int index) { 3674 return getVolumesFieldBuilder() 3675 .addBuilder(index, com.google.cloudbuild.v1.Volume.getDefaultInstance()); 3676 } 3677 /** 3678 * 3679 * 3680 * <pre> 3681 * List of volumes to mount into the build step. 3682 * Each volume is created as an empty volume prior to execution of the 3683 * build step. Upon completion of the build, volumes and their contents are 3684 * discarded. 3685 * Using a named volume in only one step is not valid as it is indicative 3686 * of a build request with an incorrect configuration. 3687 * </pre> 3688 * 3689 * <code>repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;</code> 3690 */ getVolumesBuilderList()3691 public java.util.List<com.google.cloudbuild.v1.Volume.Builder> getVolumesBuilderList() { 3692 return getVolumesFieldBuilder().getBuilderList(); 3693 } 3694 3695 private com.google.protobuf.RepeatedFieldBuilderV3< 3696 com.google.cloudbuild.v1.Volume, 3697 com.google.cloudbuild.v1.Volume.Builder, 3698 com.google.cloudbuild.v1.VolumeOrBuilder> getVolumesFieldBuilder()3699 getVolumesFieldBuilder() { 3700 if (volumesBuilder_ == null) { 3701 volumesBuilder_ = 3702 new com.google.protobuf.RepeatedFieldBuilderV3< 3703 com.google.cloudbuild.v1.Volume, 3704 com.google.cloudbuild.v1.Volume.Builder, 3705 com.google.cloudbuild.v1.VolumeOrBuilder>( 3706 volumes_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); 3707 volumes_ = null; 3708 } 3709 return volumesBuilder_; 3710 } 3711 3712 private com.google.cloudbuild.v1.TimeSpan timing_; 3713 private com.google.protobuf.SingleFieldBuilderV3< 3714 com.google.cloudbuild.v1.TimeSpan, 3715 com.google.cloudbuild.v1.TimeSpan.Builder, 3716 com.google.cloudbuild.v1.TimeSpanOrBuilder> 3717 timingBuilder_; 3718 /** 3719 * 3720 * 3721 * <pre> 3722 * Output only. Stores timing information for executing this build step. 3723 * </pre> 3724 * 3725 * <code> 3726 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3727 * </code> 3728 * 3729 * @return Whether the timing field is set. 3730 */ hasTiming()3731 public boolean hasTiming() { 3732 return ((bitField0_ & 0x00000200) != 0); 3733 } 3734 /** 3735 * 3736 * 3737 * <pre> 3738 * Output only. Stores timing information for executing this build step. 3739 * </pre> 3740 * 3741 * <code> 3742 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3743 * </code> 3744 * 3745 * @return The timing. 3746 */ getTiming()3747 public com.google.cloudbuild.v1.TimeSpan getTiming() { 3748 if (timingBuilder_ == null) { 3749 return timing_ == null ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() : timing_; 3750 } else { 3751 return timingBuilder_.getMessage(); 3752 } 3753 } 3754 /** 3755 * 3756 * 3757 * <pre> 3758 * Output only. Stores timing information for executing this build step. 3759 * </pre> 3760 * 3761 * <code> 3762 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3763 * </code> 3764 */ setTiming(com.google.cloudbuild.v1.TimeSpan value)3765 public Builder setTiming(com.google.cloudbuild.v1.TimeSpan value) { 3766 if (timingBuilder_ == null) { 3767 if (value == null) { 3768 throw new NullPointerException(); 3769 } 3770 timing_ = value; 3771 } else { 3772 timingBuilder_.setMessage(value); 3773 } 3774 bitField0_ |= 0x00000200; 3775 onChanged(); 3776 return this; 3777 } 3778 /** 3779 * 3780 * 3781 * <pre> 3782 * Output only. Stores timing information for executing this build step. 3783 * </pre> 3784 * 3785 * <code> 3786 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3787 * </code> 3788 */ setTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue)3789 public Builder setTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue) { 3790 if (timingBuilder_ == null) { 3791 timing_ = builderForValue.build(); 3792 } else { 3793 timingBuilder_.setMessage(builderForValue.build()); 3794 } 3795 bitField0_ |= 0x00000200; 3796 onChanged(); 3797 return this; 3798 } 3799 /** 3800 * 3801 * 3802 * <pre> 3803 * Output only. Stores timing information for executing this build step. 3804 * </pre> 3805 * 3806 * <code> 3807 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3808 * </code> 3809 */ mergeTiming(com.google.cloudbuild.v1.TimeSpan value)3810 public Builder mergeTiming(com.google.cloudbuild.v1.TimeSpan value) { 3811 if (timingBuilder_ == null) { 3812 if (((bitField0_ & 0x00000200) != 0) 3813 && timing_ != null 3814 && timing_ != com.google.cloudbuild.v1.TimeSpan.getDefaultInstance()) { 3815 getTimingBuilder().mergeFrom(value); 3816 } else { 3817 timing_ = value; 3818 } 3819 } else { 3820 timingBuilder_.mergeFrom(value); 3821 } 3822 bitField0_ |= 0x00000200; 3823 onChanged(); 3824 return this; 3825 } 3826 /** 3827 * 3828 * 3829 * <pre> 3830 * Output only. Stores timing information for executing this build step. 3831 * </pre> 3832 * 3833 * <code> 3834 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3835 * </code> 3836 */ clearTiming()3837 public Builder clearTiming() { 3838 bitField0_ = (bitField0_ & ~0x00000200); 3839 timing_ = null; 3840 if (timingBuilder_ != null) { 3841 timingBuilder_.dispose(); 3842 timingBuilder_ = null; 3843 } 3844 onChanged(); 3845 return this; 3846 } 3847 /** 3848 * 3849 * 3850 * <pre> 3851 * Output only. Stores timing information for executing this build step. 3852 * </pre> 3853 * 3854 * <code> 3855 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3856 * </code> 3857 */ getTimingBuilder()3858 public com.google.cloudbuild.v1.TimeSpan.Builder getTimingBuilder() { 3859 bitField0_ |= 0x00000200; 3860 onChanged(); 3861 return getTimingFieldBuilder().getBuilder(); 3862 } 3863 /** 3864 * 3865 * 3866 * <pre> 3867 * Output only. Stores timing information for executing this build step. 3868 * </pre> 3869 * 3870 * <code> 3871 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3872 * </code> 3873 */ getTimingOrBuilder()3874 public com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder() { 3875 if (timingBuilder_ != null) { 3876 return timingBuilder_.getMessageOrBuilder(); 3877 } else { 3878 return timing_ == null ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() : timing_; 3879 } 3880 } 3881 /** 3882 * 3883 * 3884 * <pre> 3885 * Output only. Stores timing information for executing this build step. 3886 * </pre> 3887 * 3888 * <code> 3889 * .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3890 * </code> 3891 */ 3892 private com.google.protobuf.SingleFieldBuilderV3< 3893 com.google.cloudbuild.v1.TimeSpan, 3894 com.google.cloudbuild.v1.TimeSpan.Builder, 3895 com.google.cloudbuild.v1.TimeSpanOrBuilder> getTimingFieldBuilder()3896 getTimingFieldBuilder() { 3897 if (timingBuilder_ == null) { 3898 timingBuilder_ = 3899 new com.google.protobuf.SingleFieldBuilderV3< 3900 com.google.cloudbuild.v1.TimeSpan, 3901 com.google.cloudbuild.v1.TimeSpan.Builder, 3902 com.google.cloudbuild.v1.TimeSpanOrBuilder>( 3903 getTiming(), getParentForChildren(), isClean()); 3904 timing_ = null; 3905 } 3906 return timingBuilder_; 3907 } 3908 3909 private com.google.cloudbuild.v1.TimeSpan pullTiming_; 3910 private com.google.protobuf.SingleFieldBuilderV3< 3911 com.google.cloudbuild.v1.TimeSpan, 3912 com.google.cloudbuild.v1.TimeSpan.Builder, 3913 com.google.cloudbuild.v1.TimeSpanOrBuilder> 3914 pullTimingBuilder_; 3915 /** 3916 * 3917 * 3918 * <pre> 3919 * Output only. Stores timing information for pulling this build step's 3920 * builder image only. 3921 * </pre> 3922 * 3923 * <code> 3924 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3925 * </code> 3926 * 3927 * @return Whether the pullTiming field is set. 3928 */ hasPullTiming()3929 public boolean hasPullTiming() { 3930 return ((bitField0_ & 0x00000400) != 0); 3931 } 3932 /** 3933 * 3934 * 3935 * <pre> 3936 * Output only. Stores timing information for pulling this build step's 3937 * builder image only. 3938 * </pre> 3939 * 3940 * <code> 3941 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3942 * </code> 3943 * 3944 * @return The pullTiming. 3945 */ getPullTiming()3946 public com.google.cloudbuild.v1.TimeSpan getPullTiming() { 3947 if (pullTimingBuilder_ == null) { 3948 return pullTiming_ == null 3949 ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() 3950 : pullTiming_; 3951 } else { 3952 return pullTimingBuilder_.getMessage(); 3953 } 3954 } 3955 /** 3956 * 3957 * 3958 * <pre> 3959 * Output only. Stores timing information for pulling this build step's 3960 * builder image only. 3961 * </pre> 3962 * 3963 * <code> 3964 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3965 * </code> 3966 */ setPullTiming(com.google.cloudbuild.v1.TimeSpan value)3967 public Builder setPullTiming(com.google.cloudbuild.v1.TimeSpan value) { 3968 if (pullTimingBuilder_ == null) { 3969 if (value == null) { 3970 throw new NullPointerException(); 3971 } 3972 pullTiming_ = value; 3973 } else { 3974 pullTimingBuilder_.setMessage(value); 3975 } 3976 bitField0_ |= 0x00000400; 3977 onChanged(); 3978 return this; 3979 } 3980 /** 3981 * 3982 * 3983 * <pre> 3984 * Output only. Stores timing information for pulling this build step's 3985 * builder image only. 3986 * </pre> 3987 * 3988 * <code> 3989 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3990 * </code> 3991 */ setPullTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue)3992 public Builder setPullTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue) { 3993 if (pullTimingBuilder_ == null) { 3994 pullTiming_ = builderForValue.build(); 3995 } else { 3996 pullTimingBuilder_.setMessage(builderForValue.build()); 3997 } 3998 bitField0_ |= 0x00000400; 3999 onChanged(); 4000 return this; 4001 } 4002 /** 4003 * 4004 * 4005 * <pre> 4006 * Output only. Stores timing information for pulling this build step's 4007 * builder image only. 4008 * </pre> 4009 * 4010 * <code> 4011 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4012 * </code> 4013 */ mergePullTiming(com.google.cloudbuild.v1.TimeSpan value)4014 public Builder mergePullTiming(com.google.cloudbuild.v1.TimeSpan value) { 4015 if (pullTimingBuilder_ == null) { 4016 if (((bitField0_ & 0x00000400) != 0) 4017 && pullTiming_ != null 4018 && pullTiming_ != com.google.cloudbuild.v1.TimeSpan.getDefaultInstance()) { 4019 getPullTimingBuilder().mergeFrom(value); 4020 } else { 4021 pullTiming_ = value; 4022 } 4023 } else { 4024 pullTimingBuilder_.mergeFrom(value); 4025 } 4026 bitField0_ |= 0x00000400; 4027 onChanged(); 4028 return this; 4029 } 4030 /** 4031 * 4032 * 4033 * <pre> 4034 * Output only. Stores timing information for pulling this build step's 4035 * builder image only. 4036 * </pre> 4037 * 4038 * <code> 4039 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4040 * </code> 4041 */ clearPullTiming()4042 public Builder clearPullTiming() { 4043 bitField0_ = (bitField0_ & ~0x00000400); 4044 pullTiming_ = null; 4045 if (pullTimingBuilder_ != null) { 4046 pullTimingBuilder_.dispose(); 4047 pullTimingBuilder_ = null; 4048 } 4049 onChanged(); 4050 return this; 4051 } 4052 /** 4053 * 4054 * 4055 * <pre> 4056 * Output only. Stores timing information for pulling this build step's 4057 * builder image only. 4058 * </pre> 4059 * 4060 * <code> 4061 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4062 * </code> 4063 */ getPullTimingBuilder()4064 public com.google.cloudbuild.v1.TimeSpan.Builder getPullTimingBuilder() { 4065 bitField0_ |= 0x00000400; 4066 onChanged(); 4067 return getPullTimingFieldBuilder().getBuilder(); 4068 } 4069 /** 4070 * 4071 * 4072 * <pre> 4073 * Output only. Stores timing information for pulling this build step's 4074 * builder image only. 4075 * </pre> 4076 * 4077 * <code> 4078 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4079 * </code> 4080 */ getPullTimingOrBuilder()4081 public com.google.cloudbuild.v1.TimeSpanOrBuilder getPullTimingOrBuilder() { 4082 if (pullTimingBuilder_ != null) { 4083 return pullTimingBuilder_.getMessageOrBuilder(); 4084 } else { 4085 return pullTiming_ == null 4086 ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() 4087 : pullTiming_; 4088 } 4089 } 4090 /** 4091 * 4092 * 4093 * <pre> 4094 * Output only. Stores timing information for pulling this build step's 4095 * builder image only. 4096 * </pre> 4097 * 4098 * <code> 4099 * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4100 * </code> 4101 */ 4102 private com.google.protobuf.SingleFieldBuilderV3< 4103 com.google.cloudbuild.v1.TimeSpan, 4104 com.google.cloudbuild.v1.TimeSpan.Builder, 4105 com.google.cloudbuild.v1.TimeSpanOrBuilder> getPullTimingFieldBuilder()4106 getPullTimingFieldBuilder() { 4107 if (pullTimingBuilder_ == null) { 4108 pullTimingBuilder_ = 4109 new com.google.protobuf.SingleFieldBuilderV3< 4110 com.google.cloudbuild.v1.TimeSpan, 4111 com.google.cloudbuild.v1.TimeSpan.Builder, 4112 com.google.cloudbuild.v1.TimeSpanOrBuilder>( 4113 getPullTiming(), getParentForChildren(), isClean()); 4114 pullTiming_ = null; 4115 } 4116 return pullTimingBuilder_; 4117 } 4118 4119 private com.google.protobuf.Duration timeout_; 4120 private com.google.protobuf.SingleFieldBuilderV3< 4121 com.google.protobuf.Duration, 4122 com.google.protobuf.Duration.Builder, 4123 com.google.protobuf.DurationOrBuilder> 4124 timeoutBuilder_; 4125 /** 4126 * 4127 * 4128 * <pre> 4129 * Time limit for executing this build step. If not defined, the step has no 4130 * time limit and will be allowed to continue to run until either it completes 4131 * or the build itself times out. 4132 * </pre> 4133 * 4134 * <code>.google.protobuf.Duration timeout = 11;</code> 4135 * 4136 * @return Whether the timeout field is set. 4137 */ hasTimeout()4138 public boolean hasTimeout() { 4139 return ((bitField0_ & 0x00000800) != 0); 4140 } 4141 /** 4142 * 4143 * 4144 * <pre> 4145 * Time limit for executing this build step. If not defined, the step has no 4146 * time limit and will be allowed to continue to run until either it completes 4147 * or the build itself times out. 4148 * </pre> 4149 * 4150 * <code>.google.protobuf.Duration timeout = 11;</code> 4151 * 4152 * @return The timeout. 4153 */ getTimeout()4154 public com.google.protobuf.Duration getTimeout() { 4155 if (timeoutBuilder_ == null) { 4156 return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; 4157 } else { 4158 return timeoutBuilder_.getMessage(); 4159 } 4160 } 4161 /** 4162 * 4163 * 4164 * <pre> 4165 * Time limit for executing this build step. If not defined, the step has no 4166 * time limit and will be allowed to continue to run until either it completes 4167 * or the build itself times out. 4168 * </pre> 4169 * 4170 * <code>.google.protobuf.Duration timeout = 11;</code> 4171 */ setTimeout(com.google.protobuf.Duration value)4172 public Builder setTimeout(com.google.protobuf.Duration value) { 4173 if (timeoutBuilder_ == null) { 4174 if (value == null) { 4175 throw new NullPointerException(); 4176 } 4177 timeout_ = value; 4178 } else { 4179 timeoutBuilder_.setMessage(value); 4180 } 4181 bitField0_ |= 0x00000800; 4182 onChanged(); 4183 return this; 4184 } 4185 /** 4186 * 4187 * 4188 * <pre> 4189 * Time limit for executing this build step. If not defined, the step has no 4190 * time limit and will be allowed to continue to run until either it completes 4191 * or the build itself times out. 4192 * </pre> 4193 * 4194 * <code>.google.protobuf.Duration timeout = 11;</code> 4195 */ setTimeout(com.google.protobuf.Duration.Builder builderForValue)4196 public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { 4197 if (timeoutBuilder_ == null) { 4198 timeout_ = builderForValue.build(); 4199 } else { 4200 timeoutBuilder_.setMessage(builderForValue.build()); 4201 } 4202 bitField0_ |= 0x00000800; 4203 onChanged(); 4204 return this; 4205 } 4206 /** 4207 * 4208 * 4209 * <pre> 4210 * Time limit for executing this build step. If not defined, the step has no 4211 * time limit and will be allowed to continue to run until either it completes 4212 * or the build itself times out. 4213 * </pre> 4214 * 4215 * <code>.google.protobuf.Duration timeout = 11;</code> 4216 */ mergeTimeout(com.google.protobuf.Duration value)4217 public Builder mergeTimeout(com.google.protobuf.Duration value) { 4218 if (timeoutBuilder_ == null) { 4219 if (((bitField0_ & 0x00000800) != 0) 4220 && timeout_ != null 4221 && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) { 4222 getTimeoutBuilder().mergeFrom(value); 4223 } else { 4224 timeout_ = value; 4225 } 4226 } else { 4227 timeoutBuilder_.mergeFrom(value); 4228 } 4229 bitField0_ |= 0x00000800; 4230 onChanged(); 4231 return this; 4232 } 4233 /** 4234 * 4235 * 4236 * <pre> 4237 * Time limit for executing this build step. If not defined, the step has no 4238 * time limit and will be allowed to continue to run until either it completes 4239 * or the build itself times out. 4240 * </pre> 4241 * 4242 * <code>.google.protobuf.Duration timeout = 11;</code> 4243 */ clearTimeout()4244 public Builder clearTimeout() { 4245 bitField0_ = (bitField0_ & ~0x00000800); 4246 timeout_ = null; 4247 if (timeoutBuilder_ != null) { 4248 timeoutBuilder_.dispose(); 4249 timeoutBuilder_ = null; 4250 } 4251 onChanged(); 4252 return this; 4253 } 4254 /** 4255 * 4256 * 4257 * <pre> 4258 * Time limit for executing this build step. If not defined, the step has no 4259 * time limit and will be allowed to continue to run until either it completes 4260 * or the build itself times out. 4261 * </pre> 4262 * 4263 * <code>.google.protobuf.Duration timeout = 11;</code> 4264 */ getTimeoutBuilder()4265 public com.google.protobuf.Duration.Builder getTimeoutBuilder() { 4266 bitField0_ |= 0x00000800; 4267 onChanged(); 4268 return getTimeoutFieldBuilder().getBuilder(); 4269 } 4270 /** 4271 * 4272 * 4273 * <pre> 4274 * Time limit for executing this build step. If not defined, the step has no 4275 * time limit and will be allowed to continue to run until either it completes 4276 * or the build itself times out. 4277 * </pre> 4278 * 4279 * <code>.google.protobuf.Duration timeout = 11;</code> 4280 */ getTimeoutOrBuilder()4281 public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { 4282 if (timeoutBuilder_ != null) { 4283 return timeoutBuilder_.getMessageOrBuilder(); 4284 } else { 4285 return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; 4286 } 4287 } 4288 /** 4289 * 4290 * 4291 * <pre> 4292 * Time limit for executing this build step. If not defined, the step has no 4293 * time limit and will be allowed to continue to run until either it completes 4294 * or the build itself times out. 4295 * </pre> 4296 * 4297 * <code>.google.protobuf.Duration timeout = 11;</code> 4298 */ 4299 private com.google.protobuf.SingleFieldBuilderV3< 4300 com.google.protobuf.Duration, 4301 com.google.protobuf.Duration.Builder, 4302 com.google.protobuf.DurationOrBuilder> getTimeoutFieldBuilder()4303 getTimeoutFieldBuilder() { 4304 if (timeoutBuilder_ == null) { 4305 timeoutBuilder_ = 4306 new com.google.protobuf.SingleFieldBuilderV3< 4307 com.google.protobuf.Duration, 4308 com.google.protobuf.Duration.Builder, 4309 com.google.protobuf.DurationOrBuilder>( 4310 getTimeout(), getParentForChildren(), isClean()); 4311 timeout_ = null; 4312 } 4313 return timeoutBuilder_; 4314 } 4315 4316 private int status_ = 0; 4317 /** 4318 * 4319 * 4320 * <pre> 4321 * Output only. Status of the build step. At this time, build step status is 4322 * only updated on build completion; step status is not updated in real-time 4323 * as the build progresses. 4324 * </pre> 4325 * 4326 * <code> 4327 * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4328 * </code> 4329 * 4330 * @return The enum numeric value on the wire for status. 4331 */ 4332 @java.lang.Override getStatusValue()4333 public int getStatusValue() { 4334 return status_; 4335 } 4336 /** 4337 * 4338 * 4339 * <pre> 4340 * Output only. Status of the build step. At this time, build step status is 4341 * only updated on build completion; step status is not updated in real-time 4342 * as the build progresses. 4343 * </pre> 4344 * 4345 * <code> 4346 * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4347 * </code> 4348 * 4349 * @param value The enum numeric value on the wire for status to set. 4350 * @return This builder for chaining. 4351 */ setStatusValue(int value)4352 public Builder setStatusValue(int value) { 4353 status_ = value; 4354 bitField0_ |= 0x00001000; 4355 onChanged(); 4356 return this; 4357 } 4358 /** 4359 * 4360 * 4361 * <pre> 4362 * Output only. Status of the build step. At this time, build step status is 4363 * only updated on build completion; step status is not updated in real-time 4364 * as the build progresses. 4365 * </pre> 4366 * 4367 * <code> 4368 * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4369 * </code> 4370 * 4371 * @return The status. 4372 */ 4373 @java.lang.Override getStatus()4374 public com.google.cloudbuild.v1.Build.Status getStatus() { 4375 com.google.cloudbuild.v1.Build.Status result = 4376 com.google.cloudbuild.v1.Build.Status.forNumber(status_); 4377 return result == null ? com.google.cloudbuild.v1.Build.Status.UNRECOGNIZED : result; 4378 } 4379 /** 4380 * 4381 * 4382 * <pre> 4383 * Output only. Status of the build step. At this time, build step status is 4384 * only updated on build completion; step status is not updated in real-time 4385 * as the build progresses. 4386 * </pre> 4387 * 4388 * <code> 4389 * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4390 * </code> 4391 * 4392 * @param value The status to set. 4393 * @return This builder for chaining. 4394 */ setStatus(com.google.cloudbuild.v1.Build.Status value)4395 public Builder setStatus(com.google.cloudbuild.v1.Build.Status value) { 4396 if (value == null) { 4397 throw new NullPointerException(); 4398 } 4399 bitField0_ |= 0x00001000; 4400 status_ = value.getNumber(); 4401 onChanged(); 4402 return this; 4403 } 4404 /** 4405 * 4406 * 4407 * <pre> 4408 * Output only. Status of the build step. At this time, build step status is 4409 * only updated on build completion; step status is not updated in real-time 4410 * as the build progresses. 4411 * </pre> 4412 * 4413 * <code> 4414 * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4415 * </code> 4416 * 4417 * @return This builder for chaining. 4418 */ clearStatus()4419 public Builder clearStatus() { 4420 bitField0_ = (bitField0_ & ~0x00001000); 4421 status_ = 0; 4422 onChanged(); 4423 return this; 4424 } 4425 4426 private boolean allowFailure_; 4427 /** 4428 * 4429 * 4430 * <pre> 4431 * Allow this build step to fail without failing the entire build. 4432 * If false, the entire build will fail if this step fails. Otherwise, the 4433 * build will succeed, but this step will still have a failure status. 4434 * Error information will be reported in the failure_detail field. 4435 * </pre> 4436 * 4437 * <code>bool allow_failure = 14;</code> 4438 * 4439 * @return The allowFailure. 4440 */ 4441 @java.lang.Override getAllowFailure()4442 public boolean getAllowFailure() { 4443 return allowFailure_; 4444 } 4445 /** 4446 * 4447 * 4448 * <pre> 4449 * Allow this build step to fail without failing the entire build. 4450 * If false, the entire build will fail if this step fails. Otherwise, the 4451 * build will succeed, but this step will still have a failure status. 4452 * Error information will be reported in the failure_detail field. 4453 * </pre> 4454 * 4455 * <code>bool allow_failure = 14;</code> 4456 * 4457 * @param value The allowFailure to set. 4458 * @return This builder for chaining. 4459 */ setAllowFailure(boolean value)4460 public Builder setAllowFailure(boolean value) { 4461 4462 allowFailure_ = value; 4463 bitField0_ |= 0x00002000; 4464 onChanged(); 4465 return this; 4466 } 4467 /** 4468 * 4469 * 4470 * <pre> 4471 * Allow this build step to fail without failing the entire build. 4472 * If false, the entire build will fail if this step fails. Otherwise, the 4473 * build will succeed, but this step will still have a failure status. 4474 * Error information will be reported in the failure_detail field. 4475 * </pre> 4476 * 4477 * <code>bool allow_failure = 14;</code> 4478 * 4479 * @return This builder for chaining. 4480 */ clearAllowFailure()4481 public Builder clearAllowFailure() { 4482 bitField0_ = (bitField0_ & ~0x00002000); 4483 allowFailure_ = false; 4484 onChanged(); 4485 return this; 4486 } 4487 4488 private int exitCode_; 4489 /** 4490 * 4491 * 4492 * <pre> 4493 * Output only. Return code from running the step. 4494 * </pre> 4495 * 4496 * <code>int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4497 * 4498 * @return The exitCode. 4499 */ 4500 @java.lang.Override getExitCode()4501 public int getExitCode() { 4502 return exitCode_; 4503 } 4504 /** 4505 * 4506 * 4507 * <pre> 4508 * Output only. Return code from running the step. 4509 * </pre> 4510 * 4511 * <code>int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4512 * 4513 * @param value The exitCode to set. 4514 * @return This builder for chaining. 4515 */ setExitCode(int value)4516 public Builder setExitCode(int value) { 4517 4518 exitCode_ = value; 4519 bitField0_ |= 0x00004000; 4520 onChanged(); 4521 return this; 4522 } 4523 /** 4524 * 4525 * 4526 * <pre> 4527 * Output only. Return code from running the step. 4528 * </pre> 4529 * 4530 * <code>int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4531 * 4532 * @return This builder for chaining. 4533 */ clearExitCode()4534 public Builder clearExitCode() { 4535 bitField0_ = (bitField0_ & ~0x00004000); 4536 exitCode_ = 0; 4537 onChanged(); 4538 return this; 4539 } 4540 4541 private com.google.protobuf.Internal.IntList allowExitCodes_ = emptyIntList(); 4542 ensureAllowExitCodesIsMutable()4543 private void ensureAllowExitCodesIsMutable() { 4544 if (!((bitField0_ & 0x00008000) != 0)) { 4545 allowExitCodes_ = mutableCopy(allowExitCodes_); 4546 bitField0_ |= 0x00008000; 4547 } 4548 } 4549 /** 4550 * 4551 * 4552 * <pre> 4553 * Allow this build step to fail without failing the entire build if and 4554 * only if the exit code is one of the specified codes. If allow_failure 4555 * is also specified, this field will take precedence. 4556 * </pre> 4557 * 4558 * <code>repeated int32 allow_exit_codes = 18;</code> 4559 * 4560 * @return A list containing the allowExitCodes. 4561 */ getAllowExitCodesList()4562 public java.util.List<java.lang.Integer> getAllowExitCodesList() { 4563 return ((bitField0_ & 0x00008000) != 0) 4564 ? java.util.Collections.unmodifiableList(allowExitCodes_) 4565 : allowExitCodes_; 4566 } 4567 /** 4568 * 4569 * 4570 * <pre> 4571 * Allow this build step to fail without failing the entire build if and 4572 * only if the exit code is one of the specified codes. If allow_failure 4573 * is also specified, this field will take precedence. 4574 * </pre> 4575 * 4576 * <code>repeated int32 allow_exit_codes = 18;</code> 4577 * 4578 * @return The count of allowExitCodes. 4579 */ getAllowExitCodesCount()4580 public int getAllowExitCodesCount() { 4581 return allowExitCodes_.size(); 4582 } 4583 /** 4584 * 4585 * 4586 * <pre> 4587 * Allow this build step to fail without failing the entire build if and 4588 * only if the exit code is one of the specified codes. If allow_failure 4589 * is also specified, this field will take precedence. 4590 * </pre> 4591 * 4592 * <code>repeated int32 allow_exit_codes = 18;</code> 4593 * 4594 * @param index The index of the element to return. 4595 * @return The allowExitCodes at the given index. 4596 */ getAllowExitCodes(int index)4597 public int getAllowExitCodes(int index) { 4598 return allowExitCodes_.getInt(index); 4599 } 4600 /** 4601 * 4602 * 4603 * <pre> 4604 * Allow this build step to fail without failing the entire build if and 4605 * only if the exit code is one of the specified codes. If allow_failure 4606 * is also specified, this field will take precedence. 4607 * </pre> 4608 * 4609 * <code>repeated int32 allow_exit_codes = 18;</code> 4610 * 4611 * @param index The index to set the value at. 4612 * @param value The allowExitCodes to set. 4613 * @return This builder for chaining. 4614 */ setAllowExitCodes(int index, int value)4615 public Builder setAllowExitCodes(int index, int value) { 4616 4617 ensureAllowExitCodesIsMutable(); 4618 allowExitCodes_.setInt(index, value); 4619 onChanged(); 4620 return this; 4621 } 4622 /** 4623 * 4624 * 4625 * <pre> 4626 * Allow this build step to fail without failing the entire build if and 4627 * only if the exit code is one of the specified codes. If allow_failure 4628 * is also specified, this field will take precedence. 4629 * </pre> 4630 * 4631 * <code>repeated int32 allow_exit_codes = 18;</code> 4632 * 4633 * @param value The allowExitCodes to add. 4634 * @return This builder for chaining. 4635 */ addAllowExitCodes(int value)4636 public Builder addAllowExitCodes(int value) { 4637 4638 ensureAllowExitCodesIsMutable(); 4639 allowExitCodes_.addInt(value); 4640 onChanged(); 4641 return this; 4642 } 4643 /** 4644 * 4645 * 4646 * <pre> 4647 * Allow this build step to fail without failing the entire build if and 4648 * only if the exit code is one of the specified codes. If allow_failure 4649 * is also specified, this field will take precedence. 4650 * </pre> 4651 * 4652 * <code>repeated int32 allow_exit_codes = 18;</code> 4653 * 4654 * @param values The allowExitCodes to add. 4655 * @return This builder for chaining. 4656 */ addAllAllowExitCodes(java.lang.Iterable<? extends java.lang.Integer> values)4657 public Builder addAllAllowExitCodes(java.lang.Iterable<? extends java.lang.Integer> values) { 4658 ensureAllowExitCodesIsMutable(); 4659 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowExitCodes_); 4660 onChanged(); 4661 return this; 4662 } 4663 /** 4664 * 4665 * 4666 * <pre> 4667 * Allow this build step to fail without failing the entire build if and 4668 * only if the exit code is one of the specified codes. If allow_failure 4669 * is also specified, this field will take precedence. 4670 * </pre> 4671 * 4672 * <code>repeated int32 allow_exit_codes = 18;</code> 4673 * 4674 * @return This builder for chaining. 4675 */ clearAllowExitCodes()4676 public Builder clearAllowExitCodes() { 4677 allowExitCodes_ = emptyIntList(); 4678 bitField0_ = (bitField0_ & ~0x00008000); 4679 onChanged(); 4680 return this; 4681 } 4682 4683 private java.lang.Object script_ = ""; 4684 /** 4685 * 4686 * 4687 * <pre> 4688 * A shell script to be executed in the step. 4689 * When script is provided, the user cannot specify the entrypoint or args. 4690 * </pre> 4691 * 4692 * <code>string script = 19;</code> 4693 * 4694 * @return The script. 4695 */ getScript()4696 public java.lang.String getScript() { 4697 java.lang.Object ref = script_; 4698 if (!(ref instanceof java.lang.String)) { 4699 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4700 java.lang.String s = bs.toStringUtf8(); 4701 script_ = s; 4702 return s; 4703 } else { 4704 return (java.lang.String) ref; 4705 } 4706 } 4707 /** 4708 * 4709 * 4710 * <pre> 4711 * A shell script to be executed in the step. 4712 * When script is provided, the user cannot specify the entrypoint or args. 4713 * </pre> 4714 * 4715 * <code>string script = 19;</code> 4716 * 4717 * @return The bytes for script. 4718 */ getScriptBytes()4719 public com.google.protobuf.ByteString getScriptBytes() { 4720 java.lang.Object ref = script_; 4721 if (ref instanceof String) { 4722 com.google.protobuf.ByteString b = 4723 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4724 script_ = b; 4725 return b; 4726 } else { 4727 return (com.google.protobuf.ByteString) ref; 4728 } 4729 } 4730 /** 4731 * 4732 * 4733 * <pre> 4734 * A shell script to be executed in the step. 4735 * When script is provided, the user cannot specify the entrypoint or args. 4736 * </pre> 4737 * 4738 * <code>string script = 19;</code> 4739 * 4740 * @param value The script to set. 4741 * @return This builder for chaining. 4742 */ setScript(java.lang.String value)4743 public Builder setScript(java.lang.String value) { 4744 if (value == null) { 4745 throw new NullPointerException(); 4746 } 4747 script_ = value; 4748 bitField0_ |= 0x00010000; 4749 onChanged(); 4750 return this; 4751 } 4752 /** 4753 * 4754 * 4755 * <pre> 4756 * A shell script to be executed in the step. 4757 * When script is provided, the user cannot specify the entrypoint or args. 4758 * </pre> 4759 * 4760 * <code>string script = 19;</code> 4761 * 4762 * @return This builder for chaining. 4763 */ clearScript()4764 public Builder clearScript() { 4765 script_ = getDefaultInstance().getScript(); 4766 bitField0_ = (bitField0_ & ~0x00010000); 4767 onChanged(); 4768 return this; 4769 } 4770 /** 4771 * 4772 * 4773 * <pre> 4774 * A shell script to be executed in the step. 4775 * When script is provided, the user cannot specify the entrypoint or args. 4776 * </pre> 4777 * 4778 * <code>string script = 19;</code> 4779 * 4780 * @param value The bytes for script to set. 4781 * @return This builder for chaining. 4782 */ setScriptBytes(com.google.protobuf.ByteString value)4783 public Builder setScriptBytes(com.google.protobuf.ByteString value) { 4784 if (value == null) { 4785 throw new NullPointerException(); 4786 } 4787 checkByteStringIsUtf8(value); 4788 script_ = value; 4789 bitField0_ |= 0x00010000; 4790 onChanged(); 4791 return this; 4792 } 4793 4794 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4795 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 4796 return super.setUnknownFields(unknownFields); 4797 } 4798 4799 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4800 public final Builder mergeUnknownFields( 4801 final com.google.protobuf.UnknownFieldSet unknownFields) { 4802 return super.mergeUnknownFields(unknownFields); 4803 } 4804 4805 // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.BuildStep) 4806 } 4807 4808 // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.BuildStep) 4809 private static final com.google.cloudbuild.v1.BuildStep DEFAULT_INSTANCE; 4810 4811 static { 4812 DEFAULT_INSTANCE = new com.google.cloudbuild.v1.BuildStep(); 4813 } 4814 getDefaultInstance()4815 public static com.google.cloudbuild.v1.BuildStep getDefaultInstance() { 4816 return DEFAULT_INSTANCE; 4817 } 4818 4819 private static final com.google.protobuf.Parser<BuildStep> PARSER = 4820 new com.google.protobuf.AbstractParser<BuildStep>() { 4821 @java.lang.Override 4822 public BuildStep parsePartialFrom( 4823 com.google.protobuf.CodedInputStream input, 4824 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4825 throws com.google.protobuf.InvalidProtocolBufferException { 4826 Builder builder = newBuilder(); 4827 try { 4828 builder.mergeFrom(input, extensionRegistry); 4829 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4830 throw e.setUnfinishedMessage(builder.buildPartial()); 4831 } catch (com.google.protobuf.UninitializedMessageException e) { 4832 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 4833 } catch (java.io.IOException e) { 4834 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4835 .setUnfinishedMessage(builder.buildPartial()); 4836 } 4837 return builder.buildPartial(); 4838 } 4839 }; 4840 parser()4841 public static com.google.protobuf.Parser<BuildStep> parser() { 4842 return PARSER; 4843 } 4844 4845 @java.lang.Override getParserForType()4846 public com.google.protobuf.Parser<BuildStep> getParserForType() { 4847 return PARSER; 4848 } 4849 4850 @java.lang.Override getDefaultInstanceForType()4851 public com.google.cloudbuild.v1.BuildStep getDefaultInstanceForType() { 4852 return DEFAULT_INSTANCE; 4853 } 4854 } 4855