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 * The status of a task attempt. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.tasks.v2beta2.AttemptStatus} 29 */ 30 public final class AttemptStatus extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.AttemptStatus) 33 AttemptStatusOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use AttemptStatus.newBuilder() to construct. AttemptStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private AttemptStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 AttemptStatus()40 private AttemptStatus() {} 41 42 @java.lang.Override 43 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)44 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 45 return new AttemptStatus(); 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_AttemptStatus_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_AttemptStatus_fieldAccessorTable 63 .ensureFieldAccessorsInitialized( 64 com.google.cloud.tasks.v2beta2.AttemptStatus.class, 65 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder.class); 66 } 67 68 public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; 69 private com.google.protobuf.Timestamp scheduleTime_; 70 /** 71 * 72 * 73 * <pre> 74 * Output only. The time that this attempt was scheduled. 75 * `schedule_time` will be truncated to the nearest microsecond. 76 * </pre> 77 * 78 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 79 * 80 * @return Whether the scheduleTime field is set. 81 */ 82 @java.lang.Override hasScheduleTime()83 public boolean hasScheduleTime() { 84 return scheduleTime_ != null; 85 } 86 /** 87 * 88 * 89 * <pre> 90 * Output only. The time that this attempt was scheduled. 91 * `schedule_time` will be truncated to the nearest microsecond. 92 * </pre> 93 * 94 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 95 * 96 * @return The scheduleTime. 97 */ 98 @java.lang.Override getScheduleTime()99 public com.google.protobuf.Timestamp getScheduleTime() { 100 return scheduleTime_ == null 101 ? com.google.protobuf.Timestamp.getDefaultInstance() 102 : scheduleTime_; 103 } 104 /** 105 * 106 * 107 * <pre> 108 * Output only. The time that this attempt was scheduled. 109 * `schedule_time` will be truncated to the nearest microsecond. 110 * </pre> 111 * 112 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 113 */ 114 @java.lang.Override getScheduleTimeOrBuilder()115 public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { 116 return scheduleTime_ == null 117 ? com.google.protobuf.Timestamp.getDefaultInstance() 118 : scheduleTime_; 119 } 120 121 public static final int DISPATCH_TIME_FIELD_NUMBER = 2; 122 private com.google.protobuf.Timestamp dispatchTime_; 123 /** 124 * 125 * 126 * <pre> 127 * Output only. The time that this attempt was dispatched. 128 * `dispatch_time` will be truncated to the nearest microsecond. 129 * </pre> 130 * 131 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 132 * 133 * @return Whether the dispatchTime field is set. 134 */ 135 @java.lang.Override hasDispatchTime()136 public boolean hasDispatchTime() { 137 return dispatchTime_ != null; 138 } 139 /** 140 * 141 * 142 * <pre> 143 * Output only. The time that this attempt was dispatched. 144 * `dispatch_time` will be truncated to the nearest microsecond. 145 * </pre> 146 * 147 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 148 * 149 * @return The dispatchTime. 150 */ 151 @java.lang.Override getDispatchTime()152 public com.google.protobuf.Timestamp getDispatchTime() { 153 return dispatchTime_ == null 154 ? com.google.protobuf.Timestamp.getDefaultInstance() 155 : dispatchTime_; 156 } 157 /** 158 * 159 * 160 * <pre> 161 * Output only. The time that this attempt was dispatched. 162 * `dispatch_time` will be truncated to the nearest microsecond. 163 * </pre> 164 * 165 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 166 */ 167 @java.lang.Override getDispatchTimeOrBuilder()168 public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() { 169 return dispatchTime_ == null 170 ? com.google.protobuf.Timestamp.getDefaultInstance() 171 : dispatchTime_; 172 } 173 174 public static final int RESPONSE_TIME_FIELD_NUMBER = 3; 175 private com.google.protobuf.Timestamp responseTime_; 176 /** 177 * 178 * 179 * <pre> 180 * Output only. The time that this attempt response was received. 181 * `response_time` will be truncated to the nearest microsecond. 182 * </pre> 183 * 184 * <code>.google.protobuf.Timestamp response_time = 3;</code> 185 * 186 * @return Whether the responseTime field is set. 187 */ 188 @java.lang.Override hasResponseTime()189 public boolean hasResponseTime() { 190 return responseTime_ != null; 191 } 192 /** 193 * 194 * 195 * <pre> 196 * Output only. The time that this attempt response was received. 197 * `response_time` will be truncated to the nearest microsecond. 198 * </pre> 199 * 200 * <code>.google.protobuf.Timestamp response_time = 3;</code> 201 * 202 * @return The responseTime. 203 */ 204 @java.lang.Override getResponseTime()205 public com.google.protobuf.Timestamp getResponseTime() { 206 return responseTime_ == null 207 ? com.google.protobuf.Timestamp.getDefaultInstance() 208 : responseTime_; 209 } 210 /** 211 * 212 * 213 * <pre> 214 * Output only. The time that this attempt response was received. 215 * `response_time` will be truncated to the nearest microsecond. 216 * </pre> 217 * 218 * <code>.google.protobuf.Timestamp response_time = 3;</code> 219 */ 220 @java.lang.Override getResponseTimeOrBuilder()221 public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { 222 return responseTime_ == null 223 ? com.google.protobuf.Timestamp.getDefaultInstance() 224 : responseTime_; 225 } 226 227 public static final int RESPONSE_STATUS_FIELD_NUMBER = 4; 228 private com.google.rpc.Status responseStatus_; 229 /** 230 * 231 * 232 * <pre> 233 * Output only. The response from the target for this attempt. 234 * If the task has not been attempted or the task is currently running 235 * then the response status is unset. 236 * </pre> 237 * 238 * <code>.google.rpc.Status response_status = 4;</code> 239 * 240 * @return Whether the responseStatus field is set. 241 */ 242 @java.lang.Override hasResponseStatus()243 public boolean hasResponseStatus() { 244 return responseStatus_ != null; 245 } 246 /** 247 * 248 * 249 * <pre> 250 * Output only. The response from the target for this attempt. 251 * If the task has not been attempted or the task is currently running 252 * then the response status is unset. 253 * </pre> 254 * 255 * <code>.google.rpc.Status response_status = 4;</code> 256 * 257 * @return The responseStatus. 258 */ 259 @java.lang.Override getResponseStatus()260 public com.google.rpc.Status getResponseStatus() { 261 return responseStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : responseStatus_; 262 } 263 /** 264 * 265 * 266 * <pre> 267 * Output only. The response from the target for this attempt. 268 * If the task has not been attempted or the task is currently running 269 * then the response status is unset. 270 * </pre> 271 * 272 * <code>.google.rpc.Status response_status = 4;</code> 273 */ 274 @java.lang.Override getResponseStatusOrBuilder()275 public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() { 276 return responseStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : responseStatus_; 277 } 278 279 private byte memoizedIsInitialized = -1; 280 281 @java.lang.Override isInitialized()282 public final boolean isInitialized() { 283 byte isInitialized = memoizedIsInitialized; 284 if (isInitialized == 1) return true; 285 if (isInitialized == 0) return false; 286 287 memoizedIsInitialized = 1; 288 return true; 289 } 290 291 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)292 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 293 if (scheduleTime_ != null) { 294 output.writeMessage(1, getScheduleTime()); 295 } 296 if (dispatchTime_ != null) { 297 output.writeMessage(2, getDispatchTime()); 298 } 299 if (responseTime_ != null) { 300 output.writeMessage(3, getResponseTime()); 301 } 302 if (responseStatus_ != null) { 303 output.writeMessage(4, getResponseStatus()); 304 } 305 getUnknownFields().writeTo(output); 306 } 307 308 @java.lang.Override getSerializedSize()309 public int getSerializedSize() { 310 int size = memoizedSize; 311 if (size != -1) return size; 312 313 size = 0; 314 if (scheduleTime_ != null) { 315 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); 316 } 317 if (dispatchTime_ != null) { 318 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDispatchTime()); 319 } 320 if (responseTime_ != null) { 321 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponseTime()); 322 } 323 if (responseStatus_ != null) { 324 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponseStatus()); 325 } 326 size += getUnknownFields().getSerializedSize(); 327 memoizedSize = size; 328 return size; 329 } 330 331 @java.lang.Override equals(final java.lang.Object obj)332 public boolean equals(final java.lang.Object obj) { 333 if (obj == this) { 334 return true; 335 } 336 if (!(obj instanceof com.google.cloud.tasks.v2beta2.AttemptStatus)) { 337 return super.equals(obj); 338 } 339 com.google.cloud.tasks.v2beta2.AttemptStatus other = 340 (com.google.cloud.tasks.v2beta2.AttemptStatus) obj; 341 342 if (hasScheduleTime() != other.hasScheduleTime()) return false; 343 if (hasScheduleTime()) { 344 if (!getScheduleTime().equals(other.getScheduleTime())) return false; 345 } 346 if (hasDispatchTime() != other.hasDispatchTime()) return false; 347 if (hasDispatchTime()) { 348 if (!getDispatchTime().equals(other.getDispatchTime())) return false; 349 } 350 if (hasResponseTime() != other.hasResponseTime()) return false; 351 if (hasResponseTime()) { 352 if (!getResponseTime().equals(other.getResponseTime())) return false; 353 } 354 if (hasResponseStatus() != other.hasResponseStatus()) return false; 355 if (hasResponseStatus()) { 356 if (!getResponseStatus().equals(other.getResponseStatus())) return false; 357 } 358 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 359 return true; 360 } 361 362 @java.lang.Override hashCode()363 public int hashCode() { 364 if (memoizedHashCode != 0) { 365 return memoizedHashCode; 366 } 367 int hash = 41; 368 hash = (19 * hash) + getDescriptor().hashCode(); 369 if (hasScheduleTime()) { 370 hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; 371 hash = (53 * hash) + getScheduleTime().hashCode(); 372 } 373 if (hasDispatchTime()) { 374 hash = (37 * hash) + DISPATCH_TIME_FIELD_NUMBER; 375 hash = (53 * hash) + getDispatchTime().hashCode(); 376 } 377 if (hasResponseTime()) { 378 hash = (37 * hash) + RESPONSE_TIME_FIELD_NUMBER; 379 hash = (53 * hash) + getResponseTime().hashCode(); 380 } 381 if (hasResponseStatus()) { 382 hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; 383 hash = (53 * hash) + getResponseStatus().hashCode(); 384 } 385 hash = (29 * hash) + getUnknownFields().hashCode(); 386 memoizedHashCode = hash; 387 return hash; 388 } 389 parseFrom(java.nio.ByteBuffer data)390 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom(java.nio.ByteBuffer data) 391 throws com.google.protobuf.InvalidProtocolBufferException { 392 return PARSER.parseFrom(data); 393 } 394 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)395 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom( 396 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 397 throws com.google.protobuf.InvalidProtocolBufferException { 398 return PARSER.parseFrom(data, extensionRegistry); 399 } 400 parseFrom( com.google.protobuf.ByteString data)401 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom( 402 com.google.protobuf.ByteString data) 403 throws com.google.protobuf.InvalidProtocolBufferException { 404 return PARSER.parseFrom(data); 405 } 406 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)407 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom( 408 com.google.protobuf.ByteString data, 409 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 410 throws com.google.protobuf.InvalidProtocolBufferException { 411 return PARSER.parseFrom(data, extensionRegistry); 412 } 413 parseFrom(byte[] data)414 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom(byte[] data) 415 throws com.google.protobuf.InvalidProtocolBufferException { 416 return PARSER.parseFrom(data); 417 } 418 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)419 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom( 420 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 421 throws com.google.protobuf.InvalidProtocolBufferException { 422 return PARSER.parseFrom(data, extensionRegistry); 423 } 424 parseFrom(java.io.InputStream input)425 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom(java.io.InputStream input) 426 throws java.io.IOException { 427 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 428 } 429 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)430 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom( 431 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 432 throws java.io.IOException { 433 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 434 PARSER, input, extensionRegistry); 435 } 436 parseDelimitedFrom( java.io.InputStream input)437 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseDelimitedFrom( 438 java.io.InputStream input) throws java.io.IOException { 439 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 440 } 441 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)442 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseDelimitedFrom( 443 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 444 throws java.io.IOException { 445 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 446 PARSER, input, extensionRegistry); 447 } 448 parseFrom( com.google.protobuf.CodedInputStream input)449 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom( 450 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 451 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 452 } 453 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)454 public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom( 455 com.google.protobuf.CodedInputStream input, 456 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 457 throws java.io.IOException { 458 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 459 PARSER, input, extensionRegistry); 460 } 461 462 @java.lang.Override newBuilderForType()463 public Builder newBuilderForType() { 464 return newBuilder(); 465 } 466 newBuilder()467 public static Builder newBuilder() { 468 return DEFAULT_INSTANCE.toBuilder(); 469 } 470 newBuilder(com.google.cloud.tasks.v2beta2.AttemptStatus prototype)471 public static Builder newBuilder(com.google.cloud.tasks.v2beta2.AttemptStatus prototype) { 472 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 473 } 474 475 @java.lang.Override toBuilder()476 public Builder toBuilder() { 477 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 478 } 479 480 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)481 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 482 Builder builder = new Builder(parent); 483 return builder; 484 } 485 /** 486 * 487 * 488 * <pre> 489 * The status of a task attempt. 490 * </pre> 491 * 492 * Protobuf type {@code google.cloud.tasks.v2beta2.AttemptStatus} 493 */ 494 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 495 implements 496 // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.AttemptStatus) 497 com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder { getDescriptor()498 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 499 return com.google.cloud.tasks.v2beta2.TaskProto 500 .internal_static_google_cloud_tasks_v2beta2_AttemptStatus_descriptor; 501 } 502 503 @java.lang.Override 504 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()505 internalGetFieldAccessorTable() { 506 return com.google.cloud.tasks.v2beta2.TaskProto 507 .internal_static_google_cloud_tasks_v2beta2_AttemptStatus_fieldAccessorTable 508 .ensureFieldAccessorsInitialized( 509 com.google.cloud.tasks.v2beta2.AttemptStatus.class, 510 com.google.cloud.tasks.v2beta2.AttemptStatus.Builder.class); 511 } 512 513 // Construct using com.google.cloud.tasks.v2beta2.AttemptStatus.newBuilder() Builder()514 private Builder() {} 515 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)516 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 517 super(parent); 518 } 519 520 @java.lang.Override clear()521 public Builder clear() { 522 super.clear(); 523 bitField0_ = 0; 524 scheduleTime_ = null; 525 if (scheduleTimeBuilder_ != null) { 526 scheduleTimeBuilder_.dispose(); 527 scheduleTimeBuilder_ = null; 528 } 529 dispatchTime_ = null; 530 if (dispatchTimeBuilder_ != null) { 531 dispatchTimeBuilder_.dispose(); 532 dispatchTimeBuilder_ = null; 533 } 534 responseTime_ = null; 535 if (responseTimeBuilder_ != null) { 536 responseTimeBuilder_.dispose(); 537 responseTimeBuilder_ = null; 538 } 539 responseStatus_ = null; 540 if (responseStatusBuilder_ != null) { 541 responseStatusBuilder_.dispose(); 542 responseStatusBuilder_ = null; 543 } 544 return this; 545 } 546 547 @java.lang.Override getDescriptorForType()548 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 549 return com.google.cloud.tasks.v2beta2.TaskProto 550 .internal_static_google_cloud_tasks_v2beta2_AttemptStatus_descriptor; 551 } 552 553 @java.lang.Override getDefaultInstanceForType()554 public com.google.cloud.tasks.v2beta2.AttemptStatus getDefaultInstanceForType() { 555 return com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance(); 556 } 557 558 @java.lang.Override build()559 public com.google.cloud.tasks.v2beta2.AttemptStatus build() { 560 com.google.cloud.tasks.v2beta2.AttemptStatus result = buildPartial(); 561 if (!result.isInitialized()) { 562 throw newUninitializedMessageException(result); 563 } 564 return result; 565 } 566 567 @java.lang.Override buildPartial()568 public com.google.cloud.tasks.v2beta2.AttemptStatus buildPartial() { 569 com.google.cloud.tasks.v2beta2.AttemptStatus result = 570 new com.google.cloud.tasks.v2beta2.AttemptStatus(this); 571 if (bitField0_ != 0) { 572 buildPartial0(result); 573 } 574 onBuilt(); 575 return result; 576 } 577 buildPartial0(com.google.cloud.tasks.v2beta2.AttemptStatus result)578 private void buildPartial0(com.google.cloud.tasks.v2beta2.AttemptStatus result) { 579 int from_bitField0_ = bitField0_; 580 if (((from_bitField0_ & 0x00000001) != 0)) { 581 result.scheduleTime_ = 582 scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.build(); 583 } 584 if (((from_bitField0_ & 0x00000002) != 0)) { 585 result.dispatchTime_ = 586 dispatchTimeBuilder_ == null ? dispatchTime_ : dispatchTimeBuilder_.build(); 587 } 588 if (((from_bitField0_ & 0x00000004) != 0)) { 589 result.responseTime_ = 590 responseTimeBuilder_ == null ? responseTime_ : responseTimeBuilder_.build(); 591 } 592 if (((from_bitField0_ & 0x00000008) != 0)) { 593 result.responseStatus_ = 594 responseStatusBuilder_ == null ? responseStatus_ : responseStatusBuilder_.build(); 595 } 596 } 597 598 @java.lang.Override clone()599 public Builder clone() { 600 return super.clone(); 601 } 602 603 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)604 public Builder setField( 605 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 606 return super.setField(field, value); 607 } 608 609 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)610 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 611 return super.clearField(field); 612 } 613 614 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)615 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 616 return super.clearOneof(oneof); 617 } 618 619 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)620 public Builder setRepeatedField( 621 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 622 return super.setRepeatedField(field, index, value); 623 } 624 625 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)626 public Builder addRepeatedField( 627 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 628 return super.addRepeatedField(field, value); 629 } 630 631 @java.lang.Override mergeFrom(com.google.protobuf.Message other)632 public Builder mergeFrom(com.google.protobuf.Message other) { 633 if (other instanceof com.google.cloud.tasks.v2beta2.AttemptStatus) { 634 return mergeFrom((com.google.cloud.tasks.v2beta2.AttemptStatus) other); 635 } else { 636 super.mergeFrom(other); 637 return this; 638 } 639 } 640 mergeFrom(com.google.cloud.tasks.v2beta2.AttemptStatus other)641 public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AttemptStatus other) { 642 if (other == com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance()) return this; 643 if (other.hasScheduleTime()) { 644 mergeScheduleTime(other.getScheduleTime()); 645 } 646 if (other.hasDispatchTime()) { 647 mergeDispatchTime(other.getDispatchTime()); 648 } 649 if (other.hasResponseTime()) { 650 mergeResponseTime(other.getResponseTime()); 651 } 652 if (other.hasResponseStatus()) { 653 mergeResponseStatus(other.getResponseStatus()); 654 } 655 this.mergeUnknownFields(other.getUnknownFields()); 656 onChanged(); 657 return this; 658 } 659 660 @java.lang.Override isInitialized()661 public final boolean isInitialized() { 662 return true; 663 } 664 665 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)666 public Builder mergeFrom( 667 com.google.protobuf.CodedInputStream input, 668 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 669 throws java.io.IOException { 670 if (extensionRegistry == null) { 671 throw new java.lang.NullPointerException(); 672 } 673 try { 674 boolean done = false; 675 while (!done) { 676 int tag = input.readTag(); 677 switch (tag) { 678 case 0: 679 done = true; 680 break; 681 case 10: 682 { 683 input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); 684 bitField0_ |= 0x00000001; 685 break; 686 } // case 10 687 case 18: 688 { 689 input.readMessage(getDispatchTimeFieldBuilder().getBuilder(), extensionRegistry); 690 bitField0_ |= 0x00000002; 691 break; 692 } // case 18 693 case 26: 694 { 695 input.readMessage(getResponseTimeFieldBuilder().getBuilder(), extensionRegistry); 696 bitField0_ |= 0x00000004; 697 break; 698 } // case 26 699 case 34: 700 { 701 input.readMessage(getResponseStatusFieldBuilder().getBuilder(), extensionRegistry); 702 bitField0_ |= 0x00000008; 703 break; 704 } // case 34 705 default: 706 { 707 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 708 done = true; // was an endgroup tag 709 } 710 break; 711 } // default: 712 } // switch (tag) 713 } // while (!done) 714 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 715 throw e.unwrapIOException(); 716 } finally { 717 onChanged(); 718 } // finally 719 return this; 720 } 721 722 private int bitField0_; 723 724 private com.google.protobuf.Timestamp scheduleTime_; 725 private com.google.protobuf.SingleFieldBuilderV3< 726 com.google.protobuf.Timestamp, 727 com.google.protobuf.Timestamp.Builder, 728 com.google.protobuf.TimestampOrBuilder> 729 scheduleTimeBuilder_; 730 /** 731 * 732 * 733 * <pre> 734 * Output only. The time that this attempt was scheduled. 735 * `schedule_time` will be truncated to the nearest microsecond. 736 * </pre> 737 * 738 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 739 * 740 * @return Whether the scheduleTime field is set. 741 */ hasScheduleTime()742 public boolean hasScheduleTime() { 743 return ((bitField0_ & 0x00000001) != 0); 744 } 745 /** 746 * 747 * 748 * <pre> 749 * Output only. The time that this attempt was scheduled. 750 * `schedule_time` will be truncated to the nearest microsecond. 751 * </pre> 752 * 753 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 754 * 755 * @return The scheduleTime. 756 */ getScheduleTime()757 public com.google.protobuf.Timestamp getScheduleTime() { 758 if (scheduleTimeBuilder_ == null) { 759 return scheduleTime_ == null 760 ? com.google.protobuf.Timestamp.getDefaultInstance() 761 : scheduleTime_; 762 } else { 763 return scheduleTimeBuilder_.getMessage(); 764 } 765 } 766 /** 767 * 768 * 769 * <pre> 770 * Output only. The time that this attempt was scheduled. 771 * `schedule_time` will be truncated to the nearest microsecond. 772 * </pre> 773 * 774 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 775 */ setScheduleTime(com.google.protobuf.Timestamp value)776 public Builder setScheduleTime(com.google.protobuf.Timestamp value) { 777 if (scheduleTimeBuilder_ == null) { 778 if (value == null) { 779 throw new NullPointerException(); 780 } 781 scheduleTime_ = value; 782 } else { 783 scheduleTimeBuilder_.setMessage(value); 784 } 785 bitField0_ |= 0x00000001; 786 onChanged(); 787 return this; 788 } 789 /** 790 * 791 * 792 * <pre> 793 * Output only. The time that this attempt was scheduled. 794 * `schedule_time` will be truncated to the nearest microsecond. 795 * </pre> 796 * 797 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 798 */ setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue)799 public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { 800 if (scheduleTimeBuilder_ == null) { 801 scheduleTime_ = builderForValue.build(); 802 } else { 803 scheduleTimeBuilder_.setMessage(builderForValue.build()); 804 } 805 bitField0_ |= 0x00000001; 806 onChanged(); 807 return this; 808 } 809 /** 810 * 811 * 812 * <pre> 813 * Output only. The time that this attempt was scheduled. 814 * `schedule_time` will be truncated to the nearest microsecond. 815 * </pre> 816 * 817 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 818 */ mergeScheduleTime(com.google.protobuf.Timestamp value)819 public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { 820 if (scheduleTimeBuilder_ == null) { 821 if (((bitField0_ & 0x00000001) != 0) 822 && scheduleTime_ != null 823 && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 824 getScheduleTimeBuilder().mergeFrom(value); 825 } else { 826 scheduleTime_ = value; 827 } 828 } else { 829 scheduleTimeBuilder_.mergeFrom(value); 830 } 831 bitField0_ |= 0x00000001; 832 onChanged(); 833 return this; 834 } 835 /** 836 * 837 * 838 * <pre> 839 * Output only. The time that this attempt was scheduled. 840 * `schedule_time` will be truncated to the nearest microsecond. 841 * </pre> 842 * 843 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 844 */ clearScheduleTime()845 public Builder clearScheduleTime() { 846 bitField0_ = (bitField0_ & ~0x00000001); 847 scheduleTime_ = null; 848 if (scheduleTimeBuilder_ != null) { 849 scheduleTimeBuilder_.dispose(); 850 scheduleTimeBuilder_ = null; 851 } 852 onChanged(); 853 return this; 854 } 855 /** 856 * 857 * 858 * <pre> 859 * Output only. The time that this attempt was scheduled. 860 * `schedule_time` will be truncated to the nearest microsecond. 861 * </pre> 862 * 863 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 864 */ getScheduleTimeBuilder()865 public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { 866 bitField0_ |= 0x00000001; 867 onChanged(); 868 return getScheduleTimeFieldBuilder().getBuilder(); 869 } 870 /** 871 * 872 * 873 * <pre> 874 * Output only. The time that this attempt was scheduled. 875 * `schedule_time` will be truncated to the nearest microsecond. 876 * </pre> 877 * 878 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 879 */ getScheduleTimeOrBuilder()880 public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { 881 if (scheduleTimeBuilder_ != null) { 882 return scheduleTimeBuilder_.getMessageOrBuilder(); 883 } else { 884 return scheduleTime_ == null 885 ? com.google.protobuf.Timestamp.getDefaultInstance() 886 : scheduleTime_; 887 } 888 } 889 /** 890 * 891 * 892 * <pre> 893 * Output only. The time that this attempt was scheduled. 894 * `schedule_time` will be truncated to the nearest microsecond. 895 * </pre> 896 * 897 * <code>.google.protobuf.Timestamp schedule_time = 1;</code> 898 */ 899 private com.google.protobuf.SingleFieldBuilderV3< 900 com.google.protobuf.Timestamp, 901 com.google.protobuf.Timestamp.Builder, 902 com.google.protobuf.TimestampOrBuilder> getScheduleTimeFieldBuilder()903 getScheduleTimeFieldBuilder() { 904 if (scheduleTimeBuilder_ == null) { 905 scheduleTimeBuilder_ = 906 new com.google.protobuf.SingleFieldBuilderV3< 907 com.google.protobuf.Timestamp, 908 com.google.protobuf.Timestamp.Builder, 909 com.google.protobuf.TimestampOrBuilder>( 910 getScheduleTime(), getParentForChildren(), isClean()); 911 scheduleTime_ = null; 912 } 913 return scheduleTimeBuilder_; 914 } 915 916 private com.google.protobuf.Timestamp dispatchTime_; 917 private com.google.protobuf.SingleFieldBuilderV3< 918 com.google.protobuf.Timestamp, 919 com.google.protobuf.Timestamp.Builder, 920 com.google.protobuf.TimestampOrBuilder> 921 dispatchTimeBuilder_; 922 /** 923 * 924 * 925 * <pre> 926 * Output only. The time that this attempt was dispatched. 927 * `dispatch_time` will be truncated to the nearest microsecond. 928 * </pre> 929 * 930 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 931 * 932 * @return Whether the dispatchTime field is set. 933 */ hasDispatchTime()934 public boolean hasDispatchTime() { 935 return ((bitField0_ & 0x00000002) != 0); 936 } 937 /** 938 * 939 * 940 * <pre> 941 * Output only. The time that this attempt was dispatched. 942 * `dispatch_time` will be truncated to the nearest microsecond. 943 * </pre> 944 * 945 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 946 * 947 * @return The dispatchTime. 948 */ getDispatchTime()949 public com.google.protobuf.Timestamp getDispatchTime() { 950 if (dispatchTimeBuilder_ == null) { 951 return dispatchTime_ == null 952 ? com.google.protobuf.Timestamp.getDefaultInstance() 953 : dispatchTime_; 954 } else { 955 return dispatchTimeBuilder_.getMessage(); 956 } 957 } 958 /** 959 * 960 * 961 * <pre> 962 * Output only. The time that this attempt was dispatched. 963 * `dispatch_time` will be truncated to the nearest microsecond. 964 * </pre> 965 * 966 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 967 */ setDispatchTime(com.google.protobuf.Timestamp value)968 public Builder setDispatchTime(com.google.protobuf.Timestamp value) { 969 if (dispatchTimeBuilder_ == null) { 970 if (value == null) { 971 throw new NullPointerException(); 972 } 973 dispatchTime_ = value; 974 } else { 975 dispatchTimeBuilder_.setMessage(value); 976 } 977 bitField0_ |= 0x00000002; 978 onChanged(); 979 return this; 980 } 981 /** 982 * 983 * 984 * <pre> 985 * Output only. The time that this attempt was dispatched. 986 * `dispatch_time` will be truncated to the nearest microsecond. 987 * </pre> 988 * 989 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 990 */ setDispatchTime(com.google.protobuf.Timestamp.Builder builderForValue)991 public Builder setDispatchTime(com.google.protobuf.Timestamp.Builder builderForValue) { 992 if (dispatchTimeBuilder_ == null) { 993 dispatchTime_ = builderForValue.build(); 994 } else { 995 dispatchTimeBuilder_.setMessage(builderForValue.build()); 996 } 997 bitField0_ |= 0x00000002; 998 onChanged(); 999 return this; 1000 } 1001 /** 1002 * 1003 * 1004 * <pre> 1005 * Output only. The time that this attempt was dispatched. 1006 * `dispatch_time` will be truncated to the nearest microsecond. 1007 * </pre> 1008 * 1009 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 1010 */ mergeDispatchTime(com.google.protobuf.Timestamp value)1011 public Builder mergeDispatchTime(com.google.protobuf.Timestamp value) { 1012 if (dispatchTimeBuilder_ == null) { 1013 if (((bitField0_ & 0x00000002) != 0) 1014 && dispatchTime_ != null 1015 && dispatchTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1016 getDispatchTimeBuilder().mergeFrom(value); 1017 } else { 1018 dispatchTime_ = value; 1019 } 1020 } else { 1021 dispatchTimeBuilder_.mergeFrom(value); 1022 } 1023 bitField0_ |= 0x00000002; 1024 onChanged(); 1025 return this; 1026 } 1027 /** 1028 * 1029 * 1030 * <pre> 1031 * Output only. The time that this attempt was dispatched. 1032 * `dispatch_time` will be truncated to the nearest microsecond. 1033 * </pre> 1034 * 1035 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 1036 */ clearDispatchTime()1037 public Builder clearDispatchTime() { 1038 bitField0_ = (bitField0_ & ~0x00000002); 1039 dispatchTime_ = null; 1040 if (dispatchTimeBuilder_ != null) { 1041 dispatchTimeBuilder_.dispose(); 1042 dispatchTimeBuilder_ = null; 1043 } 1044 onChanged(); 1045 return this; 1046 } 1047 /** 1048 * 1049 * 1050 * <pre> 1051 * Output only. The time that this attempt was dispatched. 1052 * `dispatch_time` will be truncated to the nearest microsecond. 1053 * </pre> 1054 * 1055 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 1056 */ getDispatchTimeBuilder()1057 public com.google.protobuf.Timestamp.Builder getDispatchTimeBuilder() { 1058 bitField0_ |= 0x00000002; 1059 onChanged(); 1060 return getDispatchTimeFieldBuilder().getBuilder(); 1061 } 1062 /** 1063 * 1064 * 1065 * <pre> 1066 * Output only. The time that this attempt was dispatched. 1067 * `dispatch_time` will be truncated to the nearest microsecond. 1068 * </pre> 1069 * 1070 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 1071 */ getDispatchTimeOrBuilder()1072 public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() { 1073 if (dispatchTimeBuilder_ != null) { 1074 return dispatchTimeBuilder_.getMessageOrBuilder(); 1075 } else { 1076 return dispatchTime_ == null 1077 ? com.google.protobuf.Timestamp.getDefaultInstance() 1078 : dispatchTime_; 1079 } 1080 } 1081 /** 1082 * 1083 * 1084 * <pre> 1085 * Output only. The time that this attempt was dispatched. 1086 * `dispatch_time` will be truncated to the nearest microsecond. 1087 * </pre> 1088 * 1089 * <code>.google.protobuf.Timestamp dispatch_time = 2;</code> 1090 */ 1091 private com.google.protobuf.SingleFieldBuilderV3< 1092 com.google.protobuf.Timestamp, 1093 com.google.protobuf.Timestamp.Builder, 1094 com.google.protobuf.TimestampOrBuilder> getDispatchTimeFieldBuilder()1095 getDispatchTimeFieldBuilder() { 1096 if (dispatchTimeBuilder_ == null) { 1097 dispatchTimeBuilder_ = 1098 new com.google.protobuf.SingleFieldBuilderV3< 1099 com.google.protobuf.Timestamp, 1100 com.google.protobuf.Timestamp.Builder, 1101 com.google.protobuf.TimestampOrBuilder>( 1102 getDispatchTime(), getParentForChildren(), isClean()); 1103 dispatchTime_ = null; 1104 } 1105 return dispatchTimeBuilder_; 1106 } 1107 1108 private com.google.protobuf.Timestamp responseTime_; 1109 private com.google.protobuf.SingleFieldBuilderV3< 1110 com.google.protobuf.Timestamp, 1111 com.google.protobuf.Timestamp.Builder, 1112 com.google.protobuf.TimestampOrBuilder> 1113 responseTimeBuilder_; 1114 /** 1115 * 1116 * 1117 * <pre> 1118 * Output only. The time that this attempt response was received. 1119 * `response_time` will be truncated to the nearest microsecond. 1120 * </pre> 1121 * 1122 * <code>.google.protobuf.Timestamp response_time = 3;</code> 1123 * 1124 * @return Whether the responseTime field is set. 1125 */ hasResponseTime()1126 public boolean hasResponseTime() { 1127 return ((bitField0_ & 0x00000004) != 0); 1128 } 1129 /** 1130 * 1131 * 1132 * <pre> 1133 * Output only. The time that this attempt response was received. 1134 * `response_time` will be truncated to the nearest microsecond. 1135 * </pre> 1136 * 1137 * <code>.google.protobuf.Timestamp response_time = 3;</code> 1138 * 1139 * @return The responseTime. 1140 */ getResponseTime()1141 public com.google.protobuf.Timestamp getResponseTime() { 1142 if (responseTimeBuilder_ == null) { 1143 return responseTime_ == null 1144 ? com.google.protobuf.Timestamp.getDefaultInstance() 1145 : responseTime_; 1146 } else { 1147 return responseTimeBuilder_.getMessage(); 1148 } 1149 } 1150 /** 1151 * 1152 * 1153 * <pre> 1154 * Output only. The time that this attempt response was received. 1155 * `response_time` will be truncated to the nearest microsecond. 1156 * </pre> 1157 * 1158 * <code>.google.protobuf.Timestamp response_time = 3;</code> 1159 */ setResponseTime(com.google.protobuf.Timestamp value)1160 public Builder setResponseTime(com.google.protobuf.Timestamp value) { 1161 if (responseTimeBuilder_ == null) { 1162 if (value == null) { 1163 throw new NullPointerException(); 1164 } 1165 responseTime_ = value; 1166 } else { 1167 responseTimeBuilder_.setMessage(value); 1168 } 1169 bitField0_ |= 0x00000004; 1170 onChanged(); 1171 return this; 1172 } 1173 /** 1174 * 1175 * 1176 * <pre> 1177 * Output only. The time that this attempt response was received. 1178 * `response_time` will be truncated to the nearest microsecond. 1179 * </pre> 1180 * 1181 * <code>.google.protobuf.Timestamp response_time = 3;</code> 1182 */ setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue)1183 public Builder setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue) { 1184 if (responseTimeBuilder_ == null) { 1185 responseTime_ = builderForValue.build(); 1186 } else { 1187 responseTimeBuilder_.setMessage(builderForValue.build()); 1188 } 1189 bitField0_ |= 0x00000004; 1190 onChanged(); 1191 return this; 1192 } 1193 /** 1194 * 1195 * 1196 * <pre> 1197 * Output only. The time that this attempt response was received. 1198 * `response_time` will be truncated to the nearest microsecond. 1199 * </pre> 1200 * 1201 * <code>.google.protobuf.Timestamp response_time = 3;</code> 1202 */ mergeResponseTime(com.google.protobuf.Timestamp value)1203 public Builder mergeResponseTime(com.google.protobuf.Timestamp value) { 1204 if (responseTimeBuilder_ == null) { 1205 if (((bitField0_ & 0x00000004) != 0) 1206 && responseTime_ != null 1207 && responseTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1208 getResponseTimeBuilder().mergeFrom(value); 1209 } else { 1210 responseTime_ = value; 1211 } 1212 } else { 1213 responseTimeBuilder_.mergeFrom(value); 1214 } 1215 bitField0_ |= 0x00000004; 1216 onChanged(); 1217 return this; 1218 } 1219 /** 1220 * 1221 * 1222 * <pre> 1223 * Output only. The time that this attempt response was received. 1224 * `response_time` will be truncated to the nearest microsecond. 1225 * </pre> 1226 * 1227 * <code>.google.protobuf.Timestamp response_time = 3;</code> 1228 */ clearResponseTime()1229 public Builder clearResponseTime() { 1230 bitField0_ = (bitField0_ & ~0x00000004); 1231 responseTime_ = null; 1232 if (responseTimeBuilder_ != null) { 1233 responseTimeBuilder_.dispose(); 1234 responseTimeBuilder_ = null; 1235 } 1236 onChanged(); 1237 return this; 1238 } 1239 /** 1240 * 1241 * 1242 * <pre> 1243 * Output only. The time that this attempt response was received. 1244 * `response_time` will be truncated to the nearest microsecond. 1245 * </pre> 1246 * 1247 * <code>.google.protobuf.Timestamp response_time = 3;</code> 1248 */ getResponseTimeBuilder()1249 public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() { 1250 bitField0_ |= 0x00000004; 1251 onChanged(); 1252 return getResponseTimeFieldBuilder().getBuilder(); 1253 } 1254 /** 1255 * 1256 * 1257 * <pre> 1258 * Output only. The time that this attempt response was received. 1259 * `response_time` will be truncated to the nearest microsecond. 1260 * </pre> 1261 * 1262 * <code>.google.protobuf.Timestamp response_time = 3;</code> 1263 */ getResponseTimeOrBuilder()1264 public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { 1265 if (responseTimeBuilder_ != null) { 1266 return responseTimeBuilder_.getMessageOrBuilder(); 1267 } else { 1268 return responseTime_ == null 1269 ? com.google.protobuf.Timestamp.getDefaultInstance() 1270 : responseTime_; 1271 } 1272 } 1273 /** 1274 * 1275 * 1276 * <pre> 1277 * Output only. The time that this attempt response was received. 1278 * `response_time` will be truncated to the nearest microsecond. 1279 * </pre> 1280 * 1281 * <code>.google.protobuf.Timestamp response_time = 3;</code> 1282 */ 1283 private com.google.protobuf.SingleFieldBuilderV3< 1284 com.google.protobuf.Timestamp, 1285 com.google.protobuf.Timestamp.Builder, 1286 com.google.protobuf.TimestampOrBuilder> getResponseTimeFieldBuilder()1287 getResponseTimeFieldBuilder() { 1288 if (responseTimeBuilder_ == null) { 1289 responseTimeBuilder_ = 1290 new com.google.protobuf.SingleFieldBuilderV3< 1291 com.google.protobuf.Timestamp, 1292 com.google.protobuf.Timestamp.Builder, 1293 com.google.protobuf.TimestampOrBuilder>( 1294 getResponseTime(), getParentForChildren(), isClean()); 1295 responseTime_ = null; 1296 } 1297 return responseTimeBuilder_; 1298 } 1299 1300 private com.google.rpc.Status responseStatus_; 1301 private com.google.protobuf.SingleFieldBuilderV3< 1302 com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 1303 responseStatusBuilder_; 1304 /** 1305 * 1306 * 1307 * <pre> 1308 * Output only. The response from the target for this attempt. 1309 * If the task has not been attempted or the task is currently running 1310 * then the response status is unset. 1311 * </pre> 1312 * 1313 * <code>.google.rpc.Status response_status = 4;</code> 1314 * 1315 * @return Whether the responseStatus field is set. 1316 */ hasResponseStatus()1317 public boolean hasResponseStatus() { 1318 return ((bitField0_ & 0x00000008) != 0); 1319 } 1320 /** 1321 * 1322 * 1323 * <pre> 1324 * Output only. The response from the target for this attempt. 1325 * If the task has not been attempted or the task is currently running 1326 * then the response status is unset. 1327 * </pre> 1328 * 1329 * <code>.google.rpc.Status response_status = 4;</code> 1330 * 1331 * @return The responseStatus. 1332 */ getResponseStatus()1333 public com.google.rpc.Status getResponseStatus() { 1334 if (responseStatusBuilder_ == null) { 1335 return responseStatus_ == null 1336 ? com.google.rpc.Status.getDefaultInstance() 1337 : responseStatus_; 1338 } else { 1339 return responseStatusBuilder_.getMessage(); 1340 } 1341 } 1342 /** 1343 * 1344 * 1345 * <pre> 1346 * Output only. The response from the target for this attempt. 1347 * If the task has not been attempted or the task is currently running 1348 * then the response status is unset. 1349 * </pre> 1350 * 1351 * <code>.google.rpc.Status response_status = 4;</code> 1352 */ setResponseStatus(com.google.rpc.Status value)1353 public Builder setResponseStatus(com.google.rpc.Status value) { 1354 if (responseStatusBuilder_ == null) { 1355 if (value == null) { 1356 throw new NullPointerException(); 1357 } 1358 responseStatus_ = value; 1359 } else { 1360 responseStatusBuilder_.setMessage(value); 1361 } 1362 bitField0_ |= 0x00000008; 1363 onChanged(); 1364 return this; 1365 } 1366 /** 1367 * 1368 * 1369 * <pre> 1370 * Output only. The response from the target for this attempt. 1371 * If the task has not been attempted or the task is currently running 1372 * then the response status is unset. 1373 * </pre> 1374 * 1375 * <code>.google.rpc.Status response_status = 4;</code> 1376 */ setResponseStatus(com.google.rpc.Status.Builder builderForValue)1377 public Builder setResponseStatus(com.google.rpc.Status.Builder builderForValue) { 1378 if (responseStatusBuilder_ == null) { 1379 responseStatus_ = builderForValue.build(); 1380 } else { 1381 responseStatusBuilder_.setMessage(builderForValue.build()); 1382 } 1383 bitField0_ |= 0x00000008; 1384 onChanged(); 1385 return this; 1386 } 1387 /** 1388 * 1389 * 1390 * <pre> 1391 * Output only. The response from the target for this attempt. 1392 * If the task has not been attempted or the task is currently running 1393 * then the response status is unset. 1394 * </pre> 1395 * 1396 * <code>.google.rpc.Status response_status = 4;</code> 1397 */ mergeResponseStatus(com.google.rpc.Status value)1398 public Builder mergeResponseStatus(com.google.rpc.Status value) { 1399 if (responseStatusBuilder_ == null) { 1400 if (((bitField0_ & 0x00000008) != 0) 1401 && responseStatus_ != null 1402 && responseStatus_ != com.google.rpc.Status.getDefaultInstance()) { 1403 getResponseStatusBuilder().mergeFrom(value); 1404 } else { 1405 responseStatus_ = value; 1406 } 1407 } else { 1408 responseStatusBuilder_.mergeFrom(value); 1409 } 1410 bitField0_ |= 0x00000008; 1411 onChanged(); 1412 return this; 1413 } 1414 /** 1415 * 1416 * 1417 * <pre> 1418 * Output only. The response from the target for this attempt. 1419 * If the task has not been attempted or the task is currently running 1420 * then the response status is unset. 1421 * </pre> 1422 * 1423 * <code>.google.rpc.Status response_status = 4;</code> 1424 */ clearResponseStatus()1425 public Builder clearResponseStatus() { 1426 bitField0_ = (bitField0_ & ~0x00000008); 1427 responseStatus_ = null; 1428 if (responseStatusBuilder_ != null) { 1429 responseStatusBuilder_.dispose(); 1430 responseStatusBuilder_ = null; 1431 } 1432 onChanged(); 1433 return this; 1434 } 1435 /** 1436 * 1437 * 1438 * <pre> 1439 * Output only. The response from the target for this attempt. 1440 * If the task has not been attempted or the task is currently running 1441 * then the response status is unset. 1442 * </pre> 1443 * 1444 * <code>.google.rpc.Status response_status = 4;</code> 1445 */ getResponseStatusBuilder()1446 public com.google.rpc.Status.Builder getResponseStatusBuilder() { 1447 bitField0_ |= 0x00000008; 1448 onChanged(); 1449 return getResponseStatusFieldBuilder().getBuilder(); 1450 } 1451 /** 1452 * 1453 * 1454 * <pre> 1455 * Output only. The response from the target for this attempt. 1456 * If the task has not been attempted or the task is currently running 1457 * then the response status is unset. 1458 * </pre> 1459 * 1460 * <code>.google.rpc.Status response_status = 4;</code> 1461 */ getResponseStatusOrBuilder()1462 public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() { 1463 if (responseStatusBuilder_ != null) { 1464 return responseStatusBuilder_.getMessageOrBuilder(); 1465 } else { 1466 return responseStatus_ == null 1467 ? com.google.rpc.Status.getDefaultInstance() 1468 : responseStatus_; 1469 } 1470 } 1471 /** 1472 * 1473 * 1474 * <pre> 1475 * Output only. The response from the target for this attempt. 1476 * If the task has not been attempted or the task is currently running 1477 * then the response status is unset. 1478 * </pre> 1479 * 1480 * <code>.google.rpc.Status response_status = 4;</code> 1481 */ 1482 private com.google.protobuf.SingleFieldBuilderV3< 1483 com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getResponseStatusFieldBuilder()1484 getResponseStatusFieldBuilder() { 1485 if (responseStatusBuilder_ == null) { 1486 responseStatusBuilder_ = 1487 new com.google.protobuf.SingleFieldBuilderV3< 1488 com.google.rpc.Status, 1489 com.google.rpc.Status.Builder, 1490 com.google.rpc.StatusOrBuilder>( 1491 getResponseStatus(), getParentForChildren(), isClean()); 1492 responseStatus_ = null; 1493 } 1494 return responseStatusBuilder_; 1495 } 1496 1497 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1498 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1499 return super.setUnknownFields(unknownFields); 1500 } 1501 1502 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1503 public final Builder mergeUnknownFields( 1504 final com.google.protobuf.UnknownFieldSet unknownFields) { 1505 return super.mergeUnknownFields(unknownFields); 1506 } 1507 1508 // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.AttemptStatus) 1509 } 1510 1511 // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AttemptStatus) 1512 private static final com.google.cloud.tasks.v2beta2.AttemptStatus DEFAULT_INSTANCE; 1513 1514 static { 1515 DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.AttemptStatus(); 1516 } 1517 getDefaultInstance()1518 public static com.google.cloud.tasks.v2beta2.AttemptStatus getDefaultInstance() { 1519 return DEFAULT_INSTANCE; 1520 } 1521 1522 private static final com.google.protobuf.Parser<AttemptStatus> PARSER = 1523 new com.google.protobuf.AbstractParser<AttemptStatus>() { 1524 @java.lang.Override 1525 public AttemptStatus parsePartialFrom( 1526 com.google.protobuf.CodedInputStream input, 1527 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1528 throws com.google.protobuf.InvalidProtocolBufferException { 1529 Builder builder = newBuilder(); 1530 try { 1531 builder.mergeFrom(input, extensionRegistry); 1532 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1533 throw e.setUnfinishedMessage(builder.buildPartial()); 1534 } catch (com.google.protobuf.UninitializedMessageException e) { 1535 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1536 } catch (java.io.IOException e) { 1537 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1538 .setUnfinishedMessage(builder.buildPartial()); 1539 } 1540 return builder.buildPartial(); 1541 } 1542 }; 1543 parser()1544 public static com.google.protobuf.Parser<AttemptStatus> parser() { 1545 return PARSER; 1546 } 1547 1548 @java.lang.Override getParserForType()1549 public com.google.protobuf.Parser<AttemptStatus> getParserForType() { 1550 return PARSER; 1551 } 1552 1553 @java.lang.Override getDefaultInstanceForType()1554 public com.google.cloud.tasks.v2beta2.AttemptStatus getDefaultInstanceForType() { 1555 return DEFAULT_INSTANCE; 1556 } 1557 } 1558