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/cloud/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/v1/globalOperations) * [Regional](/compute/docs/reference/rest/v1/regionOperations) * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.Operation} 29 */ 30 public final class Operation extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.Operation) 33 OperationOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use Operation.newBuilder() to construct. Operation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private Operation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 Operation()40 private Operation() { 41 clientOperationId_ = ""; 42 creationTimestamp_ = ""; 43 description_ = ""; 44 endTime_ = ""; 45 httpErrorMessage_ = ""; 46 insertTime_ = ""; 47 kind_ = ""; 48 name_ = ""; 49 operationGroupId_ = ""; 50 operationType_ = ""; 51 region_ = ""; 52 selfLink_ = ""; 53 startTime_ = ""; 54 status_ = 0; 55 statusMessage_ = ""; 56 targetLink_ = ""; 57 user_ = ""; 58 warnings_ = java.util.Collections.emptyList(); 59 zone_ = ""; 60 } 61 62 @java.lang.Override 63 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)64 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 65 return new Operation(); 66 } 67 68 @java.lang.Override getUnknownFields()69 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 70 return this.unknownFields; 71 } 72 getDescriptor()73 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 74 return com.google.cloud.compute.v1.Compute 75 .internal_static_google_cloud_compute_v1_Operation_descriptor; 76 } 77 78 @java.lang.Override 79 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()80 internalGetFieldAccessorTable() { 81 return com.google.cloud.compute.v1.Compute 82 .internal_static_google_cloud_compute_v1_Operation_fieldAccessorTable 83 .ensureFieldAccessorsInitialized( 84 com.google.cloud.compute.v1.Operation.class, 85 com.google.cloud.compute.v1.Operation.Builder.class); 86 } 87 88 /** 89 * 90 * 91 * <pre> 92 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 93 * </pre> 94 * 95 * Protobuf enum {@code google.cloud.compute.v1.Operation.Status} 96 */ 97 public enum Status implements com.google.protobuf.ProtocolMessageEnum { 98 /** 99 * 100 * 101 * <pre> 102 * A value indicating that the enum field is not set. 103 * </pre> 104 * 105 * <code>UNDEFINED_STATUS = 0;</code> 106 */ 107 UNDEFINED_STATUS(0), 108 /** <code>DONE = 2104194;</code> */ 109 DONE(2104194), 110 /** <code>PENDING = 35394935;</code> */ 111 PENDING(35394935), 112 /** <code>RUNNING = 121282975;</code> */ 113 RUNNING(121282975), 114 UNRECOGNIZED(-1), 115 ; 116 117 /** 118 * 119 * 120 * <pre> 121 * A value indicating that the enum field is not set. 122 * </pre> 123 * 124 * <code>UNDEFINED_STATUS = 0;</code> 125 */ 126 public static final int UNDEFINED_STATUS_VALUE = 0; 127 /** <code>DONE = 2104194;</code> */ 128 public static final int DONE_VALUE = 2104194; 129 /** <code>PENDING = 35394935;</code> */ 130 public static final int PENDING_VALUE = 35394935; 131 /** <code>RUNNING = 121282975;</code> */ 132 public static final int RUNNING_VALUE = 121282975; 133 getNumber()134 public final int getNumber() { 135 if (this == UNRECOGNIZED) { 136 throw new java.lang.IllegalArgumentException( 137 "Can't get the number of an unknown enum value."); 138 } 139 return value; 140 } 141 142 /** 143 * @param value The numeric wire value of the corresponding enum entry. 144 * @return The enum associated with the given numeric wire value. 145 * @deprecated Use {@link #forNumber(int)} instead. 146 */ 147 @java.lang.Deprecated valueOf(int value)148 public static Status valueOf(int value) { 149 return forNumber(value); 150 } 151 152 /** 153 * @param value The numeric wire value of the corresponding enum entry. 154 * @return The enum associated with the given numeric wire value. 155 */ forNumber(int value)156 public static Status forNumber(int value) { 157 switch (value) { 158 case 0: 159 return UNDEFINED_STATUS; 160 case 2104194: 161 return DONE; 162 case 35394935: 163 return PENDING; 164 case 121282975: 165 return RUNNING; 166 default: 167 return null; 168 } 169 } 170 internalGetValueMap()171 public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() { 172 return internalValueMap; 173 } 174 175 private static final com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap = 176 new com.google.protobuf.Internal.EnumLiteMap<Status>() { 177 public Status findValueByNumber(int number) { 178 return Status.forNumber(number); 179 } 180 }; 181 getValueDescriptor()182 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 183 if (this == UNRECOGNIZED) { 184 throw new java.lang.IllegalStateException( 185 "Can't get the descriptor of an unrecognized enum value."); 186 } 187 return getDescriptor().getValues().get(ordinal()); 188 } 189 getDescriptorForType()190 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 191 return getDescriptor(); 192 } 193 getDescriptor()194 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 195 return com.google.cloud.compute.v1.Operation.getDescriptor().getEnumTypes().get(0); 196 } 197 198 private static final Status[] VALUES = values(); 199 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)200 public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 201 if (desc.getType() != getDescriptor()) { 202 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 203 } 204 if (desc.getIndex() == -1) { 205 return UNRECOGNIZED; 206 } 207 return VALUES[desc.getIndex()]; 208 } 209 210 private final int value; 211 Status(int value)212 private Status(int value) { 213 this.value = value; 214 } 215 216 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Operation.Status) 217 } 218 219 private int bitField0_; 220 public static final int CLIENT_OPERATION_ID_FIELD_NUMBER = 297240295; 221 222 @SuppressWarnings("serial") 223 private volatile java.lang.Object clientOperationId_ = ""; 224 /** 225 * 226 * 227 * <pre> 228 * [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 229 * </pre> 230 * 231 * <code>optional string client_operation_id = 297240295;</code> 232 * 233 * @return Whether the clientOperationId field is set. 234 */ 235 @java.lang.Override hasClientOperationId()236 public boolean hasClientOperationId() { 237 return ((bitField0_ & 0x00000001) != 0); 238 } 239 /** 240 * 241 * 242 * <pre> 243 * [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 244 * </pre> 245 * 246 * <code>optional string client_operation_id = 297240295;</code> 247 * 248 * @return The clientOperationId. 249 */ 250 @java.lang.Override getClientOperationId()251 public java.lang.String getClientOperationId() { 252 java.lang.Object ref = clientOperationId_; 253 if (ref instanceof java.lang.String) { 254 return (java.lang.String) ref; 255 } else { 256 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 257 java.lang.String s = bs.toStringUtf8(); 258 clientOperationId_ = s; 259 return s; 260 } 261 } 262 /** 263 * 264 * 265 * <pre> 266 * [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 267 * </pre> 268 * 269 * <code>optional string client_operation_id = 297240295;</code> 270 * 271 * @return The bytes for clientOperationId. 272 */ 273 @java.lang.Override getClientOperationIdBytes()274 public com.google.protobuf.ByteString getClientOperationIdBytes() { 275 java.lang.Object ref = clientOperationId_; 276 if (ref instanceof java.lang.String) { 277 com.google.protobuf.ByteString b = 278 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 279 clientOperationId_ = b; 280 return b; 281 } else { 282 return (com.google.protobuf.ByteString) ref; 283 } 284 } 285 286 public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; 287 288 @SuppressWarnings("serial") 289 private volatile java.lang.Object creationTimestamp_ = ""; 290 /** 291 * 292 * 293 * <pre> 294 * [Deprecated] This field is deprecated. 295 * </pre> 296 * 297 * <code>optional string creation_timestamp = 30525366;</code> 298 * 299 * @return Whether the creationTimestamp field is set. 300 */ 301 @java.lang.Override hasCreationTimestamp()302 public boolean hasCreationTimestamp() { 303 return ((bitField0_ & 0x00000002) != 0); 304 } 305 /** 306 * 307 * 308 * <pre> 309 * [Deprecated] This field is deprecated. 310 * </pre> 311 * 312 * <code>optional string creation_timestamp = 30525366;</code> 313 * 314 * @return The creationTimestamp. 315 */ 316 @java.lang.Override getCreationTimestamp()317 public java.lang.String getCreationTimestamp() { 318 java.lang.Object ref = creationTimestamp_; 319 if (ref instanceof java.lang.String) { 320 return (java.lang.String) ref; 321 } else { 322 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 323 java.lang.String s = bs.toStringUtf8(); 324 creationTimestamp_ = s; 325 return s; 326 } 327 } 328 /** 329 * 330 * 331 * <pre> 332 * [Deprecated] This field is deprecated. 333 * </pre> 334 * 335 * <code>optional string creation_timestamp = 30525366;</code> 336 * 337 * @return The bytes for creationTimestamp. 338 */ 339 @java.lang.Override getCreationTimestampBytes()340 public com.google.protobuf.ByteString getCreationTimestampBytes() { 341 java.lang.Object ref = creationTimestamp_; 342 if (ref instanceof java.lang.String) { 343 com.google.protobuf.ByteString b = 344 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 345 creationTimestamp_ = b; 346 return b; 347 } else { 348 return (com.google.protobuf.ByteString) ref; 349 } 350 } 351 352 public static final int DESCRIPTION_FIELD_NUMBER = 422937596; 353 354 @SuppressWarnings("serial") 355 private volatile java.lang.Object description_ = ""; 356 /** 357 * 358 * 359 * <pre> 360 * [Output Only] A textual description of the operation, which is set when the operation is created. 361 * </pre> 362 * 363 * <code>optional string description = 422937596;</code> 364 * 365 * @return Whether the description field is set. 366 */ 367 @java.lang.Override hasDescription()368 public boolean hasDescription() { 369 return ((bitField0_ & 0x00000004) != 0); 370 } 371 /** 372 * 373 * 374 * <pre> 375 * [Output Only] A textual description of the operation, which is set when the operation is created. 376 * </pre> 377 * 378 * <code>optional string description = 422937596;</code> 379 * 380 * @return The description. 381 */ 382 @java.lang.Override getDescription()383 public java.lang.String getDescription() { 384 java.lang.Object ref = description_; 385 if (ref instanceof java.lang.String) { 386 return (java.lang.String) ref; 387 } else { 388 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 389 java.lang.String s = bs.toStringUtf8(); 390 description_ = s; 391 return s; 392 } 393 } 394 /** 395 * 396 * 397 * <pre> 398 * [Output Only] A textual description of the operation, which is set when the operation is created. 399 * </pre> 400 * 401 * <code>optional string description = 422937596;</code> 402 * 403 * @return The bytes for description. 404 */ 405 @java.lang.Override getDescriptionBytes()406 public com.google.protobuf.ByteString getDescriptionBytes() { 407 java.lang.Object ref = description_; 408 if (ref instanceof java.lang.String) { 409 com.google.protobuf.ByteString b = 410 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 411 description_ = b; 412 return b; 413 } else { 414 return (com.google.protobuf.ByteString) ref; 415 } 416 } 417 418 public static final int END_TIME_FIELD_NUMBER = 114938801; 419 420 @SuppressWarnings("serial") 421 private volatile java.lang.Object endTime_ = ""; 422 /** 423 * 424 * 425 * <pre> 426 * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 427 * </pre> 428 * 429 * <code>optional string end_time = 114938801;</code> 430 * 431 * @return Whether the endTime field is set. 432 */ 433 @java.lang.Override hasEndTime()434 public boolean hasEndTime() { 435 return ((bitField0_ & 0x00000008) != 0); 436 } 437 /** 438 * 439 * 440 * <pre> 441 * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 442 * </pre> 443 * 444 * <code>optional string end_time = 114938801;</code> 445 * 446 * @return The endTime. 447 */ 448 @java.lang.Override getEndTime()449 public java.lang.String getEndTime() { 450 java.lang.Object ref = endTime_; 451 if (ref instanceof java.lang.String) { 452 return (java.lang.String) ref; 453 } else { 454 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 455 java.lang.String s = bs.toStringUtf8(); 456 endTime_ = s; 457 return s; 458 } 459 } 460 /** 461 * 462 * 463 * <pre> 464 * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 465 * </pre> 466 * 467 * <code>optional string end_time = 114938801;</code> 468 * 469 * @return The bytes for endTime. 470 */ 471 @java.lang.Override getEndTimeBytes()472 public com.google.protobuf.ByteString getEndTimeBytes() { 473 java.lang.Object ref = endTime_; 474 if (ref instanceof java.lang.String) { 475 com.google.protobuf.ByteString b = 476 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 477 endTime_ = b; 478 return b; 479 } else { 480 return (com.google.protobuf.ByteString) ref; 481 } 482 } 483 484 public static final int ERROR_FIELD_NUMBER = 96784904; 485 private com.google.cloud.compute.v1.Error error_; 486 /** 487 * 488 * 489 * <pre> 490 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 491 * </pre> 492 * 493 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 494 * 495 * @return Whether the error field is set. 496 */ 497 @java.lang.Override hasError()498 public boolean hasError() { 499 return ((bitField0_ & 0x00000010) != 0); 500 } 501 /** 502 * 503 * 504 * <pre> 505 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 506 * </pre> 507 * 508 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 509 * 510 * @return The error. 511 */ 512 @java.lang.Override getError()513 public com.google.cloud.compute.v1.Error getError() { 514 return error_ == null ? com.google.cloud.compute.v1.Error.getDefaultInstance() : error_; 515 } 516 /** 517 * 518 * 519 * <pre> 520 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 521 * </pre> 522 * 523 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 524 */ 525 @java.lang.Override getErrorOrBuilder()526 public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { 527 return error_ == null ? com.google.cloud.compute.v1.Error.getDefaultInstance() : error_; 528 } 529 530 public static final int HTTP_ERROR_MESSAGE_FIELD_NUMBER = 202521945; 531 532 @SuppressWarnings("serial") 533 private volatile java.lang.Object httpErrorMessage_ = ""; 534 /** 535 * 536 * 537 * <pre> 538 * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 539 * </pre> 540 * 541 * <code> 542 * optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE]; 543 * </code> 544 * 545 * @return Whether the httpErrorMessage field is set. 546 */ 547 @java.lang.Override hasHttpErrorMessage()548 public boolean hasHttpErrorMessage() { 549 return ((bitField0_ & 0x00000020) != 0); 550 } 551 /** 552 * 553 * 554 * <pre> 555 * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 556 * </pre> 557 * 558 * <code> 559 * optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE]; 560 * </code> 561 * 562 * @return The httpErrorMessage. 563 */ 564 @java.lang.Override getHttpErrorMessage()565 public java.lang.String getHttpErrorMessage() { 566 java.lang.Object ref = httpErrorMessage_; 567 if (ref instanceof java.lang.String) { 568 return (java.lang.String) ref; 569 } else { 570 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 571 java.lang.String s = bs.toStringUtf8(); 572 httpErrorMessage_ = s; 573 return s; 574 } 575 } 576 /** 577 * 578 * 579 * <pre> 580 * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 581 * </pre> 582 * 583 * <code> 584 * optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE]; 585 * </code> 586 * 587 * @return The bytes for httpErrorMessage. 588 */ 589 @java.lang.Override getHttpErrorMessageBytes()590 public com.google.protobuf.ByteString getHttpErrorMessageBytes() { 591 java.lang.Object ref = httpErrorMessage_; 592 if (ref instanceof java.lang.String) { 593 com.google.protobuf.ByteString b = 594 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 595 httpErrorMessage_ = b; 596 return b; 597 } else { 598 return (com.google.protobuf.ByteString) ref; 599 } 600 } 601 602 public static final int HTTP_ERROR_STATUS_CODE_FIELD_NUMBER = 312345196; 603 private int httpErrorStatusCode_ = 0; 604 /** 605 * 606 * 607 * <pre> 608 * [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 609 * </pre> 610 * 611 * <code> 612 * optional int32 http_error_status_code = 312345196 [(.google.cloud.operation_field) = ERROR_CODE]; 613 * </code> 614 * 615 * @return Whether the httpErrorStatusCode field is set. 616 */ 617 @java.lang.Override hasHttpErrorStatusCode()618 public boolean hasHttpErrorStatusCode() { 619 return ((bitField0_ & 0x00000040) != 0); 620 } 621 /** 622 * 623 * 624 * <pre> 625 * [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 626 * </pre> 627 * 628 * <code> 629 * optional int32 http_error_status_code = 312345196 [(.google.cloud.operation_field) = ERROR_CODE]; 630 * </code> 631 * 632 * @return The httpErrorStatusCode. 633 */ 634 @java.lang.Override getHttpErrorStatusCode()635 public int getHttpErrorStatusCode() { 636 return httpErrorStatusCode_; 637 } 638 639 public static final int ID_FIELD_NUMBER = 3355; 640 private long id_ = 0L; 641 /** 642 * 643 * 644 * <pre> 645 * [Output Only] The unique identifier for the operation. This identifier is defined by the server. 646 * </pre> 647 * 648 * <code>optional uint64 id = 3355;</code> 649 * 650 * @return Whether the id field is set. 651 */ 652 @java.lang.Override hasId()653 public boolean hasId() { 654 return ((bitField0_ & 0x00000080) != 0); 655 } 656 /** 657 * 658 * 659 * <pre> 660 * [Output Only] The unique identifier for the operation. This identifier is defined by the server. 661 * </pre> 662 * 663 * <code>optional uint64 id = 3355;</code> 664 * 665 * @return The id. 666 */ 667 @java.lang.Override getId()668 public long getId() { 669 return id_; 670 } 671 672 public static final int INSERT_TIME_FIELD_NUMBER = 433722515; 673 674 @SuppressWarnings("serial") 675 private volatile java.lang.Object insertTime_ = ""; 676 /** 677 * 678 * 679 * <pre> 680 * [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 681 * </pre> 682 * 683 * <code>optional string insert_time = 433722515;</code> 684 * 685 * @return Whether the insertTime field is set. 686 */ 687 @java.lang.Override hasInsertTime()688 public boolean hasInsertTime() { 689 return ((bitField0_ & 0x00000100) != 0); 690 } 691 /** 692 * 693 * 694 * <pre> 695 * [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 696 * </pre> 697 * 698 * <code>optional string insert_time = 433722515;</code> 699 * 700 * @return The insertTime. 701 */ 702 @java.lang.Override getInsertTime()703 public java.lang.String getInsertTime() { 704 java.lang.Object ref = insertTime_; 705 if (ref instanceof java.lang.String) { 706 return (java.lang.String) ref; 707 } else { 708 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 709 java.lang.String s = bs.toStringUtf8(); 710 insertTime_ = s; 711 return s; 712 } 713 } 714 /** 715 * 716 * 717 * <pre> 718 * [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 719 * </pre> 720 * 721 * <code>optional string insert_time = 433722515;</code> 722 * 723 * @return The bytes for insertTime. 724 */ 725 @java.lang.Override getInsertTimeBytes()726 public com.google.protobuf.ByteString getInsertTimeBytes() { 727 java.lang.Object ref = insertTime_; 728 if (ref instanceof java.lang.String) { 729 com.google.protobuf.ByteString b = 730 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 731 insertTime_ = b; 732 return b; 733 } else { 734 return (com.google.protobuf.ByteString) ref; 735 } 736 } 737 738 public static final int KIND_FIELD_NUMBER = 3292052; 739 740 @SuppressWarnings("serial") 741 private volatile java.lang.Object kind_ = ""; 742 /** 743 * 744 * 745 * <pre> 746 * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 747 * </pre> 748 * 749 * <code>optional string kind = 3292052;</code> 750 * 751 * @return Whether the kind field is set. 752 */ 753 @java.lang.Override hasKind()754 public boolean hasKind() { 755 return ((bitField0_ & 0x00000200) != 0); 756 } 757 /** 758 * 759 * 760 * <pre> 761 * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 762 * </pre> 763 * 764 * <code>optional string kind = 3292052;</code> 765 * 766 * @return The kind. 767 */ 768 @java.lang.Override getKind()769 public java.lang.String getKind() { 770 java.lang.Object ref = kind_; 771 if (ref instanceof java.lang.String) { 772 return (java.lang.String) ref; 773 } else { 774 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 775 java.lang.String s = bs.toStringUtf8(); 776 kind_ = s; 777 return s; 778 } 779 } 780 /** 781 * 782 * 783 * <pre> 784 * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 785 * </pre> 786 * 787 * <code>optional string kind = 3292052;</code> 788 * 789 * @return The bytes for kind. 790 */ 791 @java.lang.Override getKindBytes()792 public com.google.protobuf.ByteString getKindBytes() { 793 java.lang.Object ref = kind_; 794 if (ref instanceof java.lang.String) { 795 com.google.protobuf.ByteString b = 796 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 797 kind_ = b; 798 return b; 799 } else { 800 return (com.google.protobuf.ByteString) ref; 801 } 802 } 803 804 public static final int NAME_FIELD_NUMBER = 3373707; 805 806 @SuppressWarnings("serial") 807 private volatile java.lang.Object name_ = ""; 808 /** 809 * 810 * 811 * <pre> 812 * [Output Only] Name of the operation. 813 * </pre> 814 * 815 * <code>optional string name = 3373707 [(.google.cloud.operation_field) = NAME];</code> 816 * 817 * @return Whether the name field is set. 818 */ 819 @java.lang.Override hasName()820 public boolean hasName() { 821 return ((bitField0_ & 0x00000400) != 0); 822 } 823 /** 824 * 825 * 826 * <pre> 827 * [Output Only] Name of the operation. 828 * </pre> 829 * 830 * <code>optional string name = 3373707 [(.google.cloud.operation_field) = NAME];</code> 831 * 832 * @return The name. 833 */ 834 @java.lang.Override getName()835 public java.lang.String getName() { 836 java.lang.Object ref = name_; 837 if (ref instanceof java.lang.String) { 838 return (java.lang.String) ref; 839 } else { 840 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 841 java.lang.String s = bs.toStringUtf8(); 842 name_ = s; 843 return s; 844 } 845 } 846 /** 847 * 848 * 849 * <pre> 850 * [Output Only] Name of the operation. 851 * </pre> 852 * 853 * <code>optional string name = 3373707 [(.google.cloud.operation_field) = NAME];</code> 854 * 855 * @return The bytes for name. 856 */ 857 @java.lang.Override getNameBytes()858 public com.google.protobuf.ByteString getNameBytes() { 859 java.lang.Object ref = name_; 860 if (ref instanceof java.lang.String) { 861 com.google.protobuf.ByteString b = 862 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 863 name_ = b; 864 return b; 865 } else { 866 return (com.google.protobuf.ByteString) ref; 867 } 868 } 869 870 public static final int OPERATION_GROUP_ID_FIELD_NUMBER = 40171187; 871 872 @SuppressWarnings("serial") 873 private volatile java.lang.Object operationGroupId_ = ""; 874 /** 875 * 876 * 877 * <pre> 878 * [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 879 * </pre> 880 * 881 * <code>optional string operation_group_id = 40171187;</code> 882 * 883 * @return Whether the operationGroupId field is set. 884 */ 885 @java.lang.Override hasOperationGroupId()886 public boolean hasOperationGroupId() { 887 return ((bitField0_ & 0x00000800) != 0); 888 } 889 /** 890 * 891 * 892 * <pre> 893 * [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 894 * </pre> 895 * 896 * <code>optional string operation_group_id = 40171187;</code> 897 * 898 * @return The operationGroupId. 899 */ 900 @java.lang.Override getOperationGroupId()901 public java.lang.String getOperationGroupId() { 902 java.lang.Object ref = operationGroupId_; 903 if (ref instanceof java.lang.String) { 904 return (java.lang.String) ref; 905 } else { 906 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 907 java.lang.String s = bs.toStringUtf8(); 908 operationGroupId_ = s; 909 return s; 910 } 911 } 912 /** 913 * 914 * 915 * <pre> 916 * [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 917 * </pre> 918 * 919 * <code>optional string operation_group_id = 40171187;</code> 920 * 921 * @return The bytes for operationGroupId. 922 */ 923 @java.lang.Override getOperationGroupIdBytes()924 public com.google.protobuf.ByteString getOperationGroupIdBytes() { 925 java.lang.Object ref = operationGroupId_; 926 if (ref instanceof java.lang.String) { 927 com.google.protobuf.ByteString b = 928 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 929 operationGroupId_ = b; 930 return b; 931 } else { 932 return (com.google.protobuf.ByteString) ref; 933 } 934 } 935 936 public static final int OPERATION_TYPE_FIELD_NUMBER = 177650450; 937 938 @SuppressWarnings("serial") 939 private volatile java.lang.Object operationType_ = ""; 940 /** 941 * 942 * 943 * <pre> 944 * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 945 * </pre> 946 * 947 * <code>optional string operation_type = 177650450;</code> 948 * 949 * @return Whether the operationType field is set. 950 */ 951 @java.lang.Override hasOperationType()952 public boolean hasOperationType() { 953 return ((bitField0_ & 0x00001000) != 0); 954 } 955 /** 956 * 957 * 958 * <pre> 959 * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 960 * </pre> 961 * 962 * <code>optional string operation_type = 177650450;</code> 963 * 964 * @return The operationType. 965 */ 966 @java.lang.Override getOperationType()967 public java.lang.String getOperationType() { 968 java.lang.Object ref = operationType_; 969 if (ref instanceof java.lang.String) { 970 return (java.lang.String) ref; 971 } else { 972 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 973 java.lang.String s = bs.toStringUtf8(); 974 operationType_ = s; 975 return s; 976 } 977 } 978 /** 979 * 980 * 981 * <pre> 982 * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 983 * </pre> 984 * 985 * <code>optional string operation_type = 177650450;</code> 986 * 987 * @return The bytes for operationType. 988 */ 989 @java.lang.Override getOperationTypeBytes()990 public com.google.protobuf.ByteString getOperationTypeBytes() { 991 java.lang.Object ref = operationType_; 992 if (ref instanceof java.lang.String) { 993 com.google.protobuf.ByteString b = 994 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 995 operationType_ = b; 996 return b; 997 } else { 998 return (com.google.protobuf.ByteString) ref; 999 } 1000 } 1001 1002 public static final int PROGRESS_FIELD_NUMBER = 72663597; 1003 private int progress_ = 0; 1004 /** 1005 * 1006 * 1007 * <pre> 1008 * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 1009 * </pre> 1010 * 1011 * <code>optional int32 progress = 72663597;</code> 1012 * 1013 * @return Whether the progress field is set. 1014 */ 1015 @java.lang.Override hasProgress()1016 public boolean hasProgress() { 1017 return ((bitField0_ & 0x00002000) != 0); 1018 } 1019 /** 1020 * 1021 * 1022 * <pre> 1023 * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 1024 * </pre> 1025 * 1026 * <code>optional int32 progress = 72663597;</code> 1027 * 1028 * @return The progress. 1029 */ 1030 @java.lang.Override getProgress()1031 public int getProgress() { 1032 return progress_; 1033 } 1034 1035 public static final int REGION_FIELD_NUMBER = 138946292; 1036 1037 @SuppressWarnings("serial") 1038 private volatile java.lang.Object region_ = ""; 1039 /** 1040 * 1041 * 1042 * <pre> 1043 * [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1044 * </pre> 1045 * 1046 * <code>optional string region = 138946292;</code> 1047 * 1048 * @return Whether the region field is set. 1049 */ 1050 @java.lang.Override hasRegion()1051 public boolean hasRegion() { 1052 return ((bitField0_ & 0x00004000) != 0); 1053 } 1054 /** 1055 * 1056 * 1057 * <pre> 1058 * [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1059 * </pre> 1060 * 1061 * <code>optional string region = 138946292;</code> 1062 * 1063 * @return The region. 1064 */ 1065 @java.lang.Override getRegion()1066 public java.lang.String getRegion() { 1067 java.lang.Object ref = region_; 1068 if (ref instanceof java.lang.String) { 1069 return (java.lang.String) ref; 1070 } else { 1071 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1072 java.lang.String s = bs.toStringUtf8(); 1073 region_ = s; 1074 return s; 1075 } 1076 } 1077 /** 1078 * 1079 * 1080 * <pre> 1081 * [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1082 * </pre> 1083 * 1084 * <code>optional string region = 138946292;</code> 1085 * 1086 * @return The bytes for region. 1087 */ 1088 @java.lang.Override getRegionBytes()1089 public com.google.protobuf.ByteString getRegionBytes() { 1090 java.lang.Object ref = region_; 1091 if (ref instanceof java.lang.String) { 1092 com.google.protobuf.ByteString b = 1093 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1094 region_ = b; 1095 return b; 1096 } else { 1097 return (com.google.protobuf.ByteString) ref; 1098 } 1099 } 1100 1101 public static final int SELF_LINK_FIELD_NUMBER = 456214797; 1102 1103 @SuppressWarnings("serial") 1104 private volatile java.lang.Object selfLink_ = ""; 1105 /** 1106 * 1107 * 1108 * <pre> 1109 * [Output Only] Server-defined URL for the resource. 1110 * </pre> 1111 * 1112 * <code>optional string self_link = 456214797;</code> 1113 * 1114 * @return Whether the selfLink field is set. 1115 */ 1116 @java.lang.Override hasSelfLink()1117 public boolean hasSelfLink() { 1118 return ((bitField0_ & 0x00008000) != 0); 1119 } 1120 /** 1121 * 1122 * 1123 * <pre> 1124 * [Output Only] Server-defined URL for the resource. 1125 * </pre> 1126 * 1127 * <code>optional string self_link = 456214797;</code> 1128 * 1129 * @return The selfLink. 1130 */ 1131 @java.lang.Override getSelfLink()1132 public java.lang.String getSelfLink() { 1133 java.lang.Object ref = selfLink_; 1134 if (ref instanceof java.lang.String) { 1135 return (java.lang.String) ref; 1136 } else { 1137 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1138 java.lang.String s = bs.toStringUtf8(); 1139 selfLink_ = s; 1140 return s; 1141 } 1142 } 1143 /** 1144 * 1145 * 1146 * <pre> 1147 * [Output Only] Server-defined URL for the resource. 1148 * </pre> 1149 * 1150 * <code>optional string self_link = 456214797;</code> 1151 * 1152 * @return The bytes for selfLink. 1153 */ 1154 @java.lang.Override getSelfLinkBytes()1155 public com.google.protobuf.ByteString getSelfLinkBytes() { 1156 java.lang.Object ref = selfLink_; 1157 if (ref instanceof java.lang.String) { 1158 com.google.protobuf.ByteString b = 1159 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1160 selfLink_ = b; 1161 return b; 1162 } else { 1163 return (com.google.protobuf.ByteString) ref; 1164 } 1165 } 1166 1167 public static final int START_TIME_FIELD_NUMBER = 37467274; 1168 1169 @SuppressWarnings("serial") 1170 private volatile java.lang.Object startTime_ = ""; 1171 /** 1172 * 1173 * 1174 * <pre> 1175 * [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1176 * </pre> 1177 * 1178 * <code>optional string start_time = 37467274;</code> 1179 * 1180 * @return Whether the startTime field is set. 1181 */ 1182 @java.lang.Override hasStartTime()1183 public boolean hasStartTime() { 1184 return ((bitField0_ & 0x00010000) != 0); 1185 } 1186 /** 1187 * 1188 * 1189 * <pre> 1190 * [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1191 * </pre> 1192 * 1193 * <code>optional string start_time = 37467274;</code> 1194 * 1195 * @return The startTime. 1196 */ 1197 @java.lang.Override getStartTime()1198 public java.lang.String getStartTime() { 1199 java.lang.Object ref = startTime_; 1200 if (ref instanceof java.lang.String) { 1201 return (java.lang.String) ref; 1202 } else { 1203 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1204 java.lang.String s = bs.toStringUtf8(); 1205 startTime_ = s; 1206 return s; 1207 } 1208 } 1209 /** 1210 * 1211 * 1212 * <pre> 1213 * [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1214 * </pre> 1215 * 1216 * <code>optional string start_time = 37467274;</code> 1217 * 1218 * @return The bytes for startTime. 1219 */ 1220 @java.lang.Override getStartTimeBytes()1221 public com.google.protobuf.ByteString getStartTimeBytes() { 1222 java.lang.Object ref = startTime_; 1223 if (ref instanceof java.lang.String) { 1224 com.google.protobuf.ByteString b = 1225 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1226 startTime_ = b; 1227 return b; 1228 } else { 1229 return (com.google.protobuf.ByteString) ref; 1230 } 1231 } 1232 1233 public static final int STATUS_FIELD_NUMBER = 181260274; 1234 private int status_ = 0; 1235 /** 1236 * 1237 * 1238 * <pre> 1239 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 1240 * </pre> 1241 * 1242 * <code> 1243 * optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS]; 1244 * </code> 1245 * 1246 * @return Whether the status field is set. 1247 */ 1248 @java.lang.Override hasStatus()1249 public boolean hasStatus() { 1250 return ((bitField0_ & 0x00020000) != 0); 1251 } 1252 /** 1253 * 1254 * 1255 * <pre> 1256 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 1257 * </pre> 1258 * 1259 * <code> 1260 * optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS]; 1261 * </code> 1262 * 1263 * @return The enum numeric value on the wire for status. 1264 */ 1265 @java.lang.Override getStatusValue()1266 public int getStatusValue() { 1267 return status_; 1268 } 1269 /** 1270 * 1271 * 1272 * <pre> 1273 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 1274 * </pre> 1275 * 1276 * <code> 1277 * optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS]; 1278 * </code> 1279 * 1280 * @return The status. 1281 */ 1282 @java.lang.Override getStatus()1283 public com.google.cloud.compute.v1.Operation.Status getStatus() { 1284 com.google.cloud.compute.v1.Operation.Status result = 1285 com.google.cloud.compute.v1.Operation.Status.forNumber(status_); 1286 return result == null ? com.google.cloud.compute.v1.Operation.Status.UNRECOGNIZED : result; 1287 } 1288 1289 public static final int STATUS_MESSAGE_FIELD_NUMBER = 297428154; 1290 1291 @SuppressWarnings("serial") 1292 private volatile java.lang.Object statusMessage_ = ""; 1293 /** 1294 * 1295 * 1296 * <pre> 1297 * [Output Only] An optional textual description of the current status of the operation. 1298 * </pre> 1299 * 1300 * <code>optional string status_message = 297428154;</code> 1301 * 1302 * @return Whether the statusMessage field is set. 1303 */ 1304 @java.lang.Override hasStatusMessage()1305 public boolean hasStatusMessage() { 1306 return ((bitField0_ & 0x00040000) != 0); 1307 } 1308 /** 1309 * 1310 * 1311 * <pre> 1312 * [Output Only] An optional textual description of the current status of the operation. 1313 * </pre> 1314 * 1315 * <code>optional string status_message = 297428154;</code> 1316 * 1317 * @return The statusMessage. 1318 */ 1319 @java.lang.Override getStatusMessage()1320 public java.lang.String getStatusMessage() { 1321 java.lang.Object ref = statusMessage_; 1322 if (ref instanceof java.lang.String) { 1323 return (java.lang.String) ref; 1324 } else { 1325 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1326 java.lang.String s = bs.toStringUtf8(); 1327 statusMessage_ = s; 1328 return s; 1329 } 1330 } 1331 /** 1332 * 1333 * 1334 * <pre> 1335 * [Output Only] An optional textual description of the current status of the operation. 1336 * </pre> 1337 * 1338 * <code>optional string status_message = 297428154;</code> 1339 * 1340 * @return The bytes for statusMessage. 1341 */ 1342 @java.lang.Override getStatusMessageBytes()1343 public com.google.protobuf.ByteString getStatusMessageBytes() { 1344 java.lang.Object ref = statusMessage_; 1345 if (ref instanceof java.lang.String) { 1346 com.google.protobuf.ByteString b = 1347 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1348 statusMessage_ = b; 1349 return b; 1350 } else { 1351 return (com.google.protobuf.ByteString) ref; 1352 } 1353 } 1354 1355 public static final int TARGET_ID_FIELD_NUMBER = 258165385; 1356 private long targetId_ = 0L; 1357 /** 1358 * 1359 * 1360 * <pre> 1361 * [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1362 * </pre> 1363 * 1364 * <code>optional uint64 target_id = 258165385;</code> 1365 * 1366 * @return Whether the targetId field is set. 1367 */ 1368 @java.lang.Override hasTargetId()1369 public boolean hasTargetId() { 1370 return ((bitField0_ & 0x00080000) != 0); 1371 } 1372 /** 1373 * 1374 * 1375 * <pre> 1376 * [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1377 * </pre> 1378 * 1379 * <code>optional uint64 target_id = 258165385;</code> 1380 * 1381 * @return The targetId. 1382 */ 1383 @java.lang.Override getTargetId()1384 public long getTargetId() { 1385 return targetId_; 1386 } 1387 1388 public static final int TARGET_LINK_FIELD_NUMBER = 62671336; 1389 1390 @SuppressWarnings("serial") 1391 private volatile java.lang.Object targetLink_ = ""; 1392 /** 1393 * 1394 * 1395 * <pre> 1396 * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 1397 * </pre> 1398 * 1399 * <code>optional string target_link = 62671336;</code> 1400 * 1401 * @return Whether the targetLink field is set. 1402 */ 1403 @java.lang.Override hasTargetLink()1404 public boolean hasTargetLink() { 1405 return ((bitField0_ & 0x00100000) != 0); 1406 } 1407 /** 1408 * 1409 * 1410 * <pre> 1411 * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 1412 * </pre> 1413 * 1414 * <code>optional string target_link = 62671336;</code> 1415 * 1416 * @return The targetLink. 1417 */ 1418 @java.lang.Override getTargetLink()1419 public java.lang.String getTargetLink() { 1420 java.lang.Object ref = targetLink_; 1421 if (ref instanceof java.lang.String) { 1422 return (java.lang.String) ref; 1423 } else { 1424 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1425 java.lang.String s = bs.toStringUtf8(); 1426 targetLink_ = s; 1427 return s; 1428 } 1429 } 1430 /** 1431 * 1432 * 1433 * <pre> 1434 * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 1435 * </pre> 1436 * 1437 * <code>optional string target_link = 62671336;</code> 1438 * 1439 * @return The bytes for targetLink. 1440 */ 1441 @java.lang.Override getTargetLinkBytes()1442 public com.google.protobuf.ByteString getTargetLinkBytes() { 1443 java.lang.Object ref = targetLink_; 1444 if (ref instanceof java.lang.String) { 1445 com.google.protobuf.ByteString b = 1446 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1447 targetLink_ = b; 1448 return b; 1449 } else { 1450 return (com.google.protobuf.ByteString) ref; 1451 } 1452 } 1453 1454 public static final int USER_FIELD_NUMBER = 3599307; 1455 1456 @SuppressWarnings("serial") 1457 private volatile java.lang.Object user_ = ""; 1458 /** 1459 * 1460 * 1461 * <pre> 1462 * [Output Only] User who requested the operation, for example: `user@example.com`. 1463 * </pre> 1464 * 1465 * <code>optional string user = 3599307;</code> 1466 * 1467 * @return Whether the user field is set. 1468 */ 1469 @java.lang.Override hasUser()1470 public boolean hasUser() { 1471 return ((bitField0_ & 0x00200000) != 0); 1472 } 1473 /** 1474 * 1475 * 1476 * <pre> 1477 * [Output Only] User who requested the operation, for example: `user@example.com`. 1478 * </pre> 1479 * 1480 * <code>optional string user = 3599307;</code> 1481 * 1482 * @return The user. 1483 */ 1484 @java.lang.Override getUser()1485 public java.lang.String getUser() { 1486 java.lang.Object ref = user_; 1487 if (ref instanceof java.lang.String) { 1488 return (java.lang.String) ref; 1489 } else { 1490 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1491 java.lang.String s = bs.toStringUtf8(); 1492 user_ = s; 1493 return s; 1494 } 1495 } 1496 /** 1497 * 1498 * 1499 * <pre> 1500 * [Output Only] User who requested the operation, for example: `user@example.com`. 1501 * </pre> 1502 * 1503 * <code>optional string user = 3599307;</code> 1504 * 1505 * @return The bytes for user. 1506 */ 1507 @java.lang.Override getUserBytes()1508 public com.google.protobuf.ByteString getUserBytes() { 1509 java.lang.Object ref = user_; 1510 if (ref instanceof java.lang.String) { 1511 com.google.protobuf.ByteString b = 1512 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1513 user_ = b; 1514 return b; 1515 } else { 1516 return (com.google.protobuf.ByteString) ref; 1517 } 1518 } 1519 1520 public static final int WARNINGS_FIELD_NUMBER = 498091095; 1521 1522 @SuppressWarnings("serial") 1523 private java.util.List<com.google.cloud.compute.v1.Warnings> warnings_; 1524 /** 1525 * 1526 * 1527 * <pre> 1528 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1529 * </pre> 1530 * 1531 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1532 */ 1533 @java.lang.Override getWarningsList()1534 public java.util.List<com.google.cloud.compute.v1.Warnings> getWarningsList() { 1535 return warnings_; 1536 } 1537 /** 1538 * 1539 * 1540 * <pre> 1541 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1542 * </pre> 1543 * 1544 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1545 */ 1546 @java.lang.Override 1547 public java.util.List<? extends com.google.cloud.compute.v1.WarningsOrBuilder> getWarningsOrBuilderList()1548 getWarningsOrBuilderList() { 1549 return warnings_; 1550 } 1551 /** 1552 * 1553 * 1554 * <pre> 1555 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1556 * </pre> 1557 * 1558 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1559 */ 1560 @java.lang.Override getWarningsCount()1561 public int getWarningsCount() { 1562 return warnings_.size(); 1563 } 1564 /** 1565 * 1566 * 1567 * <pre> 1568 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1569 * </pre> 1570 * 1571 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1572 */ 1573 @java.lang.Override getWarnings(int index)1574 public com.google.cloud.compute.v1.Warnings getWarnings(int index) { 1575 return warnings_.get(index); 1576 } 1577 /** 1578 * 1579 * 1580 * <pre> 1581 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1582 * </pre> 1583 * 1584 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1585 */ 1586 @java.lang.Override getWarningsOrBuilder(int index)1587 public com.google.cloud.compute.v1.WarningsOrBuilder getWarningsOrBuilder(int index) { 1588 return warnings_.get(index); 1589 } 1590 1591 public static final int ZONE_FIELD_NUMBER = 3744684; 1592 1593 @SuppressWarnings("serial") 1594 private volatile java.lang.Object zone_ = ""; 1595 /** 1596 * 1597 * 1598 * <pre> 1599 * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1600 * </pre> 1601 * 1602 * <code>optional string zone = 3744684;</code> 1603 * 1604 * @return Whether the zone field is set. 1605 */ 1606 @java.lang.Override hasZone()1607 public boolean hasZone() { 1608 return ((bitField0_ & 0x00400000) != 0); 1609 } 1610 /** 1611 * 1612 * 1613 * <pre> 1614 * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1615 * </pre> 1616 * 1617 * <code>optional string zone = 3744684;</code> 1618 * 1619 * @return The zone. 1620 */ 1621 @java.lang.Override getZone()1622 public java.lang.String getZone() { 1623 java.lang.Object ref = zone_; 1624 if (ref instanceof java.lang.String) { 1625 return (java.lang.String) ref; 1626 } else { 1627 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1628 java.lang.String s = bs.toStringUtf8(); 1629 zone_ = s; 1630 return s; 1631 } 1632 } 1633 /** 1634 * 1635 * 1636 * <pre> 1637 * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1638 * </pre> 1639 * 1640 * <code>optional string zone = 3744684;</code> 1641 * 1642 * @return The bytes for zone. 1643 */ 1644 @java.lang.Override getZoneBytes()1645 public com.google.protobuf.ByteString getZoneBytes() { 1646 java.lang.Object ref = zone_; 1647 if (ref instanceof java.lang.String) { 1648 com.google.protobuf.ByteString b = 1649 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1650 zone_ = b; 1651 return b; 1652 } else { 1653 return (com.google.protobuf.ByteString) ref; 1654 } 1655 } 1656 1657 private byte memoizedIsInitialized = -1; 1658 1659 @java.lang.Override isInitialized()1660 public final boolean isInitialized() { 1661 byte isInitialized = memoizedIsInitialized; 1662 if (isInitialized == 1) return true; 1663 if (isInitialized == 0) return false; 1664 1665 memoizedIsInitialized = 1; 1666 return true; 1667 } 1668 1669 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1670 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1671 if (((bitField0_ & 0x00000080) != 0)) { 1672 output.writeUInt64(3355, id_); 1673 } 1674 if (((bitField0_ & 0x00000200) != 0)) { 1675 com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); 1676 } 1677 if (((bitField0_ & 0x00000400) != 0)) { 1678 com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); 1679 } 1680 if (((bitField0_ & 0x00200000) != 0)) { 1681 com.google.protobuf.GeneratedMessageV3.writeString(output, 3599307, user_); 1682 } 1683 if (((bitField0_ & 0x00400000) != 0)) { 1684 com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); 1685 } 1686 if (((bitField0_ & 0x00000002) != 0)) { 1687 com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); 1688 } 1689 if (((bitField0_ & 0x00010000) != 0)) { 1690 com.google.protobuf.GeneratedMessageV3.writeString(output, 37467274, startTime_); 1691 } 1692 if (((bitField0_ & 0x00000800) != 0)) { 1693 com.google.protobuf.GeneratedMessageV3.writeString(output, 40171187, operationGroupId_); 1694 } 1695 if (((bitField0_ & 0x00100000) != 0)) { 1696 com.google.protobuf.GeneratedMessageV3.writeString(output, 62671336, targetLink_); 1697 } 1698 if (((bitField0_ & 0x00002000) != 0)) { 1699 output.writeInt32(72663597, progress_); 1700 } 1701 if (((bitField0_ & 0x00000010) != 0)) { 1702 output.writeMessage(96784904, getError()); 1703 } 1704 if (((bitField0_ & 0x00000008) != 0)) { 1705 com.google.protobuf.GeneratedMessageV3.writeString(output, 114938801, endTime_); 1706 } 1707 if (((bitField0_ & 0x00004000) != 0)) { 1708 com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_); 1709 } 1710 if (((bitField0_ & 0x00001000) != 0)) { 1711 com.google.protobuf.GeneratedMessageV3.writeString(output, 177650450, operationType_); 1712 } 1713 if (((bitField0_ & 0x00020000) != 0)) { 1714 output.writeEnum(181260274, status_); 1715 } 1716 if (((bitField0_ & 0x00000020) != 0)) { 1717 com.google.protobuf.GeneratedMessageV3.writeString(output, 202521945, httpErrorMessage_); 1718 } 1719 if (((bitField0_ & 0x00080000) != 0)) { 1720 output.writeUInt64(258165385, targetId_); 1721 } 1722 if (((bitField0_ & 0x00000001) != 0)) { 1723 com.google.protobuf.GeneratedMessageV3.writeString(output, 297240295, clientOperationId_); 1724 } 1725 if (((bitField0_ & 0x00040000) != 0)) { 1726 com.google.protobuf.GeneratedMessageV3.writeString(output, 297428154, statusMessage_); 1727 } 1728 if (((bitField0_ & 0x00000040) != 0)) { 1729 output.writeInt32(312345196, httpErrorStatusCode_); 1730 } 1731 if (((bitField0_ & 0x00000004) != 0)) { 1732 com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); 1733 } 1734 if (((bitField0_ & 0x00000100) != 0)) { 1735 com.google.protobuf.GeneratedMessageV3.writeString(output, 433722515, insertTime_); 1736 } 1737 if (((bitField0_ & 0x00008000) != 0)) { 1738 com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); 1739 } 1740 for (int i = 0; i < warnings_.size(); i++) { 1741 output.writeMessage(498091095, warnings_.get(i)); 1742 } 1743 getUnknownFields().writeTo(output); 1744 } 1745 1746 @java.lang.Override getSerializedSize()1747 public int getSerializedSize() { 1748 int size = memoizedSize; 1749 if (size != -1) return size; 1750 1751 size = 0; 1752 if (((bitField0_ & 0x00000080) != 0)) { 1753 size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); 1754 } 1755 if (((bitField0_ & 0x00000200) != 0)) { 1756 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); 1757 } 1758 if (((bitField0_ & 0x00000400) != 0)) { 1759 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); 1760 } 1761 if (((bitField0_ & 0x00200000) != 0)) { 1762 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3599307, user_); 1763 } 1764 if (((bitField0_ & 0x00400000) != 0)) { 1765 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); 1766 } 1767 if (((bitField0_ & 0x00000002) != 0)) { 1768 size += 1769 com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); 1770 } 1771 if (((bitField0_ & 0x00010000) != 0)) { 1772 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37467274, startTime_); 1773 } 1774 if (((bitField0_ & 0x00000800) != 0)) { 1775 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40171187, operationGroupId_); 1776 } 1777 if (((bitField0_ & 0x00100000) != 0)) { 1778 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(62671336, targetLink_); 1779 } 1780 if (((bitField0_ & 0x00002000) != 0)) { 1781 size += com.google.protobuf.CodedOutputStream.computeInt32Size(72663597, progress_); 1782 } 1783 if (((bitField0_ & 0x00000010) != 0)) { 1784 size += com.google.protobuf.CodedOutputStream.computeMessageSize(96784904, getError()); 1785 } 1786 if (((bitField0_ & 0x00000008) != 0)) { 1787 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114938801, endTime_); 1788 } 1789 if (((bitField0_ & 0x00004000) != 0)) { 1790 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_); 1791 } 1792 if (((bitField0_ & 0x00001000) != 0)) { 1793 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(177650450, operationType_); 1794 } 1795 if (((bitField0_ & 0x00020000) != 0)) { 1796 size += com.google.protobuf.CodedOutputStream.computeEnumSize(181260274, status_); 1797 } 1798 if (((bitField0_ & 0x00000020) != 0)) { 1799 size += 1800 com.google.protobuf.GeneratedMessageV3.computeStringSize(202521945, httpErrorMessage_); 1801 } 1802 if (((bitField0_ & 0x00080000) != 0)) { 1803 size += com.google.protobuf.CodedOutputStream.computeUInt64Size(258165385, targetId_); 1804 } 1805 if (((bitField0_ & 0x00000001) != 0)) { 1806 size += 1807 com.google.protobuf.GeneratedMessageV3.computeStringSize(297240295, clientOperationId_); 1808 } 1809 if (((bitField0_ & 0x00040000) != 0)) { 1810 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(297428154, statusMessage_); 1811 } 1812 if (((bitField0_ & 0x00000040) != 0)) { 1813 size += 1814 com.google.protobuf.CodedOutputStream.computeInt32Size(312345196, httpErrorStatusCode_); 1815 } 1816 if (((bitField0_ & 0x00000004) != 0)) { 1817 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); 1818 } 1819 if (((bitField0_ & 0x00000100) != 0)) { 1820 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(433722515, insertTime_); 1821 } 1822 if (((bitField0_ & 0x00008000) != 0)) { 1823 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 1824 } 1825 for (int i = 0; i < warnings_.size(); i++) { 1826 size += com.google.protobuf.CodedOutputStream.computeMessageSize(498091095, warnings_.get(i)); 1827 } 1828 size += getUnknownFields().getSerializedSize(); 1829 memoizedSize = size; 1830 return size; 1831 } 1832 1833 @java.lang.Override equals(final java.lang.Object obj)1834 public boolean equals(final java.lang.Object obj) { 1835 if (obj == this) { 1836 return true; 1837 } 1838 if (!(obj instanceof com.google.cloud.compute.v1.Operation)) { 1839 return super.equals(obj); 1840 } 1841 com.google.cloud.compute.v1.Operation other = (com.google.cloud.compute.v1.Operation) obj; 1842 1843 if (hasClientOperationId() != other.hasClientOperationId()) return false; 1844 if (hasClientOperationId()) { 1845 if (!getClientOperationId().equals(other.getClientOperationId())) return false; 1846 } 1847 if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; 1848 if (hasCreationTimestamp()) { 1849 if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; 1850 } 1851 if (hasDescription() != other.hasDescription()) return false; 1852 if (hasDescription()) { 1853 if (!getDescription().equals(other.getDescription())) return false; 1854 } 1855 if (hasEndTime() != other.hasEndTime()) return false; 1856 if (hasEndTime()) { 1857 if (!getEndTime().equals(other.getEndTime())) return false; 1858 } 1859 if (hasError() != other.hasError()) return false; 1860 if (hasError()) { 1861 if (!getError().equals(other.getError())) return false; 1862 } 1863 if (hasHttpErrorMessage() != other.hasHttpErrorMessage()) return false; 1864 if (hasHttpErrorMessage()) { 1865 if (!getHttpErrorMessage().equals(other.getHttpErrorMessage())) return false; 1866 } 1867 if (hasHttpErrorStatusCode() != other.hasHttpErrorStatusCode()) return false; 1868 if (hasHttpErrorStatusCode()) { 1869 if (getHttpErrorStatusCode() != other.getHttpErrorStatusCode()) return false; 1870 } 1871 if (hasId() != other.hasId()) return false; 1872 if (hasId()) { 1873 if (getId() != other.getId()) return false; 1874 } 1875 if (hasInsertTime() != other.hasInsertTime()) return false; 1876 if (hasInsertTime()) { 1877 if (!getInsertTime().equals(other.getInsertTime())) return false; 1878 } 1879 if (hasKind() != other.hasKind()) return false; 1880 if (hasKind()) { 1881 if (!getKind().equals(other.getKind())) return false; 1882 } 1883 if (hasName() != other.hasName()) return false; 1884 if (hasName()) { 1885 if (!getName().equals(other.getName())) return false; 1886 } 1887 if (hasOperationGroupId() != other.hasOperationGroupId()) return false; 1888 if (hasOperationGroupId()) { 1889 if (!getOperationGroupId().equals(other.getOperationGroupId())) return false; 1890 } 1891 if (hasOperationType() != other.hasOperationType()) return false; 1892 if (hasOperationType()) { 1893 if (!getOperationType().equals(other.getOperationType())) return false; 1894 } 1895 if (hasProgress() != other.hasProgress()) return false; 1896 if (hasProgress()) { 1897 if (getProgress() != other.getProgress()) return false; 1898 } 1899 if (hasRegion() != other.hasRegion()) return false; 1900 if (hasRegion()) { 1901 if (!getRegion().equals(other.getRegion())) return false; 1902 } 1903 if (hasSelfLink() != other.hasSelfLink()) return false; 1904 if (hasSelfLink()) { 1905 if (!getSelfLink().equals(other.getSelfLink())) return false; 1906 } 1907 if (hasStartTime() != other.hasStartTime()) return false; 1908 if (hasStartTime()) { 1909 if (!getStartTime().equals(other.getStartTime())) return false; 1910 } 1911 if (hasStatus() != other.hasStatus()) return false; 1912 if (hasStatus()) { 1913 if (status_ != other.status_) return false; 1914 } 1915 if (hasStatusMessage() != other.hasStatusMessage()) return false; 1916 if (hasStatusMessage()) { 1917 if (!getStatusMessage().equals(other.getStatusMessage())) return false; 1918 } 1919 if (hasTargetId() != other.hasTargetId()) return false; 1920 if (hasTargetId()) { 1921 if (getTargetId() != other.getTargetId()) return false; 1922 } 1923 if (hasTargetLink() != other.hasTargetLink()) return false; 1924 if (hasTargetLink()) { 1925 if (!getTargetLink().equals(other.getTargetLink())) return false; 1926 } 1927 if (hasUser() != other.hasUser()) return false; 1928 if (hasUser()) { 1929 if (!getUser().equals(other.getUser())) return false; 1930 } 1931 if (!getWarningsList().equals(other.getWarningsList())) return false; 1932 if (hasZone() != other.hasZone()) return false; 1933 if (hasZone()) { 1934 if (!getZone().equals(other.getZone())) return false; 1935 } 1936 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1937 return true; 1938 } 1939 1940 @java.lang.Override hashCode()1941 public int hashCode() { 1942 if (memoizedHashCode != 0) { 1943 return memoizedHashCode; 1944 } 1945 int hash = 41; 1946 hash = (19 * hash) + getDescriptor().hashCode(); 1947 if (hasClientOperationId()) { 1948 hash = (37 * hash) + CLIENT_OPERATION_ID_FIELD_NUMBER; 1949 hash = (53 * hash) + getClientOperationId().hashCode(); 1950 } 1951 if (hasCreationTimestamp()) { 1952 hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; 1953 hash = (53 * hash) + getCreationTimestamp().hashCode(); 1954 } 1955 if (hasDescription()) { 1956 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 1957 hash = (53 * hash) + getDescription().hashCode(); 1958 } 1959 if (hasEndTime()) { 1960 hash = (37 * hash) + END_TIME_FIELD_NUMBER; 1961 hash = (53 * hash) + getEndTime().hashCode(); 1962 } 1963 if (hasError()) { 1964 hash = (37 * hash) + ERROR_FIELD_NUMBER; 1965 hash = (53 * hash) + getError().hashCode(); 1966 } 1967 if (hasHttpErrorMessage()) { 1968 hash = (37 * hash) + HTTP_ERROR_MESSAGE_FIELD_NUMBER; 1969 hash = (53 * hash) + getHttpErrorMessage().hashCode(); 1970 } 1971 if (hasHttpErrorStatusCode()) { 1972 hash = (37 * hash) + HTTP_ERROR_STATUS_CODE_FIELD_NUMBER; 1973 hash = (53 * hash) + getHttpErrorStatusCode(); 1974 } 1975 if (hasId()) { 1976 hash = (37 * hash) + ID_FIELD_NUMBER; 1977 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); 1978 } 1979 if (hasInsertTime()) { 1980 hash = (37 * hash) + INSERT_TIME_FIELD_NUMBER; 1981 hash = (53 * hash) + getInsertTime().hashCode(); 1982 } 1983 if (hasKind()) { 1984 hash = (37 * hash) + KIND_FIELD_NUMBER; 1985 hash = (53 * hash) + getKind().hashCode(); 1986 } 1987 if (hasName()) { 1988 hash = (37 * hash) + NAME_FIELD_NUMBER; 1989 hash = (53 * hash) + getName().hashCode(); 1990 } 1991 if (hasOperationGroupId()) { 1992 hash = (37 * hash) + OPERATION_GROUP_ID_FIELD_NUMBER; 1993 hash = (53 * hash) + getOperationGroupId().hashCode(); 1994 } 1995 if (hasOperationType()) { 1996 hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; 1997 hash = (53 * hash) + getOperationType().hashCode(); 1998 } 1999 if (hasProgress()) { 2000 hash = (37 * hash) + PROGRESS_FIELD_NUMBER; 2001 hash = (53 * hash) + getProgress(); 2002 } 2003 if (hasRegion()) { 2004 hash = (37 * hash) + REGION_FIELD_NUMBER; 2005 hash = (53 * hash) + getRegion().hashCode(); 2006 } 2007 if (hasSelfLink()) { 2008 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 2009 hash = (53 * hash) + getSelfLink().hashCode(); 2010 } 2011 if (hasStartTime()) { 2012 hash = (37 * hash) + START_TIME_FIELD_NUMBER; 2013 hash = (53 * hash) + getStartTime().hashCode(); 2014 } 2015 if (hasStatus()) { 2016 hash = (37 * hash) + STATUS_FIELD_NUMBER; 2017 hash = (53 * hash) + status_; 2018 } 2019 if (hasStatusMessage()) { 2020 hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; 2021 hash = (53 * hash) + getStatusMessage().hashCode(); 2022 } 2023 if (hasTargetId()) { 2024 hash = (37 * hash) + TARGET_ID_FIELD_NUMBER; 2025 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTargetId()); 2026 } 2027 if (hasTargetLink()) { 2028 hash = (37 * hash) + TARGET_LINK_FIELD_NUMBER; 2029 hash = (53 * hash) + getTargetLink().hashCode(); 2030 } 2031 if (hasUser()) { 2032 hash = (37 * hash) + USER_FIELD_NUMBER; 2033 hash = (53 * hash) + getUser().hashCode(); 2034 } 2035 if (getWarningsCount() > 0) { 2036 hash = (37 * hash) + WARNINGS_FIELD_NUMBER; 2037 hash = (53 * hash) + getWarningsList().hashCode(); 2038 } 2039 if (hasZone()) { 2040 hash = (37 * hash) + ZONE_FIELD_NUMBER; 2041 hash = (53 * hash) + getZone().hashCode(); 2042 } 2043 hash = (29 * hash) + getUnknownFields().hashCode(); 2044 memoizedHashCode = hash; 2045 return hash; 2046 } 2047 parseFrom(java.nio.ByteBuffer data)2048 public static com.google.cloud.compute.v1.Operation parseFrom(java.nio.ByteBuffer data) 2049 throws com.google.protobuf.InvalidProtocolBufferException { 2050 return PARSER.parseFrom(data); 2051 } 2052 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2053 public static com.google.cloud.compute.v1.Operation parseFrom( 2054 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2055 throws com.google.protobuf.InvalidProtocolBufferException { 2056 return PARSER.parseFrom(data, extensionRegistry); 2057 } 2058 parseFrom(com.google.protobuf.ByteString data)2059 public static com.google.cloud.compute.v1.Operation parseFrom(com.google.protobuf.ByteString data) 2060 throws com.google.protobuf.InvalidProtocolBufferException { 2061 return PARSER.parseFrom(data); 2062 } 2063 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2064 public static com.google.cloud.compute.v1.Operation parseFrom( 2065 com.google.protobuf.ByteString data, 2066 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2067 throws com.google.protobuf.InvalidProtocolBufferException { 2068 return PARSER.parseFrom(data, extensionRegistry); 2069 } 2070 parseFrom(byte[] data)2071 public static com.google.cloud.compute.v1.Operation parseFrom(byte[] data) 2072 throws com.google.protobuf.InvalidProtocolBufferException { 2073 return PARSER.parseFrom(data); 2074 } 2075 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2076 public static com.google.cloud.compute.v1.Operation parseFrom( 2077 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2078 throws com.google.protobuf.InvalidProtocolBufferException { 2079 return PARSER.parseFrom(data, extensionRegistry); 2080 } 2081 parseFrom(java.io.InputStream input)2082 public static com.google.cloud.compute.v1.Operation parseFrom(java.io.InputStream input) 2083 throws java.io.IOException { 2084 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2085 } 2086 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2087 public static com.google.cloud.compute.v1.Operation parseFrom( 2088 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2089 throws java.io.IOException { 2090 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2091 PARSER, input, extensionRegistry); 2092 } 2093 parseDelimitedFrom(java.io.InputStream input)2094 public static com.google.cloud.compute.v1.Operation parseDelimitedFrom(java.io.InputStream input) 2095 throws java.io.IOException { 2096 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2097 } 2098 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2099 public static com.google.cloud.compute.v1.Operation parseDelimitedFrom( 2100 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2101 throws java.io.IOException { 2102 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2103 PARSER, input, extensionRegistry); 2104 } 2105 parseFrom( com.google.protobuf.CodedInputStream input)2106 public static com.google.cloud.compute.v1.Operation parseFrom( 2107 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2108 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2109 } 2110 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2111 public static com.google.cloud.compute.v1.Operation parseFrom( 2112 com.google.protobuf.CodedInputStream input, 2113 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2114 throws java.io.IOException { 2115 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2116 PARSER, input, extensionRegistry); 2117 } 2118 2119 @java.lang.Override newBuilderForType()2120 public Builder newBuilderForType() { 2121 return newBuilder(); 2122 } 2123 newBuilder()2124 public static Builder newBuilder() { 2125 return DEFAULT_INSTANCE.toBuilder(); 2126 } 2127 newBuilder(com.google.cloud.compute.v1.Operation prototype)2128 public static Builder newBuilder(com.google.cloud.compute.v1.Operation prototype) { 2129 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2130 } 2131 2132 @java.lang.Override toBuilder()2133 public Builder toBuilder() { 2134 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2135 } 2136 2137 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2138 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2139 Builder builder = new Builder(parent); 2140 return builder; 2141 } 2142 /** 2143 * 2144 * 2145 * <pre> 2146 * Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/v1/globalOperations) * [Regional](/compute/docs/reference/rest/v1/regionOperations) * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 2147 * </pre> 2148 * 2149 * Protobuf type {@code google.cloud.compute.v1.Operation} 2150 */ 2151 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2152 implements 2153 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.Operation) 2154 com.google.cloud.compute.v1.OperationOrBuilder { getDescriptor()2155 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2156 return com.google.cloud.compute.v1.Compute 2157 .internal_static_google_cloud_compute_v1_Operation_descriptor; 2158 } 2159 2160 @java.lang.Override 2161 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2162 internalGetFieldAccessorTable() { 2163 return com.google.cloud.compute.v1.Compute 2164 .internal_static_google_cloud_compute_v1_Operation_fieldAccessorTable 2165 .ensureFieldAccessorsInitialized( 2166 com.google.cloud.compute.v1.Operation.class, 2167 com.google.cloud.compute.v1.Operation.Builder.class); 2168 } 2169 2170 // Construct using com.google.cloud.compute.v1.Operation.newBuilder() Builder()2171 private Builder() { 2172 maybeForceBuilderInitialization(); 2173 } 2174 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2175 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2176 super(parent); 2177 maybeForceBuilderInitialization(); 2178 } 2179 maybeForceBuilderInitialization()2180 private void maybeForceBuilderInitialization() { 2181 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { 2182 getErrorFieldBuilder(); 2183 getWarningsFieldBuilder(); 2184 } 2185 } 2186 2187 @java.lang.Override clear()2188 public Builder clear() { 2189 super.clear(); 2190 bitField0_ = 0; 2191 clientOperationId_ = ""; 2192 creationTimestamp_ = ""; 2193 description_ = ""; 2194 endTime_ = ""; 2195 error_ = null; 2196 if (errorBuilder_ != null) { 2197 errorBuilder_.dispose(); 2198 errorBuilder_ = null; 2199 } 2200 httpErrorMessage_ = ""; 2201 httpErrorStatusCode_ = 0; 2202 id_ = 0L; 2203 insertTime_ = ""; 2204 kind_ = ""; 2205 name_ = ""; 2206 operationGroupId_ = ""; 2207 operationType_ = ""; 2208 progress_ = 0; 2209 region_ = ""; 2210 selfLink_ = ""; 2211 startTime_ = ""; 2212 status_ = 0; 2213 statusMessage_ = ""; 2214 targetId_ = 0L; 2215 targetLink_ = ""; 2216 user_ = ""; 2217 if (warningsBuilder_ == null) { 2218 warnings_ = java.util.Collections.emptyList(); 2219 } else { 2220 warnings_ = null; 2221 warningsBuilder_.clear(); 2222 } 2223 bitField0_ = (bitField0_ & ~0x00400000); 2224 zone_ = ""; 2225 return this; 2226 } 2227 2228 @java.lang.Override getDescriptorForType()2229 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2230 return com.google.cloud.compute.v1.Compute 2231 .internal_static_google_cloud_compute_v1_Operation_descriptor; 2232 } 2233 2234 @java.lang.Override getDefaultInstanceForType()2235 public com.google.cloud.compute.v1.Operation getDefaultInstanceForType() { 2236 return com.google.cloud.compute.v1.Operation.getDefaultInstance(); 2237 } 2238 2239 @java.lang.Override build()2240 public com.google.cloud.compute.v1.Operation build() { 2241 com.google.cloud.compute.v1.Operation result = buildPartial(); 2242 if (!result.isInitialized()) { 2243 throw newUninitializedMessageException(result); 2244 } 2245 return result; 2246 } 2247 2248 @java.lang.Override buildPartial()2249 public com.google.cloud.compute.v1.Operation buildPartial() { 2250 com.google.cloud.compute.v1.Operation result = 2251 new com.google.cloud.compute.v1.Operation(this); 2252 buildPartialRepeatedFields(result); 2253 if (bitField0_ != 0) { 2254 buildPartial0(result); 2255 } 2256 onBuilt(); 2257 return result; 2258 } 2259 buildPartialRepeatedFields(com.google.cloud.compute.v1.Operation result)2260 private void buildPartialRepeatedFields(com.google.cloud.compute.v1.Operation result) { 2261 if (warningsBuilder_ == null) { 2262 if (((bitField0_ & 0x00400000) != 0)) { 2263 warnings_ = java.util.Collections.unmodifiableList(warnings_); 2264 bitField0_ = (bitField0_ & ~0x00400000); 2265 } 2266 result.warnings_ = warnings_; 2267 } else { 2268 result.warnings_ = warningsBuilder_.build(); 2269 } 2270 } 2271 buildPartial0(com.google.cloud.compute.v1.Operation result)2272 private void buildPartial0(com.google.cloud.compute.v1.Operation result) { 2273 int from_bitField0_ = bitField0_; 2274 int to_bitField0_ = 0; 2275 if (((from_bitField0_ & 0x00000001) != 0)) { 2276 result.clientOperationId_ = clientOperationId_; 2277 to_bitField0_ |= 0x00000001; 2278 } 2279 if (((from_bitField0_ & 0x00000002) != 0)) { 2280 result.creationTimestamp_ = creationTimestamp_; 2281 to_bitField0_ |= 0x00000002; 2282 } 2283 if (((from_bitField0_ & 0x00000004) != 0)) { 2284 result.description_ = description_; 2285 to_bitField0_ |= 0x00000004; 2286 } 2287 if (((from_bitField0_ & 0x00000008) != 0)) { 2288 result.endTime_ = endTime_; 2289 to_bitField0_ |= 0x00000008; 2290 } 2291 if (((from_bitField0_ & 0x00000010) != 0)) { 2292 result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); 2293 to_bitField0_ |= 0x00000010; 2294 } 2295 if (((from_bitField0_ & 0x00000020) != 0)) { 2296 result.httpErrorMessage_ = httpErrorMessage_; 2297 to_bitField0_ |= 0x00000020; 2298 } 2299 if (((from_bitField0_ & 0x00000040) != 0)) { 2300 result.httpErrorStatusCode_ = httpErrorStatusCode_; 2301 to_bitField0_ |= 0x00000040; 2302 } 2303 if (((from_bitField0_ & 0x00000080) != 0)) { 2304 result.id_ = id_; 2305 to_bitField0_ |= 0x00000080; 2306 } 2307 if (((from_bitField0_ & 0x00000100) != 0)) { 2308 result.insertTime_ = insertTime_; 2309 to_bitField0_ |= 0x00000100; 2310 } 2311 if (((from_bitField0_ & 0x00000200) != 0)) { 2312 result.kind_ = kind_; 2313 to_bitField0_ |= 0x00000200; 2314 } 2315 if (((from_bitField0_ & 0x00000400) != 0)) { 2316 result.name_ = name_; 2317 to_bitField0_ |= 0x00000400; 2318 } 2319 if (((from_bitField0_ & 0x00000800) != 0)) { 2320 result.operationGroupId_ = operationGroupId_; 2321 to_bitField0_ |= 0x00000800; 2322 } 2323 if (((from_bitField0_ & 0x00001000) != 0)) { 2324 result.operationType_ = operationType_; 2325 to_bitField0_ |= 0x00001000; 2326 } 2327 if (((from_bitField0_ & 0x00002000) != 0)) { 2328 result.progress_ = progress_; 2329 to_bitField0_ |= 0x00002000; 2330 } 2331 if (((from_bitField0_ & 0x00004000) != 0)) { 2332 result.region_ = region_; 2333 to_bitField0_ |= 0x00004000; 2334 } 2335 if (((from_bitField0_ & 0x00008000) != 0)) { 2336 result.selfLink_ = selfLink_; 2337 to_bitField0_ |= 0x00008000; 2338 } 2339 if (((from_bitField0_ & 0x00010000) != 0)) { 2340 result.startTime_ = startTime_; 2341 to_bitField0_ |= 0x00010000; 2342 } 2343 if (((from_bitField0_ & 0x00020000) != 0)) { 2344 result.status_ = status_; 2345 to_bitField0_ |= 0x00020000; 2346 } 2347 if (((from_bitField0_ & 0x00040000) != 0)) { 2348 result.statusMessage_ = statusMessage_; 2349 to_bitField0_ |= 0x00040000; 2350 } 2351 if (((from_bitField0_ & 0x00080000) != 0)) { 2352 result.targetId_ = targetId_; 2353 to_bitField0_ |= 0x00080000; 2354 } 2355 if (((from_bitField0_ & 0x00100000) != 0)) { 2356 result.targetLink_ = targetLink_; 2357 to_bitField0_ |= 0x00100000; 2358 } 2359 if (((from_bitField0_ & 0x00200000) != 0)) { 2360 result.user_ = user_; 2361 to_bitField0_ |= 0x00200000; 2362 } 2363 if (((from_bitField0_ & 0x00800000) != 0)) { 2364 result.zone_ = zone_; 2365 to_bitField0_ |= 0x00400000; 2366 } 2367 result.bitField0_ |= to_bitField0_; 2368 } 2369 2370 @java.lang.Override clone()2371 public Builder clone() { 2372 return super.clone(); 2373 } 2374 2375 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2376 public Builder setField( 2377 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2378 return super.setField(field, value); 2379 } 2380 2381 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2382 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2383 return super.clearField(field); 2384 } 2385 2386 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2387 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2388 return super.clearOneof(oneof); 2389 } 2390 2391 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2392 public Builder setRepeatedField( 2393 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 2394 return super.setRepeatedField(field, index, value); 2395 } 2396 2397 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2398 public Builder addRepeatedField( 2399 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2400 return super.addRepeatedField(field, value); 2401 } 2402 2403 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2404 public Builder mergeFrom(com.google.protobuf.Message other) { 2405 if (other instanceof com.google.cloud.compute.v1.Operation) { 2406 return mergeFrom((com.google.cloud.compute.v1.Operation) other); 2407 } else { 2408 super.mergeFrom(other); 2409 return this; 2410 } 2411 } 2412 mergeFrom(com.google.cloud.compute.v1.Operation other)2413 public Builder mergeFrom(com.google.cloud.compute.v1.Operation other) { 2414 if (other == com.google.cloud.compute.v1.Operation.getDefaultInstance()) return this; 2415 if (other.hasClientOperationId()) { 2416 clientOperationId_ = other.clientOperationId_; 2417 bitField0_ |= 0x00000001; 2418 onChanged(); 2419 } 2420 if (other.hasCreationTimestamp()) { 2421 creationTimestamp_ = other.creationTimestamp_; 2422 bitField0_ |= 0x00000002; 2423 onChanged(); 2424 } 2425 if (other.hasDescription()) { 2426 description_ = other.description_; 2427 bitField0_ |= 0x00000004; 2428 onChanged(); 2429 } 2430 if (other.hasEndTime()) { 2431 endTime_ = other.endTime_; 2432 bitField0_ |= 0x00000008; 2433 onChanged(); 2434 } 2435 if (other.hasError()) { 2436 mergeError(other.getError()); 2437 } 2438 if (other.hasHttpErrorMessage()) { 2439 httpErrorMessage_ = other.httpErrorMessage_; 2440 bitField0_ |= 0x00000020; 2441 onChanged(); 2442 } 2443 if (other.hasHttpErrorStatusCode()) { 2444 setHttpErrorStatusCode(other.getHttpErrorStatusCode()); 2445 } 2446 if (other.hasId()) { 2447 setId(other.getId()); 2448 } 2449 if (other.hasInsertTime()) { 2450 insertTime_ = other.insertTime_; 2451 bitField0_ |= 0x00000100; 2452 onChanged(); 2453 } 2454 if (other.hasKind()) { 2455 kind_ = other.kind_; 2456 bitField0_ |= 0x00000200; 2457 onChanged(); 2458 } 2459 if (other.hasName()) { 2460 name_ = other.name_; 2461 bitField0_ |= 0x00000400; 2462 onChanged(); 2463 } 2464 if (other.hasOperationGroupId()) { 2465 operationGroupId_ = other.operationGroupId_; 2466 bitField0_ |= 0x00000800; 2467 onChanged(); 2468 } 2469 if (other.hasOperationType()) { 2470 operationType_ = other.operationType_; 2471 bitField0_ |= 0x00001000; 2472 onChanged(); 2473 } 2474 if (other.hasProgress()) { 2475 setProgress(other.getProgress()); 2476 } 2477 if (other.hasRegion()) { 2478 region_ = other.region_; 2479 bitField0_ |= 0x00004000; 2480 onChanged(); 2481 } 2482 if (other.hasSelfLink()) { 2483 selfLink_ = other.selfLink_; 2484 bitField0_ |= 0x00008000; 2485 onChanged(); 2486 } 2487 if (other.hasStartTime()) { 2488 startTime_ = other.startTime_; 2489 bitField0_ |= 0x00010000; 2490 onChanged(); 2491 } 2492 if (other.hasStatus()) { 2493 setStatus(other.getStatus()); 2494 } 2495 if (other.hasStatusMessage()) { 2496 statusMessage_ = other.statusMessage_; 2497 bitField0_ |= 0x00040000; 2498 onChanged(); 2499 } 2500 if (other.hasTargetId()) { 2501 setTargetId(other.getTargetId()); 2502 } 2503 if (other.hasTargetLink()) { 2504 targetLink_ = other.targetLink_; 2505 bitField0_ |= 0x00100000; 2506 onChanged(); 2507 } 2508 if (other.hasUser()) { 2509 user_ = other.user_; 2510 bitField0_ |= 0x00200000; 2511 onChanged(); 2512 } 2513 if (warningsBuilder_ == null) { 2514 if (!other.warnings_.isEmpty()) { 2515 if (warnings_.isEmpty()) { 2516 warnings_ = other.warnings_; 2517 bitField0_ = (bitField0_ & ~0x00400000); 2518 } else { 2519 ensureWarningsIsMutable(); 2520 warnings_.addAll(other.warnings_); 2521 } 2522 onChanged(); 2523 } 2524 } else { 2525 if (!other.warnings_.isEmpty()) { 2526 if (warningsBuilder_.isEmpty()) { 2527 warningsBuilder_.dispose(); 2528 warningsBuilder_ = null; 2529 warnings_ = other.warnings_; 2530 bitField0_ = (bitField0_ & ~0x00400000); 2531 warningsBuilder_ = 2532 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2533 ? getWarningsFieldBuilder() 2534 : null; 2535 } else { 2536 warningsBuilder_.addAllMessages(other.warnings_); 2537 } 2538 } 2539 } 2540 if (other.hasZone()) { 2541 zone_ = other.zone_; 2542 bitField0_ |= 0x00800000; 2543 onChanged(); 2544 } 2545 this.mergeUnknownFields(other.getUnknownFields()); 2546 onChanged(); 2547 return this; 2548 } 2549 2550 @java.lang.Override isInitialized()2551 public final boolean isInitialized() { 2552 return true; 2553 } 2554 2555 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2556 public Builder mergeFrom( 2557 com.google.protobuf.CodedInputStream input, 2558 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2559 throws java.io.IOException { 2560 if (extensionRegistry == null) { 2561 throw new java.lang.NullPointerException(); 2562 } 2563 try { 2564 boolean done = false; 2565 while (!done) { 2566 int tag = input.readTag(); 2567 switch (tag) { 2568 case 0: 2569 done = true; 2570 break; 2571 case 26840: 2572 { 2573 id_ = input.readUInt64(); 2574 bitField0_ |= 0x00000080; 2575 break; 2576 } // case 26840 2577 case 26336418: 2578 { 2579 kind_ = input.readStringRequireUtf8(); 2580 bitField0_ |= 0x00000200; 2581 break; 2582 } // case 26336418 2583 case 26989658: 2584 { 2585 name_ = input.readStringRequireUtf8(); 2586 bitField0_ |= 0x00000400; 2587 break; 2588 } // case 26989658 2589 case 28794458: 2590 { 2591 user_ = input.readStringRequireUtf8(); 2592 bitField0_ |= 0x00200000; 2593 break; 2594 } // case 28794458 2595 case 29957474: 2596 { 2597 zone_ = input.readStringRequireUtf8(); 2598 bitField0_ |= 0x00800000; 2599 break; 2600 } // case 29957474 2601 case 244202930: 2602 { 2603 creationTimestamp_ = input.readStringRequireUtf8(); 2604 bitField0_ |= 0x00000002; 2605 break; 2606 } // case 244202930 2607 case 299738194: 2608 { 2609 startTime_ = input.readStringRequireUtf8(); 2610 bitField0_ |= 0x00010000; 2611 break; 2612 } // case 299738194 2613 case 321369498: 2614 { 2615 operationGroupId_ = input.readStringRequireUtf8(); 2616 bitField0_ |= 0x00000800; 2617 break; 2618 } // case 321369498 2619 case 501370690: 2620 { 2621 targetLink_ = input.readStringRequireUtf8(); 2622 bitField0_ |= 0x00100000; 2623 break; 2624 } // case 501370690 2625 case 581308776: 2626 { 2627 progress_ = input.readInt32(); 2628 bitField0_ |= 0x00002000; 2629 break; 2630 } // case 581308776 2631 case 774279234: 2632 { 2633 input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); 2634 bitField0_ |= 0x00000010; 2635 break; 2636 } // case 774279234 2637 case 919510410: 2638 { 2639 endTime_ = input.readStringRequireUtf8(); 2640 bitField0_ |= 0x00000008; 2641 break; 2642 } // case 919510410 2643 case 1111570338: 2644 { 2645 region_ = input.readStringRequireUtf8(); 2646 bitField0_ |= 0x00004000; 2647 break; 2648 } // case 1111570338 2649 case 1421203602: 2650 { 2651 operationType_ = input.readStringRequireUtf8(); 2652 bitField0_ |= 0x00001000; 2653 break; 2654 } // case 1421203602 2655 case 1450082192: 2656 { 2657 status_ = input.readEnum(); 2658 bitField0_ |= 0x00020000; 2659 break; 2660 } // case 1450082192 2661 case 1620175562: 2662 { 2663 httpErrorMessage_ = input.readStringRequireUtf8(); 2664 bitField0_ |= 0x00000020; 2665 break; 2666 } // case 1620175562 2667 case 2065323080: 2668 { 2669 targetId_ = input.readUInt64(); 2670 bitField0_ |= 0x00080000; 2671 break; 2672 } // case 2065323080 2673 case -1917044934: 2674 { 2675 clientOperationId_ = input.readStringRequireUtf8(); 2676 bitField0_ |= 0x00000001; 2677 break; 2678 } // case -1917044934 2679 case -1915542062: 2680 { 2681 statusMessage_ = input.readStringRequireUtf8(); 2682 bitField0_ |= 0x00040000; 2683 break; 2684 } // case -1915542062 2685 case -1796205728: 2686 { 2687 httpErrorStatusCode_ = input.readInt32(); 2688 bitField0_ |= 0x00000040; 2689 break; 2690 } // case -1796205728 2691 case -911466526: 2692 { 2693 description_ = input.readStringRequireUtf8(); 2694 bitField0_ |= 0x00000004; 2695 break; 2696 } // case -911466526 2697 case -825187174: 2698 { 2699 insertTime_ = input.readStringRequireUtf8(); 2700 bitField0_ |= 0x00000100; 2701 break; 2702 } // case -825187174 2703 case -645248918: 2704 { 2705 selfLink_ = input.readStringRequireUtf8(); 2706 bitField0_ |= 0x00008000; 2707 break; 2708 } // case -645248918 2709 case -310238534: 2710 { 2711 com.google.cloud.compute.v1.Warnings m = 2712 input.readMessage( 2713 com.google.cloud.compute.v1.Warnings.parser(), extensionRegistry); 2714 if (warningsBuilder_ == null) { 2715 ensureWarningsIsMutable(); 2716 warnings_.add(m); 2717 } else { 2718 warningsBuilder_.addMessage(m); 2719 } 2720 break; 2721 } // case -310238534 2722 default: 2723 { 2724 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2725 done = true; // was an endgroup tag 2726 } 2727 break; 2728 } // default: 2729 } // switch (tag) 2730 } // while (!done) 2731 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2732 throw e.unwrapIOException(); 2733 } finally { 2734 onChanged(); 2735 } // finally 2736 return this; 2737 } 2738 2739 private int bitField0_; 2740 2741 private java.lang.Object clientOperationId_ = ""; 2742 /** 2743 * 2744 * 2745 * <pre> 2746 * [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 2747 * </pre> 2748 * 2749 * <code>optional string client_operation_id = 297240295;</code> 2750 * 2751 * @return Whether the clientOperationId field is set. 2752 */ hasClientOperationId()2753 public boolean hasClientOperationId() { 2754 return ((bitField0_ & 0x00000001) != 0); 2755 } 2756 /** 2757 * 2758 * 2759 * <pre> 2760 * [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 2761 * </pre> 2762 * 2763 * <code>optional string client_operation_id = 297240295;</code> 2764 * 2765 * @return The clientOperationId. 2766 */ getClientOperationId()2767 public java.lang.String getClientOperationId() { 2768 java.lang.Object ref = clientOperationId_; 2769 if (!(ref instanceof java.lang.String)) { 2770 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2771 java.lang.String s = bs.toStringUtf8(); 2772 clientOperationId_ = s; 2773 return s; 2774 } else { 2775 return (java.lang.String) ref; 2776 } 2777 } 2778 /** 2779 * 2780 * 2781 * <pre> 2782 * [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 2783 * </pre> 2784 * 2785 * <code>optional string client_operation_id = 297240295;</code> 2786 * 2787 * @return The bytes for clientOperationId. 2788 */ getClientOperationIdBytes()2789 public com.google.protobuf.ByteString getClientOperationIdBytes() { 2790 java.lang.Object ref = clientOperationId_; 2791 if (ref instanceof String) { 2792 com.google.protobuf.ByteString b = 2793 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2794 clientOperationId_ = b; 2795 return b; 2796 } else { 2797 return (com.google.protobuf.ByteString) ref; 2798 } 2799 } 2800 /** 2801 * 2802 * 2803 * <pre> 2804 * [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 2805 * </pre> 2806 * 2807 * <code>optional string client_operation_id = 297240295;</code> 2808 * 2809 * @param value The clientOperationId to set. 2810 * @return This builder for chaining. 2811 */ setClientOperationId(java.lang.String value)2812 public Builder setClientOperationId(java.lang.String value) { 2813 if (value == null) { 2814 throw new NullPointerException(); 2815 } 2816 clientOperationId_ = value; 2817 bitField0_ |= 0x00000001; 2818 onChanged(); 2819 return this; 2820 } 2821 /** 2822 * 2823 * 2824 * <pre> 2825 * [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 2826 * </pre> 2827 * 2828 * <code>optional string client_operation_id = 297240295;</code> 2829 * 2830 * @return This builder for chaining. 2831 */ clearClientOperationId()2832 public Builder clearClientOperationId() { 2833 clientOperationId_ = getDefaultInstance().getClientOperationId(); 2834 bitField0_ = (bitField0_ & ~0x00000001); 2835 onChanged(); 2836 return this; 2837 } 2838 /** 2839 * 2840 * 2841 * <pre> 2842 * [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 2843 * </pre> 2844 * 2845 * <code>optional string client_operation_id = 297240295;</code> 2846 * 2847 * @param value The bytes for clientOperationId to set. 2848 * @return This builder for chaining. 2849 */ setClientOperationIdBytes(com.google.protobuf.ByteString value)2850 public Builder setClientOperationIdBytes(com.google.protobuf.ByteString value) { 2851 if (value == null) { 2852 throw new NullPointerException(); 2853 } 2854 checkByteStringIsUtf8(value); 2855 clientOperationId_ = value; 2856 bitField0_ |= 0x00000001; 2857 onChanged(); 2858 return this; 2859 } 2860 2861 private java.lang.Object creationTimestamp_ = ""; 2862 /** 2863 * 2864 * 2865 * <pre> 2866 * [Deprecated] This field is deprecated. 2867 * </pre> 2868 * 2869 * <code>optional string creation_timestamp = 30525366;</code> 2870 * 2871 * @return Whether the creationTimestamp field is set. 2872 */ hasCreationTimestamp()2873 public boolean hasCreationTimestamp() { 2874 return ((bitField0_ & 0x00000002) != 0); 2875 } 2876 /** 2877 * 2878 * 2879 * <pre> 2880 * [Deprecated] This field is deprecated. 2881 * </pre> 2882 * 2883 * <code>optional string creation_timestamp = 30525366;</code> 2884 * 2885 * @return The creationTimestamp. 2886 */ getCreationTimestamp()2887 public java.lang.String getCreationTimestamp() { 2888 java.lang.Object ref = creationTimestamp_; 2889 if (!(ref instanceof java.lang.String)) { 2890 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2891 java.lang.String s = bs.toStringUtf8(); 2892 creationTimestamp_ = s; 2893 return s; 2894 } else { 2895 return (java.lang.String) ref; 2896 } 2897 } 2898 /** 2899 * 2900 * 2901 * <pre> 2902 * [Deprecated] This field is deprecated. 2903 * </pre> 2904 * 2905 * <code>optional string creation_timestamp = 30525366;</code> 2906 * 2907 * @return The bytes for creationTimestamp. 2908 */ getCreationTimestampBytes()2909 public com.google.protobuf.ByteString getCreationTimestampBytes() { 2910 java.lang.Object ref = creationTimestamp_; 2911 if (ref instanceof String) { 2912 com.google.protobuf.ByteString b = 2913 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2914 creationTimestamp_ = b; 2915 return b; 2916 } else { 2917 return (com.google.protobuf.ByteString) ref; 2918 } 2919 } 2920 /** 2921 * 2922 * 2923 * <pre> 2924 * [Deprecated] This field is deprecated. 2925 * </pre> 2926 * 2927 * <code>optional string creation_timestamp = 30525366;</code> 2928 * 2929 * @param value The creationTimestamp to set. 2930 * @return This builder for chaining. 2931 */ setCreationTimestamp(java.lang.String value)2932 public Builder setCreationTimestamp(java.lang.String value) { 2933 if (value == null) { 2934 throw new NullPointerException(); 2935 } 2936 creationTimestamp_ = value; 2937 bitField0_ |= 0x00000002; 2938 onChanged(); 2939 return this; 2940 } 2941 /** 2942 * 2943 * 2944 * <pre> 2945 * [Deprecated] This field is deprecated. 2946 * </pre> 2947 * 2948 * <code>optional string creation_timestamp = 30525366;</code> 2949 * 2950 * @return This builder for chaining. 2951 */ clearCreationTimestamp()2952 public Builder clearCreationTimestamp() { 2953 creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); 2954 bitField0_ = (bitField0_ & ~0x00000002); 2955 onChanged(); 2956 return this; 2957 } 2958 /** 2959 * 2960 * 2961 * <pre> 2962 * [Deprecated] This field is deprecated. 2963 * </pre> 2964 * 2965 * <code>optional string creation_timestamp = 30525366;</code> 2966 * 2967 * @param value The bytes for creationTimestamp to set. 2968 * @return This builder for chaining. 2969 */ setCreationTimestampBytes(com.google.protobuf.ByteString value)2970 public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { 2971 if (value == null) { 2972 throw new NullPointerException(); 2973 } 2974 checkByteStringIsUtf8(value); 2975 creationTimestamp_ = value; 2976 bitField0_ |= 0x00000002; 2977 onChanged(); 2978 return this; 2979 } 2980 2981 private java.lang.Object description_ = ""; 2982 /** 2983 * 2984 * 2985 * <pre> 2986 * [Output Only] A textual description of the operation, which is set when the operation is created. 2987 * </pre> 2988 * 2989 * <code>optional string description = 422937596;</code> 2990 * 2991 * @return Whether the description field is set. 2992 */ hasDescription()2993 public boolean hasDescription() { 2994 return ((bitField0_ & 0x00000004) != 0); 2995 } 2996 /** 2997 * 2998 * 2999 * <pre> 3000 * [Output Only] A textual description of the operation, which is set when the operation is created. 3001 * </pre> 3002 * 3003 * <code>optional string description = 422937596;</code> 3004 * 3005 * @return The description. 3006 */ getDescription()3007 public java.lang.String getDescription() { 3008 java.lang.Object ref = description_; 3009 if (!(ref instanceof java.lang.String)) { 3010 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3011 java.lang.String s = bs.toStringUtf8(); 3012 description_ = s; 3013 return s; 3014 } else { 3015 return (java.lang.String) ref; 3016 } 3017 } 3018 /** 3019 * 3020 * 3021 * <pre> 3022 * [Output Only] A textual description of the operation, which is set when the operation is created. 3023 * </pre> 3024 * 3025 * <code>optional string description = 422937596;</code> 3026 * 3027 * @return The bytes for description. 3028 */ getDescriptionBytes()3029 public com.google.protobuf.ByteString getDescriptionBytes() { 3030 java.lang.Object ref = description_; 3031 if (ref instanceof String) { 3032 com.google.protobuf.ByteString b = 3033 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3034 description_ = b; 3035 return b; 3036 } else { 3037 return (com.google.protobuf.ByteString) ref; 3038 } 3039 } 3040 /** 3041 * 3042 * 3043 * <pre> 3044 * [Output Only] A textual description of the operation, which is set when the operation is created. 3045 * </pre> 3046 * 3047 * <code>optional string description = 422937596;</code> 3048 * 3049 * @param value The description to set. 3050 * @return This builder for chaining. 3051 */ setDescription(java.lang.String value)3052 public Builder setDescription(java.lang.String value) { 3053 if (value == null) { 3054 throw new NullPointerException(); 3055 } 3056 description_ = value; 3057 bitField0_ |= 0x00000004; 3058 onChanged(); 3059 return this; 3060 } 3061 /** 3062 * 3063 * 3064 * <pre> 3065 * [Output Only] A textual description of the operation, which is set when the operation is created. 3066 * </pre> 3067 * 3068 * <code>optional string description = 422937596;</code> 3069 * 3070 * @return This builder for chaining. 3071 */ clearDescription()3072 public Builder clearDescription() { 3073 description_ = getDefaultInstance().getDescription(); 3074 bitField0_ = (bitField0_ & ~0x00000004); 3075 onChanged(); 3076 return this; 3077 } 3078 /** 3079 * 3080 * 3081 * <pre> 3082 * [Output Only] A textual description of the operation, which is set when the operation is created. 3083 * </pre> 3084 * 3085 * <code>optional string description = 422937596;</code> 3086 * 3087 * @param value The bytes for description to set. 3088 * @return This builder for chaining. 3089 */ setDescriptionBytes(com.google.protobuf.ByteString value)3090 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 3091 if (value == null) { 3092 throw new NullPointerException(); 3093 } 3094 checkByteStringIsUtf8(value); 3095 description_ = value; 3096 bitField0_ |= 0x00000004; 3097 onChanged(); 3098 return this; 3099 } 3100 3101 private java.lang.Object endTime_ = ""; 3102 /** 3103 * 3104 * 3105 * <pre> 3106 * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 3107 * </pre> 3108 * 3109 * <code>optional string end_time = 114938801;</code> 3110 * 3111 * @return Whether the endTime field is set. 3112 */ hasEndTime()3113 public boolean hasEndTime() { 3114 return ((bitField0_ & 0x00000008) != 0); 3115 } 3116 /** 3117 * 3118 * 3119 * <pre> 3120 * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 3121 * </pre> 3122 * 3123 * <code>optional string end_time = 114938801;</code> 3124 * 3125 * @return The endTime. 3126 */ getEndTime()3127 public java.lang.String getEndTime() { 3128 java.lang.Object ref = endTime_; 3129 if (!(ref instanceof java.lang.String)) { 3130 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3131 java.lang.String s = bs.toStringUtf8(); 3132 endTime_ = s; 3133 return s; 3134 } else { 3135 return (java.lang.String) ref; 3136 } 3137 } 3138 /** 3139 * 3140 * 3141 * <pre> 3142 * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 3143 * </pre> 3144 * 3145 * <code>optional string end_time = 114938801;</code> 3146 * 3147 * @return The bytes for endTime. 3148 */ getEndTimeBytes()3149 public com.google.protobuf.ByteString getEndTimeBytes() { 3150 java.lang.Object ref = endTime_; 3151 if (ref instanceof String) { 3152 com.google.protobuf.ByteString b = 3153 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3154 endTime_ = b; 3155 return b; 3156 } else { 3157 return (com.google.protobuf.ByteString) ref; 3158 } 3159 } 3160 /** 3161 * 3162 * 3163 * <pre> 3164 * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 3165 * </pre> 3166 * 3167 * <code>optional string end_time = 114938801;</code> 3168 * 3169 * @param value The endTime to set. 3170 * @return This builder for chaining. 3171 */ setEndTime(java.lang.String value)3172 public Builder setEndTime(java.lang.String value) { 3173 if (value == null) { 3174 throw new NullPointerException(); 3175 } 3176 endTime_ = value; 3177 bitField0_ |= 0x00000008; 3178 onChanged(); 3179 return this; 3180 } 3181 /** 3182 * 3183 * 3184 * <pre> 3185 * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 3186 * </pre> 3187 * 3188 * <code>optional string end_time = 114938801;</code> 3189 * 3190 * @return This builder for chaining. 3191 */ clearEndTime()3192 public Builder clearEndTime() { 3193 endTime_ = getDefaultInstance().getEndTime(); 3194 bitField0_ = (bitField0_ & ~0x00000008); 3195 onChanged(); 3196 return this; 3197 } 3198 /** 3199 * 3200 * 3201 * <pre> 3202 * [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 3203 * </pre> 3204 * 3205 * <code>optional string end_time = 114938801;</code> 3206 * 3207 * @param value The bytes for endTime to set. 3208 * @return This builder for chaining. 3209 */ setEndTimeBytes(com.google.protobuf.ByteString value)3210 public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { 3211 if (value == null) { 3212 throw new NullPointerException(); 3213 } 3214 checkByteStringIsUtf8(value); 3215 endTime_ = value; 3216 bitField0_ |= 0x00000008; 3217 onChanged(); 3218 return this; 3219 } 3220 3221 private com.google.cloud.compute.v1.Error error_; 3222 private com.google.protobuf.SingleFieldBuilderV3< 3223 com.google.cloud.compute.v1.Error, 3224 com.google.cloud.compute.v1.Error.Builder, 3225 com.google.cloud.compute.v1.ErrorOrBuilder> 3226 errorBuilder_; 3227 /** 3228 * 3229 * 3230 * <pre> 3231 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 3232 * </pre> 3233 * 3234 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 3235 * 3236 * @return Whether the error field is set. 3237 */ hasError()3238 public boolean hasError() { 3239 return ((bitField0_ & 0x00000010) != 0); 3240 } 3241 /** 3242 * 3243 * 3244 * <pre> 3245 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 3246 * </pre> 3247 * 3248 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 3249 * 3250 * @return The error. 3251 */ getError()3252 public com.google.cloud.compute.v1.Error getError() { 3253 if (errorBuilder_ == null) { 3254 return error_ == null ? com.google.cloud.compute.v1.Error.getDefaultInstance() : error_; 3255 } else { 3256 return errorBuilder_.getMessage(); 3257 } 3258 } 3259 /** 3260 * 3261 * 3262 * <pre> 3263 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 3264 * </pre> 3265 * 3266 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 3267 */ setError(com.google.cloud.compute.v1.Error value)3268 public Builder setError(com.google.cloud.compute.v1.Error value) { 3269 if (errorBuilder_ == null) { 3270 if (value == null) { 3271 throw new NullPointerException(); 3272 } 3273 error_ = value; 3274 } else { 3275 errorBuilder_.setMessage(value); 3276 } 3277 bitField0_ |= 0x00000010; 3278 onChanged(); 3279 return this; 3280 } 3281 /** 3282 * 3283 * 3284 * <pre> 3285 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 3286 * </pre> 3287 * 3288 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 3289 */ setError(com.google.cloud.compute.v1.Error.Builder builderForValue)3290 public Builder setError(com.google.cloud.compute.v1.Error.Builder builderForValue) { 3291 if (errorBuilder_ == null) { 3292 error_ = builderForValue.build(); 3293 } else { 3294 errorBuilder_.setMessage(builderForValue.build()); 3295 } 3296 bitField0_ |= 0x00000010; 3297 onChanged(); 3298 return this; 3299 } 3300 /** 3301 * 3302 * 3303 * <pre> 3304 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 3305 * </pre> 3306 * 3307 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 3308 */ mergeError(com.google.cloud.compute.v1.Error value)3309 public Builder mergeError(com.google.cloud.compute.v1.Error value) { 3310 if (errorBuilder_ == null) { 3311 if (((bitField0_ & 0x00000010) != 0) 3312 && error_ != null 3313 && error_ != com.google.cloud.compute.v1.Error.getDefaultInstance()) { 3314 getErrorBuilder().mergeFrom(value); 3315 } else { 3316 error_ = value; 3317 } 3318 } else { 3319 errorBuilder_.mergeFrom(value); 3320 } 3321 bitField0_ |= 0x00000010; 3322 onChanged(); 3323 return this; 3324 } 3325 /** 3326 * 3327 * 3328 * <pre> 3329 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 3330 * </pre> 3331 * 3332 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 3333 */ clearError()3334 public Builder clearError() { 3335 bitField0_ = (bitField0_ & ~0x00000010); 3336 error_ = null; 3337 if (errorBuilder_ != null) { 3338 errorBuilder_.dispose(); 3339 errorBuilder_ = null; 3340 } 3341 onChanged(); 3342 return this; 3343 } 3344 /** 3345 * 3346 * 3347 * <pre> 3348 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 3349 * </pre> 3350 * 3351 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 3352 */ getErrorBuilder()3353 public com.google.cloud.compute.v1.Error.Builder getErrorBuilder() { 3354 bitField0_ |= 0x00000010; 3355 onChanged(); 3356 return getErrorFieldBuilder().getBuilder(); 3357 } 3358 /** 3359 * 3360 * 3361 * <pre> 3362 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 3363 * </pre> 3364 * 3365 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 3366 */ getErrorOrBuilder()3367 public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { 3368 if (errorBuilder_ != null) { 3369 return errorBuilder_.getMessageOrBuilder(); 3370 } else { 3371 return error_ == null ? com.google.cloud.compute.v1.Error.getDefaultInstance() : error_; 3372 } 3373 } 3374 /** 3375 * 3376 * 3377 * <pre> 3378 * [Output Only] If errors are generated during processing of the operation, this field will be populated. 3379 * </pre> 3380 * 3381 * <code>optional .google.cloud.compute.v1.Error error = 96784904;</code> 3382 */ 3383 private com.google.protobuf.SingleFieldBuilderV3< 3384 com.google.cloud.compute.v1.Error, 3385 com.google.cloud.compute.v1.Error.Builder, 3386 com.google.cloud.compute.v1.ErrorOrBuilder> getErrorFieldBuilder()3387 getErrorFieldBuilder() { 3388 if (errorBuilder_ == null) { 3389 errorBuilder_ = 3390 new com.google.protobuf.SingleFieldBuilderV3< 3391 com.google.cloud.compute.v1.Error, 3392 com.google.cloud.compute.v1.Error.Builder, 3393 com.google.cloud.compute.v1.ErrorOrBuilder>( 3394 getError(), getParentForChildren(), isClean()); 3395 error_ = null; 3396 } 3397 return errorBuilder_; 3398 } 3399 3400 private java.lang.Object httpErrorMessage_ = ""; 3401 /** 3402 * 3403 * 3404 * <pre> 3405 * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 3406 * </pre> 3407 * 3408 * <code> 3409 * optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE]; 3410 * </code> 3411 * 3412 * @return Whether the httpErrorMessage field is set. 3413 */ hasHttpErrorMessage()3414 public boolean hasHttpErrorMessage() { 3415 return ((bitField0_ & 0x00000020) != 0); 3416 } 3417 /** 3418 * 3419 * 3420 * <pre> 3421 * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 3422 * </pre> 3423 * 3424 * <code> 3425 * optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE]; 3426 * </code> 3427 * 3428 * @return The httpErrorMessage. 3429 */ getHttpErrorMessage()3430 public java.lang.String getHttpErrorMessage() { 3431 java.lang.Object ref = httpErrorMessage_; 3432 if (!(ref instanceof java.lang.String)) { 3433 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3434 java.lang.String s = bs.toStringUtf8(); 3435 httpErrorMessage_ = s; 3436 return s; 3437 } else { 3438 return (java.lang.String) ref; 3439 } 3440 } 3441 /** 3442 * 3443 * 3444 * <pre> 3445 * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 3446 * </pre> 3447 * 3448 * <code> 3449 * optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE]; 3450 * </code> 3451 * 3452 * @return The bytes for httpErrorMessage. 3453 */ getHttpErrorMessageBytes()3454 public com.google.protobuf.ByteString getHttpErrorMessageBytes() { 3455 java.lang.Object ref = httpErrorMessage_; 3456 if (ref instanceof String) { 3457 com.google.protobuf.ByteString b = 3458 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3459 httpErrorMessage_ = b; 3460 return b; 3461 } else { 3462 return (com.google.protobuf.ByteString) ref; 3463 } 3464 } 3465 /** 3466 * 3467 * 3468 * <pre> 3469 * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 3470 * </pre> 3471 * 3472 * <code> 3473 * optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE]; 3474 * </code> 3475 * 3476 * @param value The httpErrorMessage to set. 3477 * @return This builder for chaining. 3478 */ setHttpErrorMessage(java.lang.String value)3479 public Builder setHttpErrorMessage(java.lang.String value) { 3480 if (value == null) { 3481 throw new NullPointerException(); 3482 } 3483 httpErrorMessage_ = value; 3484 bitField0_ |= 0x00000020; 3485 onChanged(); 3486 return this; 3487 } 3488 /** 3489 * 3490 * 3491 * <pre> 3492 * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 3493 * </pre> 3494 * 3495 * <code> 3496 * optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE]; 3497 * </code> 3498 * 3499 * @return This builder for chaining. 3500 */ clearHttpErrorMessage()3501 public Builder clearHttpErrorMessage() { 3502 httpErrorMessage_ = getDefaultInstance().getHttpErrorMessage(); 3503 bitField0_ = (bitField0_ & ~0x00000020); 3504 onChanged(); 3505 return this; 3506 } 3507 /** 3508 * 3509 * 3510 * <pre> 3511 * [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 3512 * </pre> 3513 * 3514 * <code> 3515 * optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE]; 3516 * </code> 3517 * 3518 * @param value The bytes for httpErrorMessage to set. 3519 * @return This builder for chaining. 3520 */ setHttpErrorMessageBytes(com.google.protobuf.ByteString value)3521 public Builder setHttpErrorMessageBytes(com.google.protobuf.ByteString value) { 3522 if (value == null) { 3523 throw new NullPointerException(); 3524 } 3525 checkByteStringIsUtf8(value); 3526 httpErrorMessage_ = value; 3527 bitField0_ |= 0x00000020; 3528 onChanged(); 3529 return this; 3530 } 3531 3532 private int httpErrorStatusCode_; 3533 /** 3534 * 3535 * 3536 * <pre> 3537 * [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 3538 * </pre> 3539 * 3540 * <code> 3541 * optional int32 http_error_status_code = 312345196 [(.google.cloud.operation_field) = ERROR_CODE]; 3542 * </code> 3543 * 3544 * @return Whether the httpErrorStatusCode field is set. 3545 */ 3546 @java.lang.Override hasHttpErrorStatusCode()3547 public boolean hasHttpErrorStatusCode() { 3548 return ((bitField0_ & 0x00000040) != 0); 3549 } 3550 /** 3551 * 3552 * 3553 * <pre> 3554 * [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 3555 * </pre> 3556 * 3557 * <code> 3558 * optional int32 http_error_status_code = 312345196 [(.google.cloud.operation_field) = ERROR_CODE]; 3559 * </code> 3560 * 3561 * @return The httpErrorStatusCode. 3562 */ 3563 @java.lang.Override getHttpErrorStatusCode()3564 public int getHttpErrorStatusCode() { 3565 return httpErrorStatusCode_; 3566 } 3567 /** 3568 * 3569 * 3570 * <pre> 3571 * [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 3572 * </pre> 3573 * 3574 * <code> 3575 * optional int32 http_error_status_code = 312345196 [(.google.cloud.operation_field) = ERROR_CODE]; 3576 * </code> 3577 * 3578 * @param value The httpErrorStatusCode to set. 3579 * @return This builder for chaining. 3580 */ setHttpErrorStatusCode(int value)3581 public Builder setHttpErrorStatusCode(int value) { 3582 3583 httpErrorStatusCode_ = value; 3584 bitField0_ |= 0x00000040; 3585 onChanged(); 3586 return this; 3587 } 3588 /** 3589 * 3590 * 3591 * <pre> 3592 * [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 3593 * </pre> 3594 * 3595 * <code> 3596 * optional int32 http_error_status_code = 312345196 [(.google.cloud.operation_field) = ERROR_CODE]; 3597 * </code> 3598 * 3599 * @return This builder for chaining. 3600 */ clearHttpErrorStatusCode()3601 public Builder clearHttpErrorStatusCode() { 3602 bitField0_ = (bitField0_ & ~0x00000040); 3603 httpErrorStatusCode_ = 0; 3604 onChanged(); 3605 return this; 3606 } 3607 3608 private long id_; 3609 /** 3610 * 3611 * 3612 * <pre> 3613 * [Output Only] The unique identifier for the operation. This identifier is defined by the server. 3614 * </pre> 3615 * 3616 * <code>optional uint64 id = 3355;</code> 3617 * 3618 * @return Whether the id field is set. 3619 */ 3620 @java.lang.Override hasId()3621 public boolean hasId() { 3622 return ((bitField0_ & 0x00000080) != 0); 3623 } 3624 /** 3625 * 3626 * 3627 * <pre> 3628 * [Output Only] The unique identifier for the operation. This identifier is defined by the server. 3629 * </pre> 3630 * 3631 * <code>optional uint64 id = 3355;</code> 3632 * 3633 * @return The id. 3634 */ 3635 @java.lang.Override getId()3636 public long getId() { 3637 return id_; 3638 } 3639 /** 3640 * 3641 * 3642 * <pre> 3643 * [Output Only] The unique identifier for the operation. This identifier is defined by the server. 3644 * </pre> 3645 * 3646 * <code>optional uint64 id = 3355;</code> 3647 * 3648 * @param value The id to set. 3649 * @return This builder for chaining. 3650 */ setId(long value)3651 public Builder setId(long value) { 3652 3653 id_ = value; 3654 bitField0_ |= 0x00000080; 3655 onChanged(); 3656 return this; 3657 } 3658 /** 3659 * 3660 * 3661 * <pre> 3662 * [Output Only] The unique identifier for the operation. This identifier is defined by the server. 3663 * </pre> 3664 * 3665 * <code>optional uint64 id = 3355;</code> 3666 * 3667 * @return This builder for chaining. 3668 */ clearId()3669 public Builder clearId() { 3670 bitField0_ = (bitField0_ & ~0x00000080); 3671 id_ = 0L; 3672 onChanged(); 3673 return this; 3674 } 3675 3676 private java.lang.Object insertTime_ = ""; 3677 /** 3678 * 3679 * 3680 * <pre> 3681 * [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 3682 * </pre> 3683 * 3684 * <code>optional string insert_time = 433722515;</code> 3685 * 3686 * @return Whether the insertTime field is set. 3687 */ hasInsertTime()3688 public boolean hasInsertTime() { 3689 return ((bitField0_ & 0x00000100) != 0); 3690 } 3691 /** 3692 * 3693 * 3694 * <pre> 3695 * [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 3696 * </pre> 3697 * 3698 * <code>optional string insert_time = 433722515;</code> 3699 * 3700 * @return The insertTime. 3701 */ getInsertTime()3702 public java.lang.String getInsertTime() { 3703 java.lang.Object ref = insertTime_; 3704 if (!(ref instanceof java.lang.String)) { 3705 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3706 java.lang.String s = bs.toStringUtf8(); 3707 insertTime_ = s; 3708 return s; 3709 } else { 3710 return (java.lang.String) ref; 3711 } 3712 } 3713 /** 3714 * 3715 * 3716 * <pre> 3717 * [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 3718 * </pre> 3719 * 3720 * <code>optional string insert_time = 433722515;</code> 3721 * 3722 * @return The bytes for insertTime. 3723 */ getInsertTimeBytes()3724 public com.google.protobuf.ByteString getInsertTimeBytes() { 3725 java.lang.Object ref = insertTime_; 3726 if (ref instanceof String) { 3727 com.google.protobuf.ByteString b = 3728 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3729 insertTime_ = b; 3730 return b; 3731 } else { 3732 return (com.google.protobuf.ByteString) ref; 3733 } 3734 } 3735 /** 3736 * 3737 * 3738 * <pre> 3739 * [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 3740 * </pre> 3741 * 3742 * <code>optional string insert_time = 433722515;</code> 3743 * 3744 * @param value The insertTime to set. 3745 * @return This builder for chaining. 3746 */ setInsertTime(java.lang.String value)3747 public Builder setInsertTime(java.lang.String value) { 3748 if (value == null) { 3749 throw new NullPointerException(); 3750 } 3751 insertTime_ = value; 3752 bitField0_ |= 0x00000100; 3753 onChanged(); 3754 return this; 3755 } 3756 /** 3757 * 3758 * 3759 * <pre> 3760 * [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 3761 * </pre> 3762 * 3763 * <code>optional string insert_time = 433722515;</code> 3764 * 3765 * @return This builder for chaining. 3766 */ clearInsertTime()3767 public Builder clearInsertTime() { 3768 insertTime_ = getDefaultInstance().getInsertTime(); 3769 bitField0_ = (bitField0_ & ~0x00000100); 3770 onChanged(); 3771 return this; 3772 } 3773 /** 3774 * 3775 * 3776 * <pre> 3777 * [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 3778 * </pre> 3779 * 3780 * <code>optional string insert_time = 433722515;</code> 3781 * 3782 * @param value The bytes for insertTime to set. 3783 * @return This builder for chaining. 3784 */ setInsertTimeBytes(com.google.protobuf.ByteString value)3785 public Builder setInsertTimeBytes(com.google.protobuf.ByteString value) { 3786 if (value == null) { 3787 throw new NullPointerException(); 3788 } 3789 checkByteStringIsUtf8(value); 3790 insertTime_ = value; 3791 bitField0_ |= 0x00000100; 3792 onChanged(); 3793 return this; 3794 } 3795 3796 private java.lang.Object kind_ = ""; 3797 /** 3798 * 3799 * 3800 * <pre> 3801 * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 3802 * </pre> 3803 * 3804 * <code>optional string kind = 3292052;</code> 3805 * 3806 * @return Whether the kind field is set. 3807 */ hasKind()3808 public boolean hasKind() { 3809 return ((bitField0_ & 0x00000200) != 0); 3810 } 3811 /** 3812 * 3813 * 3814 * <pre> 3815 * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 3816 * </pre> 3817 * 3818 * <code>optional string kind = 3292052;</code> 3819 * 3820 * @return The kind. 3821 */ getKind()3822 public java.lang.String getKind() { 3823 java.lang.Object ref = kind_; 3824 if (!(ref instanceof java.lang.String)) { 3825 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3826 java.lang.String s = bs.toStringUtf8(); 3827 kind_ = s; 3828 return s; 3829 } else { 3830 return (java.lang.String) ref; 3831 } 3832 } 3833 /** 3834 * 3835 * 3836 * <pre> 3837 * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 3838 * </pre> 3839 * 3840 * <code>optional string kind = 3292052;</code> 3841 * 3842 * @return The bytes for kind. 3843 */ getKindBytes()3844 public com.google.protobuf.ByteString getKindBytes() { 3845 java.lang.Object ref = kind_; 3846 if (ref instanceof String) { 3847 com.google.protobuf.ByteString b = 3848 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3849 kind_ = b; 3850 return b; 3851 } else { 3852 return (com.google.protobuf.ByteString) ref; 3853 } 3854 } 3855 /** 3856 * 3857 * 3858 * <pre> 3859 * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 3860 * </pre> 3861 * 3862 * <code>optional string kind = 3292052;</code> 3863 * 3864 * @param value The kind to set. 3865 * @return This builder for chaining. 3866 */ setKind(java.lang.String value)3867 public Builder setKind(java.lang.String value) { 3868 if (value == null) { 3869 throw new NullPointerException(); 3870 } 3871 kind_ = value; 3872 bitField0_ |= 0x00000200; 3873 onChanged(); 3874 return this; 3875 } 3876 /** 3877 * 3878 * 3879 * <pre> 3880 * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 3881 * </pre> 3882 * 3883 * <code>optional string kind = 3292052;</code> 3884 * 3885 * @return This builder for chaining. 3886 */ clearKind()3887 public Builder clearKind() { 3888 kind_ = getDefaultInstance().getKind(); 3889 bitField0_ = (bitField0_ & ~0x00000200); 3890 onChanged(); 3891 return this; 3892 } 3893 /** 3894 * 3895 * 3896 * <pre> 3897 * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 3898 * </pre> 3899 * 3900 * <code>optional string kind = 3292052;</code> 3901 * 3902 * @param value The bytes for kind to set. 3903 * @return This builder for chaining. 3904 */ setKindBytes(com.google.protobuf.ByteString value)3905 public Builder setKindBytes(com.google.protobuf.ByteString value) { 3906 if (value == null) { 3907 throw new NullPointerException(); 3908 } 3909 checkByteStringIsUtf8(value); 3910 kind_ = value; 3911 bitField0_ |= 0x00000200; 3912 onChanged(); 3913 return this; 3914 } 3915 3916 private java.lang.Object name_ = ""; 3917 /** 3918 * 3919 * 3920 * <pre> 3921 * [Output Only] Name of the operation. 3922 * </pre> 3923 * 3924 * <code>optional string name = 3373707 [(.google.cloud.operation_field) = NAME];</code> 3925 * 3926 * @return Whether the name field is set. 3927 */ hasName()3928 public boolean hasName() { 3929 return ((bitField0_ & 0x00000400) != 0); 3930 } 3931 /** 3932 * 3933 * 3934 * <pre> 3935 * [Output Only] Name of the operation. 3936 * </pre> 3937 * 3938 * <code>optional string name = 3373707 [(.google.cloud.operation_field) = NAME];</code> 3939 * 3940 * @return The name. 3941 */ getName()3942 public java.lang.String getName() { 3943 java.lang.Object ref = name_; 3944 if (!(ref instanceof java.lang.String)) { 3945 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3946 java.lang.String s = bs.toStringUtf8(); 3947 name_ = s; 3948 return s; 3949 } else { 3950 return (java.lang.String) ref; 3951 } 3952 } 3953 /** 3954 * 3955 * 3956 * <pre> 3957 * [Output Only] Name of the operation. 3958 * </pre> 3959 * 3960 * <code>optional string name = 3373707 [(.google.cloud.operation_field) = NAME];</code> 3961 * 3962 * @return The bytes for name. 3963 */ getNameBytes()3964 public com.google.protobuf.ByteString getNameBytes() { 3965 java.lang.Object ref = name_; 3966 if (ref instanceof String) { 3967 com.google.protobuf.ByteString b = 3968 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3969 name_ = b; 3970 return b; 3971 } else { 3972 return (com.google.protobuf.ByteString) ref; 3973 } 3974 } 3975 /** 3976 * 3977 * 3978 * <pre> 3979 * [Output Only] Name of the operation. 3980 * </pre> 3981 * 3982 * <code>optional string name = 3373707 [(.google.cloud.operation_field) = NAME];</code> 3983 * 3984 * @param value The name to set. 3985 * @return This builder for chaining. 3986 */ setName(java.lang.String value)3987 public Builder setName(java.lang.String value) { 3988 if (value == null) { 3989 throw new NullPointerException(); 3990 } 3991 name_ = value; 3992 bitField0_ |= 0x00000400; 3993 onChanged(); 3994 return this; 3995 } 3996 /** 3997 * 3998 * 3999 * <pre> 4000 * [Output Only] Name of the operation. 4001 * </pre> 4002 * 4003 * <code>optional string name = 3373707 [(.google.cloud.operation_field) = NAME];</code> 4004 * 4005 * @return This builder for chaining. 4006 */ clearName()4007 public Builder clearName() { 4008 name_ = getDefaultInstance().getName(); 4009 bitField0_ = (bitField0_ & ~0x00000400); 4010 onChanged(); 4011 return this; 4012 } 4013 /** 4014 * 4015 * 4016 * <pre> 4017 * [Output Only] Name of the operation. 4018 * </pre> 4019 * 4020 * <code>optional string name = 3373707 [(.google.cloud.operation_field) = NAME];</code> 4021 * 4022 * @param value The bytes for name to set. 4023 * @return This builder for chaining. 4024 */ setNameBytes(com.google.protobuf.ByteString value)4025 public Builder setNameBytes(com.google.protobuf.ByteString value) { 4026 if (value == null) { 4027 throw new NullPointerException(); 4028 } 4029 checkByteStringIsUtf8(value); 4030 name_ = value; 4031 bitField0_ |= 0x00000400; 4032 onChanged(); 4033 return this; 4034 } 4035 4036 private java.lang.Object operationGroupId_ = ""; 4037 /** 4038 * 4039 * 4040 * <pre> 4041 * [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 4042 * </pre> 4043 * 4044 * <code>optional string operation_group_id = 40171187;</code> 4045 * 4046 * @return Whether the operationGroupId field is set. 4047 */ hasOperationGroupId()4048 public boolean hasOperationGroupId() { 4049 return ((bitField0_ & 0x00000800) != 0); 4050 } 4051 /** 4052 * 4053 * 4054 * <pre> 4055 * [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 4056 * </pre> 4057 * 4058 * <code>optional string operation_group_id = 40171187;</code> 4059 * 4060 * @return The operationGroupId. 4061 */ getOperationGroupId()4062 public java.lang.String getOperationGroupId() { 4063 java.lang.Object ref = operationGroupId_; 4064 if (!(ref instanceof java.lang.String)) { 4065 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4066 java.lang.String s = bs.toStringUtf8(); 4067 operationGroupId_ = s; 4068 return s; 4069 } else { 4070 return (java.lang.String) ref; 4071 } 4072 } 4073 /** 4074 * 4075 * 4076 * <pre> 4077 * [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 4078 * </pre> 4079 * 4080 * <code>optional string operation_group_id = 40171187;</code> 4081 * 4082 * @return The bytes for operationGroupId. 4083 */ getOperationGroupIdBytes()4084 public com.google.protobuf.ByteString getOperationGroupIdBytes() { 4085 java.lang.Object ref = operationGroupId_; 4086 if (ref instanceof String) { 4087 com.google.protobuf.ByteString b = 4088 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4089 operationGroupId_ = b; 4090 return b; 4091 } else { 4092 return (com.google.protobuf.ByteString) ref; 4093 } 4094 } 4095 /** 4096 * 4097 * 4098 * <pre> 4099 * [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 4100 * </pre> 4101 * 4102 * <code>optional string operation_group_id = 40171187;</code> 4103 * 4104 * @param value The operationGroupId to set. 4105 * @return This builder for chaining. 4106 */ setOperationGroupId(java.lang.String value)4107 public Builder setOperationGroupId(java.lang.String value) { 4108 if (value == null) { 4109 throw new NullPointerException(); 4110 } 4111 operationGroupId_ = value; 4112 bitField0_ |= 0x00000800; 4113 onChanged(); 4114 return this; 4115 } 4116 /** 4117 * 4118 * 4119 * <pre> 4120 * [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 4121 * </pre> 4122 * 4123 * <code>optional string operation_group_id = 40171187;</code> 4124 * 4125 * @return This builder for chaining. 4126 */ clearOperationGroupId()4127 public Builder clearOperationGroupId() { 4128 operationGroupId_ = getDefaultInstance().getOperationGroupId(); 4129 bitField0_ = (bitField0_ & ~0x00000800); 4130 onChanged(); 4131 return this; 4132 } 4133 /** 4134 * 4135 * 4136 * <pre> 4137 * [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 4138 * </pre> 4139 * 4140 * <code>optional string operation_group_id = 40171187;</code> 4141 * 4142 * @param value The bytes for operationGroupId to set. 4143 * @return This builder for chaining. 4144 */ setOperationGroupIdBytes(com.google.protobuf.ByteString value)4145 public Builder setOperationGroupIdBytes(com.google.protobuf.ByteString value) { 4146 if (value == null) { 4147 throw new NullPointerException(); 4148 } 4149 checkByteStringIsUtf8(value); 4150 operationGroupId_ = value; 4151 bitField0_ |= 0x00000800; 4152 onChanged(); 4153 return this; 4154 } 4155 4156 private java.lang.Object operationType_ = ""; 4157 /** 4158 * 4159 * 4160 * <pre> 4161 * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 4162 * </pre> 4163 * 4164 * <code>optional string operation_type = 177650450;</code> 4165 * 4166 * @return Whether the operationType field is set. 4167 */ hasOperationType()4168 public boolean hasOperationType() { 4169 return ((bitField0_ & 0x00001000) != 0); 4170 } 4171 /** 4172 * 4173 * 4174 * <pre> 4175 * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 4176 * </pre> 4177 * 4178 * <code>optional string operation_type = 177650450;</code> 4179 * 4180 * @return The operationType. 4181 */ getOperationType()4182 public java.lang.String getOperationType() { 4183 java.lang.Object ref = operationType_; 4184 if (!(ref instanceof java.lang.String)) { 4185 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4186 java.lang.String s = bs.toStringUtf8(); 4187 operationType_ = s; 4188 return s; 4189 } else { 4190 return (java.lang.String) ref; 4191 } 4192 } 4193 /** 4194 * 4195 * 4196 * <pre> 4197 * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 4198 * </pre> 4199 * 4200 * <code>optional string operation_type = 177650450;</code> 4201 * 4202 * @return The bytes for operationType. 4203 */ getOperationTypeBytes()4204 public com.google.protobuf.ByteString getOperationTypeBytes() { 4205 java.lang.Object ref = operationType_; 4206 if (ref instanceof String) { 4207 com.google.protobuf.ByteString b = 4208 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4209 operationType_ = b; 4210 return b; 4211 } else { 4212 return (com.google.protobuf.ByteString) ref; 4213 } 4214 } 4215 /** 4216 * 4217 * 4218 * <pre> 4219 * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 4220 * </pre> 4221 * 4222 * <code>optional string operation_type = 177650450;</code> 4223 * 4224 * @param value The operationType to set. 4225 * @return This builder for chaining. 4226 */ setOperationType(java.lang.String value)4227 public Builder setOperationType(java.lang.String value) { 4228 if (value == null) { 4229 throw new NullPointerException(); 4230 } 4231 operationType_ = value; 4232 bitField0_ |= 0x00001000; 4233 onChanged(); 4234 return this; 4235 } 4236 /** 4237 * 4238 * 4239 * <pre> 4240 * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 4241 * </pre> 4242 * 4243 * <code>optional string operation_type = 177650450;</code> 4244 * 4245 * @return This builder for chaining. 4246 */ clearOperationType()4247 public Builder clearOperationType() { 4248 operationType_ = getDefaultInstance().getOperationType(); 4249 bitField0_ = (bitField0_ & ~0x00001000); 4250 onChanged(); 4251 return this; 4252 } 4253 /** 4254 * 4255 * 4256 * <pre> 4257 * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 4258 * </pre> 4259 * 4260 * <code>optional string operation_type = 177650450;</code> 4261 * 4262 * @param value The bytes for operationType to set. 4263 * @return This builder for chaining. 4264 */ setOperationTypeBytes(com.google.protobuf.ByteString value)4265 public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { 4266 if (value == null) { 4267 throw new NullPointerException(); 4268 } 4269 checkByteStringIsUtf8(value); 4270 operationType_ = value; 4271 bitField0_ |= 0x00001000; 4272 onChanged(); 4273 return this; 4274 } 4275 4276 private int progress_; 4277 /** 4278 * 4279 * 4280 * <pre> 4281 * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 4282 * </pre> 4283 * 4284 * <code>optional int32 progress = 72663597;</code> 4285 * 4286 * @return Whether the progress field is set. 4287 */ 4288 @java.lang.Override hasProgress()4289 public boolean hasProgress() { 4290 return ((bitField0_ & 0x00002000) != 0); 4291 } 4292 /** 4293 * 4294 * 4295 * <pre> 4296 * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 4297 * </pre> 4298 * 4299 * <code>optional int32 progress = 72663597;</code> 4300 * 4301 * @return The progress. 4302 */ 4303 @java.lang.Override getProgress()4304 public int getProgress() { 4305 return progress_; 4306 } 4307 /** 4308 * 4309 * 4310 * <pre> 4311 * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 4312 * </pre> 4313 * 4314 * <code>optional int32 progress = 72663597;</code> 4315 * 4316 * @param value The progress to set. 4317 * @return This builder for chaining. 4318 */ setProgress(int value)4319 public Builder setProgress(int value) { 4320 4321 progress_ = value; 4322 bitField0_ |= 0x00002000; 4323 onChanged(); 4324 return this; 4325 } 4326 /** 4327 * 4328 * 4329 * <pre> 4330 * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 4331 * </pre> 4332 * 4333 * <code>optional int32 progress = 72663597;</code> 4334 * 4335 * @return This builder for chaining. 4336 */ clearProgress()4337 public Builder clearProgress() { 4338 bitField0_ = (bitField0_ & ~0x00002000); 4339 progress_ = 0; 4340 onChanged(); 4341 return this; 4342 } 4343 4344 private java.lang.Object region_ = ""; 4345 /** 4346 * 4347 * 4348 * <pre> 4349 * [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 4350 * </pre> 4351 * 4352 * <code>optional string region = 138946292;</code> 4353 * 4354 * @return Whether the region field is set. 4355 */ hasRegion()4356 public boolean hasRegion() { 4357 return ((bitField0_ & 0x00004000) != 0); 4358 } 4359 /** 4360 * 4361 * 4362 * <pre> 4363 * [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 4364 * </pre> 4365 * 4366 * <code>optional string region = 138946292;</code> 4367 * 4368 * @return The region. 4369 */ getRegion()4370 public java.lang.String getRegion() { 4371 java.lang.Object ref = region_; 4372 if (!(ref instanceof java.lang.String)) { 4373 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4374 java.lang.String s = bs.toStringUtf8(); 4375 region_ = s; 4376 return s; 4377 } else { 4378 return (java.lang.String) ref; 4379 } 4380 } 4381 /** 4382 * 4383 * 4384 * <pre> 4385 * [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 4386 * </pre> 4387 * 4388 * <code>optional string region = 138946292;</code> 4389 * 4390 * @return The bytes for region. 4391 */ getRegionBytes()4392 public com.google.protobuf.ByteString getRegionBytes() { 4393 java.lang.Object ref = region_; 4394 if (ref instanceof String) { 4395 com.google.protobuf.ByteString b = 4396 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4397 region_ = b; 4398 return b; 4399 } else { 4400 return (com.google.protobuf.ByteString) ref; 4401 } 4402 } 4403 /** 4404 * 4405 * 4406 * <pre> 4407 * [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 4408 * </pre> 4409 * 4410 * <code>optional string region = 138946292;</code> 4411 * 4412 * @param value The region to set. 4413 * @return This builder for chaining. 4414 */ setRegion(java.lang.String value)4415 public Builder setRegion(java.lang.String value) { 4416 if (value == null) { 4417 throw new NullPointerException(); 4418 } 4419 region_ = value; 4420 bitField0_ |= 0x00004000; 4421 onChanged(); 4422 return this; 4423 } 4424 /** 4425 * 4426 * 4427 * <pre> 4428 * [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 4429 * </pre> 4430 * 4431 * <code>optional string region = 138946292;</code> 4432 * 4433 * @return This builder for chaining. 4434 */ clearRegion()4435 public Builder clearRegion() { 4436 region_ = getDefaultInstance().getRegion(); 4437 bitField0_ = (bitField0_ & ~0x00004000); 4438 onChanged(); 4439 return this; 4440 } 4441 /** 4442 * 4443 * 4444 * <pre> 4445 * [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 4446 * </pre> 4447 * 4448 * <code>optional string region = 138946292;</code> 4449 * 4450 * @param value The bytes for region to set. 4451 * @return This builder for chaining. 4452 */ setRegionBytes(com.google.protobuf.ByteString value)4453 public Builder setRegionBytes(com.google.protobuf.ByteString value) { 4454 if (value == null) { 4455 throw new NullPointerException(); 4456 } 4457 checkByteStringIsUtf8(value); 4458 region_ = value; 4459 bitField0_ |= 0x00004000; 4460 onChanged(); 4461 return this; 4462 } 4463 4464 private java.lang.Object selfLink_ = ""; 4465 /** 4466 * 4467 * 4468 * <pre> 4469 * [Output Only] Server-defined URL for the resource. 4470 * </pre> 4471 * 4472 * <code>optional string self_link = 456214797;</code> 4473 * 4474 * @return Whether the selfLink field is set. 4475 */ hasSelfLink()4476 public boolean hasSelfLink() { 4477 return ((bitField0_ & 0x00008000) != 0); 4478 } 4479 /** 4480 * 4481 * 4482 * <pre> 4483 * [Output Only] Server-defined URL for the resource. 4484 * </pre> 4485 * 4486 * <code>optional string self_link = 456214797;</code> 4487 * 4488 * @return The selfLink. 4489 */ getSelfLink()4490 public java.lang.String getSelfLink() { 4491 java.lang.Object ref = selfLink_; 4492 if (!(ref instanceof java.lang.String)) { 4493 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4494 java.lang.String s = bs.toStringUtf8(); 4495 selfLink_ = s; 4496 return s; 4497 } else { 4498 return (java.lang.String) ref; 4499 } 4500 } 4501 /** 4502 * 4503 * 4504 * <pre> 4505 * [Output Only] Server-defined URL for the resource. 4506 * </pre> 4507 * 4508 * <code>optional string self_link = 456214797;</code> 4509 * 4510 * @return The bytes for selfLink. 4511 */ getSelfLinkBytes()4512 public com.google.protobuf.ByteString getSelfLinkBytes() { 4513 java.lang.Object ref = selfLink_; 4514 if (ref instanceof String) { 4515 com.google.protobuf.ByteString b = 4516 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4517 selfLink_ = b; 4518 return b; 4519 } else { 4520 return (com.google.protobuf.ByteString) ref; 4521 } 4522 } 4523 /** 4524 * 4525 * 4526 * <pre> 4527 * [Output Only] Server-defined URL for the resource. 4528 * </pre> 4529 * 4530 * <code>optional string self_link = 456214797;</code> 4531 * 4532 * @param value The selfLink to set. 4533 * @return This builder for chaining. 4534 */ setSelfLink(java.lang.String value)4535 public Builder setSelfLink(java.lang.String value) { 4536 if (value == null) { 4537 throw new NullPointerException(); 4538 } 4539 selfLink_ = value; 4540 bitField0_ |= 0x00008000; 4541 onChanged(); 4542 return this; 4543 } 4544 /** 4545 * 4546 * 4547 * <pre> 4548 * [Output Only] Server-defined URL for the resource. 4549 * </pre> 4550 * 4551 * <code>optional string self_link = 456214797;</code> 4552 * 4553 * @return This builder for chaining. 4554 */ clearSelfLink()4555 public Builder clearSelfLink() { 4556 selfLink_ = getDefaultInstance().getSelfLink(); 4557 bitField0_ = (bitField0_ & ~0x00008000); 4558 onChanged(); 4559 return this; 4560 } 4561 /** 4562 * 4563 * 4564 * <pre> 4565 * [Output Only] Server-defined URL for the resource. 4566 * </pre> 4567 * 4568 * <code>optional string self_link = 456214797;</code> 4569 * 4570 * @param value The bytes for selfLink to set. 4571 * @return This builder for chaining. 4572 */ setSelfLinkBytes(com.google.protobuf.ByteString value)4573 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 4574 if (value == null) { 4575 throw new NullPointerException(); 4576 } 4577 checkByteStringIsUtf8(value); 4578 selfLink_ = value; 4579 bitField0_ |= 0x00008000; 4580 onChanged(); 4581 return this; 4582 } 4583 4584 private java.lang.Object startTime_ = ""; 4585 /** 4586 * 4587 * 4588 * <pre> 4589 * [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 4590 * </pre> 4591 * 4592 * <code>optional string start_time = 37467274;</code> 4593 * 4594 * @return Whether the startTime field is set. 4595 */ hasStartTime()4596 public boolean hasStartTime() { 4597 return ((bitField0_ & 0x00010000) != 0); 4598 } 4599 /** 4600 * 4601 * 4602 * <pre> 4603 * [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 4604 * </pre> 4605 * 4606 * <code>optional string start_time = 37467274;</code> 4607 * 4608 * @return The startTime. 4609 */ getStartTime()4610 public java.lang.String getStartTime() { 4611 java.lang.Object ref = startTime_; 4612 if (!(ref instanceof java.lang.String)) { 4613 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4614 java.lang.String s = bs.toStringUtf8(); 4615 startTime_ = s; 4616 return s; 4617 } else { 4618 return (java.lang.String) ref; 4619 } 4620 } 4621 /** 4622 * 4623 * 4624 * <pre> 4625 * [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 4626 * </pre> 4627 * 4628 * <code>optional string start_time = 37467274;</code> 4629 * 4630 * @return The bytes for startTime. 4631 */ getStartTimeBytes()4632 public com.google.protobuf.ByteString getStartTimeBytes() { 4633 java.lang.Object ref = startTime_; 4634 if (ref instanceof String) { 4635 com.google.protobuf.ByteString b = 4636 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4637 startTime_ = b; 4638 return b; 4639 } else { 4640 return (com.google.protobuf.ByteString) ref; 4641 } 4642 } 4643 /** 4644 * 4645 * 4646 * <pre> 4647 * [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 4648 * </pre> 4649 * 4650 * <code>optional string start_time = 37467274;</code> 4651 * 4652 * @param value The startTime to set. 4653 * @return This builder for chaining. 4654 */ setStartTime(java.lang.String value)4655 public Builder setStartTime(java.lang.String value) { 4656 if (value == null) { 4657 throw new NullPointerException(); 4658 } 4659 startTime_ = value; 4660 bitField0_ |= 0x00010000; 4661 onChanged(); 4662 return this; 4663 } 4664 /** 4665 * 4666 * 4667 * <pre> 4668 * [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 4669 * </pre> 4670 * 4671 * <code>optional string start_time = 37467274;</code> 4672 * 4673 * @return This builder for chaining. 4674 */ clearStartTime()4675 public Builder clearStartTime() { 4676 startTime_ = getDefaultInstance().getStartTime(); 4677 bitField0_ = (bitField0_ & ~0x00010000); 4678 onChanged(); 4679 return this; 4680 } 4681 /** 4682 * 4683 * 4684 * <pre> 4685 * [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 4686 * </pre> 4687 * 4688 * <code>optional string start_time = 37467274;</code> 4689 * 4690 * @param value The bytes for startTime to set. 4691 * @return This builder for chaining. 4692 */ setStartTimeBytes(com.google.protobuf.ByteString value)4693 public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { 4694 if (value == null) { 4695 throw new NullPointerException(); 4696 } 4697 checkByteStringIsUtf8(value); 4698 startTime_ = value; 4699 bitField0_ |= 0x00010000; 4700 onChanged(); 4701 return this; 4702 } 4703 4704 private int status_ = 0; 4705 /** 4706 * 4707 * 4708 * <pre> 4709 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 4710 * </pre> 4711 * 4712 * <code> 4713 * optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS]; 4714 * </code> 4715 * 4716 * @return Whether the status field is set. 4717 */ 4718 @java.lang.Override hasStatus()4719 public boolean hasStatus() { 4720 return ((bitField0_ & 0x00020000) != 0); 4721 } 4722 /** 4723 * 4724 * 4725 * <pre> 4726 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 4727 * </pre> 4728 * 4729 * <code> 4730 * optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS]; 4731 * </code> 4732 * 4733 * @return The enum numeric value on the wire for status. 4734 */ 4735 @java.lang.Override getStatusValue()4736 public int getStatusValue() { 4737 return status_; 4738 } 4739 /** 4740 * 4741 * 4742 * <pre> 4743 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 4744 * </pre> 4745 * 4746 * <code> 4747 * optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS]; 4748 * </code> 4749 * 4750 * @param value The enum numeric value on the wire for status to set. 4751 * @return This builder for chaining. 4752 */ setStatusValue(int value)4753 public Builder setStatusValue(int value) { 4754 status_ = value; 4755 bitField0_ |= 0x00020000; 4756 onChanged(); 4757 return this; 4758 } 4759 /** 4760 * 4761 * 4762 * <pre> 4763 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 4764 * </pre> 4765 * 4766 * <code> 4767 * optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS]; 4768 * </code> 4769 * 4770 * @return The status. 4771 */ 4772 @java.lang.Override getStatus()4773 public com.google.cloud.compute.v1.Operation.Status getStatus() { 4774 com.google.cloud.compute.v1.Operation.Status result = 4775 com.google.cloud.compute.v1.Operation.Status.forNumber(status_); 4776 return result == null ? com.google.cloud.compute.v1.Operation.Status.UNRECOGNIZED : result; 4777 } 4778 /** 4779 * 4780 * 4781 * <pre> 4782 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 4783 * </pre> 4784 * 4785 * <code> 4786 * optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS]; 4787 * </code> 4788 * 4789 * @param value The status to set. 4790 * @return This builder for chaining. 4791 */ setStatus(com.google.cloud.compute.v1.Operation.Status value)4792 public Builder setStatus(com.google.cloud.compute.v1.Operation.Status value) { 4793 if (value == null) { 4794 throw new NullPointerException(); 4795 } 4796 bitField0_ |= 0x00020000; 4797 status_ = value.getNumber(); 4798 onChanged(); 4799 return this; 4800 } 4801 /** 4802 * 4803 * 4804 * <pre> 4805 * [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 4806 * </pre> 4807 * 4808 * <code> 4809 * optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS]; 4810 * </code> 4811 * 4812 * @return This builder for chaining. 4813 */ clearStatus()4814 public Builder clearStatus() { 4815 bitField0_ = (bitField0_ & ~0x00020000); 4816 status_ = 0; 4817 onChanged(); 4818 return this; 4819 } 4820 4821 private java.lang.Object statusMessage_ = ""; 4822 /** 4823 * 4824 * 4825 * <pre> 4826 * [Output Only] An optional textual description of the current status of the operation. 4827 * </pre> 4828 * 4829 * <code>optional string status_message = 297428154;</code> 4830 * 4831 * @return Whether the statusMessage field is set. 4832 */ hasStatusMessage()4833 public boolean hasStatusMessage() { 4834 return ((bitField0_ & 0x00040000) != 0); 4835 } 4836 /** 4837 * 4838 * 4839 * <pre> 4840 * [Output Only] An optional textual description of the current status of the operation. 4841 * </pre> 4842 * 4843 * <code>optional string status_message = 297428154;</code> 4844 * 4845 * @return The statusMessage. 4846 */ getStatusMessage()4847 public java.lang.String getStatusMessage() { 4848 java.lang.Object ref = statusMessage_; 4849 if (!(ref instanceof java.lang.String)) { 4850 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4851 java.lang.String s = bs.toStringUtf8(); 4852 statusMessage_ = s; 4853 return s; 4854 } else { 4855 return (java.lang.String) ref; 4856 } 4857 } 4858 /** 4859 * 4860 * 4861 * <pre> 4862 * [Output Only] An optional textual description of the current status of the operation. 4863 * </pre> 4864 * 4865 * <code>optional string status_message = 297428154;</code> 4866 * 4867 * @return The bytes for statusMessage. 4868 */ getStatusMessageBytes()4869 public com.google.protobuf.ByteString getStatusMessageBytes() { 4870 java.lang.Object ref = statusMessage_; 4871 if (ref instanceof String) { 4872 com.google.protobuf.ByteString b = 4873 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4874 statusMessage_ = b; 4875 return b; 4876 } else { 4877 return (com.google.protobuf.ByteString) ref; 4878 } 4879 } 4880 /** 4881 * 4882 * 4883 * <pre> 4884 * [Output Only] An optional textual description of the current status of the operation. 4885 * </pre> 4886 * 4887 * <code>optional string status_message = 297428154;</code> 4888 * 4889 * @param value The statusMessage to set. 4890 * @return This builder for chaining. 4891 */ setStatusMessage(java.lang.String value)4892 public Builder setStatusMessage(java.lang.String value) { 4893 if (value == null) { 4894 throw new NullPointerException(); 4895 } 4896 statusMessage_ = value; 4897 bitField0_ |= 0x00040000; 4898 onChanged(); 4899 return this; 4900 } 4901 /** 4902 * 4903 * 4904 * <pre> 4905 * [Output Only] An optional textual description of the current status of the operation. 4906 * </pre> 4907 * 4908 * <code>optional string status_message = 297428154;</code> 4909 * 4910 * @return This builder for chaining. 4911 */ clearStatusMessage()4912 public Builder clearStatusMessage() { 4913 statusMessage_ = getDefaultInstance().getStatusMessage(); 4914 bitField0_ = (bitField0_ & ~0x00040000); 4915 onChanged(); 4916 return this; 4917 } 4918 /** 4919 * 4920 * 4921 * <pre> 4922 * [Output Only] An optional textual description of the current status of the operation. 4923 * </pre> 4924 * 4925 * <code>optional string status_message = 297428154;</code> 4926 * 4927 * @param value The bytes for statusMessage to set. 4928 * @return This builder for chaining. 4929 */ setStatusMessageBytes(com.google.protobuf.ByteString value)4930 public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { 4931 if (value == null) { 4932 throw new NullPointerException(); 4933 } 4934 checkByteStringIsUtf8(value); 4935 statusMessage_ = value; 4936 bitField0_ |= 0x00040000; 4937 onChanged(); 4938 return this; 4939 } 4940 4941 private long targetId_; 4942 /** 4943 * 4944 * 4945 * <pre> 4946 * [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 4947 * </pre> 4948 * 4949 * <code>optional uint64 target_id = 258165385;</code> 4950 * 4951 * @return Whether the targetId field is set. 4952 */ 4953 @java.lang.Override hasTargetId()4954 public boolean hasTargetId() { 4955 return ((bitField0_ & 0x00080000) != 0); 4956 } 4957 /** 4958 * 4959 * 4960 * <pre> 4961 * [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 4962 * </pre> 4963 * 4964 * <code>optional uint64 target_id = 258165385;</code> 4965 * 4966 * @return The targetId. 4967 */ 4968 @java.lang.Override getTargetId()4969 public long getTargetId() { 4970 return targetId_; 4971 } 4972 /** 4973 * 4974 * 4975 * <pre> 4976 * [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 4977 * </pre> 4978 * 4979 * <code>optional uint64 target_id = 258165385;</code> 4980 * 4981 * @param value The targetId to set. 4982 * @return This builder for chaining. 4983 */ setTargetId(long value)4984 public Builder setTargetId(long value) { 4985 4986 targetId_ = value; 4987 bitField0_ |= 0x00080000; 4988 onChanged(); 4989 return this; 4990 } 4991 /** 4992 * 4993 * 4994 * <pre> 4995 * [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 4996 * </pre> 4997 * 4998 * <code>optional uint64 target_id = 258165385;</code> 4999 * 5000 * @return This builder for chaining. 5001 */ clearTargetId()5002 public Builder clearTargetId() { 5003 bitField0_ = (bitField0_ & ~0x00080000); 5004 targetId_ = 0L; 5005 onChanged(); 5006 return this; 5007 } 5008 5009 private java.lang.Object targetLink_ = ""; 5010 /** 5011 * 5012 * 5013 * <pre> 5014 * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 5015 * </pre> 5016 * 5017 * <code>optional string target_link = 62671336;</code> 5018 * 5019 * @return Whether the targetLink field is set. 5020 */ hasTargetLink()5021 public boolean hasTargetLink() { 5022 return ((bitField0_ & 0x00100000) != 0); 5023 } 5024 /** 5025 * 5026 * 5027 * <pre> 5028 * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 5029 * </pre> 5030 * 5031 * <code>optional string target_link = 62671336;</code> 5032 * 5033 * @return The targetLink. 5034 */ getTargetLink()5035 public java.lang.String getTargetLink() { 5036 java.lang.Object ref = targetLink_; 5037 if (!(ref instanceof java.lang.String)) { 5038 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5039 java.lang.String s = bs.toStringUtf8(); 5040 targetLink_ = s; 5041 return s; 5042 } else { 5043 return (java.lang.String) ref; 5044 } 5045 } 5046 /** 5047 * 5048 * 5049 * <pre> 5050 * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 5051 * </pre> 5052 * 5053 * <code>optional string target_link = 62671336;</code> 5054 * 5055 * @return The bytes for targetLink. 5056 */ getTargetLinkBytes()5057 public com.google.protobuf.ByteString getTargetLinkBytes() { 5058 java.lang.Object ref = targetLink_; 5059 if (ref instanceof String) { 5060 com.google.protobuf.ByteString b = 5061 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5062 targetLink_ = b; 5063 return b; 5064 } else { 5065 return (com.google.protobuf.ByteString) ref; 5066 } 5067 } 5068 /** 5069 * 5070 * 5071 * <pre> 5072 * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 5073 * </pre> 5074 * 5075 * <code>optional string target_link = 62671336;</code> 5076 * 5077 * @param value The targetLink to set. 5078 * @return This builder for chaining. 5079 */ setTargetLink(java.lang.String value)5080 public Builder setTargetLink(java.lang.String value) { 5081 if (value == null) { 5082 throw new NullPointerException(); 5083 } 5084 targetLink_ = value; 5085 bitField0_ |= 0x00100000; 5086 onChanged(); 5087 return this; 5088 } 5089 /** 5090 * 5091 * 5092 * <pre> 5093 * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 5094 * </pre> 5095 * 5096 * <code>optional string target_link = 62671336;</code> 5097 * 5098 * @return This builder for chaining. 5099 */ clearTargetLink()5100 public Builder clearTargetLink() { 5101 targetLink_ = getDefaultInstance().getTargetLink(); 5102 bitField0_ = (bitField0_ & ~0x00100000); 5103 onChanged(); 5104 return this; 5105 } 5106 /** 5107 * 5108 * 5109 * <pre> 5110 * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 5111 * </pre> 5112 * 5113 * <code>optional string target_link = 62671336;</code> 5114 * 5115 * @param value The bytes for targetLink to set. 5116 * @return This builder for chaining. 5117 */ setTargetLinkBytes(com.google.protobuf.ByteString value)5118 public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) { 5119 if (value == null) { 5120 throw new NullPointerException(); 5121 } 5122 checkByteStringIsUtf8(value); 5123 targetLink_ = value; 5124 bitField0_ |= 0x00100000; 5125 onChanged(); 5126 return this; 5127 } 5128 5129 private java.lang.Object user_ = ""; 5130 /** 5131 * 5132 * 5133 * <pre> 5134 * [Output Only] User who requested the operation, for example: `user@example.com`. 5135 * </pre> 5136 * 5137 * <code>optional string user = 3599307;</code> 5138 * 5139 * @return Whether the user field is set. 5140 */ hasUser()5141 public boolean hasUser() { 5142 return ((bitField0_ & 0x00200000) != 0); 5143 } 5144 /** 5145 * 5146 * 5147 * <pre> 5148 * [Output Only] User who requested the operation, for example: `user@example.com`. 5149 * </pre> 5150 * 5151 * <code>optional string user = 3599307;</code> 5152 * 5153 * @return The user. 5154 */ getUser()5155 public java.lang.String getUser() { 5156 java.lang.Object ref = user_; 5157 if (!(ref instanceof java.lang.String)) { 5158 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5159 java.lang.String s = bs.toStringUtf8(); 5160 user_ = s; 5161 return s; 5162 } else { 5163 return (java.lang.String) ref; 5164 } 5165 } 5166 /** 5167 * 5168 * 5169 * <pre> 5170 * [Output Only] User who requested the operation, for example: `user@example.com`. 5171 * </pre> 5172 * 5173 * <code>optional string user = 3599307;</code> 5174 * 5175 * @return The bytes for user. 5176 */ getUserBytes()5177 public com.google.protobuf.ByteString getUserBytes() { 5178 java.lang.Object ref = user_; 5179 if (ref instanceof String) { 5180 com.google.protobuf.ByteString b = 5181 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5182 user_ = b; 5183 return b; 5184 } else { 5185 return (com.google.protobuf.ByteString) ref; 5186 } 5187 } 5188 /** 5189 * 5190 * 5191 * <pre> 5192 * [Output Only] User who requested the operation, for example: `user@example.com`. 5193 * </pre> 5194 * 5195 * <code>optional string user = 3599307;</code> 5196 * 5197 * @param value The user to set. 5198 * @return This builder for chaining. 5199 */ setUser(java.lang.String value)5200 public Builder setUser(java.lang.String value) { 5201 if (value == null) { 5202 throw new NullPointerException(); 5203 } 5204 user_ = value; 5205 bitField0_ |= 0x00200000; 5206 onChanged(); 5207 return this; 5208 } 5209 /** 5210 * 5211 * 5212 * <pre> 5213 * [Output Only] User who requested the operation, for example: `user@example.com`. 5214 * </pre> 5215 * 5216 * <code>optional string user = 3599307;</code> 5217 * 5218 * @return This builder for chaining. 5219 */ clearUser()5220 public Builder clearUser() { 5221 user_ = getDefaultInstance().getUser(); 5222 bitField0_ = (bitField0_ & ~0x00200000); 5223 onChanged(); 5224 return this; 5225 } 5226 /** 5227 * 5228 * 5229 * <pre> 5230 * [Output Only] User who requested the operation, for example: `user@example.com`. 5231 * </pre> 5232 * 5233 * <code>optional string user = 3599307;</code> 5234 * 5235 * @param value The bytes for user to set. 5236 * @return This builder for chaining. 5237 */ setUserBytes(com.google.protobuf.ByteString value)5238 public Builder setUserBytes(com.google.protobuf.ByteString value) { 5239 if (value == null) { 5240 throw new NullPointerException(); 5241 } 5242 checkByteStringIsUtf8(value); 5243 user_ = value; 5244 bitField0_ |= 0x00200000; 5245 onChanged(); 5246 return this; 5247 } 5248 5249 private java.util.List<com.google.cloud.compute.v1.Warnings> warnings_ = 5250 java.util.Collections.emptyList(); 5251 ensureWarningsIsMutable()5252 private void ensureWarningsIsMutable() { 5253 if (!((bitField0_ & 0x00400000) != 0)) { 5254 warnings_ = new java.util.ArrayList<com.google.cloud.compute.v1.Warnings>(warnings_); 5255 bitField0_ |= 0x00400000; 5256 } 5257 } 5258 5259 private com.google.protobuf.RepeatedFieldBuilderV3< 5260 com.google.cloud.compute.v1.Warnings, 5261 com.google.cloud.compute.v1.Warnings.Builder, 5262 com.google.cloud.compute.v1.WarningsOrBuilder> 5263 warningsBuilder_; 5264 5265 /** 5266 * 5267 * 5268 * <pre> 5269 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5270 * </pre> 5271 * 5272 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5273 */ getWarningsList()5274 public java.util.List<com.google.cloud.compute.v1.Warnings> getWarningsList() { 5275 if (warningsBuilder_ == null) { 5276 return java.util.Collections.unmodifiableList(warnings_); 5277 } else { 5278 return warningsBuilder_.getMessageList(); 5279 } 5280 } 5281 /** 5282 * 5283 * 5284 * <pre> 5285 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5286 * </pre> 5287 * 5288 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5289 */ getWarningsCount()5290 public int getWarningsCount() { 5291 if (warningsBuilder_ == null) { 5292 return warnings_.size(); 5293 } else { 5294 return warningsBuilder_.getCount(); 5295 } 5296 } 5297 /** 5298 * 5299 * 5300 * <pre> 5301 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5302 * </pre> 5303 * 5304 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5305 */ getWarnings(int index)5306 public com.google.cloud.compute.v1.Warnings getWarnings(int index) { 5307 if (warningsBuilder_ == null) { 5308 return warnings_.get(index); 5309 } else { 5310 return warningsBuilder_.getMessage(index); 5311 } 5312 } 5313 /** 5314 * 5315 * 5316 * <pre> 5317 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5318 * </pre> 5319 * 5320 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5321 */ setWarnings(int index, com.google.cloud.compute.v1.Warnings value)5322 public Builder setWarnings(int index, com.google.cloud.compute.v1.Warnings value) { 5323 if (warningsBuilder_ == null) { 5324 if (value == null) { 5325 throw new NullPointerException(); 5326 } 5327 ensureWarningsIsMutable(); 5328 warnings_.set(index, value); 5329 onChanged(); 5330 } else { 5331 warningsBuilder_.setMessage(index, value); 5332 } 5333 return this; 5334 } 5335 /** 5336 * 5337 * 5338 * <pre> 5339 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5340 * </pre> 5341 * 5342 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5343 */ setWarnings( int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue)5344 public Builder setWarnings( 5345 int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue) { 5346 if (warningsBuilder_ == null) { 5347 ensureWarningsIsMutable(); 5348 warnings_.set(index, builderForValue.build()); 5349 onChanged(); 5350 } else { 5351 warningsBuilder_.setMessage(index, builderForValue.build()); 5352 } 5353 return this; 5354 } 5355 /** 5356 * 5357 * 5358 * <pre> 5359 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5360 * </pre> 5361 * 5362 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5363 */ addWarnings(com.google.cloud.compute.v1.Warnings value)5364 public Builder addWarnings(com.google.cloud.compute.v1.Warnings value) { 5365 if (warningsBuilder_ == null) { 5366 if (value == null) { 5367 throw new NullPointerException(); 5368 } 5369 ensureWarningsIsMutable(); 5370 warnings_.add(value); 5371 onChanged(); 5372 } else { 5373 warningsBuilder_.addMessage(value); 5374 } 5375 return this; 5376 } 5377 /** 5378 * 5379 * 5380 * <pre> 5381 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5382 * </pre> 5383 * 5384 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5385 */ addWarnings(int index, com.google.cloud.compute.v1.Warnings value)5386 public Builder addWarnings(int index, com.google.cloud.compute.v1.Warnings value) { 5387 if (warningsBuilder_ == null) { 5388 if (value == null) { 5389 throw new NullPointerException(); 5390 } 5391 ensureWarningsIsMutable(); 5392 warnings_.add(index, value); 5393 onChanged(); 5394 } else { 5395 warningsBuilder_.addMessage(index, value); 5396 } 5397 return this; 5398 } 5399 /** 5400 * 5401 * 5402 * <pre> 5403 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5404 * </pre> 5405 * 5406 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5407 */ addWarnings(com.google.cloud.compute.v1.Warnings.Builder builderForValue)5408 public Builder addWarnings(com.google.cloud.compute.v1.Warnings.Builder builderForValue) { 5409 if (warningsBuilder_ == null) { 5410 ensureWarningsIsMutable(); 5411 warnings_.add(builderForValue.build()); 5412 onChanged(); 5413 } else { 5414 warningsBuilder_.addMessage(builderForValue.build()); 5415 } 5416 return this; 5417 } 5418 /** 5419 * 5420 * 5421 * <pre> 5422 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5423 * </pre> 5424 * 5425 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5426 */ addWarnings( int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue)5427 public Builder addWarnings( 5428 int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue) { 5429 if (warningsBuilder_ == null) { 5430 ensureWarningsIsMutable(); 5431 warnings_.add(index, builderForValue.build()); 5432 onChanged(); 5433 } else { 5434 warningsBuilder_.addMessage(index, builderForValue.build()); 5435 } 5436 return this; 5437 } 5438 /** 5439 * 5440 * 5441 * <pre> 5442 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5443 * </pre> 5444 * 5445 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5446 */ addAllWarnings( java.lang.Iterable<? extends com.google.cloud.compute.v1.Warnings> values)5447 public Builder addAllWarnings( 5448 java.lang.Iterable<? extends com.google.cloud.compute.v1.Warnings> values) { 5449 if (warningsBuilder_ == null) { 5450 ensureWarningsIsMutable(); 5451 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); 5452 onChanged(); 5453 } else { 5454 warningsBuilder_.addAllMessages(values); 5455 } 5456 return this; 5457 } 5458 /** 5459 * 5460 * 5461 * <pre> 5462 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5463 * </pre> 5464 * 5465 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5466 */ clearWarnings()5467 public Builder clearWarnings() { 5468 if (warningsBuilder_ == null) { 5469 warnings_ = java.util.Collections.emptyList(); 5470 bitField0_ = (bitField0_ & ~0x00400000); 5471 onChanged(); 5472 } else { 5473 warningsBuilder_.clear(); 5474 } 5475 return this; 5476 } 5477 /** 5478 * 5479 * 5480 * <pre> 5481 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5482 * </pre> 5483 * 5484 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5485 */ removeWarnings(int index)5486 public Builder removeWarnings(int index) { 5487 if (warningsBuilder_ == null) { 5488 ensureWarningsIsMutable(); 5489 warnings_.remove(index); 5490 onChanged(); 5491 } else { 5492 warningsBuilder_.remove(index); 5493 } 5494 return this; 5495 } 5496 /** 5497 * 5498 * 5499 * <pre> 5500 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5501 * </pre> 5502 * 5503 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5504 */ getWarningsBuilder(int index)5505 public com.google.cloud.compute.v1.Warnings.Builder getWarningsBuilder(int index) { 5506 return getWarningsFieldBuilder().getBuilder(index); 5507 } 5508 /** 5509 * 5510 * 5511 * <pre> 5512 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5513 * </pre> 5514 * 5515 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5516 */ getWarningsOrBuilder(int index)5517 public com.google.cloud.compute.v1.WarningsOrBuilder getWarningsOrBuilder(int index) { 5518 if (warningsBuilder_ == null) { 5519 return warnings_.get(index); 5520 } else { 5521 return warningsBuilder_.getMessageOrBuilder(index); 5522 } 5523 } 5524 /** 5525 * 5526 * 5527 * <pre> 5528 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5529 * </pre> 5530 * 5531 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5532 */ 5533 public java.util.List<? extends com.google.cloud.compute.v1.WarningsOrBuilder> getWarningsOrBuilderList()5534 getWarningsOrBuilderList() { 5535 if (warningsBuilder_ != null) { 5536 return warningsBuilder_.getMessageOrBuilderList(); 5537 } else { 5538 return java.util.Collections.unmodifiableList(warnings_); 5539 } 5540 } 5541 /** 5542 * 5543 * 5544 * <pre> 5545 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5546 * </pre> 5547 * 5548 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5549 */ addWarningsBuilder()5550 public com.google.cloud.compute.v1.Warnings.Builder addWarningsBuilder() { 5551 return getWarningsFieldBuilder() 5552 .addBuilder(com.google.cloud.compute.v1.Warnings.getDefaultInstance()); 5553 } 5554 /** 5555 * 5556 * 5557 * <pre> 5558 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5559 * </pre> 5560 * 5561 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5562 */ addWarningsBuilder(int index)5563 public com.google.cloud.compute.v1.Warnings.Builder addWarningsBuilder(int index) { 5564 return getWarningsFieldBuilder() 5565 .addBuilder(index, com.google.cloud.compute.v1.Warnings.getDefaultInstance()); 5566 } 5567 /** 5568 * 5569 * 5570 * <pre> 5571 * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 5572 * </pre> 5573 * 5574 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 5575 */ getWarningsBuilderList()5576 public java.util.List<com.google.cloud.compute.v1.Warnings.Builder> getWarningsBuilderList() { 5577 return getWarningsFieldBuilder().getBuilderList(); 5578 } 5579 5580 private com.google.protobuf.RepeatedFieldBuilderV3< 5581 com.google.cloud.compute.v1.Warnings, 5582 com.google.cloud.compute.v1.Warnings.Builder, 5583 com.google.cloud.compute.v1.WarningsOrBuilder> getWarningsFieldBuilder()5584 getWarningsFieldBuilder() { 5585 if (warningsBuilder_ == null) { 5586 warningsBuilder_ = 5587 new com.google.protobuf.RepeatedFieldBuilderV3< 5588 com.google.cloud.compute.v1.Warnings, 5589 com.google.cloud.compute.v1.Warnings.Builder, 5590 com.google.cloud.compute.v1.WarningsOrBuilder>( 5591 warnings_, ((bitField0_ & 0x00400000) != 0), getParentForChildren(), isClean()); 5592 warnings_ = null; 5593 } 5594 return warningsBuilder_; 5595 } 5596 5597 private java.lang.Object zone_ = ""; 5598 /** 5599 * 5600 * 5601 * <pre> 5602 * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 5603 * </pre> 5604 * 5605 * <code>optional string zone = 3744684;</code> 5606 * 5607 * @return Whether the zone field is set. 5608 */ hasZone()5609 public boolean hasZone() { 5610 return ((bitField0_ & 0x00800000) != 0); 5611 } 5612 /** 5613 * 5614 * 5615 * <pre> 5616 * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 5617 * </pre> 5618 * 5619 * <code>optional string zone = 3744684;</code> 5620 * 5621 * @return The zone. 5622 */ getZone()5623 public java.lang.String getZone() { 5624 java.lang.Object ref = zone_; 5625 if (!(ref instanceof java.lang.String)) { 5626 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5627 java.lang.String s = bs.toStringUtf8(); 5628 zone_ = s; 5629 return s; 5630 } else { 5631 return (java.lang.String) ref; 5632 } 5633 } 5634 /** 5635 * 5636 * 5637 * <pre> 5638 * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 5639 * </pre> 5640 * 5641 * <code>optional string zone = 3744684;</code> 5642 * 5643 * @return The bytes for zone. 5644 */ getZoneBytes()5645 public com.google.protobuf.ByteString getZoneBytes() { 5646 java.lang.Object ref = zone_; 5647 if (ref instanceof String) { 5648 com.google.protobuf.ByteString b = 5649 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5650 zone_ = b; 5651 return b; 5652 } else { 5653 return (com.google.protobuf.ByteString) ref; 5654 } 5655 } 5656 /** 5657 * 5658 * 5659 * <pre> 5660 * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 5661 * </pre> 5662 * 5663 * <code>optional string zone = 3744684;</code> 5664 * 5665 * @param value The zone to set. 5666 * @return This builder for chaining. 5667 */ setZone(java.lang.String value)5668 public Builder setZone(java.lang.String value) { 5669 if (value == null) { 5670 throw new NullPointerException(); 5671 } 5672 zone_ = value; 5673 bitField0_ |= 0x00800000; 5674 onChanged(); 5675 return this; 5676 } 5677 /** 5678 * 5679 * 5680 * <pre> 5681 * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 5682 * </pre> 5683 * 5684 * <code>optional string zone = 3744684;</code> 5685 * 5686 * @return This builder for chaining. 5687 */ clearZone()5688 public Builder clearZone() { 5689 zone_ = getDefaultInstance().getZone(); 5690 bitField0_ = (bitField0_ & ~0x00800000); 5691 onChanged(); 5692 return this; 5693 } 5694 /** 5695 * 5696 * 5697 * <pre> 5698 * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 5699 * </pre> 5700 * 5701 * <code>optional string zone = 3744684;</code> 5702 * 5703 * @param value The bytes for zone to set. 5704 * @return This builder for chaining. 5705 */ setZoneBytes(com.google.protobuf.ByteString value)5706 public Builder setZoneBytes(com.google.protobuf.ByteString value) { 5707 if (value == null) { 5708 throw new NullPointerException(); 5709 } 5710 checkByteStringIsUtf8(value); 5711 zone_ = value; 5712 bitField0_ |= 0x00800000; 5713 onChanged(); 5714 return this; 5715 } 5716 5717 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)5718 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 5719 return super.setUnknownFields(unknownFields); 5720 } 5721 5722 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5723 public final Builder mergeUnknownFields( 5724 final com.google.protobuf.UnknownFieldSet unknownFields) { 5725 return super.mergeUnknownFields(unknownFields); 5726 } 5727 5728 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.Operation) 5729 } 5730 5731 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.Operation) 5732 private static final com.google.cloud.compute.v1.Operation DEFAULT_INSTANCE; 5733 5734 static { 5735 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.Operation(); 5736 } 5737 getDefaultInstance()5738 public static com.google.cloud.compute.v1.Operation getDefaultInstance() { 5739 return DEFAULT_INSTANCE; 5740 } 5741 5742 private static final com.google.protobuf.Parser<Operation> PARSER = 5743 new com.google.protobuf.AbstractParser<Operation>() { 5744 @java.lang.Override 5745 public Operation parsePartialFrom( 5746 com.google.protobuf.CodedInputStream input, 5747 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5748 throws com.google.protobuf.InvalidProtocolBufferException { 5749 Builder builder = newBuilder(); 5750 try { 5751 builder.mergeFrom(input, extensionRegistry); 5752 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5753 throw e.setUnfinishedMessage(builder.buildPartial()); 5754 } catch (com.google.protobuf.UninitializedMessageException e) { 5755 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 5756 } catch (java.io.IOException e) { 5757 throw new com.google.protobuf.InvalidProtocolBufferException(e) 5758 .setUnfinishedMessage(builder.buildPartial()); 5759 } 5760 return builder.buildPartial(); 5761 } 5762 }; 5763 parser()5764 public static com.google.protobuf.Parser<Operation> parser() { 5765 return PARSER; 5766 } 5767 5768 @java.lang.Override getParserForType()5769 public com.google.protobuf.Parser<Operation> getParserForType() { 5770 return PARSER; 5771 } 5772 5773 @java.lang.Override getDefaultInstanceForType()5774 public com.google.cloud.compute.v1.Operation getDefaultInstanceForType() { 5775 return DEFAULT_INSTANCE; 5776 } 5777 } 5778