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/gaming/v1/common.proto 18 19 package com.google.cloud.gaming.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Represents the metadata of the long-running operation. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.gaming.v1.OperationMetadata} 29 */ 30 public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1.OperationMetadata) 33 OperationMetadataOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use OperationMetadata.newBuilder() to construct. OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 OperationMetadata()40 private OperationMetadata() { 41 target_ = ""; 42 verb_ = ""; 43 statusMessage_ = ""; 44 apiVersion_ = ""; 45 unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new OperationMetadata(); 52 } 53 54 @java.lang.Override getUnknownFields()55 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 56 return this.unknownFields; 57 } 58 getDescriptor()59 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 60 return com.google.cloud.gaming.v1.Common 61 .internal_static_google_cloud_gaming_v1_OperationMetadata_descriptor; 62 } 63 64 @SuppressWarnings({"rawtypes"}) 65 @java.lang.Override internalGetMapField(int number)66 protected com.google.protobuf.MapField internalGetMapField(int number) { 67 switch (number) { 68 case 9: 69 return internalGetOperationStatus(); 70 default: 71 throw new RuntimeException("Invalid map field number: " + number); 72 } 73 } 74 75 @java.lang.Override 76 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()77 internalGetFieldAccessorTable() { 78 return com.google.cloud.gaming.v1.Common 79 .internal_static_google_cloud_gaming_v1_OperationMetadata_fieldAccessorTable 80 .ensureFieldAccessorsInitialized( 81 com.google.cloud.gaming.v1.OperationMetadata.class, 82 com.google.cloud.gaming.v1.OperationMetadata.Builder.class); 83 } 84 85 public static final int CREATE_TIME_FIELD_NUMBER = 1; 86 private com.google.protobuf.Timestamp createTime_; 87 /** 88 * 89 * 90 * <pre> 91 * Output only. The time the operation was created. 92 * </pre> 93 * 94 * <code>.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 95 * </code> 96 * 97 * @return Whether the createTime field is set. 98 */ 99 @java.lang.Override hasCreateTime()100 public boolean hasCreateTime() { 101 return createTime_ != null; 102 } 103 /** 104 * 105 * 106 * <pre> 107 * Output only. The time the operation was created. 108 * </pre> 109 * 110 * <code>.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 111 * </code> 112 * 113 * @return The createTime. 114 */ 115 @java.lang.Override getCreateTime()116 public com.google.protobuf.Timestamp getCreateTime() { 117 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 118 } 119 /** 120 * 121 * 122 * <pre> 123 * Output only. The time the operation was created. 124 * </pre> 125 * 126 * <code>.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 127 * </code> 128 */ 129 @java.lang.Override getCreateTimeOrBuilder()130 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 131 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 132 } 133 134 public static final int END_TIME_FIELD_NUMBER = 2; 135 private com.google.protobuf.Timestamp endTime_; 136 /** 137 * 138 * 139 * <pre> 140 * Output only. The time the operation finished running. 141 * </pre> 142 * 143 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 144 * </code> 145 * 146 * @return Whether the endTime field is set. 147 */ 148 @java.lang.Override hasEndTime()149 public boolean hasEndTime() { 150 return endTime_ != null; 151 } 152 /** 153 * 154 * 155 * <pre> 156 * Output only. The time the operation finished running. 157 * </pre> 158 * 159 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 160 * </code> 161 * 162 * @return The endTime. 163 */ 164 @java.lang.Override getEndTime()165 public com.google.protobuf.Timestamp getEndTime() { 166 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 167 } 168 /** 169 * 170 * 171 * <pre> 172 * Output only. The time the operation finished running. 173 * </pre> 174 * 175 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 176 * </code> 177 */ 178 @java.lang.Override getEndTimeOrBuilder()179 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 180 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 181 } 182 183 public static final int TARGET_FIELD_NUMBER = 3; 184 185 @SuppressWarnings("serial") 186 private volatile java.lang.Object target_ = ""; 187 /** 188 * 189 * 190 * <pre> 191 * Output only. Server-defined resource path for the target of the operation. 192 * </pre> 193 * 194 * <code>string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 195 * 196 * @return The target. 197 */ 198 @java.lang.Override getTarget()199 public java.lang.String getTarget() { 200 java.lang.Object ref = target_; 201 if (ref instanceof java.lang.String) { 202 return (java.lang.String) ref; 203 } else { 204 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 205 java.lang.String s = bs.toStringUtf8(); 206 target_ = s; 207 return s; 208 } 209 } 210 /** 211 * 212 * 213 * <pre> 214 * Output only. Server-defined resource path for the target of the operation. 215 * </pre> 216 * 217 * <code>string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 218 * 219 * @return The bytes for target. 220 */ 221 @java.lang.Override getTargetBytes()222 public com.google.protobuf.ByteString getTargetBytes() { 223 java.lang.Object ref = target_; 224 if (ref instanceof java.lang.String) { 225 com.google.protobuf.ByteString b = 226 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 227 target_ = b; 228 return b; 229 } else { 230 return (com.google.protobuf.ByteString) ref; 231 } 232 } 233 234 public static final int VERB_FIELD_NUMBER = 4; 235 236 @SuppressWarnings("serial") 237 private volatile java.lang.Object verb_ = ""; 238 /** 239 * 240 * 241 * <pre> 242 * Output only. Name of the verb executed by the operation. 243 * </pre> 244 * 245 * <code>string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 246 * 247 * @return The verb. 248 */ 249 @java.lang.Override getVerb()250 public java.lang.String getVerb() { 251 java.lang.Object ref = verb_; 252 if (ref instanceof java.lang.String) { 253 return (java.lang.String) ref; 254 } else { 255 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 256 java.lang.String s = bs.toStringUtf8(); 257 verb_ = s; 258 return s; 259 } 260 } 261 /** 262 * 263 * 264 * <pre> 265 * Output only. Name of the verb executed by the operation. 266 * </pre> 267 * 268 * <code>string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 269 * 270 * @return The bytes for verb. 271 */ 272 @java.lang.Override getVerbBytes()273 public com.google.protobuf.ByteString getVerbBytes() { 274 java.lang.Object ref = verb_; 275 if (ref instanceof java.lang.String) { 276 com.google.protobuf.ByteString b = 277 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 278 verb_ = b; 279 return b; 280 } else { 281 return (com.google.protobuf.ByteString) ref; 282 } 283 } 284 285 public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; 286 287 @SuppressWarnings("serial") 288 private volatile java.lang.Object statusMessage_ = ""; 289 /** 290 * 291 * 292 * <pre> 293 * Output only. Human-readable status of the operation, if any. 294 * </pre> 295 * 296 * <code>string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 297 * 298 * @return The statusMessage. 299 */ 300 @java.lang.Override getStatusMessage()301 public java.lang.String getStatusMessage() { 302 java.lang.Object ref = statusMessage_; 303 if (ref instanceof java.lang.String) { 304 return (java.lang.String) ref; 305 } else { 306 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 307 java.lang.String s = bs.toStringUtf8(); 308 statusMessage_ = s; 309 return s; 310 } 311 } 312 /** 313 * 314 * 315 * <pre> 316 * Output only. Human-readable status of the operation, if any. 317 * </pre> 318 * 319 * <code>string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 320 * 321 * @return The bytes for statusMessage. 322 */ 323 @java.lang.Override getStatusMessageBytes()324 public com.google.protobuf.ByteString getStatusMessageBytes() { 325 java.lang.Object ref = statusMessage_; 326 if (ref instanceof java.lang.String) { 327 com.google.protobuf.ByteString b = 328 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 329 statusMessage_ = b; 330 return b; 331 } else { 332 return (com.google.protobuf.ByteString) ref; 333 } 334 } 335 336 public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; 337 private boolean requestedCancellation_ = false; 338 /** 339 * 340 * 341 * <pre> 342 * Output only. Identifies whether the user has requested cancellation 343 * of the operation. Operations that have successfully been cancelled 344 * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, 345 * corresponding to `Code.CANCELLED`. 346 * </pre> 347 * 348 * <code>bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 349 * 350 * @return The requestedCancellation. 351 */ 352 @java.lang.Override getRequestedCancellation()353 public boolean getRequestedCancellation() { 354 return requestedCancellation_; 355 } 356 357 public static final int API_VERSION_FIELD_NUMBER = 7; 358 359 @SuppressWarnings("serial") 360 private volatile java.lang.Object apiVersion_ = ""; 361 /** 362 * 363 * 364 * <pre> 365 * Output only. API version used to start the operation. 366 * </pre> 367 * 368 * <code>string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 369 * 370 * @return The apiVersion. 371 */ 372 @java.lang.Override getApiVersion()373 public java.lang.String getApiVersion() { 374 java.lang.Object ref = apiVersion_; 375 if (ref instanceof java.lang.String) { 376 return (java.lang.String) ref; 377 } else { 378 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 379 java.lang.String s = bs.toStringUtf8(); 380 apiVersion_ = s; 381 return s; 382 } 383 } 384 /** 385 * 386 * 387 * <pre> 388 * Output only. API version used to start the operation. 389 * </pre> 390 * 391 * <code>string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 392 * 393 * @return The bytes for apiVersion. 394 */ 395 @java.lang.Override getApiVersionBytes()396 public com.google.protobuf.ByteString getApiVersionBytes() { 397 java.lang.Object ref = apiVersion_; 398 if (ref instanceof java.lang.String) { 399 com.google.protobuf.ByteString b = 400 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 401 apiVersion_ = b; 402 return b; 403 } else { 404 return (com.google.protobuf.ByteString) ref; 405 } 406 } 407 408 public static final int UNREACHABLE_FIELD_NUMBER = 8; 409 410 @SuppressWarnings("serial") 411 private com.google.protobuf.LazyStringList unreachable_; 412 /** 413 * 414 * 415 * <pre> 416 * Output only. List of Locations that could not be reached. 417 * </pre> 418 * 419 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 420 * 421 * @return A list containing the unreachable. 422 */ getUnreachableList()423 public com.google.protobuf.ProtocolStringList getUnreachableList() { 424 return unreachable_; 425 } 426 /** 427 * 428 * 429 * <pre> 430 * Output only. List of Locations that could not be reached. 431 * </pre> 432 * 433 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 434 * 435 * @return The count of unreachable. 436 */ getUnreachableCount()437 public int getUnreachableCount() { 438 return unreachable_.size(); 439 } 440 /** 441 * 442 * 443 * <pre> 444 * Output only. List of Locations that could not be reached. 445 * </pre> 446 * 447 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 448 * 449 * @param index The index of the element to return. 450 * @return The unreachable at the given index. 451 */ getUnreachable(int index)452 public java.lang.String getUnreachable(int index) { 453 return unreachable_.get(index); 454 } 455 /** 456 * 457 * 458 * <pre> 459 * Output only. List of Locations that could not be reached. 460 * </pre> 461 * 462 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 463 * 464 * @param index The index of the value to return. 465 * @return The bytes of the unreachable at the given index. 466 */ getUnreachableBytes(int index)467 public com.google.protobuf.ByteString getUnreachableBytes(int index) { 468 return unreachable_.getByteString(index); 469 } 470 471 public static final int OPERATION_STATUS_FIELD_NUMBER = 9; 472 473 private static final class OperationStatusDefaultEntryHolder { 474 static final com.google.protobuf.MapEntry< 475 java.lang.String, com.google.cloud.gaming.v1.OperationStatus> 476 defaultEntry = 477 com.google.protobuf.MapEntry 478 .<java.lang.String, com.google.cloud.gaming.v1.OperationStatus>newDefaultInstance( 479 com.google.cloud.gaming.v1.Common 480 .internal_static_google_cloud_gaming_v1_OperationMetadata_OperationStatusEntry_descriptor, 481 com.google.protobuf.WireFormat.FieldType.STRING, 482 "", 483 com.google.protobuf.WireFormat.FieldType.MESSAGE, 484 com.google.cloud.gaming.v1.OperationStatus.getDefaultInstance()); 485 } 486 487 @SuppressWarnings("serial") 488 private com.google.protobuf.MapField<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> 489 operationStatus_; 490 491 private com.google.protobuf.MapField<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> internalGetOperationStatus()492 internalGetOperationStatus() { 493 if (operationStatus_ == null) { 494 return com.google.protobuf.MapField.emptyMapField( 495 OperationStatusDefaultEntryHolder.defaultEntry); 496 } 497 return operationStatus_; 498 } 499 getOperationStatusCount()500 public int getOperationStatusCount() { 501 return internalGetOperationStatus().getMap().size(); 502 } 503 /** 504 * 505 * 506 * <pre> 507 * Output only. Operation status for Game Services API operations. Operation status is in 508 * the form of key-value pairs where keys are resource IDs and the values show 509 * the status of the operation. In case of failures, the value includes an 510 * error code and error message. 511 * </pre> 512 * 513 * <code> 514 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 515 * </code> 516 */ 517 @java.lang.Override containsOperationStatus(java.lang.String key)518 public boolean containsOperationStatus(java.lang.String key) { 519 if (key == null) { 520 throw new NullPointerException("map key"); 521 } 522 return internalGetOperationStatus().getMap().containsKey(key); 523 } 524 /** Use {@link #getOperationStatusMap()} instead. */ 525 @java.lang.Override 526 @java.lang.Deprecated 527 public java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> getOperationStatus()528 getOperationStatus() { 529 return getOperationStatusMap(); 530 } 531 /** 532 * 533 * 534 * <pre> 535 * Output only. Operation status for Game Services API operations. Operation status is in 536 * the form of key-value pairs where keys are resource IDs and the values show 537 * the status of the operation. In case of failures, the value includes an 538 * error code and error message. 539 * </pre> 540 * 541 * <code> 542 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 543 * </code> 544 */ 545 @java.lang.Override 546 public java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> getOperationStatusMap()547 getOperationStatusMap() { 548 return internalGetOperationStatus().getMap(); 549 } 550 /** 551 * 552 * 553 * <pre> 554 * Output only. Operation status for Game Services API operations. Operation status is in 555 * the form of key-value pairs where keys are resource IDs and the values show 556 * the status of the operation. In case of failures, the value includes an 557 * error code and error message. 558 * </pre> 559 * 560 * <code> 561 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 562 * </code> 563 */ 564 @java.lang.Override getOperationStatusOrDefault( java.lang.String key, com.google.cloud.gaming.v1.OperationStatus defaultValue)565 public /* nullable */ com.google.cloud.gaming.v1.OperationStatus getOperationStatusOrDefault( 566 java.lang.String key, 567 /* nullable */ 568 com.google.cloud.gaming.v1.OperationStatus defaultValue) { 569 if (key == null) { 570 throw new NullPointerException("map key"); 571 } 572 java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> map = 573 internalGetOperationStatus().getMap(); 574 return map.containsKey(key) ? map.get(key) : defaultValue; 575 } 576 /** 577 * 578 * 579 * <pre> 580 * Output only. Operation status for Game Services API operations. Operation status is in 581 * the form of key-value pairs where keys are resource IDs and the values show 582 * the status of the operation. In case of failures, the value includes an 583 * error code and error message. 584 * </pre> 585 * 586 * <code> 587 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 588 * </code> 589 */ 590 @java.lang.Override getOperationStatusOrThrow( java.lang.String key)591 public com.google.cloud.gaming.v1.OperationStatus getOperationStatusOrThrow( 592 java.lang.String key) { 593 if (key == null) { 594 throw new NullPointerException("map key"); 595 } 596 java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> map = 597 internalGetOperationStatus().getMap(); 598 if (!map.containsKey(key)) { 599 throw new java.lang.IllegalArgumentException(); 600 } 601 return map.get(key); 602 } 603 604 private byte memoizedIsInitialized = -1; 605 606 @java.lang.Override isInitialized()607 public final boolean isInitialized() { 608 byte isInitialized = memoizedIsInitialized; 609 if (isInitialized == 1) return true; 610 if (isInitialized == 0) return false; 611 612 memoizedIsInitialized = 1; 613 return true; 614 } 615 616 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)617 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 618 if (createTime_ != null) { 619 output.writeMessage(1, getCreateTime()); 620 } 621 if (endTime_ != null) { 622 output.writeMessage(2, getEndTime()); 623 } 624 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { 625 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); 626 } 627 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { 628 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); 629 } 630 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { 631 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); 632 } 633 if (requestedCancellation_ != false) { 634 output.writeBool(6, requestedCancellation_); 635 } 636 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { 637 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); 638 } 639 for (int i = 0; i < unreachable_.size(); i++) { 640 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, unreachable_.getRaw(i)); 641 } 642 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 643 output, internalGetOperationStatus(), OperationStatusDefaultEntryHolder.defaultEntry, 9); 644 getUnknownFields().writeTo(output); 645 } 646 647 @java.lang.Override getSerializedSize()648 public int getSerializedSize() { 649 int size = memoizedSize; 650 if (size != -1) return size; 651 652 size = 0; 653 if (createTime_ != null) { 654 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); 655 } 656 if (endTime_ != null) { 657 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); 658 } 659 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { 660 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); 661 } 662 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { 663 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); 664 } 665 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { 666 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); 667 } 668 if (requestedCancellation_ != false) { 669 size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); 670 } 671 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { 672 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); 673 } 674 { 675 int dataSize = 0; 676 for (int i = 0; i < unreachable_.size(); i++) { 677 dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); 678 } 679 size += dataSize; 680 size += 1 * getUnreachableList().size(); 681 } 682 for (java.util.Map.Entry<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> entry : 683 internalGetOperationStatus().getMap().entrySet()) { 684 com.google.protobuf.MapEntry<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> 685 operationStatus__ = 686 OperationStatusDefaultEntryHolder.defaultEntry 687 .newBuilderForType() 688 .setKey(entry.getKey()) 689 .setValue(entry.getValue()) 690 .build(); 691 size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, operationStatus__); 692 } 693 size += getUnknownFields().getSerializedSize(); 694 memoizedSize = size; 695 return size; 696 } 697 698 @java.lang.Override equals(final java.lang.Object obj)699 public boolean equals(final java.lang.Object obj) { 700 if (obj == this) { 701 return true; 702 } 703 if (!(obj instanceof com.google.cloud.gaming.v1.OperationMetadata)) { 704 return super.equals(obj); 705 } 706 com.google.cloud.gaming.v1.OperationMetadata other = 707 (com.google.cloud.gaming.v1.OperationMetadata) obj; 708 709 if (hasCreateTime() != other.hasCreateTime()) return false; 710 if (hasCreateTime()) { 711 if (!getCreateTime().equals(other.getCreateTime())) return false; 712 } 713 if (hasEndTime() != other.hasEndTime()) return false; 714 if (hasEndTime()) { 715 if (!getEndTime().equals(other.getEndTime())) return false; 716 } 717 if (!getTarget().equals(other.getTarget())) return false; 718 if (!getVerb().equals(other.getVerb())) return false; 719 if (!getStatusMessage().equals(other.getStatusMessage())) return false; 720 if (getRequestedCancellation() != other.getRequestedCancellation()) return false; 721 if (!getApiVersion().equals(other.getApiVersion())) return false; 722 if (!getUnreachableList().equals(other.getUnreachableList())) return false; 723 if (!internalGetOperationStatus().equals(other.internalGetOperationStatus())) return false; 724 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 725 return true; 726 } 727 728 @java.lang.Override hashCode()729 public int hashCode() { 730 if (memoizedHashCode != 0) { 731 return memoizedHashCode; 732 } 733 int hash = 41; 734 hash = (19 * hash) + getDescriptor().hashCode(); 735 if (hasCreateTime()) { 736 hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; 737 hash = (53 * hash) + getCreateTime().hashCode(); 738 } 739 if (hasEndTime()) { 740 hash = (37 * hash) + END_TIME_FIELD_NUMBER; 741 hash = (53 * hash) + getEndTime().hashCode(); 742 } 743 hash = (37 * hash) + TARGET_FIELD_NUMBER; 744 hash = (53 * hash) + getTarget().hashCode(); 745 hash = (37 * hash) + VERB_FIELD_NUMBER; 746 hash = (53 * hash) + getVerb().hashCode(); 747 hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; 748 hash = (53 * hash) + getStatusMessage().hashCode(); 749 hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; 750 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); 751 hash = (37 * hash) + API_VERSION_FIELD_NUMBER; 752 hash = (53 * hash) + getApiVersion().hashCode(); 753 if (getUnreachableCount() > 0) { 754 hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; 755 hash = (53 * hash) + getUnreachableList().hashCode(); 756 } 757 if (!internalGetOperationStatus().getMap().isEmpty()) { 758 hash = (37 * hash) + OPERATION_STATUS_FIELD_NUMBER; 759 hash = (53 * hash) + internalGetOperationStatus().hashCode(); 760 } 761 hash = (29 * hash) + getUnknownFields().hashCode(); 762 memoizedHashCode = hash; 763 return hash; 764 } 765 parseFrom(java.nio.ByteBuffer data)766 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) 767 throws com.google.protobuf.InvalidProtocolBufferException { 768 return PARSER.parseFrom(data); 769 } 770 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)771 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom( 772 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 773 throws com.google.protobuf.InvalidProtocolBufferException { 774 return PARSER.parseFrom(data, extensionRegistry); 775 } 776 parseFrom( com.google.protobuf.ByteString data)777 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom( 778 com.google.protobuf.ByteString data) 779 throws com.google.protobuf.InvalidProtocolBufferException { 780 return PARSER.parseFrom(data); 781 } 782 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)783 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom( 784 com.google.protobuf.ByteString data, 785 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 786 throws com.google.protobuf.InvalidProtocolBufferException { 787 return PARSER.parseFrom(data, extensionRegistry); 788 } 789 parseFrom(byte[] data)790 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom(byte[] data) 791 throws com.google.protobuf.InvalidProtocolBufferException { 792 return PARSER.parseFrom(data); 793 } 794 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)795 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom( 796 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 797 throws com.google.protobuf.InvalidProtocolBufferException { 798 return PARSER.parseFrom(data, extensionRegistry); 799 } 800 parseFrom(java.io.InputStream input)801 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom(java.io.InputStream input) 802 throws java.io.IOException { 803 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 804 } 805 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)806 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom( 807 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 808 throws java.io.IOException { 809 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 810 PARSER, input, extensionRegistry); 811 } 812 parseDelimitedFrom( java.io.InputStream input)813 public static com.google.cloud.gaming.v1.OperationMetadata parseDelimitedFrom( 814 java.io.InputStream input) throws java.io.IOException { 815 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 816 } 817 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)818 public static com.google.cloud.gaming.v1.OperationMetadata parseDelimitedFrom( 819 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 820 throws java.io.IOException { 821 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 822 PARSER, input, extensionRegistry); 823 } 824 parseFrom( com.google.protobuf.CodedInputStream input)825 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom( 826 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 827 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 828 } 829 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)830 public static com.google.cloud.gaming.v1.OperationMetadata parseFrom( 831 com.google.protobuf.CodedInputStream input, 832 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 833 throws java.io.IOException { 834 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 835 PARSER, input, extensionRegistry); 836 } 837 838 @java.lang.Override newBuilderForType()839 public Builder newBuilderForType() { 840 return newBuilder(); 841 } 842 newBuilder()843 public static Builder newBuilder() { 844 return DEFAULT_INSTANCE.toBuilder(); 845 } 846 newBuilder(com.google.cloud.gaming.v1.OperationMetadata prototype)847 public static Builder newBuilder(com.google.cloud.gaming.v1.OperationMetadata prototype) { 848 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 849 } 850 851 @java.lang.Override toBuilder()852 public Builder toBuilder() { 853 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 854 } 855 856 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)857 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 858 Builder builder = new Builder(parent); 859 return builder; 860 } 861 /** 862 * 863 * 864 * <pre> 865 * Represents the metadata of the long-running operation. 866 * </pre> 867 * 868 * Protobuf type {@code google.cloud.gaming.v1.OperationMetadata} 869 */ 870 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 871 implements 872 // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1.OperationMetadata) 873 com.google.cloud.gaming.v1.OperationMetadataOrBuilder { getDescriptor()874 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 875 return com.google.cloud.gaming.v1.Common 876 .internal_static_google_cloud_gaming_v1_OperationMetadata_descriptor; 877 } 878 879 @SuppressWarnings({"rawtypes"}) internalGetMapField(int number)880 protected com.google.protobuf.MapField internalGetMapField(int number) { 881 switch (number) { 882 case 9: 883 return internalGetOperationStatus(); 884 default: 885 throw new RuntimeException("Invalid map field number: " + number); 886 } 887 } 888 889 @SuppressWarnings({"rawtypes"}) internalGetMutableMapField(int number)890 protected com.google.protobuf.MapField internalGetMutableMapField(int number) { 891 switch (number) { 892 case 9: 893 return internalGetMutableOperationStatus(); 894 default: 895 throw new RuntimeException("Invalid map field number: " + number); 896 } 897 } 898 899 @java.lang.Override 900 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()901 internalGetFieldAccessorTable() { 902 return com.google.cloud.gaming.v1.Common 903 .internal_static_google_cloud_gaming_v1_OperationMetadata_fieldAccessorTable 904 .ensureFieldAccessorsInitialized( 905 com.google.cloud.gaming.v1.OperationMetadata.class, 906 com.google.cloud.gaming.v1.OperationMetadata.Builder.class); 907 } 908 909 // Construct using com.google.cloud.gaming.v1.OperationMetadata.newBuilder() Builder()910 private Builder() {} 911 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)912 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 913 super(parent); 914 } 915 916 @java.lang.Override clear()917 public Builder clear() { 918 super.clear(); 919 bitField0_ = 0; 920 createTime_ = null; 921 if (createTimeBuilder_ != null) { 922 createTimeBuilder_.dispose(); 923 createTimeBuilder_ = null; 924 } 925 endTime_ = null; 926 if (endTimeBuilder_ != null) { 927 endTimeBuilder_.dispose(); 928 endTimeBuilder_ = null; 929 } 930 target_ = ""; 931 verb_ = ""; 932 statusMessage_ = ""; 933 requestedCancellation_ = false; 934 apiVersion_ = ""; 935 unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; 936 bitField0_ = (bitField0_ & ~0x00000080); 937 internalGetMutableOperationStatus().clear(); 938 return this; 939 } 940 941 @java.lang.Override getDescriptorForType()942 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 943 return com.google.cloud.gaming.v1.Common 944 .internal_static_google_cloud_gaming_v1_OperationMetadata_descriptor; 945 } 946 947 @java.lang.Override getDefaultInstanceForType()948 public com.google.cloud.gaming.v1.OperationMetadata getDefaultInstanceForType() { 949 return com.google.cloud.gaming.v1.OperationMetadata.getDefaultInstance(); 950 } 951 952 @java.lang.Override build()953 public com.google.cloud.gaming.v1.OperationMetadata build() { 954 com.google.cloud.gaming.v1.OperationMetadata result = buildPartial(); 955 if (!result.isInitialized()) { 956 throw newUninitializedMessageException(result); 957 } 958 return result; 959 } 960 961 @java.lang.Override buildPartial()962 public com.google.cloud.gaming.v1.OperationMetadata buildPartial() { 963 com.google.cloud.gaming.v1.OperationMetadata result = 964 new com.google.cloud.gaming.v1.OperationMetadata(this); 965 buildPartialRepeatedFields(result); 966 if (bitField0_ != 0) { 967 buildPartial0(result); 968 } 969 onBuilt(); 970 return result; 971 } 972 buildPartialRepeatedFields(com.google.cloud.gaming.v1.OperationMetadata result)973 private void buildPartialRepeatedFields(com.google.cloud.gaming.v1.OperationMetadata result) { 974 if (((bitField0_ & 0x00000080) != 0)) { 975 unreachable_ = unreachable_.getUnmodifiableView(); 976 bitField0_ = (bitField0_ & ~0x00000080); 977 } 978 result.unreachable_ = unreachable_; 979 } 980 buildPartial0(com.google.cloud.gaming.v1.OperationMetadata result)981 private void buildPartial0(com.google.cloud.gaming.v1.OperationMetadata result) { 982 int from_bitField0_ = bitField0_; 983 if (((from_bitField0_ & 0x00000001) != 0)) { 984 result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); 985 } 986 if (((from_bitField0_ & 0x00000002) != 0)) { 987 result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); 988 } 989 if (((from_bitField0_ & 0x00000004) != 0)) { 990 result.target_ = target_; 991 } 992 if (((from_bitField0_ & 0x00000008) != 0)) { 993 result.verb_ = verb_; 994 } 995 if (((from_bitField0_ & 0x00000010) != 0)) { 996 result.statusMessage_ = statusMessage_; 997 } 998 if (((from_bitField0_ & 0x00000020) != 0)) { 999 result.requestedCancellation_ = requestedCancellation_; 1000 } 1001 if (((from_bitField0_ & 0x00000040) != 0)) { 1002 result.apiVersion_ = apiVersion_; 1003 } 1004 if (((from_bitField0_ & 0x00000100) != 0)) { 1005 result.operationStatus_ = internalGetOperationStatus(); 1006 result.operationStatus_.makeImmutable(); 1007 } 1008 } 1009 1010 @java.lang.Override clone()1011 public Builder clone() { 1012 return super.clone(); 1013 } 1014 1015 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1016 public Builder setField( 1017 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1018 return super.setField(field, value); 1019 } 1020 1021 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1022 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1023 return super.clearField(field); 1024 } 1025 1026 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1027 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1028 return super.clearOneof(oneof); 1029 } 1030 1031 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1032 public Builder setRepeatedField( 1033 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1034 return super.setRepeatedField(field, index, value); 1035 } 1036 1037 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1038 public Builder addRepeatedField( 1039 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1040 return super.addRepeatedField(field, value); 1041 } 1042 1043 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1044 public Builder mergeFrom(com.google.protobuf.Message other) { 1045 if (other instanceof com.google.cloud.gaming.v1.OperationMetadata) { 1046 return mergeFrom((com.google.cloud.gaming.v1.OperationMetadata) other); 1047 } else { 1048 super.mergeFrom(other); 1049 return this; 1050 } 1051 } 1052 mergeFrom(com.google.cloud.gaming.v1.OperationMetadata other)1053 public Builder mergeFrom(com.google.cloud.gaming.v1.OperationMetadata other) { 1054 if (other == com.google.cloud.gaming.v1.OperationMetadata.getDefaultInstance()) return this; 1055 if (other.hasCreateTime()) { 1056 mergeCreateTime(other.getCreateTime()); 1057 } 1058 if (other.hasEndTime()) { 1059 mergeEndTime(other.getEndTime()); 1060 } 1061 if (!other.getTarget().isEmpty()) { 1062 target_ = other.target_; 1063 bitField0_ |= 0x00000004; 1064 onChanged(); 1065 } 1066 if (!other.getVerb().isEmpty()) { 1067 verb_ = other.verb_; 1068 bitField0_ |= 0x00000008; 1069 onChanged(); 1070 } 1071 if (!other.getStatusMessage().isEmpty()) { 1072 statusMessage_ = other.statusMessage_; 1073 bitField0_ |= 0x00000010; 1074 onChanged(); 1075 } 1076 if (other.getRequestedCancellation() != false) { 1077 setRequestedCancellation(other.getRequestedCancellation()); 1078 } 1079 if (!other.getApiVersion().isEmpty()) { 1080 apiVersion_ = other.apiVersion_; 1081 bitField0_ |= 0x00000040; 1082 onChanged(); 1083 } 1084 if (!other.unreachable_.isEmpty()) { 1085 if (unreachable_.isEmpty()) { 1086 unreachable_ = other.unreachable_; 1087 bitField0_ = (bitField0_ & ~0x00000080); 1088 } else { 1089 ensureUnreachableIsMutable(); 1090 unreachable_.addAll(other.unreachable_); 1091 } 1092 onChanged(); 1093 } 1094 internalGetMutableOperationStatus().mergeFrom(other.internalGetOperationStatus()); 1095 bitField0_ |= 0x00000100; 1096 this.mergeUnknownFields(other.getUnknownFields()); 1097 onChanged(); 1098 return this; 1099 } 1100 1101 @java.lang.Override isInitialized()1102 public final boolean isInitialized() { 1103 return true; 1104 } 1105 1106 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1107 public Builder mergeFrom( 1108 com.google.protobuf.CodedInputStream input, 1109 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1110 throws java.io.IOException { 1111 if (extensionRegistry == null) { 1112 throw new java.lang.NullPointerException(); 1113 } 1114 try { 1115 boolean done = false; 1116 while (!done) { 1117 int tag = input.readTag(); 1118 switch (tag) { 1119 case 0: 1120 done = true; 1121 break; 1122 case 10: 1123 { 1124 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); 1125 bitField0_ |= 0x00000001; 1126 break; 1127 } // case 10 1128 case 18: 1129 { 1130 input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); 1131 bitField0_ |= 0x00000002; 1132 break; 1133 } // case 18 1134 case 26: 1135 { 1136 target_ = input.readStringRequireUtf8(); 1137 bitField0_ |= 0x00000004; 1138 break; 1139 } // case 26 1140 case 34: 1141 { 1142 verb_ = input.readStringRequireUtf8(); 1143 bitField0_ |= 0x00000008; 1144 break; 1145 } // case 34 1146 case 42: 1147 { 1148 statusMessage_ = input.readStringRequireUtf8(); 1149 bitField0_ |= 0x00000010; 1150 break; 1151 } // case 42 1152 case 48: 1153 { 1154 requestedCancellation_ = input.readBool(); 1155 bitField0_ |= 0x00000020; 1156 break; 1157 } // case 48 1158 case 58: 1159 { 1160 apiVersion_ = input.readStringRequireUtf8(); 1161 bitField0_ |= 0x00000040; 1162 break; 1163 } // case 58 1164 case 66: 1165 { 1166 java.lang.String s = input.readStringRequireUtf8(); 1167 ensureUnreachableIsMutable(); 1168 unreachable_.add(s); 1169 break; 1170 } // case 66 1171 case 74: 1172 { 1173 com.google.protobuf.MapEntry< 1174 java.lang.String, com.google.cloud.gaming.v1.OperationStatus> 1175 operationStatus__ = 1176 input.readMessage( 1177 OperationStatusDefaultEntryHolder.defaultEntry.getParserForType(), 1178 extensionRegistry); 1179 internalGetMutableOperationStatus() 1180 .getMutableMap() 1181 .put(operationStatus__.getKey(), operationStatus__.getValue()); 1182 bitField0_ |= 0x00000100; 1183 break; 1184 } // case 74 1185 default: 1186 { 1187 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1188 done = true; // was an endgroup tag 1189 } 1190 break; 1191 } // default: 1192 } // switch (tag) 1193 } // while (!done) 1194 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1195 throw e.unwrapIOException(); 1196 } finally { 1197 onChanged(); 1198 } // finally 1199 return this; 1200 } 1201 1202 private int bitField0_; 1203 1204 private com.google.protobuf.Timestamp createTime_; 1205 private com.google.protobuf.SingleFieldBuilderV3< 1206 com.google.protobuf.Timestamp, 1207 com.google.protobuf.Timestamp.Builder, 1208 com.google.protobuf.TimestampOrBuilder> 1209 createTimeBuilder_; 1210 /** 1211 * 1212 * 1213 * <pre> 1214 * Output only. The time the operation was created. 1215 * </pre> 1216 * 1217 * <code> 1218 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1219 * </code> 1220 * 1221 * @return Whether the createTime field is set. 1222 */ hasCreateTime()1223 public boolean hasCreateTime() { 1224 return ((bitField0_ & 0x00000001) != 0); 1225 } 1226 /** 1227 * 1228 * 1229 * <pre> 1230 * Output only. The time the operation was created. 1231 * </pre> 1232 * 1233 * <code> 1234 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1235 * </code> 1236 * 1237 * @return The createTime. 1238 */ getCreateTime()1239 public com.google.protobuf.Timestamp getCreateTime() { 1240 if (createTimeBuilder_ == null) { 1241 return createTime_ == null 1242 ? com.google.protobuf.Timestamp.getDefaultInstance() 1243 : createTime_; 1244 } else { 1245 return createTimeBuilder_.getMessage(); 1246 } 1247 } 1248 /** 1249 * 1250 * 1251 * <pre> 1252 * Output only. The time the operation was created. 1253 * </pre> 1254 * 1255 * <code> 1256 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1257 * </code> 1258 */ setCreateTime(com.google.protobuf.Timestamp value)1259 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 1260 if (createTimeBuilder_ == null) { 1261 if (value == null) { 1262 throw new NullPointerException(); 1263 } 1264 createTime_ = value; 1265 } else { 1266 createTimeBuilder_.setMessage(value); 1267 } 1268 bitField0_ |= 0x00000001; 1269 onChanged(); 1270 return this; 1271 } 1272 /** 1273 * 1274 * 1275 * <pre> 1276 * Output only. The time the operation was created. 1277 * </pre> 1278 * 1279 * <code> 1280 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1281 * </code> 1282 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)1283 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 1284 if (createTimeBuilder_ == null) { 1285 createTime_ = builderForValue.build(); 1286 } else { 1287 createTimeBuilder_.setMessage(builderForValue.build()); 1288 } 1289 bitField0_ |= 0x00000001; 1290 onChanged(); 1291 return this; 1292 } 1293 /** 1294 * 1295 * 1296 * <pre> 1297 * Output only. The time the operation was created. 1298 * </pre> 1299 * 1300 * <code> 1301 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1302 * </code> 1303 */ mergeCreateTime(com.google.protobuf.Timestamp value)1304 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 1305 if (createTimeBuilder_ == null) { 1306 if (((bitField0_ & 0x00000001) != 0) 1307 && createTime_ != null 1308 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1309 getCreateTimeBuilder().mergeFrom(value); 1310 } else { 1311 createTime_ = value; 1312 } 1313 } else { 1314 createTimeBuilder_.mergeFrom(value); 1315 } 1316 bitField0_ |= 0x00000001; 1317 onChanged(); 1318 return this; 1319 } 1320 /** 1321 * 1322 * 1323 * <pre> 1324 * Output only. The time the operation was created. 1325 * </pre> 1326 * 1327 * <code> 1328 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1329 * </code> 1330 */ clearCreateTime()1331 public Builder clearCreateTime() { 1332 bitField0_ = (bitField0_ & ~0x00000001); 1333 createTime_ = null; 1334 if (createTimeBuilder_ != null) { 1335 createTimeBuilder_.dispose(); 1336 createTimeBuilder_ = null; 1337 } 1338 onChanged(); 1339 return this; 1340 } 1341 /** 1342 * 1343 * 1344 * <pre> 1345 * Output only. The time the operation was created. 1346 * </pre> 1347 * 1348 * <code> 1349 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1350 * </code> 1351 */ getCreateTimeBuilder()1352 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 1353 bitField0_ |= 0x00000001; 1354 onChanged(); 1355 return getCreateTimeFieldBuilder().getBuilder(); 1356 } 1357 /** 1358 * 1359 * 1360 * <pre> 1361 * Output only. The time the operation was created. 1362 * </pre> 1363 * 1364 * <code> 1365 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1366 * </code> 1367 */ getCreateTimeOrBuilder()1368 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 1369 if (createTimeBuilder_ != null) { 1370 return createTimeBuilder_.getMessageOrBuilder(); 1371 } else { 1372 return createTime_ == null 1373 ? com.google.protobuf.Timestamp.getDefaultInstance() 1374 : createTime_; 1375 } 1376 } 1377 /** 1378 * 1379 * 1380 * <pre> 1381 * Output only. The time the operation was created. 1382 * </pre> 1383 * 1384 * <code> 1385 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1386 * </code> 1387 */ 1388 private com.google.protobuf.SingleFieldBuilderV3< 1389 com.google.protobuf.Timestamp, 1390 com.google.protobuf.Timestamp.Builder, 1391 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()1392 getCreateTimeFieldBuilder() { 1393 if (createTimeBuilder_ == null) { 1394 createTimeBuilder_ = 1395 new com.google.protobuf.SingleFieldBuilderV3< 1396 com.google.protobuf.Timestamp, 1397 com.google.protobuf.Timestamp.Builder, 1398 com.google.protobuf.TimestampOrBuilder>( 1399 getCreateTime(), getParentForChildren(), isClean()); 1400 createTime_ = null; 1401 } 1402 return createTimeBuilder_; 1403 } 1404 1405 private com.google.protobuf.Timestamp endTime_; 1406 private com.google.protobuf.SingleFieldBuilderV3< 1407 com.google.protobuf.Timestamp, 1408 com.google.protobuf.Timestamp.Builder, 1409 com.google.protobuf.TimestampOrBuilder> 1410 endTimeBuilder_; 1411 /** 1412 * 1413 * 1414 * <pre> 1415 * Output only. The time the operation finished running. 1416 * </pre> 1417 * 1418 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1419 * </code> 1420 * 1421 * @return Whether the endTime field is set. 1422 */ hasEndTime()1423 public boolean hasEndTime() { 1424 return ((bitField0_ & 0x00000002) != 0); 1425 } 1426 /** 1427 * 1428 * 1429 * <pre> 1430 * Output only. The time the operation finished running. 1431 * </pre> 1432 * 1433 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1434 * </code> 1435 * 1436 * @return The endTime. 1437 */ getEndTime()1438 public com.google.protobuf.Timestamp getEndTime() { 1439 if (endTimeBuilder_ == null) { 1440 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 1441 } else { 1442 return endTimeBuilder_.getMessage(); 1443 } 1444 } 1445 /** 1446 * 1447 * 1448 * <pre> 1449 * Output only. The time the operation finished running. 1450 * </pre> 1451 * 1452 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1453 * </code> 1454 */ setEndTime(com.google.protobuf.Timestamp value)1455 public Builder setEndTime(com.google.protobuf.Timestamp value) { 1456 if (endTimeBuilder_ == null) { 1457 if (value == null) { 1458 throw new NullPointerException(); 1459 } 1460 endTime_ = value; 1461 } else { 1462 endTimeBuilder_.setMessage(value); 1463 } 1464 bitField0_ |= 0x00000002; 1465 onChanged(); 1466 return this; 1467 } 1468 /** 1469 * 1470 * 1471 * <pre> 1472 * Output only. The time the operation finished running. 1473 * </pre> 1474 * 1475 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1476 * </code> 1477 */ setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)1478 public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { 1479 if (endTimeBuilder_ == null) { 1480 endTime_ = builderForValue.build(); 1481 } else { 1482 endTimeBuilder_.setMessage(builderForValue.build()); 1483 } 1484 bitField0_ |= 0x00000002; 1485 onChanged(); 1486 return this; 1487 } 1488 /** 1489 * 1490 * 1491 * <pre> 1492 * Output only. The time the operation finished running. 1493 * </pre> 1494 * 1495 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1496 * </code> 1497 */ mergeEndTime(com.google.protobuf.Timestamp value)1498 public Builder mergeEndTime(com.google.protobuf.Timestamp value) { 1499 if (endTimeBuilder_ == null) { 1500 if (((bitField0_ & 0x00000002) != 0) 1501 && endTime_ != null 1502 && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1503 getEndTimeBuilder().mergeFrom(value); 1504 } else { 1505 endTime_ = value; 1506 } 1507 } else { 1508 endTimeBuilder_.mergeFrom(value); 1509 } 1510 bitField0_ |= 0x00000002; 1511 onChanged(); 1512 return this; 1513 } 1514 /** 1515 * 1516 * 1517 * <pre> 1518 * Output only. The time the operation finished running. 1519 * </pre> 1520 * 1521 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1522 * </code> 1523 */ clearEndTime()1524 public Builder clearEndTime() { 1525 bitField0_ = (bitField0_ & ~0x00000002); 1526 endTime_ = null; 1527 if (endTimeBuilder_ != null) { 1528 endTimeBuilder_.dispose(); 1529 endTimeBuilder_ = null; 1530 } 1531 onChanged(); 1532 return this; 1533 } 1534 /** 1535 * 1536 * 1537 * <pre> 1538 * Output only. The time the operation finished running. 1539 * </pre> 1540 * 1541 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1542 * </code> 1543 */ getEndTimeBuilder()1544 public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { 1545 bitField0_ |= 0x00000002; 1546 onChanged(); 1547 return getEndTimeFieldBuilder().getBuilder(); 1548 } 1549 /** 1550 * 1551 * 1552 * <pre> 1553 * Output only. The time the operation finished running. 1554 * </pre> 1555 * 1556 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1557 * </code> 1558 */ getEndTimeOrBuilder()1559 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 1560 if (endTimeBuilder_ != null) { 1561 return endTimeBuilder_.getMessageOrBuilder(); 1562 } else { 1563 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 1564 } 1565 } 1566 /** 1567 * 1568 * 1569 * <pre> 1570 * Output only. The time the operation finished running. 1571 * </pre> 1572 * 1573 * <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1574 * </code> 1575 */ 1576 private com.google.protobuf.SingleFieldBuilderV3< 1577 com.google.protobuf.Timestamp, 1578 com.google.protobuf.Timestamp.Builder, 1579 com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder()1580 getEndTimeFieldBuilder() { 1581 if (endTimeBuilder_ == null) { 1582 endTimeBuilder_ = 1583 new com.google.protobuf.SingleFieldBuilderV3< 1584 com.google.protobuf.Timestamp, 1585 com.google.protobuf.Timestamp.Builder, 1586 com.google.protobuf.TimestampOrBuilder>( 1587 getEndTime(), getParentForChildren(), isClean()); 1588 endTime_ = null; 1589 } 1590 return endTimeBuilder_; 1591 } 1592 1593 private java.lang.Object target_ = ""; 1594 /** 1595 * 1596 * 1597 * <pre> 1598 * Output only. Server-defined resource path for the target of the operation. 1599 * </pre> 1600 * 1601 * <code>string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1602 * 1603 * @return The target. 1604 */ getTarget()1605 public java.lang.String getTarget() { 1606 java.lang.Object ref = target_; 1607 if (!(ref instanceof java.lang.String)) { 1608 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1609 java.lang.String s = bs.toStringUtf8(); 1610 target_ = s; 1611 return s; 1612 } else { 1613 return (java.lang.String) ref; 1614 } 1615 } 1616 /** 1617 * 1618 * 1619 * <pre> 1620 * Output only. Server-defined resource path for the target of the operation. 1621 * </pre> 1622 * 1623 * <code>string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1624 * 1625 * @return The bytes for target. 1626 */ getTargetBytes()1627 public com.google.protobuf.ByteString getTargetBytes() { 1628 java.lang.Object ref = target_; 1629 if (ref instanceof String) { 1630 com.google.protobuf.ByteString b = 1631 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1632 target_ = b; 1633 return b; 1634 } else { 1635 return (com.google.protobuf.ByteString) ref; 1636 } 1637 } 1638 /** 1639 * 1640 * 1641 * <pre> 1642 * Output only. Server-defined resource path for the target of the operation. 1643 * </pre> 1644 * 1645 * <code>string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1646 * 1647 * @param value The target to set. 1648 * @return This builder for chaining. 1649 */ setTarget(java.lang.String value)1650 public Builder setTarget(java.lang.String value) { 1651 if (value == null) { 1652 throw new NullPointerException(); 1653 } 1654 target_ = value; 1655 bitField0_ |= 0x00000004; 1656 onChanged(); 1657 return this; 1658 } 1659 /** 1660 * 1661 * 1662 * <pre> 1663 * Output only. Server-defined resource path for the target of the operation. 1664 * </pre> 1665 * 1666 * <code>string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1667 * 1668 * @return This builder for chaining. 1669 */ clearTarget()1670 public Builder clearTarget() { 1671 target_ = getDefaultInstance().getTarget(); 1672 bitField0_ = (bitField0_ & ~0x00000004); 1673 onChanged(); 1674 return this; 1675 } 1676 /** 1677 * 1678 * 1679 * <pre> 1680 * Output only. Server-defined resource path for the target of the operation. 1681 * </pre> 1682 * 1683 * <code>string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1684 * 1685 * @param value The bytes for target to set. 1686 * @return This builder for chaining. 1687 */ setTargetBytes(com.google.protobuf.ByteString value)1688 public Builder setTargetBytes(com.google.protobuf.ByteString value) { 1689 if (value == null) { 1690 throw new NullPointerException(); 1691 } 1692 checkByteStringIsUtf8(value); 1693 target_ = value; 1694 bitField0_ |= 0x00000004; 1695 onChanged(); 1696 return this; 1697 } 1698 1699 private java.lang.Object verb_ = ""; 1700 /** 1701 * 1702 * 1703 * <pre> 1704 * Output only. Name of the verb executed by the operation. 1705 * </pre> 1706 * 1707 * <code>string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1708 * 1709 * @return The verb. 1710 */ getVerb()1711 public java.lang.String getVerb() { 1712 java.lang.Object ref = verb_; 1713 if (!(ref instanceof java.lang.String)) { 1714 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1715 java.lang.String s = bs.toStringUtf8(); 1716 verb_ = s; 1717 return s; 1718 } else { 1719 return (java.lang.String) ref; 1720 } 1721 } 1722 /** 1723 * 1724 * 1725 * <pre> 1726 * Output only. Name of the verb executed by the operation. 1727 * </pre> 1728 * 1729 * <code>string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1730 * 1731 * @return The bytes for verb. 1732 */ getVerbBytes()1733 public com.google.protobuf.ByteString getVerbBytes() { 1734 java.lang.Object ref = verb_; 1735 if (ref instanceof String) { 1736 com.google.protobuf.ByteString b = 1737 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1738 verb_ = b; 1739 return b; 1740 } else { 1741 return (com.google.protobuf.ByteString) ref; 1742 } 1743 } 1744 /** 1745 * 1746 * 1747 * <pre> 1748 * Output only. Name of the verb executed by the operation. 1749 * </pre> 1750 * 1751 * <code>string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1752 * 1753 * @param value The verb to set. 1754 * @return This builder for chaining. 1755 */ setVerb(java.lang.String value)1756 public Builder setVerb(java.lang.String value) { 1757 if (value == null) { 1758 throw new NullPointerException(); 1759 } 1760 verb_ = value; 1761 bitField0_ |= 0x00000008; 1762 onChanged(); 1763 return this; 1764 } 1765 /** 1766 * 1767 * 1768 * <pre> 1769 * Output only. Name of the verb executed by the operation. 1770 * </pre> 1771 * 1772 * <code>string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1773 * 1774 * @return This builder for chaining. 1775 */ clearVerb()1776 public Builder clearVerb() { 1777 verb_ = getDefaultInstance().getVerb(); 1778 bitField0_ = (bitField0_ & ~0x00000008); 1779 onChanged(); 1780 return this; 1781 } 1782 /** 1783 * 1784 * 1785 * <pre> 1786 * Output only. Name of the verb executed by the operation. 1787 * </pre> 1788 * 1789 * <code>string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1790 * 1791 * @param value The bytes for verb to set. 1792 * @return This builder for chaining. 1793 */ setVerbBytes(com.google.protobuf.ByteString value)1794 public Builder setVerbBytes(com.google.protobuf.ByteString value) { 1795 if (value == null) { 1796 throw new NullPointerException(); 1797 } 1798 checkByteStringIsUtf8(value); 1799 verb_ = value; 1800 bitField0_ |= 0x00000008; 1801 onChanged(); 1802 return this; 1803 } 1804 1805 private java.lang.Object statusMessage_ = ""; 1806 /** 1807 * 1808 * 1809 * <pre> 1810 * Output only. Human-readable status of the operation, if any. 1811 * </pre> 1812 * 1813 * <code>string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1814 * 1815 * @return The statusMessage. 1816 */ getStatusMessage()1817 public java.lang.String getStatusMessage() { 1818 java.lang.Object ref = statusMessage_; 1819 if (!(ref instanceof java.lang.String)) { 1820 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1821 java.lang.String s = bs.toStringUtf8(); 1822 statusMessage_ = s; 1823 return s; 1824 } else { 1825 return (java.lang.String) ref; 1826 } 1827 } 1828 /** 1829 * 1830 * 1831 * <pre> 1832 * Output only. Human-readable status of the operation, if any. 1833 * </pre> 1834 * 1835 * <code>string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1836 * 1837 * @return The bytes for statusMessage. 1838 */ getStatusMessageBytes()1839 public com.google.protobuf.ByteString getStatusMessageBytes() { 1840 java.lang.Object ref = statusMessage_; 1841 if (ref instanceof String) { 1842 com.google.protobuf.ByteString b = 1843 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1844 statusMessage_ = b; 1845 return b; 1846 } else { 1847 return (com.google.protobuf.ByteString) ref; 1848 } 1849 } 1850 /** 1851 * 1852 * 1853 * <pre> 1854 * Output only. Human-readable status of the operation, if any. 1855 * </pre> 1856 * 1857 * <code>string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1858 * 1859 * @param value The statusMessage to set. 1860 * @return This builder for chaining. 1861 */ setStatusMessage(java.lang.String value)1862 public Builder setStatusMessage(java.lang.String value) { 1863 if (value == null) { 1864 throw new NullPointerException(); 1865 } 1866 statusMessage_ = value; 1867 bitField0_ |= 0x00000010; 1868 onChanged(); 1869 return this; 1870 } 1871 /** 1872 * 1873 * 1874 * <pre> 1875 * Output only. Human-readable status of the operation, if any. 1876 * </pre> 1877 * 1878 * <code>string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1879 * 1880 * @return This builder for chaining. 1881 */ clearStatusMessage()1882 public Builder clearStatusMessage() { 1883 statusMessage_ = getDefaultInstance().getStatusMessage(); 1884 bitField0_ = (bitField0_ & ~0x00000010); 1885 onChanged(); 1886 return this; 1887 } 1888 /** 1889 * 1890 * 1891 * <pre> 1892 * Output only. Human-readable status of the operation, if any. 1893 * </pre> 1894 * 1895 * <code>string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1896 * 1897 * @param value The bytes for statusMessage to set. 1898 * @return This builder for chaining. 1899 */ setStatusMessageBytes(com.google.protobuf.ByteString value)1900 public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { 1901 if (value == null) { 1902 throw new NullPointerException(); 1903 } 1904 checkByteStringIsUtf8(value); 1905 statusMessage_ = value; 1906 bitField0_ |= 0x00000010; 1907 onChanged(); 1908 return this; 1909 } 1910 1911 private boolean requestedCancellation_; 1912 /** 1913 * 1914 * 1915 * <pre> 1916 * Output only. Identifies whether the user has requested cancellation 1917 * of the operation. Operations that have successfully been cancelled 1918 * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, 1919 * corresponding to `Code.CANCELLED`. 1920 * </pre> 1921 * 1922 * <code>bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1923 * 1924 * @return The requestedCancellation. 1925 */ 1926 @java.lang.Override getRequestedCancellation()1927 public boolean getRequestedCancellation() { 1928 return requestedCancellation_; 1929 } 1930 /** 1931 * 1932 * 1933 * <pre> 1934 * Output only. Identifies whether the user has requested cancellation 1935 * of the operation. Operations that have successfully been cancelled 1936 * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, 1937 * corresponding to `Code.CANCELLED`. 1938 * </pre> 1939 * 1940 * <code>bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1941 * 1942 * @param value The requestedCancellation to set. 1943 * @return This builder for chaining. 1944 */ setRequestedCancellation(boolean value)1945 public Builder setRequestedCancellation(boolean value) { 1946 1947 requestedCancellation_ = value; 1948 bitField0_ |= 0x00000020; 1949 onChanged(); 1950 return this; 1951 } 1952 /** 1953 * 1954 * 1955 * <pre> 1956 * Output only. Identifies whether the user has requested cancellation 1957 * of the operation. Operations that have successfully been cancelled 1958 * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, 1959 * corresponding to `Code.CANCELLED`. 1960 * </pre> 1961 * 1962 * <code>bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1963 * 1964 * @return This builder for chaining. 1965 */ clearRequestedCancellation()1966 public Builder clearRequestedCancellation() { 1967 bitField0_ = (bitField0_ & ~0x00000020); 1968 requestedCancellation_ = false; 1969 onChanged(); 1970 return this; 1971 } 1972 1973 private java.lang.Object apiVersion_ = ""; 1974 /** 1975 * 1976 * 1977 * <pre> 1978 * Output only. API version used to start the operation. 1979 * </pre> 1980 * 1981 * <code>string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1982 * 1983 * @return The apiVersion. 1984 */ getApiVersion()1985 public java.lang.String getApiVersion() { 1986 java.lang.Object ref = apiVersion_; 1987 if (!(ref instanceof java.lang.String)) { 1988 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1989 java.lang.String s = bs.toStringUtf8(); 1990 apiVersion_ = s; 1991 return s; 1992 } else { 1993 return (java.lang.String) ref; 1994 } 1995 } 1996 /** 1997 * 1998 * 1999 * <pre> 2000 * Output only. API version used to start the operation. 2001 * </pre> 2002 * 2003 * <code>string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2004 * 2005 * @return The bytes for apiVersion. 2006 */ getApiVersionBytes()2007 public com.google.protobuf.ByteString getApiVersionBytes() { 2008 java.lang.Object ref = apiVersion_; 2009 if (ref instanceof String) { 2010 com.google.protobuf.ByteString b = 2011 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2012 apiVersion_ = b; 2013 return b; 2014 } else { 2015 return (com.google.protobuf.ByteString) ref; 2016 } 2017 } 2018 /** 2019 * 2020 * 2021 * <pre> 2022 * Output only. API version used to start the operation. 2023 * </pre> 2024 * 2025 * <code>string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2026 * 2027 * @param value The apiVersion to set. 2028 * @return This builder for chaining. 2029 */ setApiVersion(java.lang.String value)2030 public Builder setApiVersion(java.lang.String value) { 2031 if (value == null) { 2032 throw new NullPointerException(); 2033 } 2034 apiVersion_ = value; 2035 bitField0_ |= 0x00000040; 2036 onChanged(); 2037 return this; 2038 } 2039 /** 2040 * 2041 * 2042 * <pre> 2043 * Output only. API version used to start the operation. 2044 * </pre> 2045 * 2046 * <code>string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2047 * 2048 * @return This builder for chaining. 2049 */ clearApiVersion()2050 public Builder clearApiVersion() { 2051 apiVersion_ = getDefaultInstance().getApiVersion(); 2052 bitField0_ = (bitField0_ & ~0x00000040); 2053 onChanged(); 2054 return this; 2055 } 2056 /** 2057 * 2058 * 2059 * <pre> 2060 * Output only. API version used to start the operation. 2061 * </pre> 2062 * 2063 * <code>string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2064 * 2065 * @param value The bytes for apiVersion to set. 2066 * @return This builder for chaining. 2067 */ setApiVersionBytes(com.google.protobuf.ByteString value)2068 public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { 2069 if (value == null) { 2070 throw new NullPointerException(); 2071 } 2072 checkByteStringIsUtf8(value); 2073 apiVersion_ = value; 2074 bitField0_ |= 0x00000040; 2075 onChanged(); 2076 return this; 2077 } 2078 2079 private com.google.protobuf.LazyStringList unreachable_ = 2080 com.google.protobuf.LazyStringArrayList.EMPTY; 2081 ensureUnreachableIsMutable()2082 private void ensureUnreachableIsMutable() { 2083 if (!((bitField0_ & 0x00000080) != 0)) { 2084 unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); 2085 bitField0_ |= 0x00000080; 2086 } 2087 } 2088 /** 2089 * 2090 * 2091 * <pre> 2092 * Output only. List of Locations that could not be reached. 2093 * </pre> 2094 * 2095 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2096 * 2097 * @return A list containing the unreachable. 2098 */ getUnreachableList()2099 public com.google.protobuf.ProtocolStringList getUnreachableList() { 2100 return unreachable_.getUnmodifiableView(); 2101 } 2102 /** 2103 * 2104 * 2105 * <pre> 2106 * Output only. List of Locations that could not be reached. 2107 * </pre> 2108 * 2109 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2110 * 2111 * @return The count of unreachable. 2112 */ getUnreachableCount()2113 public int getUnreachableCount() { 2114 return unreachable_.size(); 2115 } 2116 /** 2117 * 2118 * 2119 * <pre> 2120 * Output only. List of Locations that could not be reached. 2121 * </pre> 2122 * 2123 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2124 * 2125 * @param index The index of the element to return. 2126 * @return The unreachable at the given index. 2127 */ getUnreachable(int index)2128 public java.lang.String getUnreachable(int index) { 2129 return unreachable_.get(index); 2130 } 2131 /** 2132 * 2133 * 2134 * <pre> 2135 * Output only. List of Locations that could not be reached. 2136 * </pre> 2137 * 2138 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2139 * 2140 * @param index The index of the value to return. 2141 * @return The bytes of the unreachable at the given index. 2142 */ getUnreachableBytes(int index)2143 public com.google.protobuf.ByteString getUnreachableBytes(int index) { 2144 return unreachable_.getByteString(index); 2145 } 2146 /** 2147 * 2148 * 2149 * <pre> 2150 * Output only. List of Locations that could not be reached. 2151 * </pre> 2152 * 2153 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2154 * 2155 * @param index The index to set the value at. 2156 * @param value The unreachable to set. 2157 * @return This builder for chaining. 2158 */ setUnreachable(int index, java.lang.String value)2159 public Builder setUnreachable(int index, java.lang.String value) { 2160 if (value == null) { 2161 throw new NullPointerException(); 2162 } 2163 ensureUnreachableIsMutable(); 2164 unreachable_.set(index, value); 2165 onChanged(); 2166 return this; 2167 } 2168 /** 2169 * 2170 * 2171 * <pre> 2172 * Output only. List of Locations that could not be reached. 2173 * </pre> 2174 * 2175 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2176 * 2177 * @param value The unreachable to add. 2178 * @return This builder for chaining. 2179 */ addUnreachable(java.lang.String value)2180 public Builder addUnreachable(java.lang.String value) { 2181 if (value == null) { 2182 throw new NullPointerException(); 2183 } 2184 ensureUnreachableIsMutable(); 2185 unreachable_.add(value); 2186 onChanged(); 2187 return this; 2188 } 2189 /** 2190 * 2191 * 2192 * <pre> 2193 * Output only. List of Locations that could not be reached. 2194 * </pre> 2195 * 2196 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2197 * 2198 * @param values The unreachable to add. 2199 * @return This builder for chaining. 2200 */ addAllUnreachable(java.lang.Iterable<java.lang.String> values)2201 public Builder addAllUnreachable(java.lang.Iterable<java.lang.String> values) { 2202 ensureUnreachableIsMutable(); 2203 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); 2204 onChanged(); 2205 return this; 2206 } 2207 /** 2208 * 2209 * 2210 * <pre> 2211 * Output only. List of Locations that could not be reached. 2212 * </pre> 2213 * 2214 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2215 * 2216 * @return This builder for chaining. 2217 */ clearUnreachable()2218 public Builder clearUnreachable() { 2219 unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2220 bitField0_ = (bitField0_ & ~0x00000080); 2221 onChanged(); 2222 return this; 2223 } 2224 /** 2225 * 2226 * 2227 * <pre> 2228 * Output only. List of Locations that could not be reached. 2229 * </pre> 2230 * 2231 * <code>repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2232 * 2233 * @param value The bytes of the unreachable to add. 2234 * @return This builder for chaining. 2235 */ addUnreachableBytes(com.google.protobuf.ByteString value)2236 public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { 2237 if (value == null) { 2238 throw new NullPointerException(); 2239 } 2240 checkByteStringIsUtf8(value); 2241 ensureUnreachableIsMutable(); 2242 unreachable_.add(value); 2243 onChanged(); 2244 return this; 2245 } 2246 2247 private com.google.protobuf.MapField< 2248 java.lang.String, com.google.cloud.gaming.v1.OperationStatus> 2249 operationStatus_; 2250 2251 private com.google.protobuf.MapField< 2252 java.lang.String, com.google.cloud.gaming.v1.OperationStatus> internalGetOperationStatus()2253 internalGetOperationStatus() { 2254 if (operationStatus_ == null) { 2255 return com.google.protobuf.MapField.emptyMapField( 2256 OperationStatusDefaultEntryHolder.defaultEntry); 2257 } 2258 return operationStatus_; 2259 } 2260 2261 private com.google.protobuf.MapField< 2262 java.lang.String, com.google.cloud.gaming.v1.OperationStatus> internalGetMutableOperationStatus()2263 internalGetMutableOperationStatus() { 2264 if (operationStatus_ == null) { 2265 operationStatus_ = 2266 com.google.protobuf.MapField.newMapField( 2267 OperationStatusDefaultEntryHolder.defaultEntry); 2268 } 2269 if (!operationStatus_.isMutable()) { 2270 operationStatus_ = operationStatus_.copy(); 2271 } 2272 bitField0_ |= 0x00000100; 2273 onChanged(); 2274 return operationStatus_; 2275 } 2276 getOperationStatusCount()2277 public int getOperationStatusCount() { 2278 return internalGetOperationStatus().getMap().size(); 2279 } 2280 /** 2281 * 2282 * 2283 * <pre> 2284 * Output only. Operation status for Game Services API operations. Operation status is in 2285 * the form of key-value pairs where keys are resource IDs and the values show 2286 * the status of the operation. In case of failures, the value includes an 2287 * error code and error message. 2288 * </pre> 2289 * 2290 * <code> 2291 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2292 * </code> 2293 */ 2294 @java.lang.Override containsOperationStatus(java.lang.String key)2295 public boolean containsOperationStatus(java.lang.String key) { 2296 if (key == null) { 2297 throw new NullPointerException("map key"); 2298 } 2299 return internalGetOperationStatus().getMap().containsKey(key); 2300 } 2301 /** Use {@link #getOperationStatusMap()} instead. */ 2302 @java.lang.Override 2303 @java.lang.Deprecated 2304 public java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> getOperationStatus()2305 getOperationStatus() { 2306 return getOperationStatusMap(); 2307 } 2308 /** 2309 * 2310 * 2311 * <pre> 2312 * Output only. Operation status for Game Services API operations. Operation status is in 2313 * the form of key-value pairs where keys are resource IDs and the values show 2314 * the status of the operation. In case of failures, the value includes an 2315 * error code and error message. 2316 * </pre> 2317 * 2318 * <code> 2319 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2320 * </code> 2321 */ 2322 @java.lang.Override 2323 public java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> getOperationStatusMap()2324 getOperationStatusMap() { 2325 return internalGetOperationStatus().getMap(); 2326 } 2327 /** 2328 * 2329 * 2330 * <pre> 2331 * Output only. Operation status for Game Services API operations. Operation status is in 2332 * the form of key-value pairs where keys are resource IDs and the values show 2333 * the status of the operation. In case of failures, the value includes an 2334 * error code and error message. 2335 * </pre> 2336 * 2337 * <code> 2338 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2339 * </code> 2340 */ 2341 @java.lang.Override getOperationStatusOrDefault( java.lang.String key, com.google.cloud.gaming.v1.OperationStatus defaultValue)2342 public /* nullable */ com.google.cloud.gaming.v1.OperationStatus getOperationStatusOrDefault( 2343 java.lang.String key, 2344 /* nullable */ 2345 com.google.cloud.gaming.v1.OperationStatus defaultValue) { 2346 if (key == null) { 2347 throw new NullPointerException("map key"); 2348 } 2349 java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> map = 2350 internalGetOperationStatus().getMap(); 2351 return map.containsKey(key) ? map.get(key) : defaultValue; 2352 } 2353 /** 2354 * 2355 * 2356 * <pre> 2357 * Output only. Operation status for Game Services API operations. Operation status is in 2358 * the form of key-value pairs where keys are resource IDs and the values show 2359 * the status of the operation. In case of failures, the value includes an 2360 * error code and error message. 2361 * </pre> 2362 * 2363 * <code> 2364 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2365 * </code> 2366 */ 2367 @java.lang.Override getOperationStatusOrThrow( java.lang.String key)2368 public com.google.cloud.gaming.v1.OperationStatus getOperationStatusOrThrow( 2369 java.lang.String key) { 2370 if (key == null) { 2371 throw new NullPointerException("map key"); 2372 } 2373 java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> map = 2374 internalGetOperationStatus().getMap(); 2375 if (!map.containsKey(key)) { 2376 throw new java.lang.IllegalArgumentException(); 2377 } 2378 return map.get(key); 2379 } 2380 clearOperationStatus()2381 public Builder clearOperationStatus() { 2382 bitField0_ = (bitField0_ & ~0x00000100); 2383 internalGetMutableOperationStatus().getMutableMap().clear(); 2384 return this; 2385 } 2386 /** 2387 * 2388 * 2389 * <pre> 2390 * Output only. Operation status for Game Services API operations. Operation status is in 2391 * the form of key-value pairs where keys are resource IDs and the values show 2392 * the status of the operation. In case of failures, the value includes an 2393 * error code and error message. 2394 * </pre> 2395 * 2396 * <code> 2397 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2398 * </code> 2399 */ removeOperationStatus(java.lang.String key)2400 public Builder removeOperationStatus(java.lang.String key) { 2401 if (key == null) { 2402 throw new NullPointerException("map key"); 2403 } 2404 internalGetMutableOperationStatus().getMutableMap().remove(key); 2405 return this; 2406 } 2407 /** Use alternate mutation accessors instead. */ 2408 @java.lang.Deprecated 2409 public java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> getMutableOperationStatus()2410 getMutableOperationStatus() { 2411 bitField0_ |= 0x00000100; 2412 return internalGetMutableOperationStatus().getMutableMap(); 2413 } 2414 /** 2415 * 2416 * 2417 * <pre> 2418 * Output only. Operation status for Game Services API operations. Operation status is in 2419 * the form of key-value pairs where keys are resource IDs and the values show 2420 * the status of the operation. In case of failures, the value includes an 2421 * error code and error message. 2422 * </pre> 2423 * 2424 * <code> 2425 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2426 * </code> 2427 */ putOperationStatus( java.lang.String key, com.google.cloud.gaming.v1.OperationStatus value)2428 public Builder putOperationStatus( 2429 java.lang.String key, com.google.cloud.gaming.v1.OperationStatus value) { 2430 if (key == null) { 2431 throw new NullPointerException("map key"); 2432 } 2433 if (value == null) { 2434 throw new NullPointerException("map value"); 2435 } 2436 internalGetMutableOperationStatus().getMutableMap().put(key, value); 2437 bitField0_ |= 0x00000100; 2438 return this; 2439 } 2440 /** 2441 * 2442 * 2443 * <pre> 2444 * Output only. Operation status for Game Services API operations. Operation status is in 2445 * the form of key-value pairs where keys are resource IDs and the values show 2446 * the status of the operation. In case of failures, the value includes an 2447 * error code and error message. 2448 * </pre> 2449 * 2450 * <code> 2451 * map<string, .google.cloud.gaming.v1.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2452 * </code> 2453 */ putAllOperationStatus( java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> values)2454 public Builder putAllOperationStatus( 2455 java.util.Map<java.lang.String, com.google.cloud.gaming.v1.OperationStatus> values) { 2456 internalGetMutableOperationStatus().getMutableMap().putAll(values); 2457 bitField0_ |= 0x00000100; 2458 return this; 2459 } 2460 2461 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2462 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2463 return super.setUnknownFields(unknownFields); 2464 } 2465 2466 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2467 public final Builder mergeUnknownFields( 2468 final com.google.protobuf.UnknownFieldSet unknownFields) { 2469 return super.mergeUnknownFields(unknownFields); 2470 } 2471 2472 // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1.OperationMetadata) 2473 } 2474 2475 // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1.OperationMetadata) 2476 private static final com.google.cloud.gaming.v1.OperationMetadata DEFAULT_INSTANCE; 2477 2478 static { 2479 DEFAULT_INSTANCE = new com.google.cloud.gaming.v1.OperationMetadata(); 2480 } 2481 getDefaultInstance()2482 public static com.google.cloud.gaming.v1.OperationMetadata getDefaultInstance() { 2483 return DEFAULT_INSTANCE; 2484 } 2485 2486 private static final com.google.protobuf.Parser<OperationMetadata> PARSER = 2487 new com.google.protobuf.AbstractParser<OperationMetadata>() { 2488 @java.lang.Override 2489 public OperationMetadata parsePartialFrom( 2490 com.google.protobuf.CodedInputStream input, 2491 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2492 throws com.google.protobuf.InvalidProtocolBufferException { 2493 Builder builder = newBuilder(); 2494 try { 2495 builder.mergeFrom(input, extensionRegistry); 2496 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2497 throw e.setUnfinishedMessage(builder.buildPartial()); 2498 } catch (com.google.protobuf.UninitializedMessageException e) { 2499 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2500 } catch (java.io.IOException e) { 2501 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2502 .setUnfinishedMessage(builder.buildPartial()); 2503 } 2504 return builder.buildPartial(); 2505 } 2506 }; 2507 parser()2508 public static com.google.protobuf.Parser<OperationMetadata> parser() { 2509 return PARSER; 2510 } 2511 2512 @java.lang.Override getParserForType()2513 public com.google.protobuf.Parser<OperationMetadata> getParserForType() { 2514 return PARSER; 2515 } 2516 2517 @java.lang.Override getDefaultInstanceForType()2518 public com.google.cloud.gaming.v1.OperationMetadata getDefaultInstanceForType() { 2519 return DEFAULT_INSTANCE; 2520 } 2521 } 2522