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 * Artifacts produced by a build that should be uploaded upon 26 * successful completion of all build steps. 27 * </pre> 28 * 29 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts} 30 */ 31 public final class Artifacts extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.Artifacts) 34 ArtifactsOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use Artifacts.newBuilder() to construct. Artifacts(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private Artifacts(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 Artifacts()41 private Artifacts() { 42 images_ = com.google.protobuf.LazyStringArrayList.EMPTY; 43 mavenArtifacts_ = java.util.Collections.emptyList(); 44 pythonPackages_ = java.util.Collections.emptyList(); 45 npmPackages_ = java.util.Collections.emptyList(); 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new Artifacts(); 52 } 53 54 @java.lang.Override getUnknownFields()55 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 56 return this.unknownFields; 57 } 58 getDescriptor()59 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 60 return com.google.cloudbuild.v1.Cloudbuild 61 .internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor; 62 } 63 64 @java.lang.Override 65 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()66 internalGetFieldAccessorTable() { 67 return com.google.cloudbuild.v1.Cloudbuild 68 .internal_static_google_devtools_cloudbuild_v1_Artifacts_fieldAccessorTable 69 .ensureFieldAccessorsInitialized( 70 com.google.cloudbuild.v1.Artifacts.class, 71 com.google.cloudbuild.v1.Artifacts.Builder.class); 72 } 73 74 public interface ArtifactObjectsOrBuilder 75 extends 76 // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects) 77 com.google.protobuf.MessageOrBuilder { 78 79 /** 80 * 81 * 82 * <pre> 83 * Cloud Storage bucket and optional object path, in the form 84 * "gs://bucket/path/to/somewhere/". (see [Bucket Name 85 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). 86 * Files in the workspace matching any path pattern will be uploaded to 87 * Cloud Storage with this location as a prefix. 88 * </pre> 89 * 90 * <code>string location = 1;</code> 91 * 92 * @return The location. 93 */ getLocation()94 java.lang.String getLocation(); 95 /** 96 * 97 * 98 * <pre> 99 * Cloud Storage bucket and optional object path, in the form 100 * "gs://bucket/path/to/somewhere/". (see [Bucket Name 101 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). 102 * Files in the workspace matching any path pattern will be uploaded to 103 * Cloud Storage with this location as a prefix. 104 * </pre> 105 * 106 * <code>string location = 1;</code> 107 * 108 * @return The bytes for location. 109 */ getLocationBytes()110 com.google.protobuf.ByteString getLocationBytes(); 111 112 /** 113 * 114 * 115 * <pre> 116 * Path globs used to match files in the build's workspace. 117 * </pre> 118 * 119 * <code>repeated string paths = 2;</code> 120 * 121 * @return A list containing the paths. 122 */ getPathsList()123 java.util.List<java.lang.String> getPathsList(); 124 /** 125 * 126 * 127 * <pre> 128 * Path globs used to match files in the build's workspace. 129 * </pre> 130 * 131 * <code>repeated string paths = 2;</code> 132 * 133 * @return The count of paths. 134 */ getPathsCount()135 int getPathsCount(); 136 /** 137 * 138 * 139 * <pre> 140 * Path globs used to match files in the build's workspace. 141 * </pre> 142 * 143 * <code>repeated string paths = 2;</code> 144 * 145 * @param index The index of the element to return. 146 * @return The paths at the given index. 147 */ getPaths(int index)148 java.lang.String getPaths(int index); 149 /** 150 * 151 * 152 * <pre> 153 * Path globs used to match files in the build's workspace. 154 * </pre> 155 * 156 * <code>repeated string paths = 2;</code> 157 * 158 * @param index The index of the value to return. 159 * @return The bytes of the paths at the given index. 160 */ getPathsBytes(int index)161 com.google.protobuf.ByteString getPathsBytes(int index); 162 163 /** 164 * 165 * 166 * <pre> 167 * Output only. Stores timing information for pushing all artifact objects. 168 * </pre> 169 * 170 * <code> 171 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 172 * </code> 173 * 174 * @return Whether the timing field is set. 175 */ hasTiming()176 boolean hasTiming(); 177 /** 178 * 179 * 180 * <pre> 181 * Output only. Stores timing information for pushing all artifact objects. 182 * </pre> 183 * 184 * <code> 185 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 186 * </code> 187 * 188 * @return The timing. 189 */ getTiming()190 com.google.cloudbuild.v1.TimeSpan getTiming(); 191 /** 192 * 193 * 194 * <pre> 195 * Output only. Stores timing information for pushing all artifact objects. 196 * </pre> 197 * 198 * <code> 199 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 200 * </code> 201 */ getTimingOrBuilder()202 com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder(); 203 } 204 /** 205 * 206 * 207 * <pre> 208 * Files in the workspace to upload to Cloud Storage upon successful 209 * completion of all build steps. 210 * </pre> 211 * 212 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects} 213 */ 214 public static final class ArtifactObjects extends com.google.protobuf.GeneratedMessageV3 215 implements 216 // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects) 217 ArtifactObjectsOrBuilder { 218 private static final long serialVersionUID = 0L; 219 // Use ArtifactObjects.newBuilder() to construct. ArtifactObjects(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)220 private ArtifactObjects(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 221 super(builder); 222 } 223 ArtifactObjects()224 private ArtifactObjects() { 225 location_ = ""; 226 paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; 227 } 228 229 @java.lang.Override 230 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)231 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 232 return new ArtifactObjects(); 233 } 234 235 @java.lang.Override getUnknownFields()236 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 237 return this.unknownFields; 238 } 239 getDescriptor()240 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 241 return com.google.cloudbuild.v1.Cloudbuild 242 .internal_static_google_devtools_cloudbuild_v1_Artifacts_ArtifactObjects_descriptor; 243 } 244 245 @java.lang.Override 246 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()247 internalGetFieldAccessorTable() { 248 return com.google.cloudbuild.v1.Cloudbuild 249 .internal_static_google_devtools_cloudbuild_v1_Artifacts_ArtifactObjects_fieldAccessorTable 250 .ensureFieldAccessorsInitialized( 251 com.google.cloudbuild.v1.Artifacts.ArtifactObjects.class, 252 com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder.class); 253 } 254 255 public static final int LOCATION_FIELD_NUMBER = 1; 256 257 @SuppressWarnings("serial") 258 private volatile java.lang.Object location_ = ""; 259 /** 260 * 261 * 262 * <pre> 263 * Cloud Storage bucket and optional object path, in the form 264 * "gs://bucket/path/to/somewhere/". (see [Bucket Name 265 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). 266 * Files in the workspace matching any path pattern will be uploaded to 267 * Cloud Storage with this location as a prefix. 268 * </pre> 269 * 270 * <code>string location = 1;</code> 271 * 272 * @return The location. 273 */ 274 @java.lang.Override getLocation()275 public java.lang.String getLocation() { 276 java.lang.Object ref = location_; 277 if (ref instanceof java.lang.String) { 278 return (java.lang.String) ref; 279 } else { 280 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 281 java.lang.String s = bs.toStringUtf8(); 282 location_ = s; 283 return s; 284 } 285 } 286 /** 287 * 288 * 289 * <pre> 290 * Cloud Storage bucket and optional object path, in the form 291 * "gs://bucket/path/to/somewhere/". (see [Bucket Name 292 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). 293 * Files in the workspace matching any path pattern will be uploaded to 294 * Cloud Storage with this location as a prefix. 295 * </pre> 296 * 297 * <code>string location = 1;</code> 298 * 299 * @return The bytes for location. 300 */ 301 @java.lang.Override getLocationBytes()302 public com.google.protobuf.ByteString getLocationBytes() { 303 java.lang.Object ref = location_; 304 if (ref instanceof java.lang.String) { 305 com.google.protobuf.ByteString b = 306 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 307 location_ = b; 308 return b; 309 } else { 310 return (com.google.protobuf.ByteString) ref; 311 } 312 } 313 314 public static final int PATHS_FIELD_NUMBER = 2; 315 316 @SuppressWarnings("serial") 317 private com.google.protobuf.LazyStringList paths_; 318 /** 319 * 320 * 321 * <pre> 322 * Path globs used to match files in the build's workspace. 323 * </pre> 324 * 325 * <code>repeated string paths = 2;</code> 326 * 327 * @return A list containing the paths. 328 */ getPathsList()329 public com.google.protobuf.ProtocolStringList getPathsList() { 330 return paths_; 331 } 332 /** 333 * 334 * 335 * <pre> 336 * Path globs used to match files in the build's workspace. 337 * </pre> 338 * 339 * <code>repeated string paths = 2;</code> 340 * 341 * @return The count of paths. 342 */ getPathsCount()343 public int getPathsCount() { 344 return paths_.size(); 345 } 346 /** 347 * 348 * 349 * <pre> 350 * Path globs used to match files in the build's workspace. 351 * </pre> 352 * 353 * <code>repeated string paths = 2;</code> 354 * 355 * @param index The index of the element to return. 356 * @return The paths at the given index. 357 */ getPaths(int index)358 public java.lang.String getPaths(int index) { 359 return paths_.get(index); 360 } 361 /** 362 * 363 * 364 * <pre> 365 * Path globs used to match files in the build's workspace. 366 * </pre> 367 * 368 * <code>repeated string paths = 2;</code> 369 * 370 * @param index The index of the value to return. 371 * @return The bytes of the paths at the given index. 372 */ getPathsBytes(int index)373 public com.google.protobuf.ByteString getPathsBytes(int index) { 374 return paths_.getByteString(index); 375 } 376 377 public static final int TIMING_FIELD_NUMBER = 3; 378 private com.google.cloudbuild.v1.TimeSpan timing_; 379 /** 380 * 381 * 382 * <pre> 383 * Output only. Stores timing information for pushing all artifact objects. 384 * </pre> 385 * 386 * <code> 387 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 388 * </code> 389 * 390 * @return Whether the timing field is set. 391 */ 392 @java.lang.Override hasTiming()393 public boolean hasTiming() { 394 return timing_ != null; 395 } 396 /** 397 * 398 * 399 * <pre> 400 * Output only. Stores timing information for pushing all artifact objects. 401 * </pre> 402 * 403 * <code> 404 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 405 * </code> 406 * 407 * @return The timing. 408 */ 409 @java.lang.Override getTiming()410 public com.google.cloudbuild.v1.TimeSpan getTiming() { 411 return timing_ == null ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() : timing_; 412 } 413 /** 414 * 415 * 416 * <pre> 417 * Output only. Stores timing information for pushing all artifact objects. 418 * </pre> 419 * 420 * <code> 421 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 422 * </code> 423 */ 424 @java.lang.Override getTimingOrBuilder()425 public com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder() { 426 return timing_ == null ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() : timing_; 427 } 428 429 private byte memoizedIsInitialized = -1; 430 431 @java.lang.Override isInitialized()432 public final boolean isInitialized() { 433 byte isInitialized = memoizedIsInitialized; 434 if (isInitialized == 1) return true; 435 if (isInitialized == 0) return false; 436 437 memoizedIsInitialized = 1; 438 return true; 439 } 440 441 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)442 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 443 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { 444 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); 445 } 446 for (int i = 0; i < paths_.size(); i++) { 447 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paths_.getRaw(i)); 448 } 449 if (timing_ != null) { 450 output.writeMessage(3, getTiming()); 451 } 452 getUnknownFields().writeTo(output); 453 } 454 455 @java.lang.Override getSerializedSize()456 public int getSerializedSize() { 457 int size = memoizedSize; 458 if (size != -1) return size; 459 460 size = 0; 461 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { 462 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); 463 } 464 { 465 int dataSize = 0; 466 for (int i = 0; i < paths_.size(); i++) { 467 dataSize += computeStringSizeNoTag(paths_.getRaw(i)); 468 } 469 size += dataSize; 470 size += 1 * getPathsList().size(); 471 } 472 if (timing_ != null) { 473 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTiming()); 474 } 475 size += getUnknownFields().getSerializedSize(); 476 memoizedSize = size; 477 return size; 478 } 479 480 @java.lang.Override equals(final java.lang.Object obj)481 public boolean equals(final java.lang.Object obj) { 482 if (obj == this) { 483 return true; 484 } 485 if (!(obj instanceof com.google.cloudbuild.v1.Artifacts.ArtifactObjects)) { 486 return super.equals(obj); 487 } 488 com.google.cloudbuild.v1.Artifacts.ArtifactObjects other = 489 (com.google.cloudbuild.v1.Artifacts.ArtifactObjects) obj; 490 491 if (!getLocation().equals(other.getLocation())) return false; 492 if (!getPathsList().equals(other.getPathsList())) return false; 493 if (hasTiming() != other.hasTiming()) return false; 494 if (hasTiming()) { 495 if (!getTiming().equals(other.getTiming())) return false; 496 } 497 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 498 return true; 499 } 500 501 @java.lang.Override hashCode()502 public int hashCode() { 503 if (memoizedHashCode != 0) { 504 return memoizedHashCode; 505 } 506 int hash = 41; 507 hash = (19 * hash) + getDescriptor().hashCode(); 508 hash = (37 * hash) + LOCATION_FIELD_NUMBER; 509 hash = (53 * hash) + getLocation().hashCode(); 510 if (getPathsCount() > 0) { 511 hash = (37 * hash) + PATHS_FIELD_NUMBER; 512 hash = (53 * hash) + getPathsList().hashCode(); 513 } 514 if (hasTiming()) { 515 hash = (37 * hash) + TIMING_FIELD_NUMBER; 516 hash = (53 * hash) + getTiming().hashCode(); 517 } 518 hash = (29 * hash) + getUnknownFields().hashCode(); 519 memoizedHashCode = hash; 520 return hash; 521 } 522 parseFrom( java.nio.ByteBuffer data)523 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom( 524 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 525 return PARSER.parseFrom(data); 526 } 527 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)528 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom( 529 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 530 throws com.google.protobuf.InvalidProtocolBufferException { 531 return PARSER.parseFrom(data, extensionRegistry); 532 } 533 parseFrom( com.google.protobuf.ByteString data)534 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom( 535 com.google.protobuf.ByteString data) 536 throws com.google.protobuf.InvalidProtocolBufferException { 537 return PARSER.parseFrom(data); 538 } 539 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)540 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom( 541 com.google.protobuf.ByteString data, 542 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 543 throws com.google.protobuf.InvalidProtocolBufferException { 544 return PARSER.parseFrom(data, extensionRegistry); 545 } 546 parseFrom(byte[] data)547 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom(byte[] data) 548 throws com.google.protobuf.InvalidProtocolBufferException { 549 return PARSER.parseFrom(data); 550 } 551 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)552 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom( 553 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 554 throws com.google.protobuf.InvalidProtocolBufferException { 555 return PARSER.parseFrom(data, extensionRegistry); 556 } 557 parseFrom( java.io.InputStream input)558 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom( 559 java.io.InputStream input) throws java.io.IOException { 560 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 561 } 562 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)563 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom( 564 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 565 throws java.io.IOException { 566 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 567 PARSER, input, extensionRegistry); 568 } 569 parseDelimitedFrom( java.io.InputStream input)570 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseDelimitedFrom( 571 java.io.InputStream input) throws java.io.IOException { 572 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 573 } 574 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)575 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseDelimitedFrom( 576 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 577 throws java.io.IOException { 578 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 579 PARSER, input, extensionRegistry); 580 } 581 parseFrom( com.google.protobuf.CodedInputStream input)582 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom( 583 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 584 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 585 } 586 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)587 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects parseFrom( 588 com.google.protobuf.CodedInputStream input, 589 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 590 throws java.io.IOException { 591 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 592 PARSER, input, extensionRegistry); 593 } 594 595 @java.lang.Override newBuilderForType()596 public Builder newBuilderForType() { 597 return newBuilder(); 598 } 599 newBuilder()600 public static Builder newBuilder() { 601 return DEFAULT_INSTANCE.toBuilder(); 602 } 603 newBuilder(com.google.cloudbuild.v1.Artifacts.ArtifactObjects prototype)604 public static Builder newBuilder(com.google.cloudbuild.v1.Artifacts.ArtifactObjects prototype) { 605 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 606 } 607 608 @java.lang.Override toBuilder()609 public Builder toBuilder() { 610 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 611 } 612 613 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)614 protected Builder newBuilderForType( 615 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 616 Builder builder = new Builder(parent); 617 return builder; 618 } 619 /** 620 * 621 * 622 * <pre> 623 * Files in the workspace to upload to Cloud Storage upon successful 624 * completion of all build steps. 625 * </pre> 626 * 627 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects} 628 */ 629 public static final class Builder 630 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 631 implements 632 // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects) 633 com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder { getDescriptor()634 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 635 return com.google.cloudbuild.v1.Cloudbuild 636 .internal_static_google_devtools_cloudbuild_v1_Artifacts_ArtifactObjects_descriptor; 637 } 638 639 @java.lang.Override 640 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()641 internalGetFieldAccessorTable() { 642 return com.google.cloudbuild.v1.Cloudbuild 643 .internal_static_google_devtools_cloudbuild_v1_Artifacts_ArtifactObjects_fieldAccessorTable 644 .ensureFieldAccessorsInitialized( 645 com.google.cloudbuild.v1.Artifacts.ArtifactObjects.class, 646 com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder.class); 647 } 648 649 // Construct using com.google.cloudbuild.v1.Artifacts.ArtifactObjects.newBuilder() Builder()650 private Builder() {} 651 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)652 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 653 super(parent); 654 } 655 656 @java.lang.Override clear()657 public Builder clear() { 658 super.clear(); 659 bitField0_ = 0; 660 location_ = ""; 661 paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; 662 bitField0_ = (bitField0_ & ~0x00000002); 663 timing_ = null; 664 if (timingBuilder_ != null) { 665 timingBuilder_.dispose(); 666 timingBuilder_ = null; 667 } 668 return this; 669 } 670 671 @java.lang.Override getDescriptorForType()672 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 673 return com.google.cloudbuild.v1.Cloudbuild 674 .internal_static_google_devtools_cloudbuild_v1_Artifacts_ArtifactObjects_descriptor; 675 } 676 677 @java.lang.Override getDefaultInstanceForType()678 public com.google.cloudbuild.v1.Artifacts.ArtifactObjects getDefaultInstanceForType() { 679 return com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance(); 680 } 681 682 @java.lang.Override build()683 public com.google.cloudbuild.v1.Artifacts.ArtifactObjects build() { 684 com.google.cloudbuild.v1.Artifacts.ArtifactObjects result = buildPartial(); 685 if (!result.isInitialized()) { 686 throw newUninitializedMessageException(result); 687 } 688 return result; 689 } 690 691 @java.lang.Override buildPartial()692 public com.google.cloudbuild.v1.Artifacts.ArtifactObjects buildPartial() { 693 com.google.cloudbuild.v1.Artifacts.ArtifactObjects result = 694 new com.google.cloudbuild.v1.Artifacts.ArtifactObjects(this); 695 buildPartialRepeatedFields(result); 696 if (bitField0_ != 0) { 697 buildPartial0(result); 698 } 699 onBuilt(); 700 return result; 701 } 702 buildPartialRepeatedFields( com.google.cloudbuild.v1.Artifacts.ArtifactObjects result)703 private void buildPartialRepeatedFields( 704 com.google.cloudbuild.v1.Artifacts.ArtifactObjects result) { 705 if (((bitField0_ & 0x00000002) != 0)) { 706 paths_ = paths_.getUnmodifiableView(); 707 bitField0_ = (bitField0_ & ~0x00000002); 708 } 709 result.paths_ = paths_; 710 } 711 buildPartial0(com.google.cloudbuild.v1.Artifacts.ArtifactObjects result)712 private void buildPartial0(com.google.cloudbuild.v1.Artifacts.ArtifactObjects result) { 713 int from_bitField0_ = bitField0_; 714 if (((from_bitField0_ & 0x00000001) != 0)) { 715 result.location_ = location_; 716 } 717 if (((from_bitField0_ & 0x00000004) != 0)) { 718 result.timing_ = timingBuilder_ == null ? timing_ : timingBuilder_.build(); 719 } 720 } 721 722 @java.lang.Override clone()723 public Builder clone() { 724 return super.clone(); 725 } 726 727 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)728 public Builder setField( 729 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 730 return super.setField(field, value); 731 } 732 733 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)734 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 735 return super.clearField(field); 736 } 737 738 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)739 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 740 return super.clearOneof(oneof); 741 } 742 743 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)744 public Builder setRepeatedField( 745 com.google.protobuf.Descriptors.FieldDescriptor field, 746 int index, 747 java.lang.Object value) { 748 return super.setRepeatedField(field, index, value); 749 } 750 751 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)752 public Builder addRepeatedField( 753 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 754 return super.addRepeatedField(field, value); 755 } 756 757 @java.lang.Override mergeFrom(com.google.protobuf.Message other)758 public Builder mergeFrom(com.google.protobuf.Message other) { 759 if (other instanceof com.google.cloudbuild.v1.Artifacts.ArtifactObjects) { 760 return mergeFrom((com.google.cloudbuild.v1.Artifacts.ArtifactObjects) other); 761 } else { 762 super.mergeFrom(other); 763 return this; 764 } 765 } 766 mergeFrom(com.google.cloudbuild.v1.Artifacts.ArtifactObjects other)767 public Builder mergeFrom(com.google.cloudbuild.v1.Artifacts.ArtifactObjects other) { 768 if (other == com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance()) 769 return this; 770 if (!other.getLocation().isEmpty()) { 771 location_ = other.location_; 772 bitField0_ |= 0x00000001; 773 onChanged(); 774 } 775 if (!other.paths_.isEmpty()) { 776 if (paths_.isEmpty()) { 777 paths_ = other.paths_; 778 bitField0_ = (bitField0_ & ~0x00000002); 779 } else { 780 ensurePathsIsMutable(); 781 paths_.addAll(other.paths_); 782 } 783 onChanged(); 784 } 785 if (other.hasTiming()) { 786 mergeTiming(other.getTiming()); 787 } 788 this.mergeUnknownFields(other.getUnknownFields()); 789 onChanged(); 790 return this; 791 } 792 793 @java.lang.Override isInitialized()794 public final boolean isInitialized() { 795 return true; 796 } 797 798 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)799 public Builder mergeFrom( 800 com.google.protobuf.CodedInputStream input, 801 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 802 throws java.io.IOException { 803 if (extensionRegistry == null) { 804 throw new java.lang.NullPointerException(); 805 } 806 try { 807 boolean done = false; 808 while (!done) { 809 int tag = input.readTag(); 810 switch (tag) { 811 case 0: 812 done = true; 813 break; 814 case 10: 815 { 816 location_ = input.readStringRequireUtf8(); 817 bitField0_ |= 0x00000001; 818 break; 819 } // case 10 820 case 18: 821 { 822 java.lang.String s = input.readStringRequireUtf8(); 823 ensurePathsIsMutable(); 824 paths_.add(s); 825 break; 826 } // case 18 827 case 26: 828 { 829 input.readMessage(getTimingFieldBuilder().getBuilder(), extensionRegistry); 830 bitField0_ |= 0x00000004; 831 break; 832 } // case 26 833 default: 834 { 835 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 836 done = true; // was an endgroup tag 837 } 838 break; 839 } // default: 840 } // switch (tag) 841 } // while (!done) 842 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 843 throw e.unwrapIOException(); 844 } finally { 845 onChanged(); 846 } // finally 847 return this; 848 } 849 850 private int bitField0_; 851 852 private java.lang.Object location_ = ""; 853 /** 854 * 855 * 856 * <pre> 857 * Cloud Storage bucket and optional object path, in the form 858 * "gs://bucket/path/to/somewhere/". (see [Bucket Name 859 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). 860 * Files in the workspace matching any path pattern will be uploaded to 861 * Cloud Storage with this location as a prefix. 862 * </pre> 863 * 864 * <code>string location = 1;</code> 865 * 866 * @return The location. 867 */ getLocation()868 public java.lang.String getLocation() { 869 java.lang.Object ref = location_; 870 if (!(ref instanceof java.lang.String)) { 871 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 872 java.lang.String s = bs.toStringUtf8(); 873 location_ = s; 874 return s; 875 } else { 876 return (java.lang.String) ref; 877 } 878 } 879 /** 880 * 881 * 882 * <pre> 883 * Cloud Storage bucket and optional object path, in the form 884 * "gs://bucket/path/to/somewhere/". (see [Bucket Name 885 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). 886 * Files in the workspace matching any path pattern will be uploaded to 887 * Cloud Storage with this location as a prefix. 888 * </pre> 889 * 890 * <code>string location = 1;</code> 891 * 892 * @return The bytes for location. 893 */ getLocationBytes()894 public com.google.protobuf.ByteString getLocationBytes() { 895 java.lang.Object ref = location_; 896 if (ref instanceof String) { 897 com.google.protobuf.ByteString b = 898 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 899 location_ = b; 900 return b; 901 } else { 902 return (com.google.protobuf.ByteString) ref; 903 } 904 } 905 /** 906 * 907 * 908 * <pre> 909 * Cloud Storage bucket and optional object path, in the form 910 * "gs://bucket/path/to/somewhere/". (see [Bucket Name 911 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). 912 * Files in the workspace matching any path pattern will be uploaded to 913 * Cloud Storage with this location as a prefix. 914 * </pre> 915 * 916 * <code>string location = 1;</code> 917 * 918 * @param value The location to set. 919 * @return This builder for chaining. 920 */ setLocation(java.lang.String value)921 public Builder setLocation(java.lang.String value) { 922 if (value == null) { 923 throw new NullPointerException(); 924 } 925 location_ = value; 926 bitField0_ |= 0x00000001; 927 onChanged(); 928 return this; 929 } 930 /** 931 * 932 * 933 * <pre> 934 * Cloud Storage bucket and optional object path, in the form 935 * "gs://bucket/path/to/somewhere/". (see [Bucket Name 936 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). 937 * Files in the workspace matching any path pattern will be uploaded to 938 * Cloud Storage with this location as a prefix. 939 * </pre> 940 * 941 * <code>string location = 1;</code> 942 * 943 * @return This builder for chaining. 944 */ clearLocation()945 public Builder clearLocation() { 946 location_ = getDefaultInstance().getLocation(); 947 bitField0_ = (bitField0_ & ~0x00000001); 948 onChanged(); 949 return this; 950 } 951 /** 952 * 953 * 954 * <pre> 955 * Cloud Storage bucket and optional object path, in the form 956 * "gs://bucket/path/to/somewhere/". (see [Bucket Name 957 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). 958 * Files in the workspace matching any path pattern will be uploaded to 959 * Cloud Storage with this location as a prefix. 960 * </pre> 961 * 962 * <code>string location = 1;</code> 963 * 964 * @param value The bytes for location to set. 965 * @return This builder for chaining. 966 */ setLocationBytes(com.google.protobuf.ByteString value)967 public Builder setLocationBytes(com.google.protobuf.ByteString value) { 968 if (value == null) { 969 throw new NullPointerException(); 970 } 971 checkByteStringIsUtf8(value); 972 location_ = value; 973 bitField0_ |= 0x00000001; 974 onChanged(); 975 return this; 976 } 977 978 private com.google.protobuf.LazyStringList paths_ = 979 com.google.protobuf.LazyStringArrayList.EMPTY; 980 ensurePathsIsMutable()981 private void ensurePathsIsMutable() { 982 if (!((bitField0_ & 0x00000002) != 0)) { 983 paths_ = new com.google.protobuf.LazyStringArrayList(paths_); 984 bitField0_ |= 0x00000002; 985 } 986 } 987 /** 988 * 989 * 990 * <pre> 991 * Path globs used to match files in the build's workspace. 992 * </pre> 993 * 994 * <code>repeated string paths = 2;</code> 995 * 996 * @return A list containing the paths. 997 */ getPathsList()998 public com.google.protobuf.ProtocolStringList getPathsList() { 999 return paths_.getUnmodifiableView(); 1000 } 1001 /** 1002 * 1003 * 1004 * <pre> 1005 * Path globs used to match files in the build's workspace. 1006 * </pre> 1007 * 1008 * <code>repeated string paths = 2;</code> 1009 * 1010 * @return The count of paths. 1011 */ getPathsCount()1012 public int getPathsCount() { 1013 return paths_.size(); 1014 } 1015 /** 1016 * 1017 * 1018 * <pre> 1019 * Path globs used to match files in the build's workspace. 1020 * </pre> 1021 * 1022 * <code>repeated string paths = 2;</code> 1023 * 1024 * @param index The index of the element to return. 1025 * @return The paths at the given index. 1026 */ getPaths(int index)1027 public java.lang.String getPaths(int index) { 1028 return paths_.get(index); 1029 } 1030 /** 1031 * 1032 * 1033 * <pre> 1034 * Path globs used to match files in the build's workspace. 1035 * </pre> 1036 * 1037 * <code>repeated string paths = 2;</code> 1038 * 1039 * @param index The index of the value to return. 1040 * @return The bytes of the paths at the given index. 1041 */ getPathsBytes(int index)1042 public com.google.protobuf.ByteString getPathsBytes(int index) { 1043 return paths_.getByteString(index); 1044 } 1045 /** 1046 * 1047 * 1048 * <pre> 1049 * Path globs used to match files in the build's workspace. 1050 * </pre> 1051 * 1052 * <code>repeated string paths = 2;</code> 1053 * 1054 * @param index The index to set the value at. 1055 * @param value The paths to set. 1056 * @return This builder for chaining. 1057 */ setPaths(int index, java.lang.String value)1058 public Builder setPaths(int index, java.lang.String value) { 1059 if (value == null) { 1060 throw new NullPointerException(); 1061 } 1062 ensurePathsIsMutable(); 1063 paths_.set(index, value); 1064 onChanged(); 1065 return this; 1066 } 1067 /** 1068 * 1069 * 1070 * <pre> 1071 * Path globs used to match files in the build's workspace. 1072 * </pre> 1073 * 1074 * <code>repeated string paths = 2;</code> 1075 * 1076 * @param value The paths to add. 1077 * @return This builder for chaining. 1078 */ addPaths(java.lang.String value)1079 public Builder addPaths(java.lang.String value) { 1080 if (value == null) { 1081 throw new NullPointerException(); 1082 } 1083 ensurePathsIsMutable(); 1084 paths_.add(value); 1085 onChanged(); 1086 return this; 1087 } 1088 /** 1089 * 1090 * 1091 * <pre> 1092 * Path globs used to match files in the build's workspace. 1093 * </pre> 1094 * 1095 * <code>repeated string paths = 2;</code> 1096 * 1097 * @param values The paths to add. 1098 * @return This builder for chaining. 1099 */ addAllPaths(java.lang.Iterable<java.lang.String> values)1100 public Builder addAllPaths(java.lang.Iterable<java.lang.String> values) { 1101 ensurePathsIsMutable(); 1102 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_); 1103 onChanged(); 1104 return this; 1105 } 1106 /** 1107 * 1108 * 1109 * <pre> 1110 * Path globs used to match files in the build's workspace. 1111 * </pre> 1112 * 1113 * <code>repeated string paths = 2;</code> 1114 * 1115 * @return This builder for chaining. 1116 */ clearPaths()1117 public Builder clearPaths() { 1118 paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1119 bitField0_ = (bitField0_ & ~0x00000002); 1120 onChanged(); 1121 return this; 1122 } 1123 /** 1124 * 1125 * 1126 * <pre> 1127 * Path globs used to match files in the build's workspace. 1128 * </pre> 1129 * 1130 * <code>repeated string paths = 2;</code> 1131 * 1132 * @param value The bytes of the paths to add. 1133 * @return This builder for chaining. 1134 */ addPathsBytes(com.google.protobuf.ByteString value)1135 public Builder addPathsBytes(com.google.protobuf.ByteString value) { 1136 if (value == null) { 1137 throw new NullPointerException(); 1138 } 1139 checkByteStringIsUtf8(value); 1140 ensurePathsIsMutable(); 1141 paths_.add(value); 1142 onChanged(); 1143 return this; 1144 } 1145 1146 private com.google.cloudbuild.v1.TimeSpan timing_; 1147 private com.google.protobuf.SingleFieldBuilderV3< 1148 com.google.cloudbuild.v1.TimeSpan, 1149 com.google.cloudbuild.v1.TimeSpan.Builder, 1150 com.google.cloudbuild.v1.TimeSpanOrBuilder> 1151 timingBuilder_; 1152 /** 1153 * 1154 * 1155 * <pre> 1156 * Output only. Stores timing information for pushing all artifact objects. 1157 * </pre> 1158 * 1159 * <code> 1160 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1161 * </code> 1162 * 1163 * @return Whether the timing field is set. 1164 */ hasTiming()1165 public boolean hasTiming() { 1166 return ((bitField0_ & 0x00000004) != 0); 1167 } 1168 /** 1169 * 1170 * 1171 * <pre> 1172 * Output only. Stores timing information for pushing all artifact objects. 1173 * </pre> 1174 * 1175 * <code> 1176 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1177 * </code> 1178 * 1179 * @return The timing. 1180 */ getTiming()1181 public com.google.cloudbuild.v1.TimeSpan getTiming() { 1182 if (timingBuilder_ == null) { 1183 return timing_ == null ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() : timing_; 1184 } else { 1185 return timingBuilder_.getMessage(); 1186 } 1187 } 1188 /** 1189 * 1190 * 1191 * <pre> 1192 * Output only. Stores timing information for pushing all artifact objects. 1193 * </pre> 1194 * 1195 * <code> 1196 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1197 * </code> 1198 */ setTiming(com.google.cloudbuild.v1.TimeSpan value)1199 public Builder setTiming(com.google.cloudbuild.v1.TimeSpan value) { 1200 if (timingBuilder_ == null) { 1201 if (value == null) { 1202 throw new NullPointerException(); 1203 } 1204 timing_ = value; 1205 } else { 1206 timingBuilder_.setMessage(value); 1207 } 1208 bitField0_ |= 0x00000004; 1209 onChanged(); 1210 return this; 1211 } 1212 /** 1213 * 1214 * 1215 * <pre> 1216 * Output only. Stores timing information for pushing all artifact objects. 1217 * </pre> 1218 * 1219 * <code> 1220 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1221 * </code> 1222 */ setTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue)1223 public Builder setTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue) { 1224 if (timingBuilder_ == null) { 1225 timing_ = builderForValue.build(); 1226 } else { 1227 timingBuilder_.setMessage(builderForValue.build()); 1228 } 1229 bitField0_ |= 0x00000004; 1230 onChanged(); 1231 return this; 1232 } 1233 /** 1234 * 1235 * 1236 * <pre> 1237 * Output only. Stores timing information for pushing all artifact objects. 1238 * </pre> 1239 * 1240 * <code> 1241 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1242 * </code> 1243 */ mergeTiming(com.google.cloudbuild.v1.TimeSpan value)1244 public Builder mergeTiming(com.google.cloudbuild.v1.TimeSpan value) { 1245 if (timingBuilder_ == null) { 1246 if (((bitField0_ & 0x00000004) != 0) 1247 && timing_ != null 1248 && timing_ != com.google.cloudbuild.v1.TimeSpan.getDefaultInstance()) { 1249 getTimingBuilder().mergeFrom(value); 1250 } else { 1251 timing_ = value; 1252 } 1253 } else { 1254 timingBuilder_.mergeFrom(value); 1255 } 1256 bitField0_ |= 0x00000004; 1257 onChanged(); 1258 return this; 1259 } 1260 /** 1261 * 1262 * 1263 * <pre> 1264 * Output only. Stores timing information for pushing all artifact objects. 1265 * </pre> 1266 * 1267 * <code> 1268 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1269 * </code> 1270 */ clearTiming()1271 public Builder clearTiming() { 1272 bitField0_ = (bitField0_ & ~0x00000004); 1273 timing_ = null; 1274 if (timingBuilder_ != null) { 1275 timingBuilder_.dispose(); 1276 timingBuilder_ = null; 1277 } 1278 onChanged(); 1279 return this; 1280 } 1281 /** 1282 * 1283 * 1284 * <pre> 1285 * Output only. Stores timing information for pushing all artifact objects. 1286 * </pre> 1287 * 1288 * <code> 1289 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1290 * </code> 1291 */ getTimingBuilder()1292 public com.google.cloudbuild.v1.TimeSpan.Builder getTimingBuilder() { 1293 bitField0_ |= 0x00000004; 1294 onChanged(); 1295 return getTimingFieldBuilder().getBuilder(); 1296 } 1297 /** 1298 * 1299 * 1300 * <pre> 1301 * Output only. Stores timing information for pushing all artifact objects. 1302 * </pre> 1303 * 1304 * <code> 1305 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1306 * </code> 1307 */ getTimingOrBuilder()1308 public com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder() { 1309 if (timingBuilder_ != null) { 1310 return timingBuilder_.getMessageOrBuilder(); 1311 } else { 1312 return timing_ == null ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() : timing_; 1313 } 1314 } 1315 /** 1316 * 1317 * 1318 * <pre> 1319 * Output only. Stores timing information for pushing all artifact objects. 1320 * </pre> 1321 * 1322 * <code> 1323 * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1324 * </code> 1325 */ 1326 private com.google.protobuf.SingleFieldBuilderV3< 1327 com.google.cloudbuild.v1.TimeSpan, 1328 com.google.cloudbuild.v1.TimeSpan.Builder, 1329 com.google.cloudbuild.v1.TimeSpanOrBuilder> getTimingFieldBuilder()1330 getTimingFieldBuilder() { 1331 if (timingBuilder_ == null) { 1332 timingBuilder_ = 1333 new com.google.protobuf.SingleFieldBuilderV3< 1334 com.google.cloudbuild.v1.TimeSpan, 1335 com.google.cloudbuild.v1.TimeSpan.Builder, 1336 com.google.cloudbuild.v1.TimeSpanOrBuilder>( 1337 getTiming(), getParentForChildren(), isClean()); 1338 timing_ = null; 1339 } 1340 return timingBuilder_; 1341 } 1342 1343 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1344 public final Builder setUnknownFields( 1345 final com.google.protobuf.UnknownFieldSet unknownFields) { 1346 return super.setUnknownFields(unknownFields); 1347 } 1348 1349 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1350 public final Builder mergeUnknownFields( 1351 final com.google.protobuf.UnknownFieldSet unknownFields) { 1352 return super.mergeUnknownFields(unknownFields); 1353 } 1354 1355 // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects) 1356 } 1357 1358 // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects) 1359 private static final com.google.cloudbuild.v1.Artifacts.ArtifactObjects DEFAULT_INSTANCE; 1360 1361 static { 1362 DEFAULT_INSTANCE = new com.google.cloudbuild.v1.Artifacts.ArtifactObjects(); 1363 } 1364 getDefaultInstance()1365 public static com.google.cloudbuild.v1.Artifacts.ArtifactObjects getDefaultInstance() { 1366 return DEFAULT_INSTANCE; 1367 } 1368 1369 private static final com.google.protobuf.Parser<ArtifactObjects> PARSER = 1370 new com.google.protobuf.AbstractParser<ArtifactObjects>() { 1371 @java.lang.Override 1372 public ArtifactObjects parsePartialFrom( 1373 com.google.protobuf.CodedInputStream input, 1374 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1375 throws com.google.protobuf.InvalidProtocolBufferException { 1376 Builder builder = newBuilder(); 1377 try { 1378 builder.mergeFrom(input, extensionRegistry); 1379 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1380 throw e.setUnfinishedMessage(builder.buildPartial()); 1381 } catch (com.google.protobuf.UninitializedMessageException e) { 1382 throw e.asInvalidProtocolBufferException() 1383 .setUnfinishedMessage(builder.buildPartial()); 1384 } catch (java.io.IOException e) { 1385 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1386 .setUnfinishedMessage(builder.buildPartial()); 1387 } 1388 return builder.buildPartial(); 1389 } 1390 }; 1391 parser()1392 public static com.google.protobuf.Parser<ArtifactObjects> parser() { 1393 return PARSER; 1394 } 1395 1396 @java.lang.Override getParserForType()1397 public com.google.protobuf.Parser<ArtifactObjects> getParserForType() { 1398 return PARSER; 1399 } 1400 1401 @java.lang.Override getDefaultInstanceForType()1402 public com.google.cloudbuild.v1.Artifacts.ArtifactObjects getDefaultInstanceForType() { 1403 return DEFAULT_INSTANCE; 1404 } 1405 } 1406 1407 public interface MavenArtifactOrBuilder 1408 extends 1409 // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) 1410 com.google.protobuf.MessageOrBuilder { 1411 1412 /** 1413 * 1414 * 1415 * <pre> 1416 * Artifact Registry repository, in the form 1417 * "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" 1418 * Artifact in the workspace specified by path will be uploaded to 1419 * Artifact Registry with this location as a prefix. 1420 * </pre> 1421 * 1422 * <code>string repository = 1;</code> 1423 * 1424 * @return The repository. 1425 */ getRepository()1426 java.lang.String getRepository(); 1427 /** 1428 * 1429 * 1430 * <pre> 1431 * Artifact Registry repository, in the form 1432 * "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" 1433 * Artifact in the workspace specified by path will be uploaded to 1434 * Artifact Registry with this location as a prefix. 1435 * </pre> 1436 * 1437 * <code>string repository = 1;</code> 1438 * 1439 * @return The bytes for repository. 1440 */ getRepositoryBytes()1441 com.google.protobuf.ByteString getRepositoryBytes(); 1442 1443 /** 1444 * 1445 * 1446 * <pre> 1447 * Path to an artifact in the build's workspace to be uploaded to 1448 * Artifact Registry. 1449 * This can be either an absolute path, 1450 * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar 1451 * or a relative path from /workspace, 1452 * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. 1453 * </pre> 1454 * 1455 * <code>string path = 2;</code> 1456 * 1457 * @return The path. 1458 */ getPath()1459 java.lang.String getPath(); 1460 /** 1461 * 1462 * 1463 * <pre> 1464 * Path to an artifact in the build's workspace to be uploaded to 1465 * Artifact Registry. 1466 * This can be either an absolute path, 1467 * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar 1468 * or a relative path from /workspace, 1469 * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. 1470 * </pre> 1471 * 1472 * <code>string path = 2;</code> 1473 * 1474 * @return The bytes for path. 1475 */ getPathBytes()1476 com.google.protobuf.ByteString getPathBytes(); 1477 1478 /** 1479 * 1480 * 1481 * <pre> 1482 * Maven `artifactId` value used when uploading the artifact to Artifact 1483 * Registry. 1484 * </pre> 1485 * 1486 * <code>string artifact_id = 3;</code> 1487 * 1488 * @return The artifactId. 1489 */ getArtifactId()1490 java.lang.String getArtifactId(); 1491 /** 1492 * 1493 * 1494 * <pre> 1495 * Maven `artifactId` value used when uploading the artifact to Artifact 1496 * Registry. 1497 * </pre> 1498 * 1499 * <code>string artifact_id = 3;</code> 1500 * 1501 * @return The bytes for artifactId. 1502 */ getArtifactIdBytes()1503 com.google.protobuf.ByteString getArtifactIdBytes(); 1504 1505 /** 1506 * 1507 * 1508 * <pre> 1509 * Maven `groupId` value used when uploading the artifact to Artifact 1510 * Registry. 1511 * </pre> 1512 * 1513 * <code>string group_id = 4;</code> 1514 * 1515 * @return The groupId. 1516 */ getGroupId()1517 java.lang.String getGroupId(); 1518 /** 1519 * 1520 * 1521 * <pre> 1522 * Maven `groupId` value used when uploading the artifact to Artifact 1523 * Registry. 1524 * </pre> 1525 * 1526 * <code>string group_id = 4;</code> 1527 * 1528 * @return The bytes for groupId. 1529 */ getGroupIdBytes()1530 com.google.protobuf.ByteString getGroupIdBytes(); 1531 1532 /** 1533 * 1534 * 1535 * <pre> 1536 * Maven `version` value used when uploading the artifact to Artifact 1537 * Registry. 1538 * </pre> 1539 * 1540 * <code>string version = 5;</code> 1541 * 1542 * @return The version. 1543 */ getVersion()1544 java.lang.String getVersion(); 1545 /** 1546 * 1547 * 1548 * <pre> 1549 * Maven `version` value used when uploading the artifact to Artifact 1550 * Registry. 1551 * </pre> 1552 * 1553 * <code>string version = 5;</code> 1554 * 1555 * @return The bytes for version. 1556 */ getVersionBytes()1557 com.google.protobuf.ByteString getVersionBytes(); 1558 } 1559 /** 1560 * 1561 * 1562 * <pre> 1563 * A Maven artifact to upload to Artifact Registry upon successful completion 1564 * of all build steps. 1565 * </pre> 1566 * 1567 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.MavenArtifact} 1568 */ 1569 public static final class MavenArtifact extends com.google.protobuf.GeneratedMessageV3 1570 implements 1571 // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) 1572 MavenArtifactOrBuilder { 1573 private static final long serialVersionUID = 0L; 1574 // Use MavenArtifact.newBuilder() to construct. MavenArtifact(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1575 private MavenArtifact(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 1576 super(builder); 1577 } 1578 MavenArtifact()1579 private MavenArtifact() { 1580 repository_ = ""; 1581 path_ = ""; 1582 artifactId_ = ""; 1583 groupId_ = ""; 1584 version_ = ""; 1585 } 1586 1587 @java.lang.Override 1588 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)1589 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 1590 return new MavenArtifact(); 1591 } 1592 1593 @java.lang.Override getUnknownFields()1594 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 1595 return this.unknownFields; 1596 } 1597 getDescriptor()1598 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1599 return com.google.cloudbuild.v1.Cloudbuild 1600 .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_descriptor; 1601 } 1602 1603 @java.lang.Override 1604 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1605 internalGetFieldAccessorTable() { 1606 return com.google.cloudbuild.v1.Cloudbuild 1607 .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_fieldAccessorTable 1608 .ensureFieldAccessorsInitialized( 1609 com.google.cloudbuild.v1.Artifacts.MavenArtifact.class, 1610 com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder.class); 1611 } 1612 1613 public static final int REPOSITORY_FIELD_NUMBER = 1; 1614 1615 @SuppressWarnings("serial") 1616 private volatile java.lang.Object repository_ = ""; 1617 /** 1618 * 1619 * 1620 * <pre> 1621 * Artifact Registry repository, in the form 1622 * "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" 1623 * Artifact in the workspace specified by path will be uploaded to 1624 * Artifact Registry with this location as a prefix. 1625 * </pre> 1626 * 1627 * <code>string repository = 1;</code> 1628 * 1629 * @return The repository. 1630 */ 1631 @java.lang.Override getRepository()1632 public java.lang.String getRepository() { 1633 java.lang.Object ref = repository_; 1634 if (ref instanceof java.lang.String) { 1635 return (java.lang.String) ref; 1636 } else { 1637 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1638 java.lang.String s = bs.toStringUtf8(); 1639 repository_ = s; 1640 return s; 1641 } 1642 } 1643 /** 1644 * 1645 * 1646 * <pre> 1647 * Artifact Registry repository, in the form 1648 * "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" 1649 * Artifact in the workspace specified by path will be uploaded to 1650 * Artifact Registry with this location as a prefix. 1651 * </pre> 1652 * 1653 * <code>string repository = 1;</code> 1654 * 1655 * @return The bytes for repository. 1656 */ 1657 @java.lang.Override getRepositoryBytes()1658 public com.google.protobuf.ByteString getRepositoryBytes() { 1659 java.lang.Object ref = repository_; 1660 if (ref instanceof java.lang.String) { 1661 com.google.protobuf.ByteString b = 1662 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1663 repository_ = b; 1664 return b; 1665 } else { 1666 return (com.google.protobuf.ByteString) ref; 1667 } 1668 } 1669 1670 public static final int PATH_FIELD_NUMBER = 2; 1671 1672 @SuppressWarnings("serial") 1673 private volatile java.lang.Object path_ = ""; 1674 /** 1675 * 1676 * 1677 * <pre> 1678 * Path to an artifact in the build's workspace to be uploaded to 1679 * Artifact Registry. 1680 * This can be either an absolute path, 1681 * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar 1682 * or a relative path from /workspace, 1683 * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. 1684 * </pre> 1685 * 1686 * <code>string path = 2;</code> 1687 * 1688 * @return The path. 1689 */ 1690 @java.lang.Override getPath()1691 public java.lang.String getPath() { 1692 java.lang.Object ref = path_; 1693 if (ref instanceof java.lang.String) { 1694 return (java.lang.String) ref; 1695 } else { 1696 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1697 java.lang.String s = bs.toStringUtf8(); 1698 path_ = s; 1699 return s; 1700 } 1701 } 1702 /** 1703 * 1704 * 1705 * <pre> 1706 * Path to an artifact in the build's workspace to be uploaded to 1707 * Artifact Registry. 1708 * This can be either an absolute path, 1709 * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar 1710 * or a relative path from /workspace, 1711 * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. 1712 * </pre> 1713 * 1714 * <code>string path = 2;</code> 1715 * 1716 * @return The bytes for path. 1717 */ 1718 @java.lang.Override getPathBytes()1719 public com.google.protobuf.ByteString getPathBytes() { 1720 java.lang.Object ref = path_; 1721 if (ref instanceof java.lang.String) { 1722 com.google.protobuf.ByteString b = 1723 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1724 path_ = b; 1725 return b; 1726 } else { 1727 return (com.google.protobuf.ByteString) ref; 1728 } 1729 } 1730 1731 public static final int ARTIFACT_ID_FIELD_NUMBER = 3; 1732 1733 @SuppressWarnings("serial") 1734 private volatile java.lang.Object artifactId_ = ""; 1735 /** 1736 * 1737 * 1738 * <pre> 1739 * Maven `artifactId` value used when uploading the artifact to Artifact 1740 * Registry. 1741 * </pre> 1742 * 1743 * <code>string artifact_id = 3;</code> 1744 * 1745 * @return The artifactId. 1746 */ 1747 @java.lang.Override getArtifactId()1748 public java.lang.String getArtifactId() { 1749 java.lang.Object ref = artifactId_; 1750 if (ref instanceof java.lang.String) { 1751 return (java.lang.String) ref; 1752 } else { 1753 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1754 java.lang.String s = bs.toStringUtf8(); 1755 artifactId_ = s; 1756 return s; 1757 } 1758 } 1759 /** 1760 * 1761 * 1762 * <pre> 1763 * Maven `artifactId` value used when uploading the artifact to Artifact 1764 * Registry. 1765 * </pre> 1766 * 1767 * <code>string artifact_id = 3;</code> 1768 * 1769 * @return The bytes for artifactId. 1770 */ 1771 @java.lang.Override getArtifactIdBytes()1772 public com.google.protobuf.ByteString getArtifactIdBytes() { 1773 java.lang.Object ref = artifactId_; 1774 if (ref instanceof java.lang.String) { 1775 com.google.protobuf.ByteString b = 1776 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1777 artifactId_ = b; 1778 return b; 1779 } else { 1780 return (com.google.protobuf.ByteString) ref; 1781 } 1782 } 1783 1784 public static final int GROUP_ID_FIELD_NUMBER = 4; 1785 1786 @SuppressWarnings("serial") 1787 private volatile java.lang.Object groupId_ = ""; 1788 /** 1789 * 1790 * 1791 * <pre> 1792 * Maven `groupId` value used when uploading the artifact to Artifact 1793 * Registry. 1794 * </pre> 1795 * 1796 * <code>string group_id = 4;</code> 1797 * 1798 * @return The groupId. 1799 */ 1800 @java.lang.Override getGroupId()1801 public java.lang.String getGroupId() { 1802 java.lang.Object ref = groupId_; 1803 if (ref instanceof java.lang.String) { 1804 return (java.lang.String) ref; 1805 } else { 1806 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1807 java.lang.String s = bs.toStringUtf8(); 1808 groupId_ = s; 1809 return s; 1810 } 1811 } 1812 /** 1813 * 1814 * 1815 * <pre> 1816 * Maven `groupId` value used when uploading the artifact to Artifact 1817 * Registry. 1818 * </pre> 1819 * 1820 * <code>string group_id = 4;</code> 1821 * 1822 * @return The bytes for groupId. 1823 */ 1824 @java.lang.Override getGroupIdBytes()1825 public com.google.protobuf.ByteString getGroupIdBytes() { 1826 java.lang.Object ref = groupId_; 1827 if (ref instanceof java.lang.String) { 1828 com.google.protobuf.ByteString b = 1829 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1830 groupId_ = b; 1831 return b; 1832 } else { 1833 return (com.google.protobuf.ByteString) ref; 1834 } 1835 } 1836 1837 public static final int VERSION_FIELD_NUMBER = 5; 1838 1839 @SuppressWarnings("serial") 1840 private volatile java.lang.Object version_ = ""; 1841 /** 1842 * 1843 * 1844 * <pre> 1845 * Maven `version` value used when uploading the artifact to Artifact 1846 * Registry. 1847 * </pre> 1848 * 1849 * <code>string version = 5;</code> 1850 * 1851 * @return The version. 1852 */ 1853 @java.lang.Override getVersion()1854 public java.lang.String getVersion() { 1855 java.lang.Object ref = version_; 1856 if (ref instanceof java.lang.String) { 1857 return (java.lang.String) ref; 1858 } else { 1859 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1860 java.lang.String s = bs.toStringUtf8(); 1861 version_ = s; 1862 return s; 1863 } 1864 } 1865 /** 1866 * 1867 * 1868 * <pre> 1869 * Maven `version` value used when uploading the artifact to Artifact 1870 * Registry. 1871 * </pre> 1872 * 1873 * <code>string version = 5;</code> 1874 * 1875 * @return The bytes for version. 1876 */ 1877 @java.lang.Override getVersionBytes()1878 public com.google.protobuf.ByteString getVersionBytes() { 1879 java.lang.Object ref = version_; 1880 if (ref instanceof java.lang.String) { 1881 com.google.protobuf.ByteString b = 1882 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1883 version_ = b; 1884 return b; 1885 } else { 1886 return (com.google.protobuf.ByteString) ref; 1887 } 1888 } 1889 1890 private byte memoizedIsInitialized = -1; 1891 1892 @java.lang.Override isInitialized()1893 public final boolean isInitialized() { 1894 byte isInitialized = memoizedIsInitialized; 1895 if (isInitialized == 1) return true; 1896 if (isInitialized == 0) return false; 1897 1898 memoizedIsInitialized = 1; 1899 return true; 1900 } 1901 1902 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1903 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1904 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { 1905 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); 1906 } 1907 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { 1908 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); 1909 } 1910 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactId_)) { 1911 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, artifactId_); 1912 } 1913 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { 1914 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, groupId_); 1915 } 1916 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { 1917 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); 1918 } 1919 getUnknownFields().writeTo(output); 1920 } 1921 1922 @java.lang.Override getSerializedSize()1923 public int getSerializedSize() { 1924 int size = memoizedSize; 1925 if (size != -1) return size; 1926 1927 size = 0; 1928 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { 1929 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_); 1930 } 1931 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { 1932 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); 1933 } 1934 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactId_)) { 1935 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, artifactId_); 1936 } 1937 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { 1938 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, groupId_); 1939 } 1940 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { 1941 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); 1942 } 1943 size += getUnknownFields().getSerializedSize(); 1944 memoizedSize = size; 1945 return size; 1946 } 1947 1948 @java.lang.Override equals(final java.lang.Object obj)1949 public boolean equals(final java.lang.Object obj) { 1950 if (obj == this) { 1951 return true; 1952 } 1953 if (!(obj instanceof com.google.cloudbuild.v1.Artifacts.MavenArtifact)) { 1954 return super.equals(obj); 1955 } 1956 com.google.cloudbuild.v1.Artifacts.MavenArtifact other = 1957 (com.google.cloudbuild.v1.Artifacts.MavenArtifact) obj; 1958 1959 if (!getRepository().equals(other.getRepository())) return false; 1960 if (!getPath().equals(other.getPath())) return false; 1961 if (!getArtifactId().equals(other.getArtifactId())) return false; 1962 if (!getGroupId().equals(other.getGroupId())) return false; 1963 if (!getVersion().equals(other.getVersion())) return false; 1964 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1965 return true; 1966 } 1967 1968 @java.lang.Override hashCode()1969 public int hashCode() { 1970 if (memoizedHashCode != 0) { 1971 return memoizedHashCode; 1972 } 1973 int hash = 41; 1974 hash = (19 * hash) + getDescriptor().hashCode(); 1975 hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; 1976 hash = (53 * hash) + getRepository().hashCode(); 1977 hash = (37 * hash) + PATH_FIELD_NUMBER; 1978 hash = (53 * hash) + getPath().hashCode(); 1979 hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; 1980 hash = (53 * hash) + getArtifactId().hashCode(); 1981 hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; 1982 hash = (53 * hash) + getGroupId().hashCode(); 1983 hash = (37 * hash) + VERSION_FIELD_NUMBER; 1984 hash = (53 * hash) + getVersion().hashCode(); 1985 hash = (29 * hash) + getUnknownFields().hashCode(); 1986 memoizedHashCode = hash; 1987 return hash; 1988 } 1989 parseFrom( java.nio.ByteBuffer data)1990 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( 1991 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 1992 return PARSER.parseFrom(data); 1993 } 1994 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1995 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( 1996 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1997 throws com.google.protobuf.InvalidProtocolBufferException { 1998 return PARSER.parseFrom(data, extensionRegistry); 1999 } 2000 parseFrom( com.google.protobuf.ByteString data)2001 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( 2002 com.google.protobuf.ByteString data) 2003 throws com.google.protobuf.InvalidProtocolBufferException { 2004 return PARSER.parseFrom(data); 2005 } 2006 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2007 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( 2008 com.google.protobuf.ByteString data, 2009 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2010 throws com.google.protobuf.InvalidProtocolBufferException { 2011 return PARSER.parseFrom(data, extensionRegistry); 2012 } 2013 parseFrom(byte[] data)2014 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom(byte[] data) 2015 throws com.google.protobuf.InvalidProtocolBufferException { 2016 return PARSER.parseFrom(data); 2017 } 2018 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2019 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( 2020 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2021 throws com.google.protobuf.InvalidProtocolBufferException { 2022 return PARSER.parseFrom(data, extensionRegistry); 2023 } 2024 parseFrom( java.io.InputStream input)2025 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( 2026 java.io.InputStream input) throws java.io.IOException { 2027 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2028 } 2029 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2030 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( 2031 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2032 throws java.io.IOException { 2033 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2034 PARSER, input, extensionRegistry); 2035 } 2036 parseDelimitedFrom( java.io.InputStream input)2037 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseDelimitedFrom( 2038 java.io.InputStream input) throws java.io.IOException { 2039 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2040 } 2041 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2042 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseDelimitedFrom( 2043 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2044 throws java.io.IOException { 2045 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2046 PARSER, input, extensionRegistry); 2047 } 2048 parseFrom( com.google.protobuf.CodedInputStream input)2049 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( 2050 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2051 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2052 } 2053 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2054 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( 2055 com.google.protobuf.CodedInputStream input, 2056 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2057 throws java.io.IOException { 2058 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2059 PARSER, input, extensionRegistry); 2060 } 2061 2062 @java.lang.Override newBuilderForType()2063 public Builder newBuilderForType() { 2064 return newBuilder(); 2065 } 2066 newBuilder()2067 public static Builder newBuilder() { 2068 return DEFAULT_INSTANCE.toBuilder(); 2069 } 2070 newBuilder(com.google.cloudbuild.v1.Artifacts.MavenArtifact prototype)2071 public static Builder newBuilder(com.google.cloudbuild.v1.Artifacts.MavenArtifact prototype) { 2072 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2073 } 2074 2075 @java.lang.Override toBuilder()2076 public Builder toBuilder() { 2077 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2078 } 2079 2080 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2081 protected Builder newBuilderForType( 2082 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2083 Builder builder = new Builder(parent); 2084 return builder; 2085 } 2086 /** 2087 * 2088 * 2089 * <pre> 2090 * A Maven artifact to upload to Artifact Registry upon successful completion 2091 * of all build steps. 2092 * </pre> 2093 * 2094 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.MavenArtifact} 2095 */ 2096 public static final class Builder 2097 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2098 implements 2099 // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) 2100 com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder { getDescriptor()2101 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2102 return com.google.cloudbuild.v1.Cloudbuild 2103 .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_descriptor; 2104 } 2105 2106 @java.lang.Override 2107 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2108 internalGetFieldAccessorTable() { 2109 return com.google.cloudbuild.v1.Cloudbuild 2110 .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_fieldAccessorTable 2111 .ensureFieldAccessorsInitialized( 2112 com.google.cloudbuild.v1.Artifacts.MavenArtifact.class, 2113 com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder.class); 2114 } 2115 2116 // Construct using com.google.cloudbuild.v1.Artifacts.MavenArtifact.newBuilder() Builder()2117 private Builder() {} 2118 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2119 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2120 super(parent); 2121 } 2122 2123 @java.lang.Override clear()2124 public Builder clear() { 2125 super.clear(); 2126 bitField0_ = 0; 2127 repository_ = ""; 2128 path_ = ""; 2129 artifactId_ = ""; 2130 groupId_ = ""; 2131 version_ = ""; 2132 return this; 2133 } 2134 2135 @java.lang.Override getDescriptorForType()2136 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2137 return com.google.cloudbuild.v1.Cloudbuild 2138 .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_descriptor; 2139 } 2140 2141 @java.lang.Override getDefaultInstanceForType()2142 public com.google.cloudbuild.v1.Artifacts.MavenArtifact getDefaultInstanceForType() { 2143 return com.google.cloudbuild.v1.Artifacts.MavenArtifact.getDefaultInstance(); 2144 } 2145 2146 @java.lang.Override build()2147 public com.google.cloudbuild.v1.Artifacts.MavenArtifact build() { 2148 com.google.cloudbuild.v1.Artifacts.MavenArtifact result = buildPartial(); 2149 if (!result.isInitialized()) { 2150 throw newUninitializedMessageException(result); 2151 } 2152 return result; 2153 } 2154 2155 @java.lang.Override buildPartial()2156 public com.google.cloudbuild.v1.Artifacts.MavenArtifact buildPartial() { 2157 com.google.cloudbuild.v1.Artifacts.MavenArtifact result = 2158 new com.google.cloudbuild.v1.Artifacts.MavenArtifact(this); 2159 if (bitField0_ != 0) { 2160 buildPartial0(result); 2161 } 2162 onBuilt(); 2163 return result; 2164 } 2165 buildPartial0(com.google.cloudbuild.v1.Artifacts.MavenArtifact result)2166 private void buildPartial0(com.google.cloudbuild.v1.Artifacts.MavenArtifact result) { 2167 int from_bitField0_ = bitField0_; 2168 if (((from_bitField0_ & 0x00000001) != 0)) { 2169 result.repository_ = repository_; 2170 } 2171 if (((from_bitField0_ & 0x00000002) != 0)) { 2172 result.path_ = path_; 2173 } 2174 if (((from_bitField0_ & 0x00000004) != 0)) { 2175 result.artifactId_ = artifactId_; 2176 } 2177 if (((from_bitField0_ & 0x00000008) != 0)) { 2178 result.groupId_ = groupId_; 2179 } 2180 if (((from_bitField0_ & 0x00000010) != 0)) { 2181 result.version_ = version_; 2182 } 2183 } 2184 2185 @java.lang.Override clone()2186 public Builder clone() { 2187 return super.clone(); 2188 } 2189 2190 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2191 public Builder setField( 2192 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2193 return super.setField(field, value); 2194 } 2195 2196 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2197 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2198 return super.clearField(field); 2199 } 2200 2201 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2202 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2203 return super.clearOneof(oneof); 2204 } 2205 2206 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2207 public Builder setRepeatedField( 2208 com.google.protobuf.Descriptors.FieldDescriptor field, 2209 int index, 2210 java.lang.Object value) { 2211 return super.setRepeatedField(field, index, value); 2212 } 2213 2214 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2215 public Builder addRepeatedField( 2216 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2217 return super.addRepeatedField(field, value); 2218 } 2219 2220 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2221 public Builder mergeFrom(com.google.protobuf.Message other) { 2222 if (other instanceof com.google.cloudbuild.v1.Artifacts.MavenArtifact) { 2223 return mergeFrom((com.google.cloudbuild.v1.Artifacts.MavenArtifact) other); 2224 } else { 2225 super.mergeFrom(other); 2226 return this; 2227 } 2228 } 2229 mergeFrom(com.google.cloudbuild.v1.Artifacts.MavenArtifact other)2230 public Builder mergeFrom(com.google.cloudbuild.v1.Artifacts.MavenArtifact other) { 2231 if (other == com.google.cloudbuild.v1.Artifacts.MavenArtifact.getDefaultInstance()) 2232 return this; 2233 if (!other.getRepository().isEmpty()) { 2234 repository_ = other.repository_; 2235 bitField0_ |= 0x00000001; 2236 onChanged(); 2237 } 2238 if (!other.getPath().isEmpty()) { 2239 path_ = other.path_; 2240 bitField0_ |= 0x00000002; 2241 onChanged(); 2242 } 2243 if (!other.getArtifactId().isEmpty()) { 2244 artifactId_ = other.artifactId_; 2245 bitField0_ |= 0x00000004; 2246 onChanged(); 2247 } 2248 if (!other.getGroupId().isEmpty()) { 2249 groupId_ = other.groupId_; 2250 bitField0_ |= 0x00000008; 2251 onChanged(); 2252 } 2253 if (!other.getVersion().isEmpty()) { 2254 version_ = other.version_; 2255 bitField0_ |= 0x00000010; 2256 onChanged(); 2257 } 2258 this.mergeUnknownFields(other.getUnknownFields()); 2259 onChanged(); 2260 return this; 2261 } 2262 2263 @java.lang.Override isInitialized()2264 public final boolean isInitialized() { 2265 return true; 2266 } 2267 2268 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2269 public Builder mergeFrom( 2270 com.google.protobuf.CodedInputStream input, 2271 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2272 throws java.io.IOException { 2273 if (extensionRegistry == null) { 2274 throw new java.lang.NullPointerException(); 2275 } 2276 try { 2277 boolean done = false; 2278 while (!done) { 2279 int tag = input.readTag(); 2280 switch (tag) { 2281 case 0: 2282 done = true; 2283 break; 2284 case 10: 2285 { 2286 repository_ = input.readStringRequireUtf8(); 2287 bitField0_ |= 0x00000001; 2288 break; 2289 } // case 10 2290 case 18: 2291 { 2292 path_ = input.readStringRequireUtf8(); 2293 bitField0_ |= 0x00000002; 2294 break; 2295 } // case 18 2296 case 26: 2297 { 2298 artifactId_ = input.readStringRequireUtf8(); 2299 bitField0_ |= 0x00000004; 2300 break; 2301 } // case 26 2302 case 34: 2303 { 2304 groupId_ = input.readStringRequireUtf8(); 2305 bitField0_ |= 0x00000008; 2306 break; 2307 } // case 34 2308 case 42: 2309 { 2310 version_ = input.readStringRequireUtf8(); 2311 bitField0_ |= 0x00000010; 2312 break; 2313 } // case 42 2314 default: 2315 { 2316 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2317 done = true; // was an endgroup tag 2318 } 2319 break; 2320 } // default: 2321 } // switch (tag) 2322 } // while (!done) 2323 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2324 throw e.unwrapIOException(); 2325 } finally { 2326 onChanged(); 2327 } // finally 2328 return this; 2329 } 2330 2331 private int bitField0_; 2332 2333 private java.lang.Object repository_ = ""; 2334 /** 2335 * 2336 * 2337 * <pre> 2338 * Artifact Registry repository, in the form 2339 * "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" 2340 * Artifact in the workspace specified by path will be uploaded to 2341 * Artifact Registry with this location as a prefix. 2342 * </pre> 2343 * 2344 * <code>string repository = 1;</code> 2345 * 2346 * @return The repository. 2347 */ getRepository()2348 public java.lang.String getRepository() { 2349 java.lang.Object ref = repository_; 2350 if (!(ref instanceof java.lang.String)) { 2351 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2352 java.lang.String s = bs.toStringUtf8(); 2353 repository_ = s; 2354 return s; 2355 } else { 2356 return (java.lang.String) ref; 2357 } 2358 } 2359 /** 2360 * 2361 * 2362 * <pre> 2363 * Artifact Registry repository, in the form 2364 * "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" 2365 * Artifact in the workspace specified by path will be uploaded to 2366 * Artifact Registry with this location as a prefix. 2367 * </pre> 2368 * 2369 * <code>string repository = 1;</code> 2370 * 2371 * @return The bytes for repository. 2372 */ getRepositoryBytes()2373 public com.google.protobuf.ByteString getRepositoryBytes() { 2374 java.lang.Object ref = repository_; 2375 if (ref instanceof String) { 2376 com.google.protobuf.ByteString b = 2377 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2378 repository_ = b; 2379 return b; 2380 } else { 2381 return (com.google.protobuf.ByteString) ref; 2382 } 2383 } 2384 /** 2385 * 2386 * 2387 * <pre> 2388 * Artifact Registry repository, in the form 2389 * "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" 2390 * Artifact in the workspace specified by path will be uploaded to 2391 * Artifact Registry with this location as a prefix. 2392 * </pre> 2393 * 2394 * <code>string repository = 1;</code> 2395 * 2396 * @param value The repository to set. 2397 * @return This builder for chaining. 2398 */ setRepository(java.lang.String value)2399 public Builder setRepository(java.lang.String value) { 2400 if (value == null) { 2401 throw new NullPointerException(); 2402 } 2403 repository_ = value; 2404 bitField0_ |= 0x00000001; 2405 onChanged(); 2406 return this; 2407 } 2408 /** 2409 * 2410 * 2411 * <pre> 2412 * Artifact Registry repository, in the form 2413 * "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" 2414 * Artifact in the workspace specified by path will be uploaded to 2415 * Artifact Registry with this location as a prefix. 2416 * </pre> 2417 * 2418 * <code>string repository = 1;</code> 2419 * 2420 * @return This builder for chaining. 2421 */ clearRepository()2422 public Builder clearRepository() { 2423 repository_ = getDefaultInstance().getRepository(); 2424 bitField0_ = (bitField0_ & ~0x00000001); 2425 onChanged(); 2426 return this; 2427 } 2428 /** 2429 * 2430 * 2431 * <pre> 2432 * Artifact Registry repository, in the form 2433 * "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" 2434 * Artifact in the workspace specified by path will be uploaded to 2435 * Artifact Registry with this location as a prefix. 2436 * </pre> 2437 * 2438 * <code>string repository = 1;</code> 2439 * 2440 * @param value The bytes for repository to set. 2441 * @return This builder for chaining. 2442 */ setRepositoryBytes(com.google.protobuf.ByteString value)2443 public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { 2444 if (value == null) { 2445 throw new NullPointerException(); 2446 } 2447 checkByteStringIsUtf8(value); 2448 repository_ = value; 2449 bitField0_ |= 0x00000001; 2450 onChanged(); 2451 return this; 2452 } 2453 2454 private java.lang.Object path_ = ""; 2455 /** 2456 * 2457 * 2458 * <pre> 2459 * Path to an artifact in the build's workspace to be uploaded to 2460 * Artifact Registry. 2461 * This can be either an absolute path, 2462 * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar 2463 * or a relative path from /workspace, 2464 * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. 2465 * </pre> 2466 * 2467 * <code>string path = 2;</code> 2468 * 2469 * @return The path. 2470 */ getPath()2471 public java.lang.String getPath() { 2472 java.lang.Object ref = path_; 2473 if (!(ref instanceof java.lang.String)) { 2474 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2475 java.lang.String s = bs.toStringUtf8(); 2476 path_ = s; 2477 return s; 2478 } else { 2479 return (java.lang.String) ref; 2480 } 2481 } 2482 /** 2483 * 2484 * 2485 * <pre> 2486 * Path to an artifact in the build's workspace to be uploaded to 2487 * Artifact Registry. 2488 * This can be either an absolute path, 2489 * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar 2490 * or a relative path from /workspace, 2491 * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. 2492 * </pre> 2493 * 2494 * <code>string path = 2;</code> 2495 * 2496 * @return The bytes for path. 2497 */ getPathBytes()2498 public com.google.protobuf.ByteString getPathBytes() { 2499 java.lang.Object ref = path_; 2500 if (ref instanceof String) { 2501 com.google.protobuf.ByteString b = 2502 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2503 path_ = b; 2504 return b; 2505 } else { 2506 return (com.google.protobuf.ByteString) ref; 2507 } 2508 } 2509 /** 2510 * 2511 * 2512 * <pre> 2513 * Path to an artifact in the build's workspace to be uploaded to 2514 * Artifact Registry. 2515 * This can be either an absolute path, 2516 * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar 2517 * or a relative path from /workspace, 2518 * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. 2519 * </pre> 2520 * 2521 * <code>string path = 2;</code> 2522 * 2523 * @param value The path to set. 2524 * @return This builder for chaining. 2525 */ setPath(java.lang.String value)2526 public Builder setPath(java.lang.String value) { 2527 if (value == null) { 2528 throw new NullPointerException(); 2529 } 2530 path_ = value; 2531 bitField0_ |= 0x00000002; 2532 onChanged(); 2533 return this; 2534 } 2535 /** 2536 * 2537 * 2538 * <pre> 2539 * Path to an artifact in the build's workspace to be uploaded to 2540 * Artifact Registry. 2541 * This can be either an absolute path, 2542 * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar 2543 * or a relative path from /workspace, 2544 * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. 2545 * </pre> 2546 * 2547 * <code>string path = 2;</code> 2548 * 2549 * @return This builder for chaining. 2550 */ clearPath()2551 public Builder clearPath() { 2552 path_ = getDefaultInstance().getPath(); 2553 bitField0_ = (bitField0_ & ~0x00000002); 2554 onChanged(); 2555 return this; 2556 } 2557 /** 2558 * 2559 * 2560 * <pre> 2561 * Path to an artifact in the build's workspace to be uploaded to 2562 * Artifact Registry. 2563 * This can be either an absolute path, 2564 * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar 2565 * or a relative path from /workspace, 2566 * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. 2567 * </pre> 2568 * 2569 * <code>string path = 2;</code> 2570 * 2571 * @param value The bytes for path to set. 2572 * @return This builder for chaining. 2573 */ setPathBytes(com.google.protobuf.ByteString value)2574 public Builder setPathBytes(com.google.protobuf.ByteString value) { 2575 if (value == null) { 2576 throw new NullPointerException(); 2577 } 2578 checkByteStringIsUtf8(value); 2579 path_ = value; 2580 bitField0_ |= 0x00000002; 2581 onChanged(); 2582 return this; 2583 } 2584 2585 private java.lang.Object artifactId_ = ""; 2586 /** 2587 * 2588 * 2589 * <pre> 2590 * Maven `artifactId` value used when uploading the artifact to Artifact 2591 * Registry. 2592 * </pre> 2593 * 2594 * <code>string artifact_id = 3;</code> 2595 * 2596 * @return The artifactId. 2597 */ getArtifactId()2598 public java.lang.String getArtifactId() { 2599 java.lang.Object ref = artifactId_; 2600 if (!(ref instanceof java.lang.String)) { 2601 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2602 java.lang.String s = bs.toStringUtf8(); 2603 artifactId_ = s; 2604 return s; 2605 } else { 2606 return (java.lang.String) ref; 2607 } 2608 } 2609 /** 2610 * 2611 * 2612 * <pre> 2613 * Maven `artifactId` value used when uploading the artifact to Artifact 2614 * Registry. 2615 * </pre> 2616 * 2617 * <code>string artifact_id = 3;</code> 2618 * 2619 * @return The bytes for artifactId. 2620 */ getArtifactIdBytes()2621 public com.google.protobuf.ByteString getArtifactIdBytes() { 2622 java.lang.Object ref = artifactId_; 2623 if (ref instanceof String) { 2624 com.google.protobuf.ByteString b = 2625 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2626 artifactId_ = b; 2627 return b; 2628 } else { 2629 return (com.google.protobuf.ByteString) ref; 2630 } 2631 } 2632 /** 2633 * 2634 * 2635 * <pre> 2636 * Maven `artifactId` value used when uploading the artifact to Artifact 2637 * Registry. 2638 * </pre> 2639 * 2640 * <code>string artifact_id = 3;</code> 2641 * 2642 * @param value The artifactId to set. 2643 * @return This builder for chaining. 2644 */ setArtifactId(java.lang.String value)2645 public Builder setArtifactId(java.lang.String value) { 2646 if (value == null) { 2647 throw new NullPointerException(); 2648 } 2649 artifactId_ = value; 2650 bitField0_ |= 0x00000004; 2651 onChanged(); 2652 return this; 2653 } 2654 /** 2655 * 2656 * 2657 * <pre> 2658 * Maven `artifactId` value used when uploading the artifact to Artifact 2659 * Registry. 2660 * </pre> 2661 * 2662 * <code>string artifact_id = 3;</code> 2663 * 2664 * @return This builder for chaining. 2665 */ clearArtifactId()2666 public Builder clearArtifactId() { 2667 artifactId_ = getDefaultInstance().getArtifactId(); 2668 bitField0_ = (bitField0_ & ~0x00000004); 2669 onChanged(); 2670 return this; 2671 } 2672 /** 2673 * 2674 * 2675 * <pre> 2676 * Maven `artifactId` value used when uploading the artifact to Artifact 2677 * Registry. 2678 * </pre> 2679 * 2680 * <code>string artifact_id = 3;</code> 2681 * 2682 * @param value The bytes for artifactId to set. 2683 * @return This builder for chaining. 2684 */ setArtifactIdBytes(com.google.protobuf.ByteString value)2685 public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { 2686 if (value == null) { 2687 throw new NullPointerException(); 2688 } 2689 checkByteStringIsUtf8(value); 2690 artifactId_ = value; 2691 bitField0_ |= 0x00000004; 2692 onChanged(); 2693 return this; 2694 } 2695 2696 private java.lang.Object groupId_ = ""; 2697 /** 2698 * 2699 * 2700 * <pre> 2701 * Maven `groupId` value used when uploading the artifact to Artifact 2702 * Registry. 2703 * </pre> 2704 * 2705 * <code>string group_id = 4;</code> 2706 * 2707 * @return The groupId. 2708 */ getGroupId()2709 public java.lang.String getGroupId() { 2710 java.lang.Object ref = groupId_; 2711 if (!(ref instanceof java.lang.String)) { 2712 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2713 java.lang.String s = bs.toStringUtf8(); 2714 groupId_ = s; 2715 return s; 2716 } else { 2717 return (java.lang.String) ref; 2718 } 2719 } 2720 /** 2721 * 2722 * 2723 * <pre> 2724 * Maven `groupId` value used when uploading the artifact to Artifact 2725 * Registry. 2726 * </pre> 2727 * 2728 * <code>string group_id = 4;</code> 2729 * 2730 * @return The bytes for groupId. 2731 */ getGroupIdBytes()2732 public com.google.protobuf.ByteString getGroupIdBytes() { 2733 java.lang.Object ref = groupId_; 2734 if (ref instanceof String) { 2735 com.google.protobuf.ByteString b = 2736 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2737 groupId_ = b; 2738 return b; 2739 } else { 2740 return (com.google.protobuf.ByteString) ref; 2741 } 2742 } 2743 /** 2744 * 2745 * 2746 * <pre> 2747 * Maven `groupId` value used when uploading the artifact to Artifact 2748 * Registry. 2749 * </pre> 2750 * 2751 * <code>string group_id = 4;</code> 2752 * 2753 * @param value The groupId to set. 2754 * @return This builder for chaining. 2755 */ setGroupId(java.lang.String value)2756 public Builder setGroupId(java.lang.String value) { 2757 if (value == null) { 2758 throw new NullPointerException(); 2759 } 2760 groupId_ = value; 2761 bitField0_ |= 0x00000008; 2762 onChanged(); 2763 return this; 2764 } 2765 /** 2766 * 2767 * 2768 * <pre> 2769 * Maven `groupId` value used when uploading the artifact to Artifact 2770 * Registry. 2771 * </pre> 2772 * 2773 * <code>string group_id = 4;</code> 2774 * 2775 * @return This builder for chaining. 2776 */ clearGroupId()2777 public Builder clearGroupId() { 2778 groupId_ = getDefaultInstance().getGroupId(); 2779 bitField0_ = (bitField0_ & ~0x00000008); 2780 onChanged(); 2781 return this; 2782 } 2783 /** 2784 * 2785 * 2786 * <pre> 2787 * Maven `groupId` value used when uploading the artifact to Artifact 2788 * Registry. 2789 * </pre> 2790 * 2791 * <code>string group_id = 4;</code> 2792 * 2793 * @param value The bytes for groupId to set. 2794 * @return This builder for chaining. 2795 */ setGroupIdBytes(com.google.protobuf.ByteString value)2796 public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { 2797 if (value == null) { 2798 throw new NullPointerException(); 2799 } 2800 checkByteStringIsUtf8(value); 2801 groupId_ = value; 2802 bitField0_ |= 0x00000008; 2803 onChanged(); 2804 return this; 2805 } 2806 2807 private java.lang.Object version_ = ""; 2808 /** 2809 * 2810 * 2811 * <pre> 2812 * Maven `version` value used when uploading the artifact to Artifact 2813 * Registry. 2814 * </pre> 2815 * 2816 * <code>string version = 5;</code> 2817 * 2818 * @return The version. 2819 */ getVersion()2820 public java.lang.String getVersion() { 2821 java.lang.Object ref = version_; 2822 if (!(ref instanceof java.lang.String)) { 2823 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2824 java.lang.String s = bs.toStringUtf8(); 2825 version_ = s; 2826 return s; 2827 } else { 2828 return (java.lang.String) ref; 2829 } 2830 } 2831 /** 2832 * 2833 * 2834 * <pre> 2835 * Maven `version` value used when uploading the artifact to Artifact 2836 * Registry. 2837 * </pre> 2838 * 2839 * <code>string version = 5;</code> 2840 * 2841 * @return The bytes for version. 2842 */ getVersionBytes()2843 public com.google.protobuf.ByteString getVersionBytes() { 2844 java.lang.Object ref = version_; 2845 if (ref instanceof String) { 2846 com.google.protobuf.ByteString b = 2847 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2848 version_ = b; 2849 return b; 2850 } else { 2851 return (com.google.protobuf.ByteString) ref; 2852 } 2853 } 2854 /** 2855 * 2856 * 2857 * <pre> 2858 * Maven `version` value used when uploading the artifact to Artifact 2859 * Registry. 2860 * </pre> 2861 * 2862 * <code>string version = 5;</code> 2863 * 2864 * @param value The version to set. 2865 * @return This builder for chaining. 2866 */ setVersion(java.lang.String value)2867 public Builder setVersion(java.lang.String value) { 2868 if (value == null) { 2869 throw new NullPointerException(); 2870 } 2871 version_ = value; 2872 bitField0_ |= 0x00000010; 2873 onChanged(); 2874 return this; 2875 } 2876 /** 2877 * 2878 * 2879 * <pre> 2880 * Maven `version` value used when uploading the artifact to Artifact 2881 * Registry. 2882 * </pre> 2883 * 2884 * <code>string version = 5;</code> 2885 * 2886 * @return This builder for chaining. 2887 */ clearVersion()2888 public Builder clearVersion() { 2889 version_ = getDefaultInstance().getVersion(); 2890 bitField0_ = (bitField0_ & ~0x00000010); 2891 onChanged(); 2892 return this; 2893 } 2894 /** 2895 * 2896 * 2897 * <pre> 2898 * Maven `version` value used when uploading the artifact to Artifact 2899 * Registry. 2900 * </pre> 2901 * 2902 * <code>string version = 5;</code> 2903 * 2904 * @param value The bytes for version to set. 2905 * @return This builder for chaining. 2906 */ setVersionBytes(com.google.protobuf.ByteString value)2907 public Builder setVersionBytes(com.google.protobuf.ByteString value) { 2908 if (value == null) { 2909 throw new NullPointerException(); 2910 } 2911 checkByteStringIsUtf8(value); 2912 version_ = value; 2913 bitField0_ |= 0x00000010; 2914 onChanged(); 2915 return this; 2916 } 2917 2918 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2919 public final Builder setUnknownFields( 2920 final com.google.protobuf.UnknownFieldSet unknownFields) { 2921 return super.setUnknownFields(unknownFields); 2922 } 2923 2924 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2925 public final Builder mergeUnknownFields( 2926 final com.google.protobuf.UnknownFieldSet unknownFields) { 2927 return super.mergeUnknownFields(unknownFields); 2928 } 2929 2930 // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) 2931 } 2932 2933 // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) 2934 private static final com.google.cloudbuild.v1.Artifacts.MavenArtifact DEFAULT_INSTANCE; 2935 2936 static { 2937 DEFAULT_INSTANCE = new com.google.cloudbuild.v1.Artifacts.MavenArtifact(); 2938 } 2939 getDefaultInstance()2940 public static com.google.cloudbuild.v1.Artifacts.MavenArtifact getDefaultInstance() { 2941 return DEFAULT_INSTANCE; 2942 } 2943 2944 private static final com.google.protobuf.Parser<MavenArtifact> PARSER = 2945 new com.google.protobuf.AbstractParser<MavenArtifact>() { 2946 @java.lang.Override 2947 public MavenArtifact parsePartialFrom( 2948 com.google.protobuf.CodedInputStream input, 2949 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2950 throws com.google.protobuf.InvalidProtocolBufferException { 2951 Builder builder = newBuilder(); 2952 try { 2953 builder.mergeFrom(input, extensionRegistry); 2954 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2955 throw e.setUnfinishedMessage(builder.buildPartial()); 2956 } catch (com.google.protobuf.UninitializedMessageException e) { 2957 throw e.asInvalidProtocolBufferException() 2958 .setUnfinishedMessage(builder.buildPartial()); 2959 } catch (java.io.IOException e) { 2960 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2961 .setUnfinishedMessage(builder.buildPartial()); 2962 } 2963 return builder.buildPartial(); 2964 } 2965 }; 2966 parser()2967 public static com.google.protobuf.Parser<MavenArtifact> parser() { 2968 return PARSER; 2969 } 2970 2971 @java.lang.Override getParserForType()2972 public com.google.protobuf.Parser<MavenArtifact> getParserForType() { 2973 return PARSER; 2974 } 2975 2976 @java.lang.Override getDefaultInstanceForType()2977 public com.google.cloudbuild.v1.Artifacts.MavenArtifact getDefaultInstanceForType() { 2978 return DEFAULT_INSTANCE; 2979 } 2980 } 2981 2982 public interface PythonPackageOrBuilder 2983 extends 2984 // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) 2985 com.google.protobuf.MessageOrBuilder { 2986 2987 /** 2988 * 2989 * 2990 * <pre> 2991 * Artifact Registry repository, in the form 2992 * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" 2993 * Files in the workspace matching any path pattern will be uploaded to 2994 * Artifact Registry with this location as a prefix. 2995 * </pre> 2996 * 2997 * <code>string repository = 1;</code> 2998 * 2999 * @return The repository. 3000 */ getRepository()3001 java.lang.String getRepository(); 3002 /** 3003 * 3004 * 3005 * <pre> 3006 * Artifact Registry repository, in the form 3007 * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" 3008 * Files in the workspace matching any path pattern will be uploaded to 3009 * Artifact Registry with this location as a prefix. 3010 * </pre> 3011 * 3012 * <code>string repository = 1;</code> 3013 * 3014 * @return The bytes for repository. 3015 */ getRepositoryBytes()3016 com.google.protobuf.ByteString getRepositoryBytes(); 3017 3018 /** 3019 * 3020 * 3021 * <pre> 3022 * Path globs used to match files in the build's workspace. For Python/ 3023 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3024 * file. 3025 * </pre> 3026 * 3027 * <code>repeated string paths = 2;</code> 3028 * 3029 * @return A list containing the paths. 3030 */ getPathsList()3031 java.util.List<java.lang.String> getPathsList(); 3032 /** 3033 * 3034 * 3035 * <pre> 3036 * Path globs used to match files in the build's workspace. For Python/ 3037 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3038 * file. 3039 * </pre> 3040 * 3041 * <code>repeated string paths = 2;</code> 3042 * 3043 * @return The count of paths. 3044 */ getPathsCount()3045 int getPathsCount(); 3046 /** 3047 * 3048 * 3049 * <pre> 3050 * Path globs used to match files in the build's workspace. For Python/ 3051 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3052 * file. 3053 * </pre> 3054 * 3055 * <code>repeated string paths = 2;</code> 3056 * 3057 * @param index The index of the element to return. 3058 * @return The paths at the given index. 3059 */ getPaths(int index)3060 java.lang.String getPaths(int index); 3061 /** 3062 * 3063 * 3064 * <pre> 3065 * Path globs used to match files in the build's workspace. For Python/ 3066 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3067 * file. 3068 * </pre> 3069 * 3070 * <code>repeated string paths = 2;</code> 3071 * 3072 * @param index The index of the value to return. 3073 * @return The bytes of the paths at the given index. 3074 */ getPathsBytes(int index)3075 com.google.protobuf.ByteString getPathsBytes(int index); 3076 } 3077 /** 3078 * 3079 * 3080 * <pre> 3081 * Python package to upload to Artifact Registry upon successful completion 3082 * of all build steps. A package can encapsulate multiple objects to be 3083 * uploaded to a single repository. 3084 * </pre> 3085 * 3086 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.PythonPackage} 3087 */ 3088 public static final class PythonPackage extends com.google.protobuf.GeneratedMessageV3 3089 implements 3090 // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) 3091 PythonPackageOrBuilder { 3092 private static final long serialVersionUID = 0L; 3093 // Use PythonPackage.newBuilder() to construct. PythonPackage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)3094 private PythonPackage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 3095 super(builder); 3096 } 3097 PythonPackage()3098 private PythonPackage() { 3099 repository_ = ""; 3100 paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3101 } 3102 3103 @java.lang.Override 3104 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)3105 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 3106 return new PythonPackage(); 3107 } 3108 3109 @java.lang.Override getUnknownFields()3110 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 3111 return this.unknownFields; 3112 } 3113 getDescriptor()3114 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 3115 return com.google.cloudbuild.v1.Cloudbuild 3116 .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_descriptor; 3117 } 3118 3119 @java.lang.Override 3120 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()3121 internalGetFieldAccessorTable() { 3122 return com.google.cloudbuild.v1.Cloudbuild 3123 .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_fieldAccessorTable 3124 .ensureFieldAccessorsInitialized( 3125 com.google.cloudbuild.v1.Artifacts.PythonPackage.class, 3126 com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder.class); 3127 } 3128 3129 public static final int REPOSITORY_FIELD_NUMBER = 1; 3130 3131 @SuppressWarnings("serial") 3132 private volatile java.lang.Object repository_ = ""; 3133 /** 3134 * 3135 * 3136 * <pre> 3137 * Artifact Registry repository, in the form 3138 * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" 3139 * Files in the workspace matching any path pattern will be uploaded to 3140 * Artifact Registry with this location as a prefix. 3141 * </pre> 3142 * 3143 * <code>string repository = 1;</code> 3144 * 3145 * @return The repository. 3146 */ 3147 @java.lang.Override getRepository()3148 public java.lang.String getRepository() { 3149 java.lang.Object ref = repository_; 3150 if (ref instanceof java.lang.String) { 3151 return (java.lang.String) ref; 3152 } else { 3153 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3154 java.lang.String s = bs.toStringUtf8(); 3155 repository_ = s; 3156 return s; 3157 } 3158 } 3159 /** 3160 * 3161 * 3162 * <pre> 3163 * Artifact Registry repository, in the form 3164 * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" 3165 * Files in the workspace matching any path pattern will be uploaded to 3166 * Artifact Registry with this location as a prefix. 3167 * </pre> 3168 * 3169 * <code>string repository = 1;</code> 3170 * 3171 * @return The bytes for repository. 3172 */ 3173 @java.lang.Override getRepositoryBytes()3174 public com.google.protobuf.ByteString getRepositoryBytes() { 3175 java.lang.Object ref = repository_; 3176 if (ref instanceof java.lang.String) { 3177 com.google.protobuf.ByteString b = 3178 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3179 repository_ = b; 3180 return b; 3181 } else { 3182 return (com.google.protobuf.ByteString) ref; 3183 } 3184 } 3185 3186 public static final int PATHS_FIELD_NUMBER = 2; 3187 3188 @SuppressWarnings("serial") 3189 private com.google.protobuf.LazyStringList paths_; 3190 /** 3191 * 3192 * 3193 * <pre> 3194 * Path globs used to match files in the build's workspace. For Python/ 3195 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3196 * file. 3197 * </pre> 3198 * 3199 * <code>repeated string paths = 2;</code> 3200 * 3201 * @return A list containing the paths. 3202 */ getPathsList()3203 public com.google.protobuf.ProtocolStringList getPathsList() { 3204 return paths_; 3205 } 3206 /** 3207 * 3208 * 3209 * <pre> 3210 * Path globs used to match files in the build's workspace. For Python/ 3211 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3212 * file. 3213 * </pre> 3214 * 3215 * <code>repeated string paths = 2;</code> 3216 * 3217 * @return The count of paths. 3218 */ getPathsCount()3219 public int getPathsCount() { 3220 return paths_.size(); 3221 } 3222 /** 3223 * 3224 * 3225 * <pre> 3226 * Path globs used to match files in the build's workspace. For Python/ 3227 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3228 * file. 3229 * </pre> 3230 * 3231 * <code>repeated string paths = 2;</code> 3232 * 3233 * @param index The index of the element to return. 3234 * @return The paths at the given index. 3235 */ getPaths(int index)3236 public java.lang.String getPaths(int index) { 3237 return paths_.get(index); 3238 } 3239 /** 3240 * 3241 * 3242 * <pre> 3243 * Path globs used to match files in the build's workspace. For Python/ 3244 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3245 * file. 3246 * </pre> 3247 * 3248 * <code>repeated string paths = 2;</code> 3249 * 3250 * @param index The index of the value to return. 3251 * @return The bytes of the paths at the given index. 3252 */ getPathsBytes(int index)3253 public com.google.protobuf.ByteString getPathsBytes(int index) { 3254 return paths_.getByteString(index); 3255 } 3256 3257 private byte memoizedIsInitialized = -1; 3258 3259 @java.lang.Override isInitialized()3260 public final boolean isInitialized() { 3261 byte isInitialized = memoizedIsInitialized; 3262 if (isInitialized == 1) return true; 3263 if (isInitialized == 0) return false; 3264 3265 memoizedIsInitialized = 1; 3266 return true; 3267 } 3268 3269 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)3270 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 3271 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { 3272 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); 3273 } 3274 for (int i = 0; i < paths_.size(); i++) { 3275 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paths_.getRaw(i)); 3276 } 3277 getUnknownFields().writeTo(output); 3278 } 3279 3280 @java.lang.Override getSerializedSize()3281 public int getSerializedSize() { 3282 int size = memoizedSize; 3283 if (size != -1) return size; 3284 3285 size = 0; 3286 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { 3287 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_); 3288 } 3289 { 3290 int dataSize = 0; 3291 for (int i = 0; i < paths_.size(); i++) { 3292 dataSize += computeStringSizeNoTag(paths_.getRaw(i)); 3293 } 3294 size += dataSize; 3295 size += 1 * getPathsList().size(); 3296 } 3297 size += getUnknownFields().getSerializedSize(); 3298 memoizedSize = size; 3299 return size; 3300 } 3301 3302 @java.lang.Override equals(final java.lang.Object obj)3303 public boolean equals(final java.lang.Object obj) { 3304 if (obj == this) { 3305 return true; 3306 } 3307 if (!(obj instanceof com.google.cloudbuild.v1.Artifacts.PythonPackage)) { 3308 return super.equals(obj); 3309 } 3310 com.google.cloudbuild.v1.Artifacts.PythonPackage other = 3311 (com.google.cloudbuild.v1.Artifacts.PythonPackage) obj; 3312 3313 if (!getRepository().equals(other.getRepository())) return false; 3314 if (!getPathsList().equals(other.getPathsList())) return false; 3315 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 3316 return true; 3317 } 3318 3319 @java.lang.Override hashCode()3320 public int hashCode() { 3321 if (memoizedHashCode != 0) { 3322 return memoizedHashCode; 3323 } 3324 int hash = 41; 3325 hash = (19 * hash) + getDescriptor().hashCode(); 3326 hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; 3327 hash = (53 * hash) + getRepository().hashCode(); 3328 if (getPathsCount() > 0) { 3329 hash = (37 * hash) + PATHS_FIELD_NUMBER; 3330 hash = (53 * hash) + getPathsList().hashCode(); 3331 } 3332 hash = (29 * hash) + getUnknownFields().hashCode(); 3333 memoizedHashCode = hash; 3334 return hash; 3335 } 3336 parseFrom( java.nio.ByteBuffer data)3337 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( 3338 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 3339 return PARSER.parseFrom(data); 3340 } 3341 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3342 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( 3343 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3344 throws com.google.protobuf.InvalidProtocolBufferException { 3345 return PARSER.parseFrom(data, extensionRegistry); 3346 } 3347 parseFrom( com.google.protobuf.ByteString data)3348 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( 3349 com.google.protobuf.ByteString data) 3350 throws com.google.protobuf.InvalidProtocolBufferException { 3351 return PARSER.parseFrom(data); 3352 } 3353 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3354 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( 3355 com.google.protobuf.ByteString data, 3356 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3357 throws com.google.protobuf.InvalidProtocolBufferException { 3358 return PARSER.parseFrom(data, extensionRegistry); 3359 } 3360 parseFrom(byte[] data)3361 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom(byte[] data) 3362 throws com.google.protobuf.InvalidProtocolBufferException { 3363 return PARSER.parseFrom(data); 3364 } 3365 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3366 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( 3367 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3368 throws com.google.protobuf.InvalidProtocolBufferException { 3369 return PARSER.parseFrom(data, extensionRegistry); 3370 } 3371 parseFrom( java.io.InputStream input)3372 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( 3373 java.io.InputStream input) throws java.io.IOException { 3374 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3375 } 3376 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3377 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( 3378 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3379 throws java.io.IOException { 3380 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3381 PARSER, input, extensionRegistry); 3382 } 3383 parseDelimitedFrom( java.io.InputStream input)3384 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseDelimitedFrom( 3385 java.io.InputStream input) throws java.io.IOException { 3386 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 3387 } 3388 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3389 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseDelimitedFrom( 3390 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3391 throws java.io.IOException { 3392 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 3393 PARSER, input, extensionRegistry); 3394 } 3395 parseFrom( com.google.protobuf.CodedInputStream input)3396 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( 3397 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 3398 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3399 } 3400 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3401 public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( 3402 com.google.protobuf.CodedInputStream input, 3403 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3404 throws java.io.IOException { 3405 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3406 PARSER, input, extensionRegistry); 3407 } 3408 3409 @java.lang.Override newBuilderForType()3410 public Builder newBuilderForType() { 3411 return newBuilder(); 3412 } 3413 newBuilder()3414 public static Builder newBuilder() { 3415 return DEFAULT_INSTANCE.toBuilder(); 3416 } 3417 newBuilder(com.google.cloudbuild.v1.Artifacts.PythonPackage prototype)3418 public static Builder newBuilder(com.google.cloudbuild.v1.Artifacts.PythonPackage prototype) { 3419 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 3420 } 3421 3422 @java.lang.Override toBuilder()3423 public Builder toBuilder() { 3424 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 3425 } 3426 3427 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3428 protected Builder newBuilderForType( 3429 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3430 Builder builder = new Builder(parent); 3431 return builder; 3432 } 3433 /** 3434 * 3435 * 3436 * <pre> 3437 * Python package to upload to Artifact Registry upon successful completion 3438 * of all build steps. A package can encapsulate multiple objects to be 3439 * uploaded to a single repository. 3440 * </pre> 3441 * 3442 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.PythonPackage} 3443 */ 3444 public static final class Builder 3445 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 3446 implements 3447 // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) 3448 com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder { getDescriptor()3449 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 3450 return com.google.cloudbuild.v1.Cloudbuild 3451 .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_descriptor; 3452 } 3453 3454 @java.lang.Override 3455 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()3456 internalGetFieldAccessorTable() { 3457 return com.google.cloudbuild.v1.Cloudbuild 3458 .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_fieldAccessorTable 3459 .ensureFieldAccessorsInitialized( 3460 com.google.cloudbuild.v1.Artifacts.PythonPackage.class, 3461 com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder.class); 3462 } 3463 3464 // Construct using com.google.cloudbuild.v1.Artifacts.PythonPackage.newBuilder() Builder()3465 private Builder() {} 3466 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3467 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3468 super(parent); 3469 } 3470 3471 @java.lang.Override clear()3472 public Builder clear() { 3473 super.clear(); 3474 bitField0_ = 0; 3475 repository_ = ""; 3476 paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3477 bitField0_ = (bitField0_ & ~0x00000002); 3478 return this; 3479 } 3480 3481 @java.lang.Override getDescriptorForType()3482 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 3483 return com.google.cloudbuild.v1.Cloudbuild 3484 .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_descriptor; 3485 } 3486 3487 @java.lang.Override getDefaultInstanceForType()3488 public com.google.cloudbuild.v1.Artifacts.PythonPackage getDefaultInstanceForType() { 3489 return com.google.cloudbuild.v1.Artifacts.PythonPackage.getDefaultInstance(); 3490 } 3491 3492 @java.lang.Override build()3493 public com.google.cloudbuild.v1.Artifacts.PythonPackage build() { 3494 com.google.cloudbuild.v1.Artifacts.PythonPackage result = buildPartial(); 3495 if (!result.isInitialized()) { 3496 throw newUninitializedMessageException(result); 3497 } 3498 return result; 3499 } 3500 3501 @java.lang.Override buildPartial()3502 public com.google.cloudbuild.v1.Artifacts.PythonPackage buildPartial() { 3503 com.google.cloudbuild.v1.Artifacts.PythonPackage result = 3504 new com.google.cloudbuild.v1.Artifacts.PythonPackage(this); 3505 buildPartialRepeatedFields(result); 3506 if (bitField0_ != 0) { 3507 buildPartial0(result); 3508 } 3509 onBuilt(); 3510 return result; 3511 } 3512 buildPartialRepeatedFields( com.google.cloudbuild.v1.Artifacts.PythonPackage result)3513 private void buildPartialRepeatedFields( 3514 com.google.cloudbuild.v1.Artifacts.PythonPackage result) { 3515 if (((bitField0_ & 0x00000002) != 0)) { 3516 paths_ = paths_.getUnmodifiableView(); 3517 bitField0_ = (bitField0_ & ~0x00000002); 3518 } 3519 result.paths_ = paths_; 3520 } 3521 buildPartial0(com.google.cloudbuild.v1.Artifacts.PythonPackage result)3522 private void buildPartial0(com.google.cloudbuild.v1.Artifacts.PythonPackage result) { 3523 int from_bitField0_ = bitField0_; 3524 if (((from_bitField0_ & 0x00000001) != 0)) { 3525 result.repository_ = repository_; 3526 } 3527 } 3528 3529 @java.lang.Override clone()3530 public Builder clone() { 3531 return super.clone(); 3532 } 3533 3534 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3535 public Builder setField( 3536 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3537 return super.setField(field, value); 3538 } 3539 3540 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3541 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 3542 return super.clearField(field); 3543 } 3544 3545 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3546 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 3547 return super.clearOneof(oneof); 3548 } 3549 3550 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3551 public Builder setRepeatedField( 3552 com.google.protobuf.Descriptors.FieldDescriptor field, 3553 int index, 3554 java.lang.Object value) { 3555 return super.setRepeatedField(field, index, value); 3556 } 3557 3558 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3559 public Builder addRepeatedField( 3560 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3561 return super.addRepeatedField(field, value); 3562 } 3563 3564 @java.lang.Override mergeFrom(com.google.protobuf.Message other)3565 public Builder mergeFrom(com.google.protobuf.Message other) { 3566 if (other instanceof com.google.cloudbuild.v1.Artifacts.PythonPackage) { 3567 return mergeFrom((com.google.cloudbuild.v1.Artifacts.PythonPackage) other); 3568 } else { 3569 super.mergeFrom(other); 3570 return this; 3571 } 3572 } 3573 mergeFrom(com.google.cloudbuild.v1.Artifacts.PythonPackage other)3574 public Builder mergeFrom(com.google.cloudbuild.v1.Artifacts.PythonPackage other) { 3575 if (other == com.google.cloudbuild.v1.Artifacts.PythonPackage.getDefaultInstance()) 3576 return this; 3577 if (!other.getRepository().isEmpty()) { 3578 repository_ = other.repository_; 3579 bitField0_ |= 0x00000001; 3580 onChanged(); 3581 } 3582 if (!other.paths_.isEmpty()) { 3583 if (paths_.isEmpty()) { 3584 paths_ = other.paths_; 3585 bitField0_ = (bitField0_ & ~0x00000002); 3586 } else { 3587 ensurePathsIsMutable(); 3588 paths_.addAll(other.paths_); 3589 } 3590 onChanged(); 3591 } 3592 this.mergeUnknownFields(other.getUnknownFields()); 3593 onChanged(); 3594 return this; 3595 } 3596 3597 @java.lang.Override isInitialized()3598 public final boolean isInitialized() { 3599 return true; 3600 } 3601 3602 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3603 public Builder mergeFrom( 3604 com.google.protobuf.CodedInputStream input, 3605 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3606 throws java.io.IOException { 3607 if (extensionRegistry == null) { 3608 throw new java.lang.NullPointerException(); 3609 } 3610 try { 3611 boolean done = false; 3612 while (!done) { 3613 int tag = input.readTag(); 3614 switch (tag) { 3615 case 0: 3616 done = true; 3617 break; 3618 case 10: 3619 { 3620 repository_ = input.readStringRequireUtf8(); 3621 bitField0_ |= 0x00000001; 3622 break; 3623 } // case 10 3624 case 18: 3625 { 3626 java.lang.String s = input.readStringRequireUtf8(); 3627 ensurePathsIsMutable(); 3628 paths_.add(s); 3629 break; 3630 } // case 18 3631 default: 3632 { 3633 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 3634 done = true; // was an endgroup tag 3635 } 3636 break; 3637 } // default: 3638 } // switch (tag) 3639 } // while (!done) 3640 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3641 throw e.unwrapIOException(); 3642 } finally { 3643 onChanged(); 3644 } // finally 3645 return this; 3646 } 3647 3648 private int bitField0_; 3649 3650 private java.lang.Object repository_ = ""; 3651 /** 3652 * 3653 * 3654 * <pre> 3655 * Artifact Registry repository, in the form 3656 * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" 3657 * Files in the workspace matching any path pattern will be uploaded to 3658 * Artifact Registry with this location as a prefix. 3659 * </pre> 3660 * 3661 * <code>string repository = 1;</code> 3662 * 3663 * @return The repository. 3664 */ getRepository()3665 public java.lang.String getRepository() { 3666 java.lang.Object ref = repository_; 3667 if (!(ref instanceof java.lang.String)) { 3668 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3669 java.lang.String s = bs.toStringUtf8(); 3670 repository_ = s; 3671 return s; 3672 } else { 3673 return (java.lang.String) ref; 3674 } 3675 } 3676 /** 3677 * 3678 * 3679 * <pre> 3680 * Artifact Registry repository, in the form 3681 * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" 3682 * Files in the workspace matching any path pattern will be uploaded to 3683 * Artifact Registry with this location as a prefix. 3684 * </pre> 3685 * 3686 * <code>string repository = 1;</code> 3687 * 3688 * @return The bytes for repository. 3689 */ getRepositoryBytes()3690 public com.google.protobuf.ByteString getRepositoryBytes() { 3691 java.lang.Object ref = repository_; 3692 if (ref instanceof String) { 3693 com.google.protobuf.ByteString b = 3694 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3695 repository_ = b; 3696 return b; 3697 } else { 3698 return (com.google.protobuf.ByteString) ref; 3699 } 3700 } 3701 /** 3702 * 3703 * 3704 * <pre> 3705 * Artifact Registry repository, in the form 3706 * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" 3707 * Files in the workspace matching any path pattern will be uploaded to 3708 * Artifact Registry with this location as a prefix. 3709 * </pre> 3710 * 3711 * <code>string repository = 1;</code> 3712 * 3713 * @param value The repository to set. 3714 * @return This builder for chaining. 3715 */ setRepository(java.lang.String value)3716 public Builder setRepository(java.lang.String value) { 3717 if (value == null) { 3718 throw new NullPointerException(); 3719 } 3720 repository_ = value; 3721 bitField0_ |= 0x00000001; 3722 onChanged(); 3723 return this; 3724 } 3725 /** 3726 * 3727 * 3728 * <pre> 3729 * Artifact Registry repository, in the form 3730 * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" 3731 * Files in the workspace matching any path pattern will be uploaded to 3732 * Artifact Registry with this location as a prefix. 3733 * </pre> 3734 * 3735 * <code>string repository = 1;</code> 3736 * 3737 * @return This builder for chaining. 3738 */ clearRepository()3739 public Builder clearRepository() { 3740 repository_ = getDefaultInstance().getRepository(); 3741 bitField0_ = (bitField0_ & ~0x00000001); 3742 onChanged(); 3743 return this; 3744 } 3745 /** 3746 * 3747 * 3748 * <pre> 3749 * Artifact Registry repository, in the form 3750 * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" 3751 * Files in the workspace matching any path pattern will be uploaded to 3752 * Artifact Registry with this location as a prefix. 3753 * </pre> 3754 * 3755 * <code>string repository = 1;</code> 3756 * 3757 * @param value The bytes for repository to set. 3758 * @return This builder for chaining. 3759 */ setRepositoryBytes(com.google.protobuf.ByteString value)3760 public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { 3761 if (value == null) { 3762 throw new NullPointerException(); 3763 } 3764 checkByteStringIsUtf8(value); 3765 repository_ = value; 3766 bitField0_ |= 0x00000001; 3767 onChanged(); 3768 return this; 3769 } 3770 3771 private com.google.protobuf.LazyStringList paths_ = 3772 com.google.protobuf.LazyStringArrayList.EMPTY; 3773 ensurePathsIsMutable()3774 private void ensurePathsIsMutable() { 3775 if (!((bitField0_ & 0x00000002) != 0)) { 3776 paths_ = new com.google.protobuf.LazyStringArrayList(paths_); 3777 bitField0_ |= 0x00000002; 3778 } 3779 } 3780 /** 3781 * 3782 * 3783 * <pre> 3784 * Path globs used to match files in the build's workspace. For Python/ 3785 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3786 * file. 3787 * </pre> 3788 * 3789 * <code>repeated string paths = 2;</code> 3790 * 3791 * @return A list containing the paths. 3792 */ getPathsList()3793 public com.google.protobuf.ProtocolStringList getPathsList() { 3794 return paths_.getUnmodifiableView(); 3795 } 3796 /** 3797 * 3798 * 3799 * <pre> 3800 * Path globs used to match files in the build's workspace. For Python/ 3801 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3802 * file. 3803 * </pre> 3804 * 3805 * <code>repeated string paths = 2;</code> 3806 * 3807 * @return The count of paths. 3808 */ getPathsCount()3809 public int getPathsCount() { 3810 return paths_.size(); 3811 } 3812 /** 3813 * 3814 * 3815 * <pre> 3816 * Path globs used to match files in the build's workspace. For Python/ 3817 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3818 * file. 3819 * </pre> 3820 * 3821 * <code>repeated string paths = 2;</code> 3822 * 3823 * @param index The index of the element to return. 3824 * @return The paths at the given index. 3825 */ getPaths(int index)3826 public java.lang.String getPaths(int index) { 3827 return paths_.get(index); 3828 } 3829 /** 3830 * 3831 * 3832 * <pre> 3833 * Path globs used to match files in the build's workspace. For Python/ 3834 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3835 * file. 3836 * </pre> 3837 * 3838 * <code>repeated string paths = 2;</code> 3839 * 3840 * @param index The index of the value to return. 3841 * @return The bytes of the paths at the given index. 3842 */ getPathsBytes(int index)3843 public com.google.protobuf.ByteString getPathsBytes(int index) { 3844 return paths_.getByteString(index); 3845 } 3846 /** 3847 * 3848 * 3849 * <pre> 3850 * Path globs used to match files in the build's workspace. For Python/ 3851 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3852 * file. 3853 * </pre> 3854 * 3855 * <code>repeated string paths = 2;</code> 3856 * 3857 * @param index The index to set the value at. 3858 * @param value The paths to set. 3859 * @return This builder for chaining. 3860 */ setPaths(int index, java.lang.String value)3861 public Builder setPaths(int index, java.lang.String value) { 3862 if (value == null) { 3863 throw new NullPointerException(); 3864 } 3865 ensurePathsIsMutable(); 3866 paths_.set(index, value); 3867 onChanged(); 3868 return this; 3869 } 3870 /** 3871 * 3872 * 3873 * <pre> 3874 * Path globs used to match files in the build's workspace. For Python/ 3875 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3876 * file. 3877 * </pre> 3878 * 3879 * <code>repeated string paths = 2;</code> 3880 * 3881 * @param value The paths to add. 3882 * @return This builder for chaining. 3883 */ addPaths(java.lang.String value)3884 public Builder addPaths(java.lang.String value) { 3885 if (value == null) { 3886 throw new NullPointerException(); 3887 } 3888 ensurePathsIsMutable(); 3889 paths_.add(value); 3890 onChanged(); 3891 return this; 3892 } 3893 /** 3894 * 3895 * 3896 * <pre> 3897 * Path globs used to match files in the build's workspace. For Python/ 3898 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3899 * file. 3900 * </pre> 3901 * 3902 * <code>repeated string paths = 2;</code> 3903 * 3904 * @param values The paths to add. 3905 * @return This builder for chaining. 3906 */ addAllPaths(java.lang.Iterable<java.lang.String> values)3907 public Builder addAllPaths(java.lang.Iterable<java.lang.String> values) { 3908 ensurePathsIsMutable(); 3909 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_); 3910 onChanged(); 3911 return this; 3912 } 3913 /** 3914 * 3915 * 3916 * <pre> 3917 * Path globs used to match files in the build's workspace. For Python/ 3918 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3919 * file. 3920 * </pre> 3921 * 3922 * <code>repeated string paths = 2;</code> 3923 * 3924 * @return This builder for chaining. 3925 */ clearPaths()3926 public Builder clearPaths() { 3927 paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3928 bitField0_ = (bitField0_ & ~0x00000002); 3929 onChanged(); 3930 return this; 3931 } 3932 /** 3933 * 3934 * 3935 * <pre> 3936 * Path globs used to match files in the build's workspace. For Python/ 3937 * Twine, this is usually `dist/*`, and sometimes additionally an `.asc` 3938 * file. 3939 * </pre> 3940 * 3941 * <code>repeated string paths = 2;</code> 3942 * 3943 * @param value The bytes of the paths to add. 3944 * @return This builder for chaining. 3945 */ addPathsBytes(com.google.protobuf.ByteString value)3946 public Builder addPathsBytes(com.google.protobuf.ByteString value) { 3947 if (value == null) { 3948 throw new NullPointerException(); 3949 } 3950 checkByteStringIsUtf8(value); 3951 ensurePathsIsMutable(); 3952 paths_.add(value); 3953 onChanged(); 3954 return this; 3955 } 3956 3957 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3958 public final Builder setUnknownFields( 3959 final com.google.protobuf.UnknownFieldSet unknownFields) { 3960 return super.setUnknownFields(unknownFields); 3961 } 3962 3963 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3964 public final Builder mergeUnknownFields( 3965 final com.google.protobuf.UnknownFieldSet unknownFields) { 3966 return super.mergeUnknownFields(unknownFields); 3967 } 3968 3969 // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) 3970 } 3971 3972 // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) 3973 private static final com.google.cloudbuild.v1.Artifacts.PythonPackage DEFAULT_INSTANCE; 3974 3975 static { 3976 DEFAULT_INSTANCE = new com.google.cloudbuild.v1.Artifacts.PythonPackage(); 3977 } 3978 getDefaultInstance()3979 public static com.google.cloudbuild.v1.Artifacts.PythonPackage getDefaultInstance() { 3980 return DEFAULT_INSTANCE; 3981 } 3982 3983 private static final com.google.protobuf.Parser<PythonPackage> PARSER = 3984 new com.google.protobuf.AbstractParser<PythonPackage>() { 3985 @java.lang.Override 3986 public PythonPackage parsePartialFrom( 3987 com.google.protobuf.CodedInputStream input, 3988 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3989 throws com.google.protobuf.InvalidProtocolBufferException { 3990 Builder builder = newBuilder(); 3991 try { 3992 builder.mergeFrom(input, extensionRegistry); 3993 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3994 throw e.setUnfinishedMessage(builder.buildPartial()); 3995 } catch (com.google.protobuf.UninitializedMessageException e) { 3996 throw e.asInvalidProtocolBufferException() 3997 .setUnfinishedMessage(builder.buildPartial()); 3998 } catch (java.io.IOException e) { 3999 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4000 .setUnfinishedMessage(builder.buildPartial()); 4001 } 4002 return builder.buildPartial(); 4003 } 4004 }; 4005 parser()4006 public static com.google.protobuf.Parser<PythonPackage> parser() { 4007 return PARSER; 4008 } 4009 4010 @java.lang.Override getParserForType()4011 public com.google.protobuf.Parser<PythonPackage> getParserForType() { 4012 return PARSER; 4013 } 4014 4015 @java.lang.Override getDefaultInstanceForType()4016 public com.google.cloudbuild.v1.Artifacts.PythonPackage getDefaultInstanceForType() { 4017 return DEFAULT_INSTANCE; 4018 } 4019 } 4020 4021 public interface NpmPackageOrBuilder 4022 extends 4023 // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.Artifacts.NpmPackage) 4024 com.google.protobuf.MessageOrBuilder { 4025 4026 /** 4027 * 4028 * 4029 * <pre> 4030 * Artifact Registry repository, in the form 4031 * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" 4032 * Npm package in the workspace specified by path will be zipped and 4033 * uploaded to Artifact Registry with this location as a prefix. 4034 * </pre> 4035 * 4036 * <code>string repository = 1;</code> 4037 * 4038 * @return The repository. 4039 */ getRepository()4040 java.lang.String getRepository(); 4041 /** 4042 * 4043 * 4044 * <pre> 4045 * Artifact Registry repository, in the form 4046 * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" 4047 * Npm package in the workspace specified by path will be zipped and 4048 * uploaded to Artifact Registry with this location as a prefix. 4049 * </pre> 4050 * 4051 * <code>string repository = 1;</code> 4052 * 4053 * @return The bytes for repository. 4054 */ getRepositoryBytes()4055 com.google.protobuf.ByteString getRepositoryBytes(); 4056 4057 /** 4058 * 4059 * 4060 * <pre> 4061 * Path to the package.json. 4062 * e.g. workspace/path/to/package 4063 * </pre> 4064 * 4065 * <code>string package_path = 2;</code> 4066 * 4067 * @return The packagePath. 4068 */ getPackagePath()4069 java.lang.String getPackagePath(); 4070 /** 4071 * 4072 * 4073 * <pre> 4074 * Path to the package.json. 4075 * e.g. workspace/path/to/package 4076 * </pre> 4077 * 4078 * <code>string package_path = 2;</code> 4079 * 4080 * @return The bytes for packagePath. 4081 */ getPackagePathBytes()4082 com.google.protobuf.ByteString getPackagePathBytes(); 4083 } 4084 /** 4085 * 4086 * 4087 * <pre> 4088 * Npm package to upload to Artifact Registry upon successful completion 4089 * of all build steps. 4090 * </pre> 4091 * 4092 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.NpmPackage} 4093 */ 4094 public static final class NpmPackage extends com.google.protobuf.GeneratedMessageV3 4095 implements 4096 // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.Artifacts.NpmPackage) 4097 NpmPackageOrBuilder { 4098 private static final long serialVersionUID = 0L; 4099 // Use NpmPackage.newBuilder() to construct. NpmPackage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)4100 private NpmPackage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 4101 super(builder); 4102 } 4103 NpmPackage()4104 private NpmPackage() { 4105 repository_ = ""; 4106 packagePath_ = ""; 4107 } 4108 4109 @java.lang.Override 4110 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)4111 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 4112 return new NpmPackage(); 4113 } 4114 4115 @java.lang.Override getUnknownFields()4116 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 4117 return this.unknownFields; 4118 } 4119 getDescriptor()4120 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 4121 return com.google.cloudbuild.v1.Cloudbuild 4122 .internal_static_google_devtools_cloudbuild_v1_Artifacts_NpmPackage_descriptor; 4123 } 4124 4125 @java.lang.Override 4126 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()4127 internalGetFieldAccessorTable() { 4128 return com.google.cloudbuild.v1.Cloudbuild 4129 .internal_static_google_devtools_cloudbuild_v1_Artifacts_NpmPackage_fieldAccessorTable 4130 .ensureFieldAccessorsInitialized( 4131 com.google.cloudbuild.v1.Artifacts.NpmPackage.class, 4132 com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder.class); 4133 } 4134 4135 public static final int REPOSITORY_FIELD_NUMBER = 1; 4136 4137 @SuppressWarnings("serial") 4138 private volatile java.lang.Object repository_ = ""; 4139 /** 4140 * 4141 * 4142 * <pre> 4143 * Artifact Registry repository, in the form 4144 * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" 4145 * Npm package in the workspace specified by path will be zipped and 4146 * uploaded to Artifact Registry with this location as a prefix. 4147 * </pre> 4148 * 4149 * <code>string repository = 1;</code> 4150 * 4151 * @return The repository. 4152 */ 4153 @java.lang.Override getRepository()4154 public java.lang.String getRepository() { 4155 java.lang.Object ref = repository_; 4156 if (ref instanceof java.lang.String) { 4157 return (java.lang.String) ref; 4158 } else { 4159 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4160 java.lang.String s = bs.toStringUtf8(); 4161 repository_ = s; 4162 return s; 4163 } 4164 } 4165 /** 4166 * 4167 * 4168 * <pre> 4169 * Artifact Registry repository, in the form 4170 * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" 4171 * Npm package in the workspace specified by path will be zipped and 4172 * uploaded to Artifact Registry with this location as a prefix. 4173 * </pre> 4174 * 4175 * <code>string repository = 1;</code> 4176 * 4177 * @return The bytes for repository. 4178 */ 4179 @java.lang.Override getRepositoryBytes()4180 public com.google.protobuf.ByteString getRepositoryBytes() { 4181 java.lang.Object ref = repository_; 4182 if (ref instanceof java.lang.String) { 4183 com.google.protobuf.ByteString b = 4184 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4185 repository_ = b; 4186 return b; 4187 } else { 4188 return (com.google.protobuf.ByteString) ref; 4189 } 4190 } 4191 4192 public static final int PACKAGE_PATH_FIELD_NUMBER = 2; 4193 4194 @SuppressWarnings("serial") 4195 private volatile java.lang.Object packagePath_ = ""; 4196 /** 4197 * 4198 * 4199 * <pre> 4200 * Path to the package.json. 4201 * e.g. workspace/path/to/package 4202 * </pre> 4203 * 4204 * <code>string package_path = 2;</code> 4205 * 4206 * @return The packagePath. 4207 */ 4208 @java.lang.Override getPackagePath()4209 public java.lang.String getPackagePath() { 4210 java.lang.Object ref = packagePath_; 4211 if (ref instanceof java.lang.String) { 4212 return (java.lang.String) ref; 4213 } else { 4214 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4215 java.lang.String s = bs.toStringUtf8(); 4216 packagePath_ = s; 4217 return s; 4218 } 4219 } 4220 /** 4221 * 4222 * 4223 * <pre> 4224 * Path to the package.json. 4225 * e.g. workspace/path/to/package 4226 * </pre> 4227 * 4228 * <code>string package_path = 2;</code> 4229 * 4230 * @return The bytes for packagePath. 4231 */ 4232 @java.lang.Override getPackagePathBytes()4233 public com.google.protobuf.ByteString getPackagePathBytes() { 4234 java.lang.Object ref = packagePath_; 4235 if (ref instanceof java.lang.String) { 4236 com.google.protobuf.ByteString b = 4237 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4238 packagePath_ = b; 4239 return b; 4240 } else { 4241 return (com.google.protobuf.ByteString) ref; 4242 } 4243 } 4244 4245 private byte memoizedIsInitialized = -1; 4246 4247 @java.lang.Override isInitialized()4248 public final boolean isInitialized() { 4249 byte isInitialized = memoizedIsInitialized; 4250 if (isInitialized == 1) return true; 4251 if (isInitialized == 0) return false; 4252 4253 memoizedIsInitialized = 1; 4254 return true; 4255 } 4256 4257 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)4258 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 4259 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { 4260 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); 4261 } 4262 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packagePath_)) { 4263 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packagePath_); 4264 } 4265 getUnknownFields().writeTo(output); 4266 } 4267 4268 @java.lang.Override getSerializedSize()4269 public int getSerializedSize() { 4270 int size = memoizedSize; 4271 if (size != -1) return size; 4272 4273 size = 0; 4274 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { 4275 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_); 4276 } 4277 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packagePath_)) { 4278 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, packagePath_); 4279 } 4280 size += getUnknownFields().getSerializedSize(); 4281 memoizedSize = size; 4282 return size; 4283 } 4284 4285 @java.lang.Override equals(final java.lang.Object obj)4286 public boolean equals(final java.lang.Object obj) { 4287 if (obj == this) { 4288 return true; 4289 } 4290 if (!(obj instanceof com.google.cloudbuild.v1.Artifacts.NpmPackage)) { 4291 return super.equals(obj); 4292 } 4293 com.google.cloudbuild.v1.Artifacts.NpmPackage other = 4294 (com.google.cloudbuild.v1.Artifacts.NpmPackage) obj; 4295 4296 if (!getRepository().equals(other.getRepository())) return false; 4297 if (!getPackagePath().equals(other.getPackagePath())) return false; 4298 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 4299 return true; 4300 } 4301 4302 @java.lang.Override hashCode()4303 public int hashCode() { 4304 if (memoizedHashCode != 0) { 4305 return memoizedHashCode; 4306 } 4307 int hash = 41; 4308 hash = (19 * hash) + getDescriptor().hashCode(); 4309 hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; 4310 hash = (53 * hash) + getRepository().hashCode(); 4311 hash = (37 * hash) + PACKAGE_PATH_FIELD_NUMBER; 4312 hash = (53 * hash) + getPackagePath().hashCode(); 4313 hash = (29 * hash) + getUnknownFields().hashCode(); 4314 memoizedHashCode = hash; 4315 return hash; 4316 } 4317 parseFrom(java.nio.ByteBuffer data)4318 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom(java.nio.ByteBuffer data) 4319 throws com.google.protobuf.InvalidProtocolBufferException { 4320 return PARSER.parseFrom(data); 4321 } 4322 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4323 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom( 4324 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4325 throws com.google.protobuf.InvalidProtocolBufferException { 4326 return PARSER.parseFrom(data, extensionRegistry); 4327 } 4328 parseFrom( com.google.protobuf.ByteString data)4329 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom( 4330 com.google.protobuf.ByteString data) 4331 throws com.google.protobuf.InvalidProtocolBufferException { 4332 return PARSER.parseFrom(data); 4333 } 4334 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4335 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom( 4336 com.google.protobuf.ByteString data, 4337 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4338 throws com.google.protobuf.InvalidProtocolBufferException { 4339 return PARSER.parseFrom(data, extensionRegistry); 4340 } 4341 parseFrom(byte[] data)4342 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom(byte[] data) 4343 throws com.google.protobuf.InvalidProtocolBufferException { 4344 return PARSER.parseFrom(data); 4345 } 4346 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4347 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom( 4348 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4349 throws com.google.protobuf.InvalidProtocolBufferException { 4350 return PARSER.parseFrom(data, extensionRegistry); 4351 } 4352 parseFrom(java.io.InputStream input)4353 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom(java.io.InputStream input) 4354 throws java.io.IOException { 4355 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 4356 } 4357 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4358 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom( 4359 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4360 throws java.io.IOException { 4361 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 4362 PARSER, input, extensionRegistry); 4363 } 4364 parseDelimitedFrom( java.io.InputStream input)4365 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseDelimitedFrom( 4366 java.io.InputStream input) throws java.io.IOException { 4367 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 4368 } 4369 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4370 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseDelimitedFrom( 4371 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4372 throws java.io.IOException { 4373 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 4374 PARSER, input, extensionRegistry); 4375 } 4376 parseFrom( com.google.protobuf.CodedInputStream input)4377 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom( 4378 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 4379 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 4380 } 4381 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4382 public static com.google.cloudbuild.v1.Artifacts.NpmPackage parseFrom( 4383 com.google.protobuf.CodedInputStream input, 4384 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4385 throws java.io.IOException { 4386 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 4387 PARSER, input, extensionRegistry); 4388 } 4389 4390 @java.lang.Override newBuilderForType()4391 public Builder newBuilderForType() { 4392 return newBuilder(); 4393 } 4394 newBuilder()4395 public static Builder newBuilder() { 4396 return DEFAULT_INSTANCE.toBuilder(); 4397 } 4398 newBuilder(com.google.cloudbuild.v1.Artifacts.NpmPackage prototype)4399 public static Builder newBuilder(com.google.cloudbuild.v1.Artifacts.NpmPackage prototype) { 4400 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4401 } 4402 4403 @java.lang.Override toBuilder()4404 public Builder toBuilder() { 4405 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 4406 } 4407 4408 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4409 protected Builder newBuilderForType( 4410 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4411 Builder builder = new Builder(parent); 4412 return builder; 4413 } 4414 /** 4415 * 4416 * 4417 * <pre> 4418 * Npm package to upload to Artifact Registry upon successful completion 4419 * of all build steps. 4420 * </pre> 4421 * 4422 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.NpmPackage} 4423 */ 4424 public static final class Builder 4425 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 4426 implements 4427 // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Artifacts.NpmPackage) 4428 com.google.cloudbuild.v1.Artifacts.NpmPackageOrBuilder { getDescriptor()4429 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 4430 return com.google.cloudbuild.v1.Cloudbuild 4431 .internal_static_google_devtools_cloudbuild_v1_Artifacts_NpmPackage_descriptor; 4432 } 4433 4434 @java.lang.Override 4435 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()4436 internalGetFieldAccessorTable() { 4437 return com.google.cloudbuild.v1.Cloudbuild 4438 .internal_static_google_devtools_cloudbuild_v1_Artifacts_NpmPackage_fieldAccessorTable 4439 .ensureFieldAccessorsInitialized( 4440 com.google.cloudbuild.v1.Artifacts.NpmPackage.class, 4441 com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder.class); 4442 } 4443 4444 // Construct using com.google.cloudbuild.v1.Artifacts.NpmPackage.newBuilder() Builder()4445 private Builder() {} 4446 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4447 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4448 super(parent); 4449 } 4450 4451 @java.lang.Override clear()4452 public Builder clear() { 4453 super.clear(); 4454 bitField0_ = 0; 4455 repository_ = ""; 4456 packagePath_ = ""; 4457 return this; 4458 } 4459 4460 @java.lang.Override getDescriptorForType()4461 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 4462 return com.google.cloudbuild.v1.Cloudbuild 4463 .internal_static_google_devtools_cloudbuild_v1_Artifacts_NpmPackage_descriptor; 4464 } 4465 4466 @java.lang.Override getDefaultInstanceForType()4467 public com.google.cloudbuild.v1.Artifacts.NpmPackage getDefaultInstanceForType() { 4468 return com.google.cloudbuild.v1.Artifacts.NpmPackage.getDefaultInstance(); 4469 } 4470 4471 @java.lang.Override build()4472 public com.google.cloudbuild.v1.Artifacts.NpmPackage build() { 4473 com.google.cloudbuild.v1.Artifacts.NpmPackage result = buildPartial(); 4474 if (!result.isInitialized()) { 4475 throw newUninitializedMessageException(result); 4476 } 4477 return result; 4478 } 4479 4480 @java.lang.Override buildPartial()4481 public com.google.cloudbuild.v1.Artifacts.NpmPackage buildPartial() { 4482 com.google.cloudbuild.v1.Artifacts.NpmPackage result = 4483 new com.google.cloudbuild.v1.Artifacts.NpmPackage(this); 4484 if (bitField0_ != 0) { 4485 buildPartial0(result); 4486 } 4487 onBuilt(); 4488 return result; 4489 } 4490 buildPartial0(com.google.cloudbuild.v1.Artifacts.NpmPackage result)4491 private void buildPartial0(com.google.cloudbuild.v1.Artifacts.NpmPackage result) { 4492 int from_bitField0_ = bitField0_; 4493 if (((from_bitField0_ & 0x00000001) != 0)) { 4494 result.repository_ = repository_; 4495 } 4496 if (((from_bitField0_ & 0x00000002) != 0)) { 4497 result.packagePath_ = packagePath_; 4498 } 4499 } 4500 4501 @java.lang.Override clone()4502 public Builder clone() { 4503 return super.clone(); 4504 } 4505 4506 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4507 public Builder setField( 4508 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4509 return super.setField(field, value); 4510 } 4511 4512 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)4513 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 4514 return super.clearField(field); 4515 } 4516 4517 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)4518 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 4519 return super.clearOneof(oneof); 4520 } 4521 4522 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)4523 public Builder setRepeatedField( 4524 com.google.protobuf.Descriptors.FieldDescriptor field, 4525 int index, 4526 java.lang.Object value) { 4527 return super.setRepeatedField(field, index, value); 4528 } 4529 4530 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4531 public Builder addRepeatedField( 4532 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4533 return super.addRepeatedField(field, value); 4534 } 4535 4536 @java.lang.Override mergeFrom(com.google.protobuf.Message other)4537 public Builder mergeFrom(com.google.protobuf.Message other) { 4538 if (other instanceof com.google.cloudbuild.v1.Artifacts.NpmPackage) { 4539 return mergeFrom((com.google.cloudbuild.v1.Artifacts.NpmPackage) other); 4540 } else { 4541 super.mergeFrom(other); 4542 return this; 4543 } 4544 } 4545 mergeFrom(com.google.cloudbuild.v1.Artifacts.NpmPackage other)4546 public Builder mergeFrom(com.google.cloudbuild.v1.Artifacts.NpmPackage other) { 4547 if (other == com.google.cloudbuild.v1.Artifacts.NpmPackage.getDefaultInstance()) 4548 return this; 4549 if (!other.getRepository().isEmpty()) { 4550 repository_ = other.repository_; 4551 bitField0_ |= 0x00000001; 4552 onChanged(); 4553 } 4554 if (!other.getPackagePath().isEmpty()) { 4555 packagePath_ = other.packagePath_; 4556 bitField0_ |= 0x00000002; 4557 onChanged(); 4558 } 4559 this.mergeUnknownFields(other.getUnknownFields()); 4560 onChanged(); 4561 return this; 4562 } 4563 4564 @java.lang.Override isInitialized()4565 public final boolean isInitialized() { 4566 return true; 4567 } 4568 4569 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4570 public Builder mergeFrom( 4571 com.google.protobuf.CodedInputStream input, 4572 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4573 throws java.io.IOException { 4574 if (extensionRegistry == null) { 4575 throw new java.lang.NullPointerException(); 4576 } 4577 try { 4578 boolean done = false; 4579 while (!done) { 4580 int tag = input.readTag(); 4581 switch (tag) { 4582 case 0: 4583 done = true; 4584 break; 4585 case 10: 4586 { 4587 repository_ = input.readStringRequireUtf8(); 4588 bitField0_ |= 0x00000001; 4589 break; 4590 } // case 10 4591 case 18: 4592 { 4593 packagePath_ = input.readStringRequireUtf8(); 4594 bitField0_ |= 0x00000002; 4595 break; 4596 } // case 18 4597 default: 4598 { 4599 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 4600 done = true; // was an endgroup tag 4601 } 4602 break; 4603 } // default: 4604 } // switch (tag) 4605 } // while (!done) 4606 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4607 throw e.unwrapIOException(); 4608 } finally { 4609 onChanged(); 4610 } // finally 4611 return this; 4612 } 4613 4614 private int bitField0_; 4615 4616 private java.lang.Object repository_ = ""; 4617 /** 4618 * 4619 * 4620 * <pre> 4621 * Artifact Registry repository, in the form 4622 * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" 4623 * Npm package in the workspace specified by path will be zipped and 4624 * uploaded to Artifact Registry with this location as a prefix. 4625 * </pre> 4626 * 4627 * <code>string repository = 1;</code> 4628 * 4629 * @return The repository. 4630 */ getRepository()4631 public java.lang.String getRepository() { 4632 java.lang.Object ref = repository_; 4633 if (!(ref instanceof java.lang.String)) { 4634 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4635 java.lang.String s = bs.toStringUtf8(); 4636 repository_ = s; 4637 return s; 4638 } else { 4639 return (java.lang.String) ref; 4640 } 4641 } 4642 /** 4643 * 4644 * 4645 * <pre> 4646 * Artifact Registry repository, in the form 4647 * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" 4648 * Npm package in the workspace specified by path will be zipped and 4649 * uploaded to Artifact Registry with this location as a prefix. 4650 * </pre> 4651 * 4652 * <code>string repository = 1;</code> 4653 * 4654 * @return The bytes for repository. 4655 */ getRepositoryBytes()4656 public com.google.protobuf.ByteString getRepositoryBytes() { 4657 java.lang.Object ref = repository_; 4658 if (ref instanceof String) { 4659 com.google.protobuf.ByteString b = 4660 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4661 repository_ = b; 4662 return b; 4663 } else { 4664 return (com.google.protobuf.ByteString) ref; 4665 } 4666 } 4667 /** 4668 * 4669 * 4670 * <pre> 4671 * Artifact Registry repository, in the form 4672 * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" 4673 * Npm package in the workspace specified by path will be zipped and 4674 * uploaded to Artifact Registry with this location as a prefix. 4675 * </pre> 4676 * 4677 * <code>string repository = 1;</code> 4678 * 4679 * @param value The repository to set. 4680 * @return This builder for chaining. 4681 */ setRepository(java.lang.String value)4682 public Builder setRepository(java.lang.String value) { 4683 if (value == null) { 4684 throw new NullPointerException(); 4685 } 4686 repository_ = value; 4687 bitField0_ |= 0x00000001; 4688 onChanged(); 4689 return this; 4690 } 4691 /** 4692 * 4693 * 4694 * <pre> 4695 * Artifact Registry repository, in the form 4696 * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" 4697 * Npm package in the workspace specified by path will be zipped and 4698 * uploaded to Artifact Registry with this location as a prefix. 4699 * </pre> 4700 * 4701 * <code>string repository = 1;</code> 4702 * 4703 * @return This builder for chaining. 4704 */ clearRepository()4705 public Builder clearRepository() { 4706 repository_ = getDefaultInstance().getRepository(); 4707 bitField0_ = (bitField0_ & ~0x00000001); 4708 onChanged(); 4709 return this; 4710 } 4711 /** 4712 * 4713 * 4714 * <pre> 4715 * Artifact Registry repository, in the form 4716 * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" 4717 * Npm package in the workspace specified by path will be zipped and 4718 * uploaded to Artifact Registry with this location as a prefix. 4719 * </pre> 4720 * 4721 * <code>string repository = 1;</code> 4722 * 4723 * @param value The bytes for repository to set. 4724 * @return This builder for chaining. 4725 */ setRepositoryBytes(com.google.protobuf.ByteString value)4726 public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { 4727 if (value == null) { 4728 throw new NullPointerException(); 4729 } 4730 checkByteStringIsUtf8(value); 4731 repository_ = value; 4732 bitField0_ |= 0x00000001; 4733 onChanged(); 4734 return this; 4735 } 4736 4737 private java.lang.Object packagePath_ = ""; 4738 /** 4739 * 4740 * 4741 * <pre> 4742 * Path to the package.json. 4743 * e.g. workspace/path/to/package 4744 * </pre> 4745 * 4746 * <code>string package_path = 2;</code> 4747 * 4748 * @return The packagePath. 4749 */ getPackagePath()4750 public java.lang.String getPackagePath() { 4751 java.lang.Object ref = packagePath_; 4752 if (!(ref instanceof java.lang.String)) { 4753 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4754 java.lang.String s = bs.toStringUtf8(); 4755 packagePath_ = s; 4756 return s; 4757 } else { 4758 return (java.lang.String) ref; 4759 } 4760 } 4761 /** 4762 * 4763 * 4764 * <pre> 4765 * Path to the package.json. 4766 * e.g. workspace/path/to/package 4767 * </pre> 4768 * 4769 * <code>string package_path = 2;</code> 4770 * 4771 * @return The bytes for packagePath. 4772 */ getPackagePathBytes()4773 public com.google.protobuf.ByteString getPackagePathBytes() { 4774 java.lang.Object ref = packagePath_; 4775 if (ref instanceof String) { 4776 com.google.protobuf.ByteString b = 4777 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4778 packagePath_ = b; 4779 return b; 4780 } else { 4781 return (com.google.protobuf.ByteString) ref; 4782 } 4783 } 4784 /** 4785 * 4786 * 4787 * <pre> 4788 * Path to the package.json. 4789 * e.g. workspace/path/to/package 4790 * </pre> 4791 * 4792 * <code>string package_path = 2;</code> 4793 * 4794 * @param value The packagePath to set. 4795 * @return This builder for chaining. 4796 */ setPackagePath(java.lang.String value)4797 public Builder setPackagePath(java.lang.String value) { 4798 if (value == null) { 4799 throw new NullPointerException(); 4800 } 4801 packagePath_ = value; 4802 bitField0_ |= 0x00000002; 4803 onChanged(); 4804 return this; 4805 } 4806 /** 4807 * 4808 * 4809 * <pre> 4810 * Path to the package.json. 4811 * e.g. workspace/path/to/package 4812 * </pre> 4813 * 4814 * <code>string package_path = 2;</code> 4815 * 4816 * @return This builder for chaining. 4817 */ clearPackagePath()4818 public Builder clearPackagePath() { 4819 packagePath_ = getDefaultInstance().getPackagePath(); 4820 bitField0_ = (bitField0_ & ~0x00000002); 4821 onChanged(); 4822 return this; 4823 } 4824 /** 4825 * 4826 * 4827 * <pre> 4828 * Path to the package.json. 4829 * e.g. workspace/path/to/package 4830 * </pre> 4831 * 4832 * <code>string package_path = 2;</code> 4833 * 4834 * @param value The bytes for packagePath to set. 4835 * @return This builder for chaining. 4836 */ setPackagePathBytes(com.google.protobuf.ByteString value)4837 public Builder setPackagePathBytes(com.google.protobuf.ByteString value) { 4838 if (value == null) { 4839 throw new NullPointerException(); 4840 } 4841 checkByteStringIsUtf8(value); 4842 packagePath_ = value; 4843 bitField0_ |= 0x00000002; 4844 onChanged(); 4845 return this; 4846 } 4847 4848 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4849 public final Builder setUnknownFields( 4850 final com.google.protobuf.UnknownFieldSet unknownFields) { 4851 return super.setUnknownFields(unknownFields); 4852 } 4853 4854 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4855 public final Builder mergeUnknownFields( 4856 final com.google.protobuf.UnknownFieldSet unknownFields) { 4857 return super.mergeUnknownFields(unknownFields); 4858 } 4859 4860 // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Artifacts.NpmPackage) 4861 } 4862 4863 // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Artifacts.NpmPackage) 4864 private static final com.google.cloudbuild.v1.Artifacts.NpmPackage DEFAULT_INSTANCE; 4865 4866 static { 4867 DEFAULT_INSTANCE = new com.google.cloudbuild.v1.Artifacts.NpmPackage(); 4868 } 4869 getDefaultInstance()4870 public static com.google.cloudbuild.v1.Artifacts.NpmPackage getDefaultInstance() { 4871 return DEFAULT_INSTANCE; 4872 } 4873 4874 private static final com.google.protobuf.Parser<NpmPackage> PARSER = 4875 new com.google.protobuf.AbstractParser<NpmPackage>() { 4876 @java.lang.Override 4877 public NpmPackage parsePartialFrom( 4878 com.google.protobuf.CodedInputStream input, 4879 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4880 throws com.google.protobuf.InvalidProtocolBufferException { 4881 Builder builder = newBuilder(); 4882 try { 4883 builder.mergeFrom(input, extensionRegistry); 4884 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4885 throw e.setUnfinishedMessage(builder.buildPartial()); 4886 } catch (com.google.protobuf.UninitializedMessageException e) { 4887 throw e.asInvalidProtocolBufferException() 4888 .setUnfinishedMessage(builder.buildPartial()); 4889 } catch (java.io.IOException e) { 4890 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4891 .setUnfinishedMessage(builder.buildPartial()); 4892 } 4893 return builder.buildPartial(); 4894 } 4895 }; 4896 parser()4897 public static com.google.protobuf.Parser<NpmPackage> parser() { 4898 return PARSER; 4899 } 4900 4901 @java.lang.Override getParserForType()4902 public com.google.protobuf.Parser<NpmPackage> getParserForType() { 4903 return PARSER; 4904 } 4905 4906 @java.lang.Override getDefaultInstanceForType()4907 public com.google.cloudbuild.v1.Artifacts.NpmPackage getDefaultInstanceForType() { 4908 return DEFAULT_INSTANCE; 4909 } 4910 } 4911 4912 public static final int IMAGES_FIELD_NUMBER = 1; 4913 4914 @SuppressWarnings("serial") 4915 private com.google.protobuf.LazyStringList images_; 4916 /** 4917 * 4918 * 4919 * <pre> 4920 * A list of images to be pushed upon the successful completion of all build 4921 * steps. 4922 * The images will be pushed using the builder service account's credentials. 4923 * The digests of the pushed images will be stored in the Build resource's 4924 * results field. 4925 * If any of the images fail to be pushed, the build is marked FAILURE. 4926 * </pre> 4927 * 4928 * <code>repeated string images = 1;</code> 4929 * 4930 * @return A list containing the images. 4931 */ getImagesList()4932 public com.google.protobuf.ProtocolStringList getImagesList() { 4933 return images_; 4934 } 4935 /** 4936 * 4937 * 4938 * <pre> 4939 * A list of images to be pushed upon the successful completion of all build 4940 * steps. 4941 * The images will be pushed using the builder service account's credentials. 4942 * The digests of the pushed images will be stored in the Build resource's 4943 * results field. 4944 * If any of the images fail to be pushed, the build is marked FAILURE. 4945 * </pre> 4946 * 4947 * <code>repeated string images = 1;</code> 4948 * 4949 * @return The count of images. 4950 */ getImagesCount()4951 public int getImagesCount() { 4952 return images_.size(); 4953 } 4954 /** 4955 * 4956 * 4957 * <pre> 4958 * A list of images to be pushed upon the successful completion of all build 4959 * steps. 4960 * The images will be pushed using the builder service account's credentials. 4961 * The digests of the pushed images will be stored in the Build resource's 4962 * results field. 4963 * If any of the images fail to be pushed, the build is marked FAILURE. 4964 * </pre> 4965 * 4966 * <code>repeated string images = 1;</code> 4967 * 4968 * @param index The index of the element to return. 4969 * @return The images at the given index. 4970 */ getImages(int index)4971 public java.lang.String getImages(int index) { 4972 return images_.get(index); 4973 } 4974 /** 4975 * 4976 * 4977 * <pre> 4978 * A list of images to be pushed upon the successful completion of all build 4979 * steps. 4980 * The images will be pushed using the builder service account's credentials. 4981 * The digests of the pushed images will be stored in the Build resource's 4982 * results field. 4983 * If any of the images fail to be pushed, the build is marked FAILURE. 4984 * </pre> 4985 * 4986 * <code>repeated string images = 1;</code> 4987 * 4988 * @param index The index of the value to return. 4989 * @return The bytes of the images at the given index. 4990 */ getImagesBytes(int index)4991 public com.google.protobuf.ByteString getImagesBytes(int index) { 4992 return images_.getByteString(index); 4993 } 4994 4995 public static final int OBJECTS_FIELD_NUMBER = 2; 4996 private com.google.cloudbuild.v1.Artifacts.ArtifactObjects objects_; 4997 /** 4998 * 4999 * 5000 * <pre> 5001 * A list of objects to be uploaded to Cloud Storage upon successful 5002 * completion of all build steps. 5003 * Files in the workspace matching specified paths globs will be uploaded to 5004 * the specified Cloud Storage location using the builder service account's 5005 * credentials. 5006 * The location and generation of the uploaded objects will be stored in the 5007 * Build resource's results field. 5008 * If any objects fail to be pushed, the build is marked FAILURE. 5009 * </pre> 5010 * 5011 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 5012 * 5013 * @return Whether the objects field is set. 5014 */ 5015 @java.lang.Override hasObjects()5016 public boolean hasObjects() { 5017 return objects_ != null; 5018 } 5019 /** 5020 * 5021 * 5022 * <pre> 5023 * A list of objects to be uploaded to Cloud Storage upon successful 5024 * completion of all build steps. 5025 * Files in the workspace matching specified paths globs will be uploaded to 5026 * the specified Cloud Storage location using the builder service account's 5027 * credentials. 5028 * The location and generation of the uploaded objects will be stored in the 5029 * Build resource's results field. 5030 * If any objects fail to be pushed, the build is marked FAILURE. 5031 * </pre> 5032 * 5033 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 5034 * 5035 * @return The objects. 5036 */ 5037 @java.lang.Override getObjects()5038 public com.google.cloudbuild.v1.Artifacts.ArtifactObjects getObjects() { 5039 return objects_ == null 5040 ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() 5041 : objects_; 5042 } 5043 /** 5044 * 5045 * 5046 * <pre> 5047 * A list of objects to be uploaded to Cloud Storage upon successful 5048 * completion of all build steps. 5049 * Files in the workspace matching specified paths globs will be uploaded to 5050 * the specified Cloud Storage location using the builder service account's 5051 * credentials. 5052 * The location and generation of the uploaded objects will be stored in the 5053 * Build resource's results field. 5054 * If any objects fail to be pushed, the build is marked FAILURE. 5055 * </pre> 5056 * 5057 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 5058 */ 5059 @java.lang.Override getObjectsOrBuilder()5060 public com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder() { 5061 return objects_ == null 5062 ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() 5063 : objects_; 5064 } 5065 5066 public static final int MAVEN_ARTIFACTS_FIELD_NUMBER = 3; 5067 5068 @SuppressWarnings("serial") 5069 private java.util.List<com.google.cloudbuild.v1.Artifacts.MavenArtifact> mavenArtifacts_; 5070 /** 5071 * 5072 * 5073 * <pre> 5074 * A list of Maven artifacts to be uploaded to Artifact Registry upon 5075 * successful completion of all build steps. 5076 * Artifacts in the workspace matching specified paths globs will be uploaded 5077 * to the specified Artifact Registry repository using the builder service 5078 * account's credentials. 5079 * If any artifacts fail to be pushed, the build is marked FAILURE. 5080 * </pre> 5081 * 5082 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 5083 * </code> 5084 */ 5085 @java.lang.Override getMavenArtifactsList()5086 public java.util.List<com.google.cloudbuild.v1.Artifacts.MavenArtifact> getMavenArtifactsList() { 5087 return mavenArtifacts_; 5088 } 5089 /** 5090 * 5091 * 5092 * <pre> 5093 * A list of Maven artifacts to be uploaded to Artifact Registry upon 5094 * successful completion of all build steps. 5095 * Artifacts in the workspace matching specified paths globs will be uploaded 5096 * to the specified Artifact Registry repository using the builder service 5097 * account's credentials. 5098 * If any artifacts fail to be pushed, the build is marked FAILURE. 5099 * </pre> 5100 * 5101 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 5102 * </code> 5103 */ 5104 @java.lang.Override 5105 public java.util.List<? extends com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder> getMavenArtifactsOrBuilderList()5106 getMavenArtifactsOrBuilderList() { 5107 return mavenArtifacts_; 5108 } 5109 /** 5110 * 5111 * 5112 * <pre> 5113 * A list of Maven artifacts to be uploaded to Artifact Registry upon 5114 * successful completion of all build steps. 5115 * Artifacts in the workspace matching specified paths globs will be uploaded 5116 * to the specified Artifact Registry repository using the builder service 5117 * account's credentials. 5118 * If any artifacts fail to be pushed, the build is marked FAILURE. 5119 * </pre> 5120 * 5121 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 5122 * </code> 5123 */ 5124 @java.lang.Override getMavenArtifactsCount()5125 public int getMavenArtifactsCount() { 5126 return mavenArtifacts_.size(); 5127 } 5128 /** 5129 * 5130 * 5131 * <pre> 5132 * A list of Maven artifacts to be uploaded to Artifact Registry upon 5133 * successful completion of all build steps. 5134 * Artifacts in the workspace matching specified paths globs will be uploaded 5135 * to the specified Artifact Registry repository using the builder service 5136 * account's credentials. 5137 * If any artifacts fail to be pushed, the build is marked FAILURE. 5138 * </pre> 5139 * 5140 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 5141 * </code> 5142 */ 5143 @java.lang.Override getMavenArtifacts(int index)5144 public com.google.cloudbuild.v1.Artifacts.MavenArtifact getMavenArtifacts(int index) { 5145 return mavenArtifacts_.get(index); 5146 } 5147 /** 5148 * 5149 * 5150 * <pre> 5151 * A list of Maven artifacts to be uploaded to Artifact Registry upon 5152 * successful completion of all build steps. 5153 * Artifacts in the workspace matching specified paths globs will be uploaded 5154 * to the specified Artifact Registry repository using the builder service 5155 * account's credentials. 5156 * If any artifacts fail to be pushed, the build is marked FAILURE. 5157 * </pre> 5158 * 5159 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 5160 * </code> 5161 */ 5162 @java.lang.Override getMavenArtifactsOrBuilder( int index)5163 public com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder getMavenArtifactsOrBuilder( 5164 int index) { 5165 return mavenArtifacts_.get(index); 5166 } 5167 5168 public static final int PYTHON_PACKAGES_FIELD_NUMBER = 5; 5169 5170 @SuppressWarnings("serial") 5171 private java.util.List<com.google.cloudbuild.v1.Artifacts.PythonPackage> pythonPackages_; 5172 /** 5173 * 5174 * 5175 * <pre> 5176 * A list of Python packages to be uploaded to Artifact Registry upon 5177 * successful completion of all build steps. 5178 * The build service account credentials will be used to perform the upload. 5179 * If any objects fail to be pushed, the build is marked FAILURE. 5180 * </pre> 5181 * 5182 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 5183 * </code> 5184 */ 5185 @java.lang.Override getPythonPackagesList()5186 public java.util.List<com.google.cloudbuild.v1.Artifacts.PythonPackage> getPythonPackagesList() { 5187 return pythonPackages_; 5188 } 5189 /** 5190 * 5191 * 5192 * <pre> 5193 * A list of Python packages to be uploaded to Artifact Registry upon 5194 * successful completion of all build steps. 5195 * The build service account credentials will be used to perform the upload. 5196 * If any objects fail to be pushed, the build is marked FAILURE. 5197 * </pre> 5198 * 5199 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 5200 * </code> 5201 */ 5202 @java.lang.Override 5203 public java.util.List<? extends com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder> getPythonPackagesOrBuilderList()5204 getPythonPackagesOrBuilderList() { 5205 return pythonPackages_; 5206 } 5207 /** 5208 * 5209 * 5210 * <pre> 5211 * A list of Python packages to be uploaded to Artifact Registry upon 5212 * successful completion of all build steps. 5213 * The build service account credentials will be used to perform the upload. 5214 * If any objects fail to be pushed, the build is marked FAILURE. 5215 * </pre> 5216 * 5217 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 5218 * </code> 5219 */ 5220 @java.lang.Override getPythonPackagesCount()5221 public int getPythonPackagesCount() { 5222 return pythonPackages_.size(); 5223 } 5224 /** 5225 * 5226 * 5227 * <pre> 5228 * A list of Python packages to be uploaded to Artifact Registry upon 5229 * successful completion of all build steps. 5230 * The build service account credentials will be used to perform the upload. 5231 * If any objects fail to be pushed, the build is marked FAILURE. 5232 * </pre> 5233 * 5234 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 5235 * </code> 5236 */ 5237 @java.lang.Override getPythonPackages(int index)5238 public com.google.cloudbuild.v1.Artifacts.PythonPackage getPythonPackages(int index) { 5239 return pythonPackages_.get(index); 5240 } 5241 /** 5242 * 5243 * 5244 * <pre> 5245 * A list of Python packages to be uploaded to Artifact Registry upon 5246 * successful completion of all build steps. 5247 * The build service account credentials will be used to perform the upload. 5248 * If any objects fail to be pushed, the build is marked FAILURE. 5249 * </pre> 5250 * 5251 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 5252 * </code> 5253 */ 5254 @java.lang.Override getPythonPackagesOrBuilder( int index)5255 public com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder getPythonPackagesOrBuilder( 5256 int index) { 5257 return pythonPackages_.get(index); 5258 } 5259 5260 public static final int NPM_PACKAGES_FIELD_NUMBER = 6; 5261 5262 @SuppressWarnings("serial") 5263 private java.util.List<com.google.cloudbuild.v1.Artifacts.NpmPackage> npmPackages_; 5264 /** 5265 * 5266 * 5267 * <pre> 5268 * A list of npm packages to be uploaded to Artifact Registry upon 5269 * successful completion of all build steps. 5270 * Npm packages in the specified paths will be uploaded 5271 * to the specified Artifact Registry repository using the builder service 5272 * account's credentials. 5273 * If any packages fail to be pushed, the build is marked FAILURE. 5274 * </pre> 5275 * 5276 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 5277 */ 5278 @java.lang.Override getNpmPackagesList()5279 public java.util.List<com.google.cloudbuild.v1.Artifacts.NpmPackage> getNpmPackagesList() { 5280 return npmPackages_; 5281 } 5282 /** 5283 * 5284 * 5285 * <pre> 5286 * A list of npm packages to be uploaded to Artifact Registry upon 5287 * successful completion of all build steps. 5288 * Npm packages in the specified paths will be uploaded 5289 * to the specified Artifact Registry repository using the builder service 5290 * account's credentials. 5291 * If any packages fail to be pushed, the build is marked FAILURE. 5292 * </pre> 5293 * 5294 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 5295 */ 5296 @java.lang.Override 5297 public java.util.List<? extends com.google.cloudbuild.v1.Artifacts.NpmPackageOrBuilder> getNpmPackagesOrBuilderList()5298 getNpmPackagesOrBuilderList() { 5299 return npmPackages_; 5300 } 5301 /** 5302 * 5303 * 5304 * <pre> 5305 * A list of npm packages to be uploaded to Artifact Registry upon 5306 * successful completion of all build steps. 5307 * Npm packages in the specified paths will be uploaded 5308 * to the specified Artifact Registry repository using the builder service 5309 * account's credentials. 5310 * If any packages fail to be pushed, the build is marked FAILURE. 5311 * </pre> 5312 * 5313 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 5314 */ 5315 @java.lang.Override getNpmPackagesCount()5316 public int getNpmPackagesCount() { 5317 return npmPackages_.size(); 5318 } 5319 /** 5320 * 5321 * 5322 * <pre> 5323 * A list of npm packages to be uploaded to Artifact Registry upon 5324 * successful completion of all build steps. 5325 * Npm packages in the specified paths will be uploaded 5326 * to the specified Artifact Registry repository using the builder service 5327 * account's credentials. 5328 * If any packages fail to be pushed, the build is marked FAILURE. 5329 * </pre> 5330 * 5331 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 5332 */ 5333 @java.lang.Override getNpmPackages(int index)5334 public com.google.cloudbuild.v1.Artifacts.NpmPackage getNpmPackages(int index) { 5335 return npmPackages_.get(index); 5336 } 5337 /** 5338 * 5339 * 5340 * <pre> 5341 * A list of npm packages to be uploaded to Artifact Registry upon 5342 * successful completion of all build steps. 5343 * Npm packages in the specified paths will be uploaded 5344 * to the specified Artifact Registry repository using the builder service 5345 * account's credentials. 5346 * If any packages fail to be pushed, the build is marked FAILURE. 5347 * </pre> 5348 * 5349 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 5350 */ 5351 @java.lang.Override getNpmPackagesOrBuilder(int index)5352 public com.google.cloudbuild.v1.Artifacts.NpmPackageOrBuilder getNpmPackagesOrBuilder(int index) { 5353 return npmPackages_.get(index); 5354 } 5355 5356 private byte memoizedIsInitialized = -1; 5357 5358 @java.lang.Override isInitialized()5359 public final boolean isInitialized() { 5360 byte isInitialized = memoizedIsInitialized; 5361 if (isInitialized == 1) return true; 5362 if (isInitialized == 0) return false; 5363 5364 memoizedIsInitialized = 1; 5365 return true; 5366 } 5367 5368 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)5369 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 5370 for (int i = 0; i < images_.size(); i++) { 5371 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, images_.getRaw(i)); 5372 } 5373 if (objects_ != null) { 5374 output.writeMessage(2, getObjects()); 5375 } 5376 for (int i = 0; i < mavenArtifacts_.size(); i++) { 5377 output.writeMessage(3, mavenArtifacts_.get(i)); 5378 } 5379 for (int i = 0; i < pythonPackages_.size(); i++) { 5380 output.writeMessage(5, pythonPackages_.get(i)); 5381 } 5382 for (int i = 0; i < npmPackages_.size(); i++) { 5383 output.writeMessage(6, npmPackages_.get(i)); 5384 } 5385 getUnknownFields().writeTo(output); 5386 } 5387 5388 @java.lang.Override getSerializedSize()5389 public int getSerializedSize() { 5390 int size = memoizedSize; 5391 if (size != -1) return size; 5392 5393 size = 0; 5394 { 5395 int dataSize = 0; 5396 for (int i = 0; i < images_.size(); i++) { 5397 dataSize += computeStringSizeNoTag(images_.getRaw(i)); 5398 } 5399 size += dataSize; 5400 size += 1 * getImagesList().size(); 5401 } 5402 if (objects_ != null) { 5403 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjects()); 5404 } 5405 for (int i = 0; i < mavenArtifacts_.size(); i++) { 5406 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, mavenArtifacts_.get(i)); 5407 } 5408 for (int i = 0; i < pythonPackages_.size(); i++) { 5409 size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, pythonPackages_.get(i)); 5410 } 5411 for (int i = 0; i < npmPackages_.size(); i++) { 5412 size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, npmPackages_.get(i)); 5413 } 5414 size += getUnknownFields().getSerializedSize(); 5415 memoizedSize = size; 5416 return size; 5417 } 5418 5419 @java.lang.Override equals(final java.lang.Object obj)5420 public boolean equals(final java.lang.Object obj) { 5421 if (obj == this) { 5422 return true; 5423 } 5424 if (!(obj instanceof com.google.cloudbuild.v1.Artifacts)) { 5425 return super.equals(obj); 5426 } 5427 com.google.cloudbuild.v1.Artifacts other = (com.google.cloudbuild.v1.Artifacts) obj; 5428 5429 if (!getImagesList().equals(other.getImagesList())) return false; 5430 if (hasObjects() != other.hasObjects()) return false; 5431 if (hasObjects()) { 5432 if (!getObjects().equals(other.getObjects())) return false; 5433 } 5434 if (!getMavenArtifactsList().equals(other.getMavenArtifactsList())) return false; 5435 if (!getPythonPackagesList().equals(other.getPythonPackagesList())) return false; 5436 if (!getNpmPackagesList().equals(other.getNpmPackagesList())) return false; 5437 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 5438 return true; 5439 } 5440 5441 @java.lang.Override hashCode()5442 public int hashCode() { 5443 if (memoizedHashCode != 0) { 5444 return memoizedHashCode; 5445 } 5446 int hash = 41; 5447 hash = (19 * hash) + getDescriptor().hashCode(); 5448 if (getImagesCount() > 0) { 5449 hash = (37 * hash) + IMAGES_FIELD_NUMBER; 5450 hash = (53 * hash) + getImagesList().hashCode(); 5451 } 5452 if (hasObjects()) { 5453 hash = (37 * hash) + OBJECTS_FIELD_NUMBER; 5454 hash = (53 * hash) + getObjects().hashCode(); 5455 } 5456 if (getMavenArtifactsCount() > 0) { 5457 hash = (37 * hash) + MAVEN_ARTIFACTS_FIELD_NUMBER; 5458 hash = (53 * hash) + getMavenArtifactsList().hashCode(); 5459 } 5460 if (getPythonPackagesCount() > 0) { 5461 hash = (37 * hash) + PYTHON_PACKAGES_FIELD_NUMBER; 5462 hash = (53 * hash) + getPythonPackagesList().hashCode(); 5463 } 5464 if (getNpmPackagesCount() > 0) { 5465 hash = (37 * hash) + NPM_PACKAGES_FIELD_NUMBER; 5466 hash = (53 * hash) + getNpmPackagesList().hashCode(); 5467 } 5468 hash = (29 * hash) + getUnknownFields().hashCode(); 5469 memoizedHashCode = hash; 5470 return hash; 5471 } 5472 parseFrom(java.nio.ByteBuffer data)5473 public static com.google.cloudbuild.v1.Artifacts parseFrom(java.nio.ByteBuffer data) 5474 throws com.google.protobuf.InvalidProtocolBufferException { 5475 return PARSER.parseFrom(data); 5476 } 5477 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5478 public static com.google.cloudbuild.v1.Artifacts parseFrom( 5479 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5480 throws com.google.protobuf.InvalidProtocolBufferException { 5481 return PARSER.parseFrom(data, extensionRegistry); 5482 } 5483 parseFrom(com.google.protobuf.ByteString data)5484 public static com.google.cloudbuild.v1.Artifacts parseFrom(com.google.protobuf.ByteString data) 5485 throws com.google.protobuf.InvalidProtocolBufferException { 5486 return PARSER.parseFrom(data); 5487 } 5488 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5489 public static com.google.cloudbuild.v1.Artifacts parseFrom( 5490 com.google.protobuf.ByteString data, 5491 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5492 throws com.google.protobuf.InvalidProtocolBufferException { 5493 return PARSER.parseFrom(data, extensionRegistry); 5494 } 5495 parseFrom(byte[] data)5496 public static com.google.cloudbuild.v1.Artifacts parseFrom(byte[] data) 5497 throws com.google.protobuf.InvalidProtocolBufferException { 5498 return PARSER.parseFrom(data); 5499 } 5500 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5501 public static com.google.cloudbuild.v1.Artifacts parseFrom( 5502 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5503 throws com.google.protobuf.InvalidProtocolBufferException { 5504 return PARSER.parseFrom(data, extensionRegistry); 5505 } 5506 parseFrom(java.io.InputStream input)5507 public static com.google.cloudbuild.v1.Artifacts parseFrom(java.io.InputStream input) 5508 throws java.io.IOException { 5509 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 5510 } 5511 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5512 public static com.google.cloudbuild.v1.Artifacts parseFrom( 5513 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5514 throws java.io.IOException { 5515 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 5516 PARSER, input, extensionRegistry); 5517 } 5518 parseDelimitedFrom(java.io.InputStream input)5519 public static com.google.cloudbuild.v1.Artifacts parseDelimitedFrom(java.io.InputStream input) 5520 throws java.io.IOException { 5521 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 5522 } 5523 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5524 public static com.google.cloudbuild.v1.Artifacts parseDelimitedFrom( 5525 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5526 throws java.io.IOException { 5527 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 5528 PARSER, input, extensionRegistry); 5529 } 5530 parseFrom( com.google.protobuf.CodedInputStream input)5531 public static com.google.cloudbuild.v1.Artifacts parseFrom( 5532 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 5533 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 5534 } 5535 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5536 public static com.google.cloudbuild.v1.Artifacts parseFrom( 5537 com.google.protobuf.CodedInputStream input, 5538 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5539 throws java.io.IOException { 5540 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 5541 PARSER, input, extensionRegistry); 5542 } 5543 5544 @java.lang.Override newBuilderForType()5545 public Builder newBuilderForType() { 5546 return newBuilder(); 5547 } 5548 newBuilder()5549 public static Builder newBuilder() { 5550 return DEFAULT_INSTANCE.toBuilder(); 5551 } 5552 newBuilder(com.google.cloudbuild.v1.Artifacts prototype)5553 public static Builder newBuilder(com.google.cloudbuild.v1.Artifacts prototype) { 5554 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 5555 } 5556 5557 @java.lang.Override toBuilder()5558 public Builder toBuilder() { 5559 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 5560 } 5561 5562 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5563 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5564 Builder builder = new Builder(parent); 5565 return builder; 5566 } 5567 /** 5568 * 5569 * 5570 * <pre> 5571 * Artifacts produced by a build that should be uploaded upon 5572 * successful completion of all build steps. 5573 * </pre> 5574 * 5575 * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts} 5576 */ 5577 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 5578 implements 5579 // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Artifacts) 5580 com.google.cloudbuild.v1.ArtifactsOrBuilder { getDescriptor()5581 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 5582 return com.google.cloudbuild.v1.Cloudbuild 5583 .internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor; 5584 } 5585 5586 @java.lang.Override 5587 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()5588 internalGetFieldAccessorTable() { 5589 return com.google.cloudbuild.v1.Cloudbuild 5590 .internal_static_google_devtools_cloudbuild_v1_Artifacts_fieldAccessorTable 5591 .ensureFieldAccessorsInitialized( 5592 com.google.cloudbuild.v1.Artifacts.class, 5593 com.google.cloudbuild.v1.Artifacts.Builder.class); 5594 } 5595 5596 // Construct using com.google.cloudbuild.v1.Artifacts.newBuilder() Builder()5597 private Builder() {} 5598 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5599 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5600 super(parent); 5601 } 5602 5603 @java.lang.Override clear()5604 public Builder clear() { 5605 super.clear(); 5606 bitField0_ = 0; 5607 images_ = com.google.protobuf.LazyStringArrayList.EMPTY; 5608 bitField0_ = (bitField0_ & ~0x00000001); 5609 objects_ = null; 5610 if (objectsBuilder_ != null) { 5611 objectsBuilder_.dispose(); 5612 objectsBuilder_ = null; 5613 } 5614 if (mavenArtifactsBuilder_ == null) { 5615 mavenArtifacts_ = java.util.Collections.emptyList(); 5616 } else { 5617 mavenArtifacts_ = null; 5618 mavenArtifactsBuilder_.clear(); 5619 } 5620 bitField0_ = (bitField0_ & ~0x00000004); 5621 if (pythonPackagesBuilder_ == null) { 5622 pythonPackages_ = java.util.Collections.emptyList(); 5623 } else { 5624 pythonPackages_ = null; 5625 pythonPackagesBuilder_.clear(); 5626 } 5627 bitField0_ = (bitField0_ & ~0x00000008); 5628 if (npmPackagesBuilder_ == null) { 5629 npmPackages_ = java.util.Collections.emptyList(); 5630 } else { 5631 npmPackages_ = null; 5632 npmPackagesBuilder_.clear(); 5633 } 5634 bitField0_ = (bitField0_ & ~0x00000010); 5635 return this; 5636 } 5637 5638 @java.lang.Override getDescriptorForType()5639 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 5640 return com.google.cloudbuild.v1.Cloudbuild 5641 .internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor; 5642 } 5643 5644 @java.lang.Override getDefaultInstanceForType()5645 public com.google.cloudbuild.v1.Artifacts getDefaultInstanceForType() { 5646 return com.google.cloudbuild.v1.Artifacts.getDefaultInstance(); 5647 } 5648 5649 @java.lang.Override build()5650 public com.google.cloudbuild.v1.Artifacts build() { 5651 com.google.cloudbuild.v1.Artifacts result = buildPartial(); 5652 if (!result.isInitialized()) { 5653 throw newUninitializedMessageException(result); 5654 } 5655 return result; 5656 } 5657 5658 @java.lang.Override buildPartial()5659 public com.google.cloudbuild.v1.Artifacts buildPartial() { 5660 com.google.cloudbuild.v1.Artifacts result = new com.google.cloudbuild.v1.Artifacts(this); 5661 buildPartialRepeatedFields(result); 5662 if (bitField0_ != 0) { 5663 buildPartial0(result); 5664 } 5665 onBuilt(); 5666 return result; 5667 } 5668 buildPartialRepeatedFields(com.google.cloudbuild.v1.Artifacts result)5669 private void buildPartialRepeatedFields(com.google.cloudbuild.v1.Artifacts result) { 5670 if (((bitField0_ & 0x00000001) != 0)) { 5671 images_ = images_.getUnmodifiableView(); 5672 bitField0_ = (bitField0_ & ~0x00000001); 5673 } 5674 result.images_ = images_; 5675 if (mavenArtifactsBuilder_ == null) { 5676 if (((bitField0_ & 0x00000004) != 0)) { 5677 mavenArtifacts_ = java.util.Collections.unmodifiableList(mavenArtifacts_); 5678 bitField0_ = (bitField0_ & ~0x00000004); 5679 } 5680 result.mavenArtifacts_ = mavenArtifacts_; 5681 } else { 5682 result.mavenArtifacts_ = mavenArtifactsBuilder_.build(); 5683 } 5684 if (pythonPackagesBuilder_ == null) { 5685 if (((bitField0_ & 0x00000008) != 0)) { 5686 pythonPackages_ = java.util.Collections.unmodifiableList(pythonPackages_); 5687 bitField0_ = (bitField0_ & ~0x00000008); 5688 } 5689 result.pythonPackages_ = pythonPackages_; 5690 } else { 5691 result.pythonPackages_ = pythonPackagesBuilder_.build(); 5692 } 5693 if (npmPackagesBuilder_ == null) { 5694 if (((bitField0_ & 0x00000010) != 0)) { 5695 npmPackages_ = java.util.Collections.unmodifiableList(npmPackages_); 5696 bitField0_ = (bitField0_ & ~0x00000010); 5697 } 5698 result.npmPackages_ = npmPackages_; 5699 } else { 5700 result.npmPackages_ = npmPackagesBuilder_.build(); 5701 } 5702 } 5703 buildPartial0(com.google.cloudbuild.v1.Artifacts result)5704 private void buildPartial0(com.google.cloudbuild.v1.Artifacts result) { 5705 int from_bitField0_ = bitField0_; 5706 if (((from_bitField0_ & 0x00000002) != 0)) { 5707 result.objects_ = objectsBuilder_ == null ? objects_ : objectsBuilder_.build(); 5708 } 5709 } 5710 5711 @java.lang.Override clone()5712 public Builder clone() { 5713 return super.clone(); 5714 } 5715 5716 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5717 public Builder setField( 5718 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 5719 return super.setField(field, value); 5720 } 5721 5722 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)5723 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 5724 return super.clearField(field); 5725 } 5726 5727 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)5728 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 5729 return super.clearOneof(oneof); 5730 } 5731 5732 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)5733 public Builder setRepeatedField( 5734 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 5735 return super.setRepeatedField(field, index, value); 5736 } 5737 5738 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5739 public Builder addRepeatedField( 5740 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 5741 return super.addRepeatedField(field, value); 5742 } 5743 5744 @java.lang.Override mergeFrom(com.google.protobuf.Message other)5745 public Builder mergeFrom(com.google.protobuf.Message other) { 5746 if (other instanceof com.google.cloudbuild.v1.Artifacts) { 5747 return mergeFrom((com.google.cloudbuild.v1.Artifacts) other); 5748 } else { 5749 super.mergeFrom(other); 5750 return this; 5751 } 5752 } 5753 mergeFrom(com.google.cloudbuild.v1.Artifacts other)5754 public Builder mergeFrom(com.google.cloudbuild.v1.Artifacts other) { 5755 if (other == com.google.cloudbuild.v1.Artifacts.getDefaultInstance()) return this; 5756 if (!other.images_.isEmpty()) { 5757 if (images_.isEmpty()) { 5758 images_ = other.images_; 5759 bitField0_ = (bitField0_ & ~0x00000001); 5760 } else { 5761 ensureImagesIsMutable(); 5762 images_.addAll(other.images_); 5763 } 5764 onChanged(); 5765 } 5766 if (other.hasObjects()) { 5767 mergeObjects(other.getObjects()); 5768 } 5769 if (mavenArtifactsBuilder_ == null) { 5770 if (!other.mavenArtifacts_.isEmpty()) { 5771 if (mavenArtifacts_.isEmpty()) { 5772 mavenArtifacts_ = other.mavenArtifacts_; 5773 bitField0_ = (bitField0_ & ~0x00000004); 5774 } else { 5775 ensureMavenArtifactsIsMutable(); 5776 mavenArtifacts_.addAll(other.mavenArtifacts_); 5777 } 5778 onChanged(); 5779 } 5780 } else { 5781 if (!other.mavenArtifacts_.isEmpty()) { 5782 if (mavenArtifactsBuilder_.isEmpty()) { 5783 mavenArtifactsBuilder_.dispose(); 5784 mavenArtifactsBuilder_ = null; 5785 mavenArtifacts_ = other.mavenArtifacts_; 5786 bitField0_ = (bitField0_ & ~0x00000004); 5787 mavenArtifactsBuilder_ = 5788 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 5789 ? getMavenArtifactsFieldBuilder() 5790 : null; 5791 } else { 5792 mavenArtifactsBuilder_.addAllMessages(other.mavenArtifacts_); 5793 } 5794 } 5795 } 5796 if (pythonPackagesBuilder_ == null) { 5797 if (!other.pythonPackages_.isEmpty()) { 5798 if (pythonPackages_.isEmpty()) { 5799 pythonPackages_ = other.pythonPackages_; 5800 bitField0_ = (bitField0_ & ~0x00000008); 5801 } else { 5802 ensurePythonPackagesIsMutable(); 5803 pythonPackages_.addAll(other.pythonPackages_); 5804 } 5805 onChanged(); 5806 } 5807 } else { 5808 if (!other.pythonPackages_.isEmpty()) { 5809 if (pythonPackagesBuilder_.isEmpty()) { 5810 pythonPackagesBuilder_.dispose(); 5811 pythonPackagesBuilder_ = null; 5812 pythonPackages_ = other.pythonPackages_; 5813 bitField0_ = (bitField0_ & ~0x00000008); 5814 pythonPackagesBuilder_ = 5815 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 5816 ? getPythonPackagesFieldBuilder() 5817 : null; 5818 } else { 5819 pythonPackagesBuilder_.addAllMessages(other.pythonPackages_); 5820 } 5821 } 5822 } 5823 if (npmPackagesBuilder_ == null) { 5824 if (!other.npmPackages_.isEmpty()) { 5825 if (npmPackages_.isEmpty()) { 5826 npmPackages_ = other.npmPackages_; 5827 bitField0_ = (bitField0_ & ~0x00000010); 5828 } else { 5829 ensureNpmPackagesIsMutable(); 5830 npmPackages_.addAll(other.npmPackages_); 5831 } 5832 onChanged(); 5833 } 5834 } else { 5835 if (!other.npmPackages_.isEmpty()) { 5836 if (npmPackagesBuilder_.isEmpty()) { 5837 npmPackagesBuilder_.dispose(); 5838 npmPackagesBuilder_ = null; 5839 npmPackages_ = other.npmPackages_; 5840 bitField0_ = (bitField0_ & ~0x00000010); 5841 npmPackagesBuilder_ = 5842 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 5843 ? getNpmPackagesFieldBuilder() 5844 : null; 5845 } else { 5846 npmPackagesBuilder_.addAllMessages(other.npmPackages_); 5847 } 5848 } 5849 } 5850 this.mergeUnknownFields(other.getUnknownFields()); 5851 onChanged(); 5852 return this; 5853 } 5854 5855 @java.lang.Override isInitialized()5856 public final boolean isInitialized() { 5857 return true; 5858 } 5859 5860 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5861 public Builder mergeFrom( 5862 com.google.protobuf.CodedInputStream input, 5863 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5864 throws java.io.IOException { 5865 if (extensionRegistry == null) { 5866 throw new java.lang.NullPointerException(); 5867 } 5868 try { 5869 boolean done = false; 5870 while (!done) { 5871 int tag = input.readTag(); 5872 switch (tag) { 5873 case 0: 5874 done = true; 5875 break; 5876 case 10: 5877 { 5878 java.lang.String s = input.readStringRequireUtf8(); 5879 ensureImagesIsMutable(); 5880 images_.add(s); 5881 break; 5882 } // case 10 5883 case 18: 5884 { 5885 input.readMessage(getObjectsFieldBuilder().getBuilder(), extensionRegistry); 5886 bitField0_ |= 0x00000002; 5887 break; 5888 } // case 18 5889 case 26: 5890 { 5891 com.google.cloudbuild.v1.Artifacts.MavenArtifact m = 5892 input.readMessage( 5893 com.google.cloudbuild.v1.Artifacts.MavenArtifact.parser(), 5894 extensionRegistry); 5895 if (mavenArtifactsBuilder_ == null) { 5896 ensureMavenArtifactsIsMutable(); 5897 mavenArtifacts_.add(m); 5898 } else { 5899 mavenArtifactsBuilder_.addMessage(m); 5900 } 5901 break; 5902 } // case 26 5903 case 42: 5904 { 5905 com.google.cloudbuild.v1.Artifacts.PythonPackage m = 5906 input.readMessage( 5907 com.google.cloudbuild.v1.Artifacts.PythonPackage.parser(), 5908 extensionRegistry); 5909 if (pythonPackagesBuilder_ == null) { 5910 ensurePythonPackagesIsMutable(); 5911 pythonPackages_.add(m); 5912 } else { 5913 pythonPackagesBuilder_.addMessage(m); 5914 } 5915 break; 5916 } // case 42 5917 case 50: 5918 { 5919 com.google.cloudbuild.v1.Artifacts.NpmPackage m = 5920 input.readMessage( 5921 com.google.cloudbuild.v1.Artifacts.NpmPackage.parser(), extensionRegistry); 5922 if (npmPackagesBuilder_ == null) { 5923 ensureNpmPackagesIsMutable(); 5924 npmPackages_.add(m); 5925 } else { 5926 npmPackagesBuilder_.addMessage(m); 5927 } 5928 break; 5929 } // case 50 5930 default: 5931 { 5932 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 5933 done = true; // was an endgroup tag 5934 } 5935 break; 5936 } // default: 5937 } // switch (tag) 5938 } // while (!done) 5939 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5940 throw e.unwrapIOException(); 5941 } finally { 5942 onChanged(); 5943 } // finally 5944 return this; 5945 } 5946 5947 private int bitField0_; 5948 5949 private com.google.protobuf.LazyStringList images_ = 5950 com.google.protobuf.LazyStringArrayList.EMPTY; 5951 ensureImagesIsMutable()5952 private void ensureImagesIsMutable() { 5953 if (!((bitField0_ & 0x00000001) != 0)) { 5954 images_ = new com.google.protobuf.LazyStringArrayList(images_); 5955 bitField0_ |= 0x00000001; 5956 } 5957 } 5958 /** 5959 * 5960 * 5961 * <pre> 5962 * A list of images to be pushed upon the successful completion of all build 5963 * steps. 5964 * The images will be pushed using the builder service account's credentials. 5965 * The digests of the pushed images will be stored in the Build resource's 5966 * results field. 5967 * If any of the images fail to be pushed, the build is marked FAILURE. 5968 * </pre> 5969 * 5970 * <code>repeated string images = 1;</code> 5971 * 5972 * @return A list containing the images. 5973 */ getImagesList()5974 public com.google.protobuf.ProtocolStringList getImagesList() { 5975 return images_.getUnmodifiableView(); 5976 } 5977 /** 5978 * 5979 * 5980 * <pre> 5981 * A list of images to be pushed upon the successful completion of all build 5982 * steps. 5983 * The images will be pushed using the builder service account's credentials. 5984 * The digests of the pushed images will be stored in the Build resource's 5985 * results field. 5986 * If any of the images fail to be pushed, the build is marked FAILURE. 5987 * </pre> 5988 * 5989 * <code>repeated string images = 1;</code> 5990 * 5991 * @return The count of images. 5992 */ getImagesCount()5993 public int getImagesCount() { 5994 return images_.size(); 5995 } 5996 /** 5997 * 5998 * 5999 * <pre> 6000 * A list of images to be pushed upon the successful completion of all build 6001 * steps. 6002 * The images will be pushed using the builder service account's credentials. 6003 * The digests of the pushed images will be stored in the Build resource's 6004 * results field. 6005 * If any of the images fail to be pushed, the build is marked FAILURE. 6006 * </pre> 6007 * 6008 * <code>repeated string images = 1;</code> 6009 * 6010 * @param index The index of the element to return. 6011 * @return The images at the given index. 6012 */ getImages(int index)6013 public java.lang.String getImages(int index) { 6014 return images_.get(index); 6015 } 6016 /** 6017 * 6018 * 6019 * <pre> 6020 * A list of images to be pushed upon the successful completion of all build 6021 * steps. 6022 * The images will be pushed using the builder service account's credentials. 6023 * The digests of the pushed images will be stored in the Build resource's 6024 * results field. 6025 * If any of the images fail to be pushed, the build is marked FAILURE. 6026 * </pre> 6027 * 6028 * <code>repeated string images = 1;</code> 6029 * 6030 * @param index The index of the value to return. 6031 * @return The bytes of the images at the given index. 6032 */ getImagesBytes(int index)6033 public com.google.protobuf.ByteString getImagesBytes(int index) { 6034 return images_.getByteString(index); 6035 } 6036 /** 6037 * 6038 * 6039 * <pre> 6040 * A list of images to be pushed upon the successful completion of all build 6041 * steps. 6042 * The images will be pushed using the builder service account's credentials. 6043 * The digests of the pushed images will be stored in the Build resource's 6044 * results field. 6045 * If any of the images fail to be pushed, the build is marked FAILURE. 6046 * </pre> 6047 * 6048 * <code>repeated string images = 1;</code> 6049 * 6050 * @param index The index to set the value at. 6051 * @param value The images to set. 6052 * @return This builder for chaining. 6053 */ setImages(int index, java.lang.String value)6054 public Builder setImages(int index, java.lang.String value) { 6055 if (value == null) { 6056 throw new NullPointerException(); 6057 } 6058 ensureImagesIsMutable(); 6059 images_.set(index, value); 6060 onChanged(); 6061 return this; 6062 } 6063 /** 6064 * 6065 * 6066 * <pre> 6067 * A list of images to be pushed upon the successful completion of all build 6068 * steps. 6069 * The images will be pushed using the builder service account's credentials. 6070 * The digests of the pushed images will be stored in the Build resource's 6071 * results field. 6072 * If any of the images fail to be pushed, the build is marked FAILURE. 6073 * </pre> 6074 * 6075 * <code>repeated string images = 1;</code> 6076 * 6077 * @param value The images to add. 6078 * @return This builder for chaining. 6079 */ addImages(java.lang.String value)6080 public Builder addImages(java.lang.String value) { 6081 if (value == null) { 6082 throw new NullPointerException(); 6083 } 6084 ensureImagesIsMutable(); 6085 images_.add(value); 6086 onChanged(); 6087 return this; 6088 } 6089 /** 6090 * 6091 * 6092 * <pre> 6093 * A list of images to be pushed upon the successful completion of all build 6094 * steps. 6095 * The images will be pushed using the builder service account's credentials. 6096 * The digests of the pushed images will be stored in the Build resource's 6097 * results field. 6098 * If any of the images fail to be pushed, the build is marked FAILURE. 6099 * </pre> 6100 * 6101 * <code>repeated string images = 1;</code> 6102 * 6103 * @param values The images to add. 6104 * @return This builder for chaining. 6105 */ addAllImages(java.lang.Iterable<java.lang.String> values)6106 public Builder addAllImages(java.lang.Iterable<java.lang.String> values) { 6107 ensureImagesIsMutable(); 6108 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); 6109 onChanged(); 6110 return this; 6111 } 6112 /** 6113 * 6114 * 6115 * <pre> 6116 * A list of images to be pushed upon the successful completion of all build 6117 * steps. 6118 * The images will be pushed using the builder service account's credentials. 6119 * The digests of the pushed images will be stored in the Build resource's 6120 * results field. 6121 * If any of the images fail to be pushed, the build is marked FAILURE. 6122 * </pre> 6123 * 6124 * <code>repeated string images = 1;</code> 6125 * 6126 * @return This builder for chaining. 6127 */ clearImages()6128 public Builder clearImages() { 6129 images_ = com.google.protobuf.LazyStringArrayList.EMPTY; 6130 bitField0_ = (bitField0_ & ~0x00000001); 6131 onChanged(); 6132 return this; 6133 } 6134 /** 6135 * 6136 * 6137 * <pre> 6138 * A list of images to be pushed upon the successful completion of all build 6139 * steps. 6140 * The images will be pushed using the builder service account's credentials. 6141 * The digests of the pushed images will be stored in the Build resource's 6142 * results field. 6143 * If any of the images fail to be pushed, the build is marked FAILURE. 6144 * </pre> 6145 * 6146 * <code>repeated string images = 1;</code> 6147 * 6148 * @param value The bytes of the images to add. 6149 * @return This builder for chaining. 6150 */ addImagesBytes(com.google.protobuf.ByteString value)6151 public Builder addImagesBytes(com.google.protobuf.ByteString value) { 6152 if (value == null) { 6153 throw new NullPointerException(); 6154 } 6155 checkByteStringIsUtf8(value); 6156 ensureImagesIsMutable(); 6157 images_.add(value); 6158 onChanged(); 6159 return this; 6160 } 6161 6162 private com.google.cloudbuild.v1.Artifacts.ArtifactObjects objects_; 6163 private com.google.protobuf.SingleFieldBuilderV3< 6164 com.google.cloudbuild.v1.Artifacts.ArtifactObjects, 6165 com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder, 6166 com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder> 6167 objectsBuilder_; 6168 /** 6169 * 6170 * 6171 * <pre> 6172 * A list of objects to be uploaded to Cloud Storage upon successful 6173 * completion of all build steps. 6174 * Files in the workspace matching specified paths globs will be uploaded to 6175 * the specified Cloud Storage location using the builder service account's 6176 * credentials. 6177 * The location and generation of the uploaded objects will be stored in the 6178 * Build resource's results field. 6179 * If any objects fail to be pushed, the build is marked FAILURE. 6180 * </pre> 6181 * 6182 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 6183 * 6184 * @return Whether the objects field is set. 6185 */ hasObjects()6186 public boolean hasObjects() { 6187 return ((bitField0_ & 0x00000002) != 0); 6188 } 6189 /** 6190 * 6191 * 6192 * <pre> 6193 * A list of objects to be uploaded to Cloud Storage upon successful 6194 * completion of all build steps. 6195 * Files in the workspace matching specified paths globs will be uploaded to 6196 * the specified Cloud Storage location using the builder service account's 6197 * credentials. 6198 * The location and generation of the uploaded objects will be stored in the 6199 * Build resource's results field. 6200 * If any objects fail to be pushed, the build is marked FAILURE. 6201 * </pre> 6202 * 6203 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 6204 * 6205 * @return The objects. 6206 */ getObjects()6207 public com.google.cloudbuild.v1.Artifacts.ArtifactObjects getObjects() { 6208 if (objectsBuilder_ == null) { 6209 return objects_ == null 6210 ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() 6211 : objects_; 6212 } else { 6213 return objectsBuilder_.getMessage(); 6214 } 6215 } 6216 /** 6217 * 6218 * 6219 * <pre> 6220 * A list of objects to be uploaded to Cloud Storage upon successful 6221 * completion of all build steps. 6222 * Files in the workspace matching specified paths globs will be uploaded to 6223 * the specified Cloud Storage location using the builder service account's 6224 * credentials. 6225 * The location and generation of the uploaded objects will be stored in the 6226 * Build resource's results field. 6227 * If any objects fail to be pushed, the build is marked FAILURE. 6228 * </pre> 6229 * 6230 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 6231 */ setObjects(com.google.cloudbuild.v1.Artifacts.ArtifactObjects value)6232 public Builder setObjects(com.google.cloudbuild.v1.Artifacts.ArtifactObjects value) { 6233 if (objectsBuilder_ == null) { 6234 if (value == null) { 6235 throw new NullPointerException(); 6236 } 6237 objects_ = value; 6238 } else { 6239 objectsBuilder_.setMessage(value); 6240 } 6241 bitField0_ |= 0x00000002; 6242 onChanged(); 6243 return this; 6244 } 6245 /** 6246 * 6247 * 6248 * <pre> 6249 * A list of objects to be uploaded to Cloud Storage upon successful 6250 * completion of all build steps. 6251 * Files in the workspace matching specified paths globs will be uploaded to 6252 * the specified Cloud Storage location using the builder service account's 6253 * credentials. 6254 * The location and generation of the uploaded objects will be stored in the 6255 * Build resource's results field. 6256 * If any objects fail to be pushed, the build is marked FAILURE. 6257 * </pre> 6258 * 6259 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 6260 */ setObjects( com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder builderForValue)6261 public Builder setObjects( 6262 com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder builderForValue) { 6263 if (objectsBuilder_ == null) { 6264 objects_ = builderForValue.build(); 6265 } else { 6266 objectsBuilder_.setMessage(builderForValue.build()); 6267 } 6268 bitField0_ |= 0x00000002; 6269 onChanged(); 6270 return this; 6271 } 6272 /** 6273 * 6274 * 6275 * <pre> 6276 * A list of objects to be uploaded to Cloud Storage upon successful 6277 * completion of all build steps. 6278 * Files in the workspace matching specified paths globs will be uploaded to 6279 * the specified Cloud Storage location using the builder service account's 6280 * credentials. 6281 * The location and generation of the uploaded objects will be stored in the 6282 * Build resource's results field. 6283 * If any objects fail to be pushed, the build is marked FAILURE. 6284 * </pre> 6285 * 6286 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 6287 */ mergeObjects(com.google.cloudbuild.v1.Artifacts.ArtifactObjects value)6288 public Builder mergeObjects(com.google.cloudbuild.v1.Artifacts.ArtifactObjects value) { 6289 if (objectsBuilder_ == null) { 6290 if (((bitField0_ & 0x00000002) != 0) 6291 && objects_ != null 6292 && objects_ 6293 != com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance()) { 6294 getObjectsBuilder().mergeFrom(value); 6295 } else { 6296 objects_ = value; 6297 } 6298 } else { 6299 objectsBuilder_.mergeFrom(value); 6300 } 6301 bitField0_ |= 0x00000002; 6302 onChanged(); 6303 return this; 6304 } 6305 /** 6306 * 6307 * 6308 * <pre> 6309 * A list of objects to be uploaded to Cloud Storage upon successful 6310 * completion of all build steps. 6311 * Files in the workspace matching specified paths globs will be uploaded to 6312 * the specified Cloud Storage location using the builder service account's 6313 * credentials. 6314 * The location and generation of the uploaded objects will be stored in the 6315 * Build resource's results field. 6316 * If any objects fail to be pushed, the build is marked FAILURE. 6317 * </pre> 6318 * 6319 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 6320 */ clearObjects()6321 public Builder clearObjects() { 6322 bitField0_ = (bitField0_ & ~0x00000002); 6323 objects_ = null; 6324 if (objectsBuilder_ != null) { 6325 objectsBuilder_.dispose(); 6326 objectsBuilder_ = null; 6327 } 6328 onChanged(); 6329 return this; 6330 } 6331 /** 6332 * 6333 * 6334 * <pre> 6335 * A list of objects to be uploaded to Cloud Storage upon successful 6336 * completion of all build steps. 6337 * Files in the workspace matching specified paths globs will be uploaded to 6338 * the specified Cloud Storage location using the builder service account's 6339 * credentials. 6340 * The location and generation of the uploaded objects will be stored in the 6341 * Build resource's results field. 6342 * If any objects fail to be pushed, the build is marked FAILURE. 6343 * </pre> 6344 * 6345 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 6346 */ getObjectsBuilder()6347 public com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder getObjectsBuilder() { 6348 bitField0_ |= 0x00000002; 6349 onChanged(); 6350 return getObjectsFieldBuilder().getBuilder(); 6351 } 6352 /** 6353 * 6354 * 6355 * <pre> 6356 * A list of objects to be uploaded to Cloud Storage upon successful 6357 * completion of all build steps. 6358 * Files in the workspace matching specified paths globs will be uploaded to 6359 * the specified Cloud Storage location using the builder service account's 6360 * credentials. 6361 * The location and generation of the uploaded objects will be stored in the 6362 * Build resource's results field. 6363 * If any objects fail to be pushed, the build is marked FAILURE. 6364 * </pre> 6365 * 6366 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 6367 */ getObjectsOrBuilder()6368 public com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder() { 6369 if (objectsBuilder_ != null) { 6370 return objectsBuilder_.getMessageOrBuilder(); 6371 } else { 6372 return objects_ == null 6373 ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() 6374 : objects_; 6375 } 6376 } 6377 /** 6378 * 6379 * 6380 * <pre> 6381 * A list of objects to be uploaded to Cloud Storage upon successful 6382 * completion of all build steps. 6383 * Files in the workspace matching specified paths globs will be uploaded to 6384 * the specified Cloud Storage location using the builder service account's 6385 * credentials. 6386 * The location and generation of the uploaded objects will be stored in the 6387 * Build resource's results field. 6388 * If any objects fail to be pushed, the build is marked FAILURE. 6389 * </pre> 6390 * 6391 * <code>.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;</code> 6392 */ 6393 private com.google.protobuf.SingleFieldBuilderV3< 6394 com.google.cloudbuild.v1.Artifacts.ArtifactObjects, 6395 com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder, 6396 com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder> getObjectsFieldBuilder()6397 getObjectsFieldBuilder() { 6398 if (objectsBuilder_ == null) { 6399 objectsBuilder_ = 6400 new com.google.protobuf.SingleFieldBuilderV3< 6401 com.google.cloudbuild.v1.Artifacts.ArtifactObjects, 6402 com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder, 6403 com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder>( 6404 getObjects(), getParentForChildren(), isClean()); 6405 objects_ = null; 6406 } 6407 return objectsBuilder_; 6408 } 6409 6410 private java.util.List<com.google.cloudbuild.v1.Artifacts.MavenArtifact> mavenArtifacts_ = 6411 java.util.Collections.emptyList(); 6412 ensureMavenArtifactsIsMutable()6413 private void ensureMavenArtifactsIsMutable() { 6414 if (!((bitField0_ & 0x00000004) != 0)) { 6415 mavenArtifacts_ = 6416 new java.util.ArrayList<com.google.cloudbuild.v1.Artifacts.MavenArtifact>( 6417 mavenArtifacts_); 6418 bitField0_ |= 0x00000004; 6419 } 6420 } 6421 6422 private com.google.protobuf.RepeatedFieldBuilderV3< 6423 com.google.cloudbuild.v1.Artifacts.MavenArtifact, 6424 com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder, 6425 com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder> 6426 mavenArtifactsBuilder_; 6427 6428 /** 6429 * 6430 * 6431 * <pre> 6432 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6433 * successful completion of all build steps. 6434 * Artifacts in the workspace matching specified paths globs will be uploaded 6435 * to the specified Artifact Registry repository using the builder service 6436 * account's credentials. 6437 * If any artifacts fail to be pushed, the build is marked FAILURE. 6438 * </pre> 6439 * 6440 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6441 * </code> 6442 */ 6443 public java.util.List<com.google.cloudbuild.v1.Artifacts.MavenArtifact> getMavenArtifactsList()6444 getMavenArtifactsList() { 6445 if (mavenArtifactsBuilder_ == null) { 6446 return java.util.Collections.unmodifiableList(mavenArtifacts_); 6447 } else { 6448 return mavenArtifactsBuilder_.getMessageList(); 6449 } 6450 } 6451 /** 6452 * 6453 * 6454 * <pre> 6455 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6456 * successful completion of all build steps. 6457 * Artifacts in the workspace matching specified paths globs will be uploaded 6458 * to the specified Artifact Registry repository using the builder service 6459 * account's credentials. 6460 * If any artifacts fail to be pushed, the build is marked FAILURE. 6461 * </pre> 6462 * 6463 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6464 * </code> 6465 */ getMavenArtifactsCount()6466 public int getMavenArtifactsCount() { 6467 if (mavenArtifactsBuilder_ == null) { 6468 return mavenArtifacts_.size(); 6469 } else { 6470 return mavenArtifactsBuilder_.getCount(); 6471 } 6472 } 6473 /** 6474 * 6475 * 6476 * <pre> 6477 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6478 * successful completion of all build steps. 6479 * Artifacts in the workspace matching specified paths globs will be uploaded 6480 * to the specified Artifact Registry repository using the builder service 6481 * account's credentials. 6482 * If any artifacts fail to be pushed, the build is marked FAILURE. 6483 * </pre> 6484 * 6485 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6486 * </code> 6487 */ getMavenArtifacts(int index)6488 public com.google.cloudbuild.v1.Artifacts.MavenArtifact getMavenArtifacts(int index) { 6489 if (mavenArtifactsBuilder_ == null) { 6490 return mavenArtifacts_.get(index); 6491 } else { 6492 return mavenArtifactsBuilder_.getMessage(index); 6493 } 6494 } 6495 /** 6496 * 6497 * 6498 * <pre> 6499 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6500 * successful completion of all build steps. 6501 * Artifacts in the workspace matching specified paths globs will be uploaded 6502 * to the specified Artifact Registry repository using the builder service 6503 * account's credentials. 6504 * If any artifacts fail to be pushed, the build is marked FAILURE. 6505 * </pre> 6506 * 6507 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6508 * </code> 6509 */ setMavenArtifacts( int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact value)6510 public Builder setMavenArtifacts( 6511 int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact value) { 6512 if (mavenArtifactsBuilder_ == null) { 6513 if (value == null) { 6514 throw new NullPointerException(); 6515 } 6516 ensureMavenArtifactsIsMutable(); 6517 mavenArtifacts_.set(index, value); 6518 onChanged(); 6519 } else { 6520 mavenArtifactsBuilder_.setMessage(index, value); 6521 } 6522 return this; 6523 } 6524 /** 6525 * 6526 * 6527 * <pre> 6528 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6529 * successful completion of all build steps. 6530 * Artifacts in the workspace matching specified paths globs will be uploaded 6531 * to the specified Artifact Registry repository using the builder service 6532 * account's credentials. 6533 * If any artifacts fail to be pushed, the build is marked FAILURE. 6534 * </pre> 6535 * 6536 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6537 * </code> 6538 */ setMavenArtifacts( int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder builderForValue)6539 public Builder setMavenArtifacts( 6540 int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder builderForValue) { 6541 if (mavenArtifactsBuilder_ == null) { 6542 ensureMavenArtifactsIsMutable(); 6543 mavenArtifacts_.set(index, builderForValue.build()); 6544 onChanged(); 6545 } else { 6546 mavenArtifactsBuilder_.setMessage(index, builderForValue.build()); 6547 } 6548 return this; 6549 } 6550 /** 6551 * 6552 * 6553 * <pre> 6554 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6555 * successful completion of all build steps. 6556 * Artifacts in the workspace matching specified paths globs will be uploaded 6557 * to the specified Artifact Registry repository using the builder service 6558 * account's credentials. 6559 * If any artifacts fail to be pushed, the build is marked FAILURE. 6560 * </pre> 6561 * 6562 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6563 * </code> 6564 */ addMavenArtifacts(com.google.cloudbuild.v1.Artifacts.MavenArtifact value)6565 public Builder addMavenArtifacts(com.google.cloudbuild.v1.Artifacts.MavenArtifact value) { 6566 if (mavenArtifactsBuilder_ == null) { 6567 if (value == null) { 6568 throw new NullPointerException(); 6569 } 6570 ensureMavenArtifactsIsMutable(); 6571 mavenArtifacts_.add(value); 6572 onChanged(); 6573 } else { 6574 mavenArtifactsBuilder_.addMessage(value); 6575 } 6576 return this; 6577 } 6578 /** 6579 * 6580 * 6581 * <pre> 6582 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6583 * successful completion of all build steps. 6584 * Artifacts in the workspace matching specified paths globs will be uploaded 6585 * to the specified Artifact Registry repository using the builder service 6586 * account's credentials. 6587 * If any artifacts fail to be pushed, the build is marked FAILURE. 6588 * </pre> 6589 * 6590 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6591 * </code> 6592 */ addMavenArtifacts( int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact value)6593 public Builder addMavenArtifacts( 6594 int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact value) { 6595 if (mavenArtifactsBuilder_ == null) { 6596 if (value == null) { 6597 throw new NullPointerException(); 6598 } 6599 ensureMavenArtifactsIsMutable(); 6600 mavenArtifacts_.add(index, value); 6601 onChanged(); 6602 } else { 6603 mavenArtifactsBuilder_.addMessage(index, value); 6604 } 6605 return this; 6606 } 6607 /** 6608 * 6609 * 6610 * <pre> 6611 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6612 * successful completion of all build steps. 6613 * Artifacts in the workspace matching specified paths globs will be uploaded 6614 * to the specified Artifact Registry repository using the builder service 6615 * account's credentials. 6616 * If any artifacts fail to be pushed, the build is marked FAILURE. 6617 * </pre> 6618 * 6619 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6620 * </code> 6621 */ addMavenArtifacts( com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder builderForValue)6622 public Builder addMavenArtifacts( 6623 com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder builderForValue) { 6624 if (mavenArtifactsBuilder_ == null) { 6625 ensureMavenArtifactsIsMutable(); 6626 mavenArtifacts_.add(builderForValue.build()); 6627 onChanged(); 6628 } else { 6629 mavenArtifactsBuilder_.addMessage(builderForValue.build()); 6630 } 6631 return this; 6632 } 6633 /** 6634 * 6635 * 6636 * <pre> 6637 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6638 * successful completion of all build steps. 6639 * Artifacts in the workspace matching specified paths globs will be uploaded 6640 * to the specified Artifact Registry repository using the builder service 6641 * account's credentials. 6642 * If any artifacts fail to be pushed, the build is marked FAILURE. 6643 * </pre> 6644 * 6645 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6646 * </code> 6647 */ addMavenArtifacts( int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder builderForValue)6648 public Builder addMavenArtifacts( 6649 int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder builderForValue) { 6650 if (mavenArtifactsBuilder_ == null) { 6651 ensureMavenArtifactsIsMutable(); 6652 mavenArtifacts_.add(index, builderForValue.build()); 6653 onChanged(); 6654 } else { 6655 mavenArtifactsBuilder_.addMessage(index, builderForValue.build()); 6656 } 6657 return this; 6658 } 6659 /** 6660 * 6661 * 6662 * <pre> 6663 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6664 * successful completion of all build steps. 6665 * Artifacts in the workspace matching specified paths globs will be uploaded 6666 * to the specified Artifact Registry repository using the builder service 6667 * account's credentials. 6668 * If any artifacts fail to be pushed, the build is marked FAILURE. 6669 * </pre> 6670 * 6671 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6672 * </code> 6673 */ addAllMavenArtifacts( java.lang.Iterable<? extends com.google.cloudbuild.v1.Artifacts.MavenArtifact> values)6674 public Builder addAllMavenArtifacts( 6675 java.lang.Iterable<? extends com.google.cloudbuild.v1.Artifacts.MavenArtifact> values) { 6676 if (mavenArtifactsBuilder_ == null) { 6677 ensureMavenArtifactsIsMutable(); 6678 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mavenArtifacts_); 6679 onChanged(); 6680 } else { 6681 mavenArtifactsBuilder_.addAllMessages(values); 6682 } 6683 return this; 6684 } 6685 /** 6686 * 6687 * 6688 * <pre> 6689 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6690 * successful completion of all build steps. 6691 * Artifacts in the workspace matching specified paths globs will be uploaded 6692 * to the specified Artifact Registry repository using the builder service 6693 * account's credentials. 6694 * If any artifacts fail to be pushed, the build is marked FAILURE. 6695 * </pre> 6696 * 6697 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6698 * </code> 6699 */ clearMavenArtifacts()6700 public Builder clearMavenArtifacts() { 6701 if (mavenArtifactsBuilder_ == null) { 6702 mavenArtifacts_ = java.util.Collections.emptyList(); 6703 bitField0_ = (bitField0_ & ~0x00000004); 6704 onChanged(); 6705 } else { 6706 mavenArtifactsBuilder_.clear(); 6707 } 6708 return this; 6709 } 6710 /** 6711 * 6712 * 6713 * <pre> 6714 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6715 * successful completion of all build steps. 6716 * Artifacts in the workspace matching specified paths globs will be uploaded 6717 * to the specified Artifact Registry repository using the builder service 6718 * account's credentials. 6719 * If any artifacts fail to be pushed, the build is marked FAILURE. 6720 * </pre> 6721 * 6722 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6723 * </code> 6724 */ removeMavenArtifacts(int index)6725 public Builder removeMavenArtifacts(int index) { 6726 if (mavenArtifactsBuilder_ == null) { 6727 ensureMavenArtifactsIsMutable(); 6728 mavenArtifacts_.remove(index); 6729 onChanged(); 6730 } else { 6731 mavenArtifactsBuilder_.remove(index); 6732 } 6733 return this; 6734 } 6735 /** 6736 * 6737 * 6738 * <pre> 6739 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6740 * successful completion of all build steps. 6741 * Artifacts in the workspace matching specified paths globs will be uploaded 6742 * to the specified Artifact Registry repository using the builder service 6743 * account's credentials. 6744 * If any artifacts fail to be pushed, the build is marked FAILURE. 6745 * </pre> 6746 * 6747 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6748 * </code> 6749 */ getMavenArtifactsBuilder( int index)6750 public com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder getMavenArtifactsBuilder( 6751 int index) { 6752 return getMavenArtifactsFieldBuilder().getBuilder(index); 6753 } 6754 /** 6755 * 6756 * 6757 * <pre> 6758 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6759 * successful completion of all build steps. 6760 * Artifacts in the workspace matching specified paths globs will be uploaded 6761 * to the specified Artifact Registry repository using the builder service 6762 * account's credentials. 6763 * If any artifacts fail to be pushed, the build is marked FAILURE. 6764 * </pre> 6765 * 6766 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6767 * </code> 6768 */ getMavenArtifactsOrBuilder( int index)6769 public com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder getMavenArtifactsOrBuilder( 6770 int index) { 6771 if (mavenArtifactsBuilder_ == null) { 6772 return mavenArtifacts_.get(index); 6773 } else { 6774 return mavenArtifactsBuilder_.getMessageOrBuilder(index); 6775 } 6776 } 6777 /** 6778 * 6779 * 6780 * <pre> 6781 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6782 * successful completion of all build steps. 6783 * Artifacts in the workspace matching specified paths globs will be uploaded 6784 * to the specified Artifact Registry repository using the builder service 6785 * account's credentials. 6786 * If any artifacts fail to be pushed, the build is marked FAILURE. 6787 * </pre> 6788 * 6789 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6790 * </code> 6791 */ 6792 public java.util.List<? extends com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder> getMavenArtifactsOrBuilderList()6793 getMavenArtifactsOrBuilderList() { 6794 if (mavenArtifactsBuilder_ != null) { 6795 return mavenArtifactsBuilder_.getMessageOrBuilderList(); 6796 } else { 6797 return java.util.Collections.unmodifiableList(mavenArtifacts_); 6798 } 6799 } 6800 /** 6801 * 6802 * 6803 * <pre> 6804 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6805 * successful completion of all build steps. 6806 * Artifacts in the workspace matching specified paths globs will be uploaded 6807 * to the specified Artifact Registry repository using the builder service 6808 * account's credentials. 6809 * If any artifacts fail to be pushed, the build is marked FAILURE. 6810 * </pre> 6811 * 6812 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6813 * </code> 6814 */ addMavenArtifactsBuilder()6815 public com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder addMavenArtifactsBuilder() { 6816 return getMavenArtifactsFieldBuilder() 6817 .addBuilder(com.google.cloudbuild.v1.Artifacts.MavenArtifact.getDefaultInstance()); 6818 } 6819 /** 6820 * 6821 * 6822 * <pre> 6823 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6824 * successful completion of all build steps. 6825 * Artifacts in the workspace matching specified paths globs will be uploaded 6826 * to the specified Artifact Registry repository using the builder service 6827 * account's credentials. 6828 * If any artifacts fail to be pushed, the build is marked FAILURE. 6829 * </pre> 6830 * 6831 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6832 * </code> 6833 */ addMavenArtifactsBuilder( int index)6834 public com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder addMavenArtifactsBuilder( 6835 int index) { 6836 return getMavenArtifactsFieldBuilder() 6837 .addBuilder(index, com.google.cloudbuild.v1.Artifacts.MavenArtifact.getDefaultInstance()); 6838 } 6839 /** 6840 * 6841 * 6842 * <pre> 6843 * A list of Maven artifacts to be uploaded to Artifact Registry upon 6844 * successful completion of all build steps. 6845 * Artifacts in the workspace matching specified paths globs will be uploaded 6846 * to the specified Artifact Registry repository using the builder service 6847 * account's credentials. 6848 * If any artifacts fail to be pushed, the build is marked FAILURE. 6849 * </pre> 6850 * 6851 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; 6852 * </code> 6853 */ 6854 public java.util.List<com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder> getMavenArtifactsBuilderList()6855 getMavenArtifactsBuilderList() { 6856 return getMavenArtifactsFieldBuilder().getBuilderList(); 6857 } 6858 6859 private com.google.protobuf.RepeatedFieldBuilderV3< 6860 com.google.cloudbuild.v1.Artifacts.MavenArtifact, 6861 com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder, 6862 com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder> getMavenArtifactsFieldBuilder()6863 getMavenArtifactsFieldBuilder() { 6864 if (mavenArtifactsBuilder_ == null) { 6865 mavenArtifactsBuilder_ = 6866 new com.google.protobuf.RepeatedFieldBuilderV3< 6867 com.google.cloudbuild.v1.Artifacts.MavenArtifact, 6868 com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder, 6869 com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder>( 6870 mavenArtifacts_, 6871 ((bitField0_ & 0x00000004) != 0), 6872 getParentForChildren(), 6873 isClean()); 6874 mavenArtifacts_ = null; 6875 } 6876 return mavenArtifactsBuilder_; 6877 } 6878 6879 private java.util.List<com.google.cloudbuild.v1.Artifacts.PythonPackage> pythonPackages_ = 6880 java.util.Collections.emptyList(); 6881 ensurePythonPackagesIsMutable()6882 private void ensurePythonPackagesIsMutable() { 6883 if (!((bitField0_ & 0x00000008) != 0)) { 6884 pythonPackages_ = 6885 new java.util.ArrayList<com.google.cloudbuild.v1.Artifacts.PythonPackage>( 6886 pythonPackages_); 6887 bitField0_ |= 0x00000008; 6888 } 6889 } 6890 6891 private com.google.protobuf.RepeatedFieldBuilderV3< 6892 com.google.cloudbuild.v1.Artifacts.PythonPackage, 6893 com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder, 6894 com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder> 6895 pythonPackagesBuilder_; 6896 6897 /** 6898 * 6899 * 6900 * <pre> 6901 * A list of Python packages to be uploaded to Artifact Registry upon 6902 * successful completion of all build steps. 6903 * The build service account credentials will be used to perform the upload. 6904 * If any objects fail to be pushed, the build is marked FAILURE. 6905 * </pre> 6906 * 6907 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 6908 * </code> 6909 */ 6910 public java.util.List<com.google.cloudbuild.v1.Artifacts.PythonPackage> getPythonPackagesList()6911 getPythonPackagesList() { 6912 if (pythonPackagesBuilder_ == null) { 6913 return java.util.Collections.unmodifiableList(pythonPackages_); 6914 } else { 6915 return pythonPackagesBuilder_.getMessageList(); 6916 } 6917 } 6918 /** 6919 * 6920 * 6921 * <pre> 6922 * A list of Python packages to be uploaded to Artifact Registry upon 6923 * successful completion of all build steps. 6924 * The build service account credentials will be used to perform the upload. 6925 * If any objects fail to be pushed, the build is marked FAILURE. 6926 * </pre> 6927 * 6928 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 6929 * </code> 6930 */ getPythonPackagesCount()6931 public int getPythonPackagesCount() { 6932 if (pythonPackagesBuilder_ == null) { 6933 return pythonPackages_.size(); 6934 } else { 6935 return pythonPackagesBuilder_.getCount(); 6936 } 6937 } 6938 /** 6939 * 6940 * 6941 * <pre> 6942 * A list of Python packages to be uploaded to Artifact Registry upon 6943 * successful completion of all build steps. 6944 * The build service account credentials will be used to perform the upload. 6945 * If any objects fail to be pushed, the build is marked FAILURE. 6946 * </pre> 6947 * 6948 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 6949 * </code> 6950 */ getPythonPackages(int index)6951 public com.google.cloudbuild.v1.Artifacts.PythonPackage getPythonPackages(int index) { 6952 if (pythonPackagesBuilder_ == null) { 6953 return pythonPackages_.get(index); 6954 } else { 6955 return pythonPackagesBuilder_.getMessage(index); 6956 } 6957 } 6958 /** 6959 * 6960 * 6961 * <pre> 6962 * A list of Python packages to be uploaded to Artifact Registry upon 6963 * successful completion of all build steps. 6964 * The build service account credentials will be used to perform the upload. 6965 * If any objects fail to be pushed, the build is marked FAILURE. 6966 * </pre> 6967 * 6968 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 6969 * </code> 6970 */ setPythonPackages( int index, com.google.cloudbuild.v1.Artifacts.PythonPackage value)6971 public Builder setPythonPackages( 6972 int index, com.google.cloudbuild.v1.Artifacts.PythonPackage value) { 6973 if (pythonPackagesBuilder_ == null) { 6974 if (value == null) { 6975 throw new NullPointerException(); 6976 } 6977 ensurePythonPackagesIsMutable(); 6978 pythonPackages_.set(index, value); 6979 onChanged(); 6980 } else { 6981 pythonPackagesBuilder_.setMessage(index, value); 6982 } 6983 return this; 6984 } 6985 /** 6986 * 6987 * 6988 * <pre> 6989 * A list of Python packages to be uploaded to Artifact Registry upon 6990 * successful completion of all build steps. 6991 * The build service account credentials will be used to perform the upload. 6992 * If any objects fail to be pushed, the build is marked FAILURE. 6993 * </pre> 6994 * 6995 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 6996 * </code> 6997 */ setPythonPackages( int index, com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder builderForValue)6998 public Builder setPythonPackages( 6999 int index, com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder builderForValue) { 7000 if (pythonPackagesBuilder_ == null) { 7001 ensurePythonPackagesIsMutable(); 7002 pythonPackages_.set(index, builderForValue.build()); 7003 onChanged(); 7004 } else { 7005 pythonPackagesBuilder_.setMessage(index, builderForValue.build()); 7006 } 7007 return this; 7008 } 7009 /** 7010 * 7011 * 7012 * <pre> 7013 * A list of Python packages to be uploaded to Artifact Registry upon 7014 * successful completion of all build steps. 7015 * The build service account credentials will be used to perform the upload. 7016 * If any objects fail to be pushed, the build is marked FAILURE. 7017 * </pre> 7018 * 7019 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7020 * </code> 7021 */ addPythonPackages(com.google.cloudbuild.v1.Artifacts.PythonPackage value)7022 public Builder addPythonPackages(com.google.cloudbuild.v1.Artifacts.PythonPackage value) { 7023 if (pythonPackagesBuilder_ == null) { 7024 if (value == null) { 7025 throw new NullPointerException(); 7026 } 7027 ensurePythonPackagesIsMutable(); 7028 pythonPackages_.add(value); 7029 onChanged(); 7030 } else { 7031 pythonPackagesBuilder_.addMessage(value); 7032 } 7033 return this; 7034 } 7035 /** 7036 * 7037 * 7038 * <pre> 7039 * A list of Python packages to be uploaded to Artifact Registry upon 7040 * successful completion of all build steps. 7041 * The build service account credentials will be used to perform the upload. 7042 * If any objects fail to be pushed, the build is marked FAILURE. 7043 * </pre> 7044 * 7045 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7046 * </code> 7047 */ addPythonPackages( int index, com.google.cloudbuild.v1.Artifacts.PythonPackage value)7048 public Builder addPythonPackages( 7049 int index, com.google.cloudbuild.v1.Artifacts.PythonPackage value) { 7050 if (pythonPackagesBuilder_ == null) { 7051 if (value == null) { 7052 throw new NullPointerException(); 7053 } 7054 ensurePythonPackagesIsMutable(); 7055 pythonPackages_.add(index, value); 7056 onChanged(); 7057 } else { 7058 pythonPackagesBuilder_.addMessage(index, value); 7059 } 7060 return this; 7061 } 7062 /** 7063 * 7064 * 7065 * <pre> 7066 * A list of Python packages to be uploaded to Artifact Registry upon 7067 * successful completion of all build steps. 7068 * The build service account credentials will be used to perform the upload. 7069 * If any objects fail to be pushed, the build is marked FAILURE. 7070 * </pre> 7071 * 7072 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7073 * </code> 7074 */ addPythonPackages( com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder builderForValue)7075 public Builder addPythonPackages( 7076 com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder builderForValue) { 7077 if (pythonPackagesBuilder_ == null) { 7078 ensurePythonPackagesIsMutable(); 7079 pythonPackages_.add(builderForValue.build()); 7080 onChanged(); 7081 } else { 7082 pythonPackagesBuilder_.addMessage(builderForValue.build()); 7083 } 7084 return this; 7085 } 7086 /** 7087 * 7088 * 7089 * <pre> 7090 * A list of Python packages to be uploaded to Artifact Registry upon 7091 * successful completion of all build steps. 7092 * The build service account credentials will be used to perform the upload. 7093 * If any objects fail to be pushed, the build is marked FAILURE. 7094 * </pre> 7095 * 7096 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7097 * </code> 7098 */ addPythonPackages( int index, com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder builderForValue)7099 public Builder addPythonPackages( 7100 int index, com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder builderForValue) { 7101 if (pythonPackagesBuilder_ == null) { 7102 ensurePythonPackagesIsMutable(); 7103 pythonPackages_.add(index, builderForValue.build()); 7104 onChanged(); 7105 } else { 7106 pythonPackagesBuilder_.addMessage(index, builderForValue.build()); 7107 } 7108 return this; 7109 } 7110 /** 7111 * 7112 * 7113 * <pre> 7114 * A list of Python packages to be uploaded to Artifact Registry upon 7115 * successful completion of all build steps. 7116 * The build service account credentials will be used to perform the upload. 7117 * If any objects fail to be pushed, the build is marked FAILURE. 7118 * </pre> 7119 * 7120 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7121 * </code> 7122 */ addAllPythonPackages( java.lang.Iterable<? extends com.google.cloudbuild.v1.Artifacts.PythonPackage> values)7123 public Builder addAllPythonPackages( 7124 java.lang.Iterable<? extends com.google.cloudbuild.v1.Artifacts.PythonPackage> values) { 7125 if (pythonPackagesBuilder_ == null) { 7126 ensurePythonPackagesIsMutable(); 7127 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonPackages_); 7128 onChanged(); 7129 } else { 7130 pythonPackagesBuilder_.addAllMessages(values); 7131 } 7132 return this; 7133 } 7134 /** 7135 * 7136 * 7137 * <pre> 7138 * A list of Python packages to be uploaded to Artifact Registry upon 7139 * successful completion of all build steps. 7140 * The build service account credentials will be used to perform the upload. 7141 * If any objects fail to be pushed, the build is marked FAILURE. 7142 * </pre> 7143 * 7144 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7145 * </code> 7146 */ clearPythonPackages()7147 public Builder clearPythonPackages() { 7148 if (pythonPackagesBuilder_ == null) { 7149 pythonPackages_ = java.util.Collections.emptyList(); 7150 bitField0_ = (bitField0_ & ~0x00000008); 7151 onChanged(); 7152 } else { 7153 pythonPackagesBuilder_.clear(); 7154 } 7155 return this; 7156 } 7157 /** 7158 * 7159 * 7160 * <pre> 7161 * A list of Python packages to be uploaded to Artifact Registry upon 7162 * successful completion of all build steps. 7163 * The build service account credentials will be used to perform the upload. 7164 * If any objects fail to be pushed, the build is marked FAILURE. 7165 * </pre> 7166 * 7167 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7168 * </code> 7169 */ removePythonPackages(int index)7170 public Builder removePythonPackages(int index) { 7171 if (pythonPackagesBuilder_ == null) { 7172 ensurePythonPackagesIsMutable(); 7173 pythonPackages_.remove(index); 7174 onChanged(); 7175 } else { 7176 pythonPackagesBuilder_.remove(index); 7177 } 7178 return this; 7179 } 7180 /** 7181 * 7182 * 7183 * <pre> 7184 * A list of Python packages to be uploaded to Artifact Registry upon 7185 * successful completion of all build steps. 7186 * The build service account credentials will be used to perform the upload. 7187 * If any objects fail to be pushed, the build is marked FAILURE. 7188 * </pre> 7189 * 7190 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7191 * </code> 7192 */ getPythonPackagesBuilder( int index)7193 public com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder getPythonPackagesBuilder( 7194 int index) { 7195 return getPythonPackagesFieldBuilder().getBuilder(index); 7196 } 7197 /** 7198 * 7199 * 7200 * <pre> 7201 * A list of Python packages to be uploaded to Artifact Registry upon 7202 * successful completion of all build steps. 7203 * The build service account credentials will be used to perform the upload. 7204 * If any objects fail to be pushed, the build is marked FAILURE. 7205 * </pre> 7206 * 7207 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7208 * </code> 7209 */ getPythonPackagesOrBuilder( int index)7210 public com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder getPythonPackagesOrBuilder( 7211 int index) { 7212 if (pythonPackagesBuilder_ == null) { 7213 return pythonPackages_.get(index); 7214 } else { 7215 return pythonPackagesBuilder_.getMessageOrBuilder(index); 7216 } 7217 } 7218 /** 7219 * 7220 * 7221 * <pre> 7222 * A list of Python packages to be uploaded to Artifact Registry upon 7223 * successful completion of all build steps. 7224 * The build service account credentials will be used to perform the upload. 7225 * If any objects fail to be pushed, the build is marked FAILURE. 7226 * </pre> 7227 * 7228 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7229 * </code> 7230 */ 7231 public java.util.List<? extends com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder> getPythonPackagesOrBuilderList()7232 getPythonPackagesOrBuilderList() { 7233 if (pythonPackagesBuilder_ != null) { 7234 return pythonPackagesBuilder_.getMessageOrBuilderList(); 7235 } else { 7236 return java.util.Collections.unmodifiableList(pythonPackages_); 7237 } 7238 } 7239 /** 7240 * 7241 * 7242 * <pre> 7243 * A list of Python packages to be uploaded to Artifact Registry upon 7244 * successful completion of all build steps. 7245 * The build service account credentials will be used to perform the upload. 7246 * If any objects fail to be pushed, the build is marked FAILURE. 7247 * </pre> 7248 * 7249 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7250 * </code> 7251 */ addPythonPackagesBuilder()7252 public com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder addPythonPackagesBuilder() { 7253 return getPythonPackagesFieldBuilder() 7254 .addBuilder(com.google.cloudbuild.v1.Artifacts.PythonPackage.getDefaultInstance()); 7255 } 7256 /** 7257 * 7258 * 7259 * <pre> 7260 * A list of Python packages to be uploaded to Artifact Registry upon 7261 * successful completion of all build steps. 7262 * The build service account credentials will be used to perform the upload. 7263 * If any objects fail to be pushed, the build is marked FAILURE. 7264 * </pre> 7265 * 7266 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7267 * </code> 7268 */ addPythonPackagesBuilder( int index)7269 public com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder addPythonPackagesBuilder( 7270 int index) { 7271 return getPythonPackagesFieldBuilder() 7272 .addBuilder(index, com.google.cloudbuild.v1.Artifacts.PythonPackage.getDefaultInstance()); 7273 } 7274 /** 7275 * 7276 * 7277 * <pre> 7278 * A list of Python packages to be uploaded to Artifact Registry upon 7279 * successful completion of all build steps. 7280 * The build service account credentials will be used to perform the upload. 7281 * If any objects fail to be pushed, the build is marked FAILURE. 7282 * </pre> 7283 * 7284 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; 7285 * </code> 7286 */ 7287 public java.util.List<com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder> getPythonPackagesBuilderList()7288 getPythonPackagesBuilderList() { 7289 return getPythonPackagesFieldBuilder().getBuilderList(); 7290 } 7291 7292 private com.google.protobuf.RepeatedFieldBuilderV3< 7293 com.google.cloudbuild.v1.Artifacts.PythonPackage, 7294 com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder, 7295 com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder> getPythonPackagesFieldBuilder()7296 getPythonPackagesFieldBuilder() { 7297 if (pythonPackagesBuilder_ == null) { 7298 pythonPackagesBuilder_ = 7299 new com.google.protobuf.RepeatedFieldBuilderV3< 7300 com.google.cloudbuild.v1.Artifacts.PythonPackage, 7301 com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder, 7302 com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder>( 7303 pythonPackages_, 7304 ((bitField0_ & 0x00000008) != 0), 7305 getParentForChildren(), 7306 isClean()); 7307 pythonPackages_ = null; 7308 } 7309 return pythonPackagesBuilder_; 7310 } 7311 7312 private java.util.List<com.google.cloudbuild.v1.Artifacts.NpmPackage> npmPackages_ = 7313 java.util.Collections.emptyList(); 7314 ensureNpmPackagesIsMutable()7315 private void ensureNpmPackagesIsMutable() { 7316 if (!((bitField0_ & 0x00000010) != 0)) { 7317 npmPackages_ = 7318 new java.util.ArrayList<com.google.cloudbuild.v1.Artifacts.NpmPackage>(npmPackages_); 7319 bitField0_ |= 0x00000010; 7320 } 7321 } 7322 7323 private com.google.protobuf.RepeatedFieldBuilderV3< 7324 com.google.cloudbuild.v1.Artifacts.NpmPackage, 7325 com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder, 7326 com.google.cloudbuild.v1.Artifacts.NpmPackageOrBuilder> 7327 npmPackagesBuilder_; 7328 7329 /** 7330 * 7331 * 7332 * <pre> 7333 * A list of npm packages to be uploaded to Artifact Registry upon 7334 * successful completion of all build steps. 7335 * Npm packages in the specified paths will be uploaded 7336 * to the specified Artifact Registry repository using the builder service 7337 * account's credentials. 7338 * If any packages fail to be pushed, the build is marked FAILURE. 7339 * </pre> 7340 * 7341 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7342 */ getNpmPackagesList()7343 public java.util.List<com.google.cloudbuild.v1.Artifacts.NpmPackage> getNpmPackagesList() { 7344 if (npmPackagesBuilder_ == null) { 7345 return java.util.Collections.unmodifiableList(npmPackages_); 7346 } else { 7347 return npmPackagesBuilder_.getMessageList(); 7348 } 7349 } 7350 /** 7351 * 7352 * 7353 * <pre> 7354 * A list of npm packages to be uploaded to Artifact Registry upon 7355 * successful completion of all build steps. 7356 * Npm packages in the specified paths will be uploaded 7357 * to the specified Artifact Registry repository using the builder service 7358 * account's credentials. 7359 * If any packages fail to be pushed, the build is marked FAILURE. 7360 * </pre> 7361 * 7362 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7363 */ getNpmPackagesCount()7364 public int getNpmPackagesCount() { 7365 if (npmPackagesBuilder_ == null) { 7366 return npmPackages_.size(); 7367 } else { 7368 return npmPackagesBuilder_.getCount(); 7369 } 7370 } 7371 /** 7372 * 7373 * 7374 * <pre> 7375 * A list of npm packages to be uploaded to Artifact Registry upon 7376 * successful completion of all build steps. 7377 * Npm packages in the specified paths will be uploaded 7378 * to the specified Artifact Registry repository using the builder service 7379 * account's credentials. 7380 * If any packages fail to be pushed, the build is marked FAILURE. 7381 * </pre> 7382 * 7383 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7384 */ getNpmPackages(int index)7385 public com.google.cloudbuild.v1.Artifacts.NpmPackage getNpmPackages(int index) { 7386 if (npmPackagesBuilder_ == null) { 7387 return npmPackages_.get(index); 7388 } else { 7389 return npmPackagesBuilder_.getMessage(index); 7390 } 7391 } 7392 /** 7393 * 7394 * 7395 * <pre> 7396 * A list of npm packages to be uploaded to Artifact Registry upon 7397 * successful completion of all build steps. 7398 * Npm packages in the specified paths will be uploaded 7399 * to the specified Artifact Registry repository using the builder service 7400 * account's credentials. 7401 * If any packages fail to be pushed, the build is marked FAILURE. 7402 * </pre> 7403 * 7404 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7405 */ setNpmPackages(int index, com.google.cloudbuild.v1.Artifacts.NpmPackage value)7406 public Builder setNpmPackages(int index, com.google.cloudbuild.v1.Artifacts.NpmPackage value) { 7407 if (npmPackagesBuilder_ == null) { 7408 if (value == null) { 7409 throw new NullPointerException(); 7410 } 7411 ensureNpmPackagesIsMutable(); 7412 npmPackages_.set(index, value); 7413 onChanged(); 7414 } else { 7415 npmPackagesBuilder_.setMessage(index, value); 7416 } 7417 return this; 7418 } 7419 /** 7420 * 7421 * 7422 * <pre> 7423 * A list of npm packages to be uploaded to Artifact Registry upon 7424 * successful completion of all build steps. 7425 * Npm packages in the specified paths will be uploaded 7426 * to the specified Artifact Registry repository using the builder service 7427 * account's credentials. 7428 * If any packages fail to be pushed, the build is marked FAILURE. 7429 * </pre> 7430 * 7431 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7432 */ setNpmPackages( int index, com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder builderForValue)7433 public Builder setNpmPackages( 7434 int index, com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder builderForValue) { 7435 if (npmPackagesBuilder_ == null) { 7436 ensureNpmPackagesIsMutable(); 7437 npmPackages_.set(index, builderForValue.build()); 7438 onChanged(); 7439 } else { 7440 npmPackagesBuilder_.setMessage(index, builderForValue.build()); 7441 } 7442 return this; 7443 } 7444 /** 7445 * 7446 * 7447 * <pre> 7448 * A list of npm packages to be uploaded to Artifact Registry upon 7449 * successful completion of all build steps. 7450 * Npm packages in the specified paths will be uploaded 7451 * to the specified Artifact Registry repository using the builder service 7452 * account's credentials. 7453 * If any packages fail to be pushed, the build is marked FAILURE. 7454 * </pre> 7455 * 7456 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7457 */ addNpmPackages(com.google.cloudbuild.v1.Artifacts.NpmPackage value)7458 public Builder addNpmPackages(com.google.cloudbuild.v1.Artifacts.NpmPackage value) { 7459 if (npmPackagesBuilder_ == null) { 7460 if (value == null) { 7461 throw new NullPointerException(); 7462 } 7463 ensureNpmPackagesIsMutable(); 7464 npmPackages_.add(value); 7465 onChanged(); 7466 } else { 7467 npmPackagesBuilder_.addMessage(value); 7468 } 7469 return this; 7470 } 7471 /** 7472 * 7473 * 7474 * <pre> 7475 * A list of npm packages to be uploaded to Artifact Registry upon 7476 * successful completion of all build steps. 7477 * Npm packages in the specified paths will be uploaded 7478 * to the specified Artifact Registry repository using the builder service 7479 * account's credentials. 7480 * If any packages fail to be pushed, the build is marked FAILURE. 7481 * </pre> 7482 * 7483 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7484 */ addNpmPackages(int index, com.google.cloudbuild.v1.Artifacts.NpmPackage value)7485 public Builder addNpmPackages(int index, com.google.cloudbuild.v1.Artifacts.NpmPackage value) { 7486 if (npmPackagesBuilder_ == null) { 7487 if (value == null) { 7488 throw new NullPointerException(); 7489 } 7490 ensureNpmPackagesIsMutable(); 7491 npmPackages_.add(index, value); 7492 onChanged(); 7493 } else { 7494 npmPackagesBuilder_.addMessage(index, value); 7495 } 7496 return this; 7497 } 7498 /** 7499 * 7500 * 7501 * <pre> 7502 * A list of npm packages to be uploaded to Artifact Registry upon 7503 * successful completion of all build steps. 7504 * Npm packages in the specified paths will be uploaded 7505 * to the specified Artifact Registry repository using the builder service 7506 * account's credentials. 7507 * If any packages fail to be pushed, the build is marked FAILURE. 7508 * </pre> 7509 * 7510 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7511 */ addNpmPackages( com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder builderForValue)7512 public Builder addNpmPackages( 7513 com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder builderForValue) { 7514 if (npmPackagesBuilder_ == null) { 7515 ensureNpmPackagesIsMutable(); 7516 npmPackages_.add(builderForValue.build()); 7517 onChanged(); 7518 } else { 7519 npmPackagesBuilder_.addMessage(builderForValue.build()); 7520 } 7521 return this; 7522 } 7523 /** 7524 * 7525 * 7526 * <pre> 7527 * A list of npm packages to be uploaded to Artifact Registry upon 7528 * successful completion of all build steps. 7529 * Npm packages in the specified paths will be uploaded 7530 * to the specified Artifact Registry repository using the builder service 7531 * account's credentials. 7532 * If any packages fail to be pushed, the build is marked FAILURE. 7533 * </pre> 7534 * 7535 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7536 */ addNpmPackages( int index, com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder builderForValue)7537 public Builder addNpmPackages( 7538 int index, com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder builderForValue) { 7539 if (npmPackagesBuilder_ == null) { 7540 ensureNpmPackagesIsMutable(); 7541 npmPackages_.add(index, builderForValue.build()); 7542 onChanged(); 7543 } else { 7544 npmPackagesBuilder_.addMessage(index, builderForValue.build()); 7545 } 7546 return this; 7547 } 7548 /** 7549 * 7550 * 7551 * <pre> 7552 * A list of npm packages to be uploaded to Artifact Registry upon 7553 * successful completion of all build steps. 7554 * Npm packages in the specified paths will be uploaded 7555 * to the specified Artifact Registry repository using the builder service 7556 * account's credentials. 7557 * If any packages fail to be pushed, the build is marked FAILURE. 7558 * </pre> 7559 * 7560 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7561 */ addAllNpmPackages( java.lang.Iterable<? extends com.google.cloudbuild.v1.Artifacts.NpmPackage> values)7562 public Builder addAllNpmPackages( 7563 java.lang.Iterable<? extends com.google.cloudbuild.v1.Artifacts.NpmPackage> values) { 7564 if (npmPackagesBuilder_ == null) { 7565 ensureNpmPackagesIsMutable(); 7566 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, npmPackages_); 7567 onChanged(); 7568 } else { 7569 npmPackagesBuilder_.addAllMessages(values); 7570 } 7571 return this; 7572 } 7573 /** 7574 * 7575 * 7576 * <pre> 7577 * A list of npm packages to be uploaded to Artifact Registry upon 7578 * successful completion of all build steps. 7579 * Npm packages in the specified paths will be uploaded 7580 * to the specified Artifact Registry repository using the builder service 7581 * account's credentials. 7582 * If any packages fail to be pushed, the build is marked FAILURE. 7583 * </pre> 7584 * 7585 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7586 */ clearNpmPackages()7587 public Builder clearNpmPackages() { 7588 if (npmPackagesBuilder_ == null) { 7589 npmPackages_ = java.util.Collections.emptyList(); 7590 bitField0_ = (bitField0_ & ~0x00000010); 7591 onChanged(); 7592 } else { 7593 npmPackagesBuilder_.clear(); 7594 } 7595 return this; 7596 } 7597 /** 7598 * 7599 * 7600 * <pre> 7601 * A list of npm packages to be uploaded to Artifact Registry upon 7602 * successful completion of all build steps. 7603 * Npm packages in the specified paths will be uploaded 7604 * to the specified Artifact Registry repository using the builder service 7605 * account's credentials. 7606 * If any packages fail to be pushed, the build is marked FAILURE. 7607 * </pre> 7608 * 7609 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7610 */ removeNpmPackages(int index)7611 public Builder removeNpmPackages(int index) { 7612 if (npmPackagesBuilder_ == null) { 7613 ensureNpmPackagesIsMutable(); 7614 npmPackages_.remove(index); 7615 onChanged(); 7616 } else { 7617 npmPackagesBuilder_.remove(index); 7618 } 7619 return this; 7620 } 7621 /** 7622 * 7623 * 7624 * <pre> 7625 * A list of npm packages to be uploaded to Artifact Registry upon 7626 * successful completion of all build steps. 7627 * Npm packages in the specified paths will be uploaded 7628 * to the specified Artifact Registry repository using the builder service 7629 * account's credentials. 7630 * If any packages fail to be pushed, the build is marked FAILURE. 7631 * </pre> 7632 * 7633 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7634 */ getNpmPackagesBuilder(int index)7635 public com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder getNpmPackagesBuilder(int index) { 7636 return getNpmPackagesFieldBuilder().getBuilder(index); 7637 } 7638 /** 7639 * 7640 * 7641 * <pre> 7642 * A list of npm packages to be uploaded to Artifact Registry upon 7643 * successful completion of all build steps. 7644 * Npm packages in the specified paths will be uploaded 7645 * to the specified Artifact Registry repository using the builder service 7646 * account's credentials. 7647 * If any packages fail to be pushed, the build is marked FAILURE. 7648 * </pre> 7649 * 7650 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7651 */ getNpmPackagesOrBuilder( int index)7652 public com.google.cloudbuild.v1.Artifacts.NpmPackageOrBuilder getNpmPackagesOrBuilder( 7653 int index) { 7654 if (npmPackagesBuilder_ == null) { 7655 return npmPackages_.get(index); 7656 } else { 7657 return npmPackagesBuilder_.getMessageOrBuilder(index); 7658 } 7659 } 7660 /** 7661 * 7662 * 7663 * <pre> 7664 * A list of npm packages to be uploaded to Artifact Registry upon 7665 * successful completion of all build steps. 7666 * Npm packages in the specified paths will be uploaded 7667 * to the specified Artifact Registry repository using the builder service 7668 * account's credentials. 7669 * If any packages fail to be pushed, the build is marked FAILURE. 7670 * </pre> 7671 * 7672 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7673 */ 7674 public java.util.List<? extends com.google.cloudbuild.v1.Artifacts.NpmPackageOrBuilder> getNpmPackagesOrBuilderList()7675 getNpmPackagesOrBuilderList() { 7676 if (npmPackagesBuilder_ != null) { 7677 return npmPackagesBuilder_.getMessageOrBuilderList(); 7678 } else { 7679 return java.util.Collections.unmodifiableList(npmPackages_); 7680 } 7681 } 7682 /** 7683 * 7684 * 7685 * <pre> 7686 * A list of npm packages to be uploaded to Artifact Registry upon 7687 * successful completion of all build steps. 7688 * Npm packages in the specified paths will be uploaded 7689 * to the specified Artifact Registry repository using the builder service 7690 * account's credentials. 7691 * If any packages fail to be pushed, the build is marked FAILURE. 7692 * </pre> 7693 * 7694 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7695 */ addNpmPackagesBuilder()7696 public com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder addNpmPackagesBuilder() { 7697 return getNpmPackagesFieldBuilder() 7698 .addBuilder(com.google.cloudbuild.v1.Artifacts.NpmPackage.getDefaultInstance()); 7699 } 7700 /** 7701 * 7702 * 7703 * <pre> 7704 * A list of npm packages to be uploaded to Artifact Registry upon 7705 * successful completion of all build steps. 7706 * Npm packages in the specified paths will be uploaded 7707 * to the specified Artifact Registry repository using the builder service 7708 * account's credentials. 7709 * If any packages fail to be pushed, the build is marked FAILURE. 7710 * </pre> 7711 * 7712 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7713 */ addNpmPackagesBuilder(int index)7714 public com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder addNpmPackagesBuilder(int index) { 7715 return getNpmPackagesFieldBuilder() 7716 .addBuilder(index, com.google.cloudbuild.v1.Artifacts.NpmPackage.getDefaultInstance()); 7717 } 7718 /** 7719 * 7720 * 7721 * <pre> 7722 * A list of npm packages to be uploaded to Artifact Registry upon 7723 * successful completion of all build steps. 7724 * Npm packages in the specified paths will be uploaded 7725 * to the specified Artifact Registry repository using the builder service 7726 * account's credentials. 7727 * If any packages fail to be pushed, the build is marked FAILURE. 7728 * </pre> 7729 * 7730 * <code>repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;</code> 7731 */ 7732 public java.util.List<com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder> getNpmPackagesBuilderList()7733 getNpmPackagesBuilderList() { 7734 return getNpmPackagesFieldBuilder().getBuilderList(); 7735 } 7736 7737 private com.google.protobuf.RepeatedFieldBuilderV3< 7738 com.google.cloudbuild.v1.Artifacts.NpmPackage, 7739 com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder, 7740 com.google.cloudbuild.v1.Artifacts.NpmPackageOrBuilder> getNpmPackagesFieldBuilder()7741 getNpmPackagesFieldBuilder() { 7742 if (npmPackagesBuilder_ == null) { 7743 npmPackagesBuilder_ = 7744 new com.google.protobuf.RepeatedFieldBuilderV3< 7745 com.google.cloudbuild.v1.Artifacts.NpmPackage, 7746 com.google.cloudbuild.v1.Artifacts.NpmPackage.Builder, 7747 com.google.cloudbuild.v1.Artifacts.NpmPackageOrBuilder>( 7748 npmPackages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); 7749 npmPackages_ = null; 7750 } 7751 return npmPackagesBuilder_; 7752 } 7753 7754 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)7755 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 7756 return super.setUnknownFields(unknownFields); 7757 } 7758 7759 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)7760 public final Builder mergeUnknownFields( 7761 final com.google.protobuf.UnknownFieldSet unknownFields) { 7762 return super.mergeUnknownFields(unknownFields); 7763 } 7764 7765 // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Artifacts) 7766 } 7767 7768 // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Artifacts) 7769 private static final com.google.cloudbuild.v1.Artifacts DEFAULT_INSTANCE; 7770 7771 static { 7772 DEFAULT_INSTANCE = new com.google.cloudbuild.v1.Artifacts(); 7773 } 7774 getDefaultInstance()7775 public static com.google.cloudbuild.v1.Artifacts getDefaultInstance() { 7776 return DEFAULT_INSTANCE; 7777 } 7778 7779 private static final com.google.protobuf.Parser<Artifacts> PARSER = 7780 new com.google.protobuf.AbstractParser<Artifacts>() { 7781 @java.lang.Override 7782 public Artifacts parsePartialFrom( 7783 com.google.protobuf.CodedInputStream input, 7784 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7785 throws com.google.protobuf.InvalidProtocolBufferException { 7786 Builder builder = newBuilder(); 7787 try { 7788 builder.mergeFrom(input, extensionRegistry); 7789 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7790 throw e.setUnfinishedMessage(builder.buildPartial()); 7791 } catch (com.google.protobuf.UninitializedMessageException e) { 7792 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 7793 } catch (java.io.IOException e) { 7794 throw new com.google.protobuf.InvalidProtocolBufferException(e) 7795 .setUnfinishedMessage(builder.buildPartial()); 7796 } 7797 return builder.buildPartial(); 7798 } 7799 }; 7800 parser()7801 public static com.google.protobuf.Parser<Artifacts> parser() { 7802 return PARSER; 7803 } 7804 7805 @java.lang.Override getParserForType()7806 public com.google.protobuf.Parser<Artifacts> getParserForType() { 7807 return PARSER; 7808 } 7809 7810 @java.lang.Override getDefaultInstanceForType()7811 public com.google.cloudbuild.v1.Artifacts getDefaultInstanceForType() { 7812 return DEFAULT_INSTANCE; 7813 } 7814 } 7815