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/tasks/v2beta2/task.proto 18 19 package com.google.cloud.tasks.v2beta2; 20 21 /** 22 * 23 * 24 * <pre> 25 * Status of the task. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.tasks.v2beta2.TaskStatus} 29 */ 30 public final class TaskStatus extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.TaskStatus) 33 TaskStatusOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use TaskStatus.newBuilder() to construct. TaskStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private TaskStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 TaskStatus()40 private TaskStatus() {} 41 42 @java.lang.Override 43 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)44 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 45 return new TaskStatus(); 46 } 47 48 @java.lang.Override getUnknownFields()49 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 50 return this.unknownFields; 51 } 52 getDescriptor()53 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 54 return com.google.cloud.tasks.v2beta2.TaskProto 55 .internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor; 56 } 57 58 @java.lang.Override 59 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()60 internalGetFieldAccessorTable() { 61 return com.google.cloud.tasks.v2beta2.TaskProto 62 .internal_static_google_cloud_tasks_v2beta2_TaskStatus_fieldAccessorTable 63 .ensureFieldAccessorsInitialized( 64 com.google.cloud.tasks.v2beta2.TaskStatus.class, 65 com.google.cloud.tasks.v2beta2.TaskStatus.Builder.class); 66 } 67 68 public static final int ATTEMPT_DISPATCH_COUNT_FIELD_NUMBER = 1; 69 private int attemptDispatchCount_ = 0; 70 /** 71 * 72 * 73 * <pre> 74 * Output only. The number of attempts dispatched. 75 * This count includes attempts which have been dispatched but haven't 76 * received a response. 77 * </pre> 78 * 79 * <code>int32 attempt_dispatch_count = 1;</code> 80 * 81 * @return The attemptDispatchCount. 82 */ 83 @java.lang.Override getAttemptDispatchCount()84 public int getAttemptDispatchCount() { 85 return attemptDispatchCount_; 86 } 87 88 public static final int ATTEMPT_RESPONSE_COUNT_FIELD_NUMBER = 2; 89 private int attemptResponseCount_ = 0; 90 /** 91 * 92 * 93 * <pre> 94 * Output only. The number of attempts which have received a response. 95 * This field is not calculated for [pull 96 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 97 * </pre> 98 * 99 * <code>int32 attempt_response_count = 2;</code> 100 * 101 * @return The attemptResponseCount. 102 */ 103 @java.lang.Override getAttemptResponseCount()104 public int getAttemptResponseCount() { 105 return attemptResponseCount_; 106 } 107 108 public static final int FIRST_ATTEMPT_STATUS_FIELD_NUMBER = 3; 109 private com.google.cloud.tasks.v2beta2.AttemptStatus firstAttemptStatus_; 110 /** 111 * 112 * 113 * <pre> 114 * Output only. The status of the task's first attempt. 115 * Only 116 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 117 * will be set. The other 118 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 119 * not retained by Cloud Tasks. 120 * This field is not calculated for [pull 121 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 122 * </pre> 123 * 124 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 125 * 126 * @return Whether the firstAttemptStatus field is set. 127 */ 128 @java.lang.Override hasFirstAttemptStatus()129 public boolean hasFirstAttemptStatus() { 130 return firstAttemptStatus_ != null; 131 } 132 /** 133 * 134 * 135 * <pre> 136 * Output only. The status of the task's first attempt. 137 * Only 138 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 139 * will be set. The other 140 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 141 * not retained by Cloud Tasks. 142 * This field is not calculated for [pull 143 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 144 * </pre> 145 * 146 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 147 * 148 * @return The firstAttemptStatus. 149 */ 150 @java.lang.Override getFirstAttemptStatus()151 public com.google.cloud.tasks.v2beta2.AttemptStatus getFirstAttemptStatus() { 152 return firstAttemptStatus_ == null 153 ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() 154 : firstAttemptStatus_; 155 } 156 /** 157 * 158 * 159 * <pre> 160 * Output only. The status of the task's first attempt. 161 * Only 162 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 163 * will be set. The other 164 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 165 * not retained by Cloud Tasks. 166 * This field is not calculated for [pull 167 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 168 * </pre> 169 * 170 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 171 */ 172 @java.lang.Override getFirstAttemptStatusOrBuilder()173 public com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getFirstAttemptStatusOrBuilder() { 174 return firstAttemptStatus_ == null 175 ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() 176 : firstAttemptStatus_; 177 } 178 179 public static final int LAST_ATTEMPT_STATUS_FIELD_NUMBER = 4; 180 private com.google.cloud.tasks.v2beta2.AttemptStatus lastAttemptStatus_; 181 /** 182 * 183 * 184 * <pre> 185 * Output only. The status of the task's last attempt. 186 * This field is not calculated for [pull 187 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 188 * </pre> 189 * 190 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 191 * 192 * @return Whether the lastAttemptStatus field is set. 193 */ 194 @java.lang.Override hasLastAttemptStatus()195 public boolean hasLastAttemptStatus() { 196 return lastAttemptStatus_ != null; 197 } 198 /** 199 * 200 * 201 * <pre> 202 * Output only. The status of the task's last attempt. 203 * This field is not calculated for [pull 204 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 205 * </pre> 206 * 207 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 208 * 209 * @return The lastAttemptStatus. 210 */ 211 @java.lang.Override getLastAttemptStatus()212 public com.google.cloud.tasks.v2beta2.AttemptStatus getLastAttemptStatus() { 213 return lastAttemptStatus_ == null 214 ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() 215 : lastAttemptStatus_; 216 } 217 /** 218 * 219 * 220 * <pre> 221 * Output only. The status of the task's last attempt. 222 * This field is not calculated for [pull 223 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 224 * </pre> 225 * 226 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 227 */ 228 @java.lang.Override getLastAttemptStatusOrBuilder()229 public com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getLastAttemptStatusOrBuilder() { 230 return lastAttemptStatus_ == null 231 ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() 232 : lastAttemptStatus_; 233 } 234 235 private byte memoizedIsInitialized = -1; 236 237 @java.lang.Override isInitialized()238 public final boolean isInitialized() { 239 byte isInitialized = memoizedIsInitialized; 240 if (isInitialized == 1) return true; 241 if (isInitialized == 0) return false; 242 243 memoizedIsInitialized = 1; 244 return true; 245 } 246 247 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)248 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 249 if (attemptDispatchCount_ != 0) { 250 output.writeInt32(1, attemptDispatchCount_); 251 } 252 if (attemptResponseCount_ != 0) { 253 output.writeInt32(2, attemptResponseCount_); 254 } 255 if (firstAttemptStatus_ != null) { 256 output.writeMessage(3, getFirstAttemptStatus()); 257 } 258 if (lastAttemptStatus_ != null) { 259 output.writeMessage(4, getLastAttemptStatus()); 260 } 261 getUnknownFields().writeTo(output); 262 } 263 264 @java.lang.Override getSerializedSize()265 public int getSerializedSize() { 266 int size = memoizedSize; 267 if (size != -1) return size; 268 269 size = 0; 270 if (attemptDispatchCount_ != 0) { 271 size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, attemptDispatchCount_); 272 } 273 if (attemptResponseCount_ != 0) { 274 size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, attemptResponseCount_); 275 } 276 if (firstAttemptStatus_ != null) { 277 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFirstAttemptStatus()); 278 } 279 if (lastAttemptStatus_ != null) { 280 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastAttemptStatus()); 281 } 282 size += getUnknownFields().getSerializedSize(); 283 memoizedSize = size; 284 return size; 285 } 286 287 @java.lang.Override equals(final java.lang.Object obj)288 public boolean equals(final java.lang.Object obj) { 289 if (obj == this) { 290 return true; 291 } 292 if (!(obj instanceof com.google.cloud.tasks.v2beta2.TaskStatus)) { 293 return super.equals(obj); 294 } 295 com.google.cloud.tasks.v2beta2.TaskStatus other = 296 (com.google.cloud.tasks.v2beta2.TaskStatus) obj; 297 298 if (getAttemptDispatchCount() != other.getAttemptDispatchCount()) return false; 299 if (getAttemptResponseCount() != other.getAttemptResponseCount()) return false; 300 if (hasFirstAttemptStatus() != other.hasFirstAttemptStatus()) return false; 301 if (hasFirstAttemptStatus()) { 302 if (!getFirstAttemptStatus().equals(other.getFirstAttemptStatus())) return false; 303 } 304 if (hasLastAttemptStatus() != other.hasLastAttemptStatus()) return false; 305 if (hasLastAttemptStatus()) { 306 if (!getLastAttemptStatus().equals(other.getLastAttemptStatus())) return false; 307 } 308 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 309 return true; 310 } 311 312 @java.lang.Override hashCode()313 public int hashCode() { 314 if (memoizedHashCode != 0) { 315 return memoizedHashCode; 316 } 317 int hash = 41; 318 hash = (19 * hash) + getDescriptor().hashCode(); 319 hash = (37 * hash) + ATTEMPT_DISPATCH_COUNT_FIELD_NUMBER; 320 hash = (53 * hash) + getAttemptDispatchCount(); 321 hash = (37 * hash) + ATTEMPT_RESPONSE_COUNT_FIELD_NUMBER; 322 hash = (53 * hash) + getAttemptResponseCount(); 323 if (hasFirstAttemptStatus()) { 324 hash = (37 * hash) + FIRST_ATTEMPT_STATUS_FIELD_NUMBER; 325 hash = (53 * hash) + getFirstAttemptStatus().hashCode(); 326 } 327 if (hasLastAttemptStatus()) { 328 hash = (37 * hash) + LAST_ATTEMPT_STATUS_FIELD_NUMBER; 329 hash = (53 * hash) + getLastAttemptStatus().hashCode(); 330 } 331 hash = (29 * hash) + getUnknownFields().hashCode(); 332 memoizedHashCode = hash; 333 return hash; 334 } 335 parseFrom(java.nio.ByteBuffer data)336 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom(java.nio.ByteBuffer data) 337 throws com.google.protobuf.InvalidProtocolBufferException { 338 return PARSER.parseFrom(data); 339 } 340 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)341 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom( 342 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 343 throws com.google.protobuf.InvalidProtocolBufferException { 344 return PARSER.parseFrom(data, extensionRegistry); 345 } 346 parseFrom( com.google.protobuf.ByteString data)347 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom( 348 com.google.protobuf.ByteString data) 349 throws com.google.protobuf.InvalidProtocolBufferException { 350 return PARSER.parseFrom(data); 351 } 352 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)353 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom( 354 com.google.protobuf.ByteString data, 355 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 356 throws com.google.protobuf.InvalidProtocolBufferException { 357 return PARSER.parseFrom(data, extensionRegistry); 358 } 359 parseFrom(byte[] data)360 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom(byte[] data) 361 throws com.google.protobuf.InvalidProtocolBufferException { 362 return PARSER.parseFrom(data); 363 } 364 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)365 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom( 366 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 367 throws com.google.protobuf.InvalidProtocolBufferException { 368 return PARSER.parseFrom(data, extensionRegistry); 369 } 370 parseFrom(java.io.InputStream input)371 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom(java.io.InputStream input) 372 throws java.io.IOException { 373 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 374 } 375 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)376 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom( 377 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 378 throws java.io.IOException { 379 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 380 PARSER, input, extensionRegistry); 381 } 382 parseDelimitedFrom( java.io.InputStream input)383 public static com.google.cloud.tasks.v2beta2.TaskStatus parseDelimitedFrom( 384 java.io.InputStream input) throws java.io.IOException { 385 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 386 } 387 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)388 public static com.google.cloud.tasks.v2beta2.TaskStatus parseDelimitedFrom( 389 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 390 throws java.io.IOException { 391 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 392 PARSER, input, extensionRegistry); 393 } 394 parseFrom( com.google.protobuf.CodedInputStream input)395 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom( 396 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 397 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 398 } 399 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)400 public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom( 401 com.google.protobuf.CodedInputStream input, 402 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 403 throws java.io.IOException { 404 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 405 PARSER, input, extensionRegistry); 406 } 407 408 @java.lang.Override newBuilderForType()409 public Builder newBuilderForType() { 410 return newBuilder(); 411 } 412 newBuilder()413 public static Builder newBuilder() { 414 return DEFAULT_INSTANCE.toBuilder(); 415 } 416 newBuilder(com.google.cloud.tasks.v2beta2.TaskStatus prototype)417 public static Builder newBuilder(com.google.cloud.tasks.v2beta2.TaskStatus prototype) { 418 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 419 } 420 421 @java.lang.Override toBuilder()422 public Builder toBuilder() { 423 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 424 } 425 426 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)427 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 428 Builder builder = new Builder(parent); 429 return builder; 430 } 431 /** 432 * 433 * 434 * <pre> 435 * Status of the task. 436 * </pre> 437 * 438 * Protobuf type {@code google.cloud.tasks.v2beta2.TaskStatus} 439 */ 440 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 441 implements 442 // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.TaskStatus) 443 com.google.cloud.tasks.v2beta2.TaskStatusOrBuilder { getDescriptor()444 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 445 return com.google.cloud.tasks.v2beta2.TaskProto 446 .internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor; 447 } 448 449 @java.lang.Override 450 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()451 internalGetFieldAccessorTable() { 452 return com.google.cloud.tasks.v2beta2.TaskProto 453 .internal_static_google_cloud_tasks_v2beta2_TaskStatus_fieldAccessorTable 454 .ensureFieldAccessorsInitialized( 455 com.google.cloud.tasks.v2beta2.TaskStatus.class, 456 com.google.cloud.tasks.v2beta2.TaskStatus.Builder.class); 457 } 458 459 // Construct using com.google.cloud.tasks.v2beta2.TaskStatus.newBuilder() Builder()460 private Builder() {} 461 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)462 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 463 super(parent); 464 } 465 466 @java.lang.Override clear()467 public Builder clear() { 468 super.clear(); 469 bitField0_ = 0; 470 attemptDispatchCount_ = 0; 471 attemptResponseCount_ = 0; 472 firstAttemptStatus_ = null; 473 if (firstAttemptStatusBuilder_ != null) { 474 firstAttemptStatusBuilder_.dispose(); 475 firstAttemptStatusBuilder_ = null; 476 } 477 lastAttemptStatus_ = null; 478 if (lastAttemptStatusBuilder_ != null) { 479 lastAttemptStatusBuilder_.dispose(); 480 lastAttemptStatusBuilder_ = null; 481 } 482 return this; 483 } 484 485 @java.lang.Override getDescriptorForType()486 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 487 return com.google.cloud.tasks.v2beta2.TaskProto 488 .internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor; 489 } 490 491 @java.lang.Override getDefaultInstanceForType()492 public com.google.cloud.tasks.v2beta2.TaskStatus getDefaultInstanceForType() { 493 return com.google.cloud.tasks.v2beta2.TaskStatus.getDefaultInstance(); 494 } 495 496 @java.lang.Override build()497 public com.google.cloud.tasks.v2beta2.TaskStatus build() { 498 com.google.cloud.tasks.v2beta2.TaskStatus result = buildPartial(); 499 if (!result.isInitialized()) { 500 throw newUninitializedMessageException(result); 501 } 502 return result; 503 } 504 505 @java.lang.Override buildPartial()506 public com.google.cloud.tasks.v2beta2.TaskStatus buildPartial() { 507 com.google.cloud.tasks.v2beta2.TaskStatus result = 508 new com.google.cloud.tasks.v2beta2.TaskStatus(this); 509 if (bitField0_ != 0) { 510 buildPartial0(result); 511 } 512 onBuilt(); 513 return result; 514 } 515 buildPartial0(com.google.cloud.tasks.v2beta2.TaskStatus result)516 private void buildPartial0(com.google.cloud.tasks.v2beta2.TaskStatus result) { 517 int from_bitField0_ = bitField0_; 518 if (((from_bitField0_ & 0x00000001) != 0)) { 519 result.attemptDispatchCount_ = attemptDispatchCount_; 520 } 521 if (((from_bitField0_ & 0x00000002) != 0)) { 522 result.attemptResponseCount_ = attemptResponseCount_; 523 } 524 if (((from_bitField0_ & 0x00000004) != 0)) { 525 result.firstAttemptStatus_ = 526 firstAttemptStatusBuilder_ == null 527 ? firstAttemptStatus_ 528 : firstAttemptStatusBuilder_.build(); 529 } 530 if (((from_bitField0_ & 0x00000008) != 0)) { 531 result.lastAttemptStatus_ = 532 lastAttemptStatusBuilder_ == null 533 ? lastAttemptStatus_ 534 : lastAttemptStatusBuilder_.build(); 535 } 536 } 537 538 @java.lang.Override clone()539 public Builder clone() { 540 return super.clone(); 541 } 542 543 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)544 public Builder setField( 545 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 546 return super.setField(field, value); 547 } 548 549 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)550 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 551 return super.clearField(field); 552 } 553 554 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)555 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 556 return super.clearOneof(oneof); 557 } 558 559 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)560 public Builder setRepeatedField( 561 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 562 return super.setRepeatedField(field, index, value); 563 } 564 565 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)566 public Builder addRepeatedField( 567 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 568 return super.addRepeatedField(field, value); 569 } 570 571 @java.lang.Override mergeFrom(com.google.protobuf.Message other)572 public Builder mergeFrom(com.google.protobuf.Message other) { 573 if (other instanceof com.google.cloud.tasks.v2beta2.TaskStatus) { 574 return mergeFrom((com.google.cloud.tasks.v2beta2.TaskStatus) other); 575 } else { 576 super.mergeFrom(other); 577 return this; 578 } 579 } 580 mergeFrom(com.google.cloud.tasks.v2beta2.TaskStatus other)581 public Builder mergeFrom(com.google.cloud.tasks.v2beta2.TaskStatus other) { 582 if (other == com.google.cloud.tasks.v2beta2.TaskStatus.getDefaultInstance()) return this; 583 if (other.getAttemptDispatchCount() != 0) { 584 setAttemptDispatchCount(other.getAttemptDispatchCount()); 585 } 586 if (other.getAttemptResponseCount() != 0) { 587 setAttemptResponseCount(other.getAttemptResponseCount()); 588 } 589 if (other.hasFirstAttemptStatus()) { 590 mergeFirstAttemptStatus(other.getFirstAttemptStatus()); 591 } 592 if (other.hasLastAttemptStatus()) { 593 mergeLastAttemptStatus(other.getLastAttemptStatus()); 594 } 595 this.mergeUnknownFields(other.getUnknownFields()); 596 onChanged(); 597 return this; 598 } 599 600 @java.lang.Override isInitialized()601 public final boolean isInitialized() { 602 return true; 603 } 604 605 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)606 public Builder mergeFrom( 607 com.google.protobuf.CodedInputStream input, 608 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 609 throws java.io.IOException { 610 if (extensionRegistry == null) { 611 throw new java.lang.NullPointerException(); 612 } 613 try { 614 boolean done = false; 615 while (!done) { 616 int tag = input.readTag(); 617 switch (tag) { 618 case 0: 619 done = true; 620 break; 621 case 8: 622 { 623 attemptDispatchCount_ = input.readInt32(); 624 bitField0_ |= 0x00000001; 625 break; 626 } // case 8 627 case 16: 628 { 629 attemptResponseCount_ = input.readInt32(); 630 bitField0_ |= 0x00000002; 631 break; 632 } // case 16 633 case 26: 634 { 635 input.readMessage( 636 getFirstAttemptStatusFieldBuilder().getBuilder(), extensionRegistry); 637 bitField0_ |= 0x00000004; 638 break; 639 } // case 26 640 case 34: 641 { 642 input.readMessage( 643 getLastAttemptStatusFieldBuilder().getBuilder(), extensionRegistry); 644 bitField0_ |= 0x00000008; 645 break; 646 } // case 34 647 default: 648 { 649 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 650 done = true; // was an endgroup tag 651 } 652 break; 653 } // default: 654 } // switch (tag) 655 } // while (!done) 656 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 657 throw e.unwrapIOException(); 658 } finally { 659 onChanged(); 660 } // finally 661 return this; 662 } 663 664 private int bitField0_; 665 666 private int attemptDispatchCount_; 667 /** 668 * 669 * 670 * <pre> 671 * Output only. The number of attempts dispatched. 672 * This count includes attempts which have been dispatched but haven't 673 * received a response. 674 * </pre> 675 * 676 * <code>int32 attempt_dispatch_count = 1;</code> 677 * 678 * @return The attemptDispatchCount. 679 */ 680 @java.lang.Override getAttemptDispatchCount()681 public int getAttemptDispatchCount() { 682 return attemptDispatchCount_; 683 } 684 /** 685 * 686 * 687 * <pre> 688 * Output only. The number of attempts dispatched. 689 * This count includes attempts which have been dispatched but haven't 690 * received a response. 691 * </pre> 692 * 693 * <code>int32 attempt_dispatch_count = 1;</code> 694 * 695 * @param value The attemptDispatchCount to set. 696 * @return This builder for chaining. 697 */ setAttemptDispatchCount(int value)698 public Builder setAttemptDispatchCount(int value) { 699 700 attemptDispatchCount_ = value; 701 bitField0_ |= 0x00000001; 702 onChanged(); 703 return this; 704 } 705 /** 706 * 707 * 708 * <pre> 709 * Output only. The number of attempts dispatched. 710 * This count includes attempts which have been dispatched but haven't 711 * received a response. 712 * </pre> 713 * 714 * <code>int32 attempt_dispatch_count = 1;</code> 715 * 716 * @return This builder for chaining. 717 */ clearAttemptDispatchCount()718 public Builder clearAttemptDispatchCount() { 719 bitField0_ = (bitField0_ & ~0x00000001); 720 attemptDispatchCount_ = 0; 721 onChanged(); 722 return this; 723 } 724 725 private int attemptResponseCount_; 726 /** 727 * 728 * 729 * <pre> 730 * Output only. The number of attempts which have received a response. 731 * This field is not calculated for [pull 732 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 733 * </pre> 734 * 735 * <code>int32 attempt_response_count = 2;</code> 736 * 737 * @return The attemptResponseCount. 738 */ 739 @java.lang.Override getAttemptResponseCount()740 public int getAttemptResponseCount() { 741 return attemptResponseCount_; 742 } 743 /** 744 * 745 * 746 * <pre> 747 * Output only. The number of attempts which have received a response. 748 * This field is not calculated for [pull 749 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 750 * </pre> 751 * 752 * <code>int32 attempt_response_count = 2;</code> 753 * 754 * @param value The attemptResponseCount to set. 755 * @return This builder for chaining. 756 */ setAttemptResponseCount(int value)757 public Builder setAttemptResponseCount(int value) { 758 759 attemptResponseCount_ = value; 760 bitField0_ |= 0x00000002; 761 onChanged(); 762 return this; 763 } 764 /** 765 * 766 * 767 * <pre> 768 * Output only. The number of attempts which have received a response. 769 * This field is not calculated for [pull 770 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 771 * </pre> 772 * 773 * <code>int32 attempt_response_count = 2;</code> 774 * 775 * @return This builder for chaining. 776 */ clearAttemptResponseCount()777 public Builder clearAttemptResponseCount() { 778 bitField0_ = (bitField0_ & ~0x00000002); 779 attemptResponseCount_ = 0; 780 onChanged(); 781 return this; 782 } 783 784 private com.google.cloud.tasks.v2beta2.AttemptStatus firstAttemptStatus_; 785 private com.google.protobuf.SingleFieldBuilderV3< 786 com.google.cloud.tasks.v2beta2.AttemptStatus, 787 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, 788 com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder> 789 firstAttemptStatusBuilder_; 790 /** 791 * 792 * 793 * <pre> 794 * Output only. The status of the task's first attempt. 795 * Only 796 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 797 * will be set. The other 798 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 799 * not retained by Cloud Tasks. 800 * This field is not calculated for [pull 801 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 802 * </pre> 803 * 804 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 805 * 806 * @return Whether the firstAttemptStatus field is set. 807 */ hasFirstAttemptStatus()808 public boolean hasFirstAttemptStatus() { 809 return ((bitField0_ & 0x00000004) != 0); 810 } 811 /** 812 * 813 * 814 * <pre> 815 * Output only. The status of the task's first attempt. 816 * Only 817 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 818 * will be set. The other 819 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 820 * not retained by Cloud Tasks. 821 * This field is not calculated for [pull 822 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 823 * </pre> 824 * 825 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 826 * 827 * @return The firstAttemptStatus. 828 */ getFirstAttemptStatus()829 public com.google.cloud.tasks.v2beta2.AttemptStatus getFirstAttemptStatus() { 830 if (firstAttemptStatusBuilder_ == null) { 831 return firstAttemptStatus_ == null 832 ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() 833 : firstAttemptStatus_; 834 } else { 835 return firstAttemptStatusBuilder_.getMessage(); 836 } 837 } 838 /** 839 * 840 * 841 * <pre> 842 * Output only. The status of the task's first attempt. 843 * Only 844 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 845 * will be set. The other 846 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 847 * not retained by Cloud Tasks. 848 * This field is not calculated for [pull 849 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 850 * </pre> 851 * 852 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 853 */ setFirstAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value)854 public Builder setFirstAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value) { 855 if (firstAttemptStatusBuilder_ == null) { 856 if (value == null) { 857 throw new NullPointerException(); 858 } 859 firstAttemptStatus_ = value; 860 } else { 861 firstAttemptStatusBuilder_.setMessage(value); 862 } 863 bitField0_ |= 0x00000004; 864 onChanged(); 865 return this; 866 } 867 /** 868 * 869 * 870 * <pre> 871 * Output only. The status of the task's first attempt. 872 * Only 873 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 874 * will be set. The other 875 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 876 * not retained by Cloud Tasks. 877 * This field is not calculated for [pull 878 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 879 * </pre> 880 * 881 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 882 */ setFirstAttemptStatus( com.google.cloud.tasks.v2beta2.AttemptStatus.Builder builderForValue)883 public Builder setFirstAttemptStatus( 884 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder builderForValue) { 885 if (firstAttemptStatusBuilder_ == null) { 886 firstAttemptStatus_ = builderForValue.build(); 887 } else { 888 firstAttemptStatusBuilder_.setMessage(builderForValue.build()); 889 } 890 bitField0_ |= 0x00000004; 891 onChanged(); 892 return this; 893 } 894 /** 895 * 896 * 897 * <pre> 898 * Output only. The status of the task's first attempt. 899 * Only 900 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 901 * will be set. The other 902 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 903 * not retained by Cloud Tasks. 904 * This field is not calculated for [pull 905 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 906 * </pre> 907 * 908 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 909 */ mergeFirstAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value)910 public Builder mergeFirstAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value) { 911 if (firstAttemptStatusBuilder_ == null) { 912 if (((bitField0_ & 0x00000004) != 0) 913 && firstAttemptStatus_ != null 914 && firstAttemptStatus_ 915 != com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance()) { 916 getFirstAttemptStatusBuilder().mergeFrom(value); 917 } else { 918 firstAttemptStatus_ = value; 919 } 920 } else { 921 firstAttemptStatusBuilder_.mergeFrom(value); 922 } 923 bitField0_ |= 0x00000004; 924 onChanged(); 925 return this; 926 } 927 /** 928 * 929 * 930 * <pre> 931 * Output only. The status of the task's first attempt. 932 * Only 933 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 934 * will be set. The other 935 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 936 * not retained by Cloud Tasks. 937 * This field is not calculated for [pull 938 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 939 * </pre> 940 * 941 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 942 */ clearFirstAttemptStatus()943 public Builder clearFirstAttemptStatus() { 944 bitField0_ = (bitField0_ & ~0x00000004); 945 firstAttemptStatus_ = null; 946 if (firstAttemptStatusBuilder_ != null) { 947 firstAttemptStatusBuilder_.dispose(); 948 firstAttemptStatusBuilder_ = null; 949 } 950 onChanged(); 951 return this; 952 } 953 /** 954 * 955 * 956 * <pre> 957 * Output only. The status of the task's first attempt. 958 * Only 959 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 960 * will be set. The other 961 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 962 * not retained by Cloud Tasks. 963 * This field is not calculated for [pull 964 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 965 * </pre> 966 * 967 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 968 */ getFirstAttemptStatusBuilder()969 public com.google.cloud.tasks.v2beta2.AttemptStatus.Builder getFirstAttemptStatusBuilder() { 970 bitField0_ |= 0x00000004; 971 onChanged(); 972 return getFirstAttemptStatusFieldBuilder().getBuilder(); 973 } 974 /** 975 * 976 * 977 * <pre> 978 * Output only. The status of the task's first attempt. 979 * Only 980 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 981 * will be set. The other 982 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 983 * not retained by Cloud Tasks. 984 * This field is not calculated for [pull 985 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 986 * </pre> 987 * 988 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 989 */ getFirstAttemptStatusOrBuilder()990 public com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getFirstAttemptStatusOrBuilder() { 991 if (firstAttemptStatusBuilder_ != null) { 992 return firstAttemptStatusBuilder_.getMessageOrBuilder(); 993 } else { 994 return firstAttemptStatus_ == null 995 ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() 996 : firstAttemptStatus_; 997 } 998 } 999 /** 1000 * 1001 * 1002 * <pre> 1003 * Output only. The status of the task's first attempt. 1004 * Only 1005 * [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] 1006 * will be set. The other 1007 * [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is 1008 * not retained by Cloud Tasks. 1009 * This field is not calculated for [pull 1010 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1011 * </pre> 1012 * 1013 * <code>.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;</code> 1014 */ 1015 private com.google.protobuf.SingleFieldBuilderV3< 1016 com.google.cloud.tasks.v2beta2.AttemptStatus, 1017 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, 1018 com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder> getFirstAttemptStatusFieldBuilder()1019 getFirstAttemptStatusFieldBuilder() { 1020 if (firstAttemptStatusBuilder_ == null) { 1021 firstAttemptStatusBuilder_ = 1022 new com.google.protobuf.SingleFieldBuilderV3< 1023 com.google.cloud.tasks.v2beta2.AttemptStatus, 1024 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, 1025 com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder>( 1026 getFirstAttemptStatus(), getParentForChildren(), isClean()); 1027 firstAttemptStatus_ = null; 1028 } 1029 return firstAttemptStatusBuilder_; 1030 } 1031 1032 private com.google.cloud.tasks.v2beta2.AttemptStatus lastAttemptStatus_; 1033 private com.google.protobuf.SingleFieldBuilderV3< 1034 com.google.cloud.tasks.v2beta2.AttemptStatus, 1035 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, 1036 com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder> 1037 lastAttemptStatusBuilder_; 1038 /** 1039 * 1040 * 1041 * <pre> 1042 * Output only. The status of the task's last attempt. 1043 * This field is not calculated for [pull 1044 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1045 * </pre> 1046 * 1047 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 1048 * 1049 * @return Whether the lastAttemptStatus field is set. 1050 */ hasLastAttemptStatus()1051 public boolean hasLastAttemptStatus() { 1052 return ((bitField0_ & 0x00000008) != 0); 1053 } 1054 /** 1055 * 1056 * 1057 * <pre> 1058 * Output only. The status of the task's last attempt. 1059 * This field is not calculated for [pull 1060 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1061 * </pre> 1062 * 1063 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 1064 * 1065 * @return The lastAttemptStatus. 1066 */ getLastAttemptStatus()1067 public com.google.cloud.tasks.v2beta2.AttemptStatus getLastAttemptStatus() { 1068 if (lastAttemptStatusBuilder_ == null) { 1069 return lastAttemptStatus_ == null 1070 ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() 1071 : lastAttemptStatus_; 1072 } else { 1073 return lastAttemptStatusBuilder_.getMessage(); 1074 } 1075 } 1076 /** 1077 * 1078 * 1079 * <pre> 1080 * Output only. The status of the task's last attempt. 1081 * This field is not calculated for [pull 1082 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1083 * </pre> 1084 * 1085 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 1086 */ setLastAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value)1087 public Builder setLastAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value) { 1088 if (lastAttemptStatusBuilder_ == null) { 1089 if (value == null) { 1090 throw new NullPointerException(); 1091 } 1092 lastAttemptStatus_ = value; 1093 } else { 1094 lastAttemptStatusBuilder_.setMessage(value); 1095 } 1096 bitField0_ |= 0x00000008; 1097 onChanged(); 1098 return this; 1099 } 1100 /** 1101 * 1102 * 1103 * <pre> 1104 * Output only. The status of the task's last attempt. 1105 * This field is not calculated for [pull 1106 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1107 * </pre> 1108 * 1109 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 1110 */ setLastAttemptStatus( com.google.cloud.tasks.v2beta2.AttemptStatus.Builder builderForValue)1111 public Builder setLastAttemptStatus( 1112 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder builderForValue) { 1113 if (lastAttemptStatusBuilder_ == null) { 1114 lastAttemptStatus_ = builderForValue.build(); 1115 } else { 1116 lastAttemptStatusBuilder_.setMessage(builderForValue.build()); 1117 } 1118 bitField0_ |= 0x00000008; 1119 onChanged(); 1120 return this; 1121 } 1122 /** 1123 * 1124 * 1125 * <pre> 1126 * Output only. The status of the task's last attempt. 1127 * This field is not calculated for [pull 1128 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1129 * </pre> 1130 * 1131 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 1132 */ mergeLastAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value)1133 public Builder mergeLastAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value) { 1134 if (lastAttemptStatusBuilder_ == null) { 1135 if (((bitField0_ & 0x00000008) != 0) 1136 && lastAttemptStatus_ != null 1137 && lastAttemptStatus_ 1138 != com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance()) { 1139 getLastAttemptStatusBuilder().mergeFrom(value); 1140 } else { 1141 lastAttemptStatus_ = value; 1142 } 1143 } else { 1144 lastAttemptStatusBuilder_.mergeFrom(value); 1145 } 1146 bitField0_ |= 0x00000008; 1147 onChanged(); 1148 return this; 1149 } 1150 /** 1151 * 1152 * 1153 * <pre> 1154 * Output only. The status of the task's last attempt. 1155 * This field is not calculated for [pull 1156 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1157 * </pre> 1158 * 1159 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 1160 */ clearLastAttemptStatus()1161 public Builder clearLastAttemptStatus() { 1162 bitField0_ = (bitField0_ & ~0x00000008); 1163 lastAttemptStatus_ = null; 1164 if (lastAttemptStatusBuilder_ != null) { 1165 lastAttemptStatusBuilder_.dispose(); 1166 lastAttemptStatusBuilder_ = null; 1167 } 1168 onChanged(); 1169 return this; 1170 } 1171 /** 1172 * 1173 * 1174 * <pre> 1175 * Output only. The status of the task's last attempt. 1176 * This field is not calculated for [pull 1177 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1178 * </pre> 1179 * 1180 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 1181 */ getLastAttemptStatusBuilder()1182 public com.google.cloud.tasks.v2beta2.AttemptStatus.Builder getLastAttemptStatusBuilder() { 1183 bitField0_ |= 0x00000008; 1184 onChanged(); 1185 return getLastAttemptStatusFieldBuilder().getBuilder(); 1186 } 1187 /** 1188 * 1189 * 1190 * <pre> 1191 * Output only. The status of the task's last attempt. 1192 * This field is not calculated for [pull 1193 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1194 * </pre> 1195 * 1196 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 1197 */ getLastAttemptStatusOrBuilder()1198 public com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getLastAttemptStatusOrBuilder() { 1199 if (lastAttemptStatusBuilder_ != null) { 1200 return lastAttemptStatusBuilder_.getMessageOrBuilder(); 1201 } else { 1202 return lastAttemptStatus_ == null 1203 ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() 1204 : lastAttemptStatus_; 1205 } 1206 } 1207 /** 1208 * 1209 * 1210 * <pre> 1211 * Output only. The status of the task's last attempt. 1212 * This field is not calculated for [pull 1213 * tasks][google.cloud.tasks.v2beta2.PullMessage]. 1214 * </pre> 1215 * 1216 * <code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code> 1217 */ 1218 private com.google.protobuf.SingleFieldBuilderV3< 1219 com.google.cloud.tasks.v2beta2.AttemptStatus, 1220 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, 1221 com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder> getLastAttemptStatusFieldBuilder()1222 getLastAttemptStatusFieldBuilder() { 1223 if (lastAttemptStatusBuilder_ == null) { 1224 lastAttemptStatusBuilder_ = 1225 new com.google.protobuf.SingleFieldBuilderV3< 1226 com.google.cloud.tasks.v2beta2.AttemptStatus, 1227 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, 1228 com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder>( 1229 getLastAttemptStatus(), getParentForChildren(), isClean()); 1230 lastAttemptStatus_ = null; 1231 } 1232 return lastAttemptStatusBuilder_; 1233 } 1234 1235 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1236 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1237 return super.setUnknownFields(unknownFields); 1238 } 1239 1240 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1241 public final Builder mergeUnknownFields( 1242 final com.google.protobuf.UnknownFieldSet unknownFields) { 1243 return super.mergeUnknownFields(unknownFields); 1244 } 1245 1246 // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.TaskStatus) 1247 } 1248 1249 // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.TaskStatus) 1250 private static final com.google.cloud.tasks.v2beta2.TaskStatus DEFAULT_INSTANCE; 1251 1252 static { 1253 DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.TaskStatus(); 1254 } 1255 getDefaultInstance()1256 public static com.google.cloud.tasks.v2beta2.TaskStatus getDefaultInstance() { 1257 return DEFAULT_INSTANCE; 1258 } 1259 1260 private static final com.google.protobuf.Parser<TaskStatus> PARSER = 1261 new com.google.protobuf.AbstractParser<TaskStatus>() { 1262 @java.lang.Override 1263 public TaskStatus parsePartialFrom( 1264 com.google.protobuf.CodedInputStream input, 1265 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1266 throws com.google.protobuf.InvalidProtocolBufferException { 1267 Builder builder = newBuilder(); 1268 try { 1269 builder.mergeFrom(input, extensionRegistry); 1270 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1271 throw e.setUnfinishedMessage(builder.buildPartial()); 1272 } catch (com.google.protobuf.UninitializedMessageException e) { 1273 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1274 } catch (java.io.IOException e) { 1275 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1276 .setUnfinishedMessage(builder.buildPartial()); 1277 } 1278 return builder.buildPartial(); 1279 } 1280 }; 1281 parser()1282 public static com.google.protobuf.Parser<TaskStatus> parser() { 1283 return PARSER; 1284 } 1285 1286 @java.lang.Override getParserForType()1287 public com.google.protobuf.Parser<TaskStatus> getParserForType() { 1288 return PARSER; 1289 } 1290 1291 @java.lang.Override getDefaultInstanceForType()1292 public com.google.cloud.tasks.v2beta2.TaskStatus getDefaultInstanceForType() { 1293 return DEFAULT_INSTANCE; 1294 } 1295 } 1296