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/v2beta3/task.proto 18 19 package com.google.cloud.tasks.v2beta3; 20 21 /** 22 * 23 * 24 * <pre> 25 * A unit of scheduled work. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.tasks.v2beta3.Task} 29 */ 30 public final class Task extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.Task) 33 TaskOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use Task.newBuilder() to construct. Task(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private Task(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 Task()40 private Task() { 41 name_ = ""; 42 view_ = 0; 43 } 44 45 @java.lang.Override 46 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)47 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 48 return new Task(); 49 } 50 51 @java.lang.Override getUnknownFields()52 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 53 return this.unknownFields; 54 } 55 getDescriptor()56 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 57 return com.google.cloud.tasks.v2beta3.TaskProto 58 .internal_static_google_cloud_tasks_v2beta3_Task_descriptor; 59 } 60 61 @java.lang.Override 62 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()63 internalGetFieldAccessorTable() { 64 return com.google.cloud.tasks.v2beta3.TaskProto 65 .internal_static_google_cloud_tasks_v2beta3_Task_fieldAccessorTable 66 .ensureFieldAccessorsInitialized( 67 com.google.cloud.tasks.v2beta3.Task.class, 68 com.google.cloud.tasks.v2beta3.Task.Builder.class); 69 } 70 71 /** 72 * 73 * 74 * <pre> 75 * The view specifies a subset of [Task][google.cloud.tasks.v2beta3.Task] 76 * data. 77 * When a task is returned in a response, not all 78 * information is retrieved by default because some data, such as 79 * payloads, might be desirable to return only when needed because 80 * of its large size or because of the sensitivity of data that it 81 * contains. 82 * </pre> 83 * 84 * Protobuf enum {@code google.cloud.tasks.v2beta3.Task.View} 85 */ 86 public enum View implements com.google.protobuf.ProtocolMessageEnum { 87 /** 88 * 89 * 90 * <pre> 91 * Unspecified. Defaults to BASIC. 92 * </pre> 93 * 94 * <code>VIEW_UNSPECIFIED = 0;</code> 95 */ 96 VIEW_UNSPECIFIED(0), 97 /** 98 * 99 * 100 * <pre> 101 * The basic view omits fields which can be large or can contain 102 * sensitive data. 103 * This view does not include the 104 * [body in 105 * AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body]. 106 * Bodies are desirable to return only when needed, because they 107 * can be large and because of the sensitivity of the data that you 108 * choose to store in it. 109 * </pre> 110 * 111 * <code>BASIC = 1;</code> 112 */ 113 BASIC(1), 114 /** 115 * 116 * 117 * <pre> 118 * All information is returned. 119 * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] 120 * requires `cloudtasks.tasks.fullView` [Google 121 * IAM](https://cloud.google.com/iam/) permission on the 122 * [Queue][google.cloud.tasks.v2beta3.Queue] resource. 123 * </pre> 124 * 125 * <code>FULL = 2;</code> 126 */ 127 FULL(2), 128 UNRECOGNIZED(-1), 129 ; 130 131 /** 132 * 133 * 134 * <pre> 135 * Unspecified. Defaults to BASIC. 136 * </pre> 137 * 138 * <code>VIEW_UNSPECIFIED = 0;</code> 139 */ 140 public static final int VIEW_UNSPECIFIED_VALUE = 0; 141 /** 142 * 143 * 144 * <pre> 145 * The basic view omits fields which can be large or can contain 146 * sensitive data. 147 * This view does not include the 148 * [body in 149 * AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body]. 150 * Bodies are desirable to return only when needed, because they 151 * can be large and because of the sensitivity of the data that you 152 * choose to store in it. 153 * </pre> 154 * 155 * <code>BASIC = 1;</code> 156 */ 157 public static final int BASIC_VALUE = 1; 158 /** 159 * 160 * 161 * <pre> 162 * All information is returned. 163 * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] 164 * requires `cloudtasks.tasks.fullView` [Google 165 * IAM](https://cloud.google.com/iam/) permission on the 166 * [Queue][google.cloud.tasks.v2beta3.Queue] resource. 167 * </pre> 168 * 169 * <code>FULL = 2;</code> 170 */ 171 public static final int FULL_VALUE = 2; 172 getNumber()173 public final int getNumber() { 174 if (this == UNRECOGNIZED) { 175 throw new java.lang.IllegalArgumentException( 176 "Can't get the number of an unknown enum value."); 177 } 178 return value; 179 } 180 181 /** 182 * @param value The numeric wire value of the corresponding enum entry. 183 * @return The enum associated with the given numeric wire value. 184 * @deprecated Use {@link #forNumber(int)} instead. 185 */ 186 @java.lang.Deprecated valueOf(int value)187 public static View valueOf(int value) { 188 return forNumber(value); 189 } 190 191 /** 192 * @param value The numeric wire value of the corresponding enum entry. 193 * @return The enum associated with the given numeric wire value. 194 */ forNumber(int value)195 public static View forNumber(int value) { 196 switch (value) { 197 case 0: 198 return VIEW_UNSPECIFIED; 199 case 1: 200 return BASIC; 201 case 2: 202 return FULL; 203 default: 204 return null; 205 } 206 } 207 internalGetValueMap()208 public static com.google.protobuf.Internal.EnumLiteMap<View> internalGetValueMap() { 209 return internalValueMap; 210 } 211 212 private static final com.google.protobuf.Internal.EnumLiteMap<View> internalValueMap = 213 new com.google.protobuf.Internal.EnumLiteMap<View>() { 214 public View findValueByNumber(int number) { 215 return View.forNumber(number); 216 } 217 }; 218 getValueDescriptor()219 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 220 if (this == UNRECOGNIZED) { 221 throw new java.lang.IllegalStateException( 222 "Can't get the descriptor of an unrecognized enum value."); 223 } 224 return getDescriptor().getValues().get(ordinal()); 225 } 226 getDescriptorForType()227 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 228 return getDescriptor(); 229 } 230 getDescriptor()231 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 232 return com.google.cloud.tasks.v2beta3.Task.getDescriptor().getEnumTypes().get(0); 233 } 234 235 private static final View[] VALUES = values(); 236 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)237 public static View valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 238 if (desc.getType() != getDescriptor()) { 239 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 240 } 241 if (desc.getIndex() == -1) { 242 return UNRECOGNIZED; 243 } 244 return VALUES[desc.getIndex()]; 245 } 246 247 private final int value; 248 View(int value)249 private View(int value) { 250 this.value = value; 251 } 252 253 // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2beta3.Task.View) 254 } 255 256 private int payloadTypeCase_ = 0; 257 private java.lang.Object payloadType_; 258 259 public enum PayloadTypeCase 260 implements 261 com.google.protobuf.Internal.EnumLite, 262 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 263 APP_ENGINE_HTTP_REQUEST(3), 264 HTTP_REQUEST(11), 265 PULL_MESSAGE(13), 266 PAYLOADTYPE_NOT_SET(0); 267 private final int value; 268 PayloadTypeCase(int value)269 private PayloadTypeCase(int value) { 270 this.value = value; 271 } 272 /** 273 * @param value The number of the enum to look for. 274 * @return The enum associated with the given number. 275 * @deprecated Use {@link #forNumber(int)} instead. 276 */ 277 @java.lang.Deprecated valueOf(int value)278 public static PayloadTypeCase valueOf(int value) { 279 return forNumber(value); 280 } 281 forNumber(int value)282 public static PayloadTypeCase forNumber(int value) { 283 switch (value) { 284 case 3: 285 return APP_ENGINE_HTTP_REQUEST; 286 case 11: 287 return HTTP_REQUEST; 288 case 13: 289 return PULL_MESSAGE; 290 case 0: 291 return PAYLOADTYPE_NOT_SET; 292 default: 293 return null; 294 } 295 } 296 getNumber()297 public int getNumber() { 298 return this.value; 299 } 300 }; 301 getPayloadTypeCase()302 public PayloadTypeCase getPayloadTypeCase() { 303 return PayloadTypeCase.forNumber(payloadTypeCase_); 304 } 305 306 public static final int NAME_FIELD_NUMBER = 1; 307 308 @SuppressWarnings("serial") 309 private volatile java.lang.Object name_ = ""; 310 /** 311 * 312 * 313 * <pre> 314 * Optionally caller-specified in 315 * [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. 316 * The task name. 317 * The task name must have the following format: 318 * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` 319 * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), 320 * hyphens (-), colons (:), or periods (.). 321 * For more information, see 322 * [Identifying 323 * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) 324 * * `LOCATION_ID` is the canonical ID for the task's location. 325 * The list of available locations can be obtained by calling 326 * [ListLocations][google.cloud.location.Locations.ListLocations]. 327 * For more information, see https://cloud.google.com/about/locations/. 328 * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or 329 * hyphens (-). The maximum length is 100 characters. 330 * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), 331 * hyphens (-), or underscores (_). The maximum length is 500 characters. 332 * </pre> 333 * 334 * <code>string name = 1;</code> 335 * 336 * @return The name. 337 */ 338 @java.lang.Override getName()339 public java.lang.String getName() { 340 java.lang.Object ref = name_; 341 if (ref instanceof java.lang.String) { 342 return (java.lang.String) ref; 343 } else { 344 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 345 java.lang.String s = bs.toStringUtf8(); 346 name_ = s; 347 return s; 348 } 349 } 350 /** 351 * 352 * 353 * <pre> 354 * Optionally caller-specified in 355 * [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. 356 * The task name. 357 * The task name must have the following format: 358 * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` 359 * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), 360 * hyphens (-), colons (:), or periods (.). 361 * For more information, see 362 * [Identifying 363 * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) 364 * * `LOCATION_ID` is the canonical ID for the task's location. 365 * The list of available locations can be obtained by calling 366 * [ListLocations][google.cloud.location.Locations.ListLocations]. 367 * For more information, see https://cloud.google.com/about/locations/. 368 * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or 369 * hyphens (-). The maximum length is 100 characters. 370 * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), 371 * hyphens (-), or underscores (_). The maximum length is 500 characters. 372 * </pre> 373 * 374 * <code>string name = 1;</code> 375 * 376 * @return The bytes for name. 377 */ 378 @java.lang.Override getNameBytes()379 public com.google.protobuf.ByteString getNameBytes() { 380 java.lang.Object ref = name_; 381 if (ref instanceof java.lang.String) { 382 com.google.protobuf.ByteString b = 383 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 384 name_ = b; 385 return b; 386 } else { 387 return (com.google.protobuf.ByteString) ref; 388 } 389 } 390 391 public static final int APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER = 3; 392 /** 393 * 394 * 395 * <pre> 396 * HTTP request that is sent to the App Engine app handler. 397 * An App Engine task is a task that has 398 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 399 * set. 400 * </pre> 401 * 402 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 403 * 404 * @return Whether the appEngineHttpRequest field is set. 405 */ 406 @java.lang.Override hasAppEngineHttpRequest()407 public boolean hasAppEngineHttpRequest() { 408 return payloadTypeCase_ == 3; 409 } 410 /** 411 * 412 * 413 * <pre> 414 * HTTP request that is sent to the App Engine app handler. 415 * An App Engine task is a task that has 416 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 417 * set. 418 * </pre> 419 * 420 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 421 * 422 * @return The appEngineHttpRequest. 423 */ 424 @java.lang.Override getAppEngineHttpRequest()425 public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest getAppEngineHttpRequest() { 426 if (payloadTypeCase_ == 3) { 427 return (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_; 428 } 429 return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); 430 } 431 /** 432 * 433 * 434 * <pre> 435 * HTTP request that is sent to the App Engine app handler. 436 * An App Engine task is a task that has 437 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 438 * set. 439 * </pre> 440 * 441 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 442 */ 443 @java.lang.Override 444 public com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder getAppEngineHttpRequestOrBuilder()445 getAppEngineHttpRequestOrBuilder() { 446 if (payloadTypeCase_ == 3) { 447 return (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_; 448 } 449 return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); 450 } 451 452 public static final int HTTP_REQUEST_FIELD_NUMBER = 11; 453 /** 454 * 455 * 456 * <pre> 457 * HTTP request that is sent to the task's target. 458 * An HTTP task is a task that has 459 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 460 * </pre> 461 * 462 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 463 * 464 * @return Whether the httpRequest field is set. 465 */ 466 @java.lang.Override hasHttpRequest()467 public boolean hasHttpRequest() { 468 return payloadTypeCase_ == 11; 469 } 470 /** 471 * 472 * 473 * <pre> 474 * HTTP request that is sent to the task's target. 475 * An HTTP task is a task that has 476 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 477 * </pre> 478 * 479 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 480 * 481 * @return The httpRequest. 482 */ 483 @java.lang.Override getHttpRequest()484 public com.google.cloud.tasks.v2beta3.HttpRequest getHttpRequest() { 485 if (payloadTypeCase_ == 11) { 486 return (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_; 487 } 488 return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); 489 } 490 /** 491 * 492 * 493 * <pre> 494 * HTTP request that is sent to the task's target. 495 * An HTTP task is a task that has 496 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 497 * </pre> 498 * 499 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 500 */ 501 @java.lang.Override getHttpRequestOrBuilder()502 public com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder getHttpRequestOrBuilder() { 503 if (payloadTypeCase_ == 11) { 504 return (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_; 505 } 506 return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); 507 } 508 509 public static final int PULL_MESSAGE_FIELD_NUMBER = 13; 510 /** 511 * 512 * 513 * <pre> 514 * Pull Message contained in a task in a 515 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 516 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 517 * currently is to provide backward compatibility with App Engine Task Queue 518 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 519 * queues to provide a way to inspect contents of pull tasks through the 520 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 521 * </pre> 522 * 523 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 524 * 525 * @return Whether the pullMessage field is set. 526 */ 527 @java.lang.Override hasPullMessage()528 public boolean hasPullMessage() { 529 return payloadTypeCase_ == 13; 530 } 531 /** 532 * 533 * 534 * <pre> 535 * Pull Message contained in a task in a 536 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 537 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 538 * currently is to provide backward compatibility with App Engine Task Queue 539 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 540 * queues to provide a way to inspect contents of pull tasks through the 541 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 542 * </pre> 543 * 544 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 545 * 546 * @return The pullMessage. 547 */ 548 @java.lang.Override getPullMessage()549 public com.google.cloud.tasks.v2beta3.PullMessage getPullMessage() { 550 if (payloadTypeCase_ == 13) { 551 return (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_; 552 } 553 return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); 554 } 555 /** 556 * 557 * 558 * <pre> 559 * Pull Message contained in a task in a 560 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 561 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 562 * currently is to provide backward compatibility with App Engine Task Queue 563 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 564 * queues to provide a way to inspect contents of pull tasks through the 565 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 566 * </pre> 567 * 568 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 569 */ 570 @java.lang.Override getPullMessageOrBuilder()571 public com.google.cloud.tasks.v2beta3.PullMessageOrBuilder getPullMessageOrBuilder() { 572 if (payloadTypeCase_ == 13) { 573 return (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_; 574 } 575 return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); 576 } 577 578 public static final int SCHEDULE_TIME_FIELD_NUMBER = 4; 579 private com.google.protobuf.Timestamp scheduleTime_; 580 /** 581 * 582 * 583 * <pre> 584 * The time when the task is scheduled to be attempted. 585 * For App Engine queues, this is when the task will be attempted or retried. 586 * `schedule_time` will be truncated to the nearest microsecond. 587 * </pre> 588 * 589 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 590 * 591 * @return Whether the scheduleTime field is set. 592 */ 593 @java.lang.Override hasScheduleTime()594 public boolean hasScheduleTime() { 595 return scheduleTime_ != null; 596 } 597 /** 598 * 599 * 600 * <pre> 601 * The time when the task is scheduled to be attempted. 602 * For App Engine queues, this is when the task will be attempted or retried. 603 * `schedule_time` will be truncated to the nearest microsecond. 604 * </pre> 605 * 606 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 607 * 608 * @return The scheduleTime. 609 */ 610 @java.lang.Override getScheduleTime()611 public com.google.protobuf.Timestamp getScheduleTime() { 612 return scheduleTime_ == null 613 ? com.google.protobuf.Timestamp.getDefaultInstance() 614 : scheduleTime_; 615 } 616 /** 617 * 618 * 619 * <pre> 620 * The time when the task is scheduled to be attempted. 621 * For App Engine queues, this is when the task will be attempted or retried. 622 * `schedule_time` will be truncated to the nearest microsecond. 623 * </pre> 624 * 625 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 626 */ 627 @java.lang.Override getScheduleTimeOrBuilder()628 public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { 629 return scheduleTime_ == null 630 ? com.google.protobuf.Timestamp.getDefaultInstance() 631 : scheduleTime_; 632 } 633 634 public static final int CREATE_TIME_FIELD_NUMBER = 5; 635 private com.google.protobuf.Timestamp createTime_; 636 /** 637 * 638 * 639 * <pre> 640 * Output only. The time that the task was created. 641 * `create_time` will be truncated to the nearest second. 642 * </pre> 643 * 644 * <code>.google.protobuf.Timestamp create_time = 5;</code> 645 * 646 * @return Whether the createTime field is set. 647 */ 648 @java.lang.Override hasCreateTime()649 public boolean hasCreateTime() { 650 return createTime_ != null; 651 } 652 /** 653 * 654 * 655 * <pre> 656 * Output only. The time that the task was created. 657 * `create_time` will be truncated to the nearest second. 658 * </pre> 659 * 660 * <code>.google.protobuf.Timestamp create_time = 5;</code> 661 * 662 * @return The createTime. 663 */ 664 @java.lang.Override getCreateTime()665 public com.google.protobuf.Timestamp getCreateTime() { 666 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 667 } 668 /** 669 * 670 * 671 * <pre> 672 * Output only. The time that the task was created. 673 * `create_time` will be truncated to the nearest second. 674 * </pre> 675 * 676 * <code>.google.protobuf.Timestamp create_time = 5;</code> 677 */ 678 @java.lang.Override getCreateTimeOrBuilder()679 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 680 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 681 } 682 683 public static final int DISPATCH_DEADLINE_FIELD_NUMBER = 12; 684 private com.google.protobuf.Duration dispatchDeadline_; 685 /** 686 * 687 * 688 * <pre> 689 * The deadline for requests sent to the worker. If the worker does not 690 * respond by this deadline then the request is cancelled and the attempt 691 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 692 * task according to the 693 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 694 * Note that when the request is cancelled, Cloud Tasks will stop listening 695 * for the response, but whether the worker stops processing depends on the 696 * worker. For example, if the worker is stuck, it may not react to cancelled 697 * requests. 698 * The default and maximum values depend on the type of request: 699 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 700 * 10 minutes. The deadline 701 * must be in the interval [15 seconds, 30 minutes]. 702 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 703 * 0 indicates that the 704 * request has the default deadline. The default deadline depends on the 705 * [scaling 706 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 707 * of the service: 10 minutes for standard apps with automatic scaling, 24 708 * hours for standard apps with manual and basic scaling, and 60 minutes for 709 * flex apps. If the request deadline is set, it must be in the interval [15 710 * seconds, 24 hours 15 seconds]. Regardless of the task's 711 * `dispatch_deadline`, the app handler will not run for longer than than 712 * the service's timeout. We recommend setting the `dispatch_deadline` to 713 * at most a few seconds more than the app handler's timeout. For more 714 * information see 715 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 716 * `dispatch_deadline` will be truncated to the nearest millisecond. The 717 * deadline is an approximate deadline. 718 * </pre> 719 * 720 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 721 * 722 * @return Whether the dispatchDeadline field is set. 723 */ 724 @java.lang.Override hasDispatchDeadline()725 public boolean hasDispatchDeadline() { 726 return dispatchDeadline_ != null; 727 } 728 /** 729 * 730 * 731 * <pre> 732 * The deadline for requests sent to the worker. If the worker does not 733 * respond by this deadline then the request is cancelled and the attempt 734 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 735 * task according to the 736 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 737 * Note that when the request is cancelled, Cloud Tasks will stop listening 738 * for the response, but whether the worker stops processing depends on the 739 * worker. For example, if the worker is stuck, it may not react to cancelled 740 * requests. 741 * The default and maximum values depend on the type of request: 742 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 743 * 10 minutes. The deadline 744 * must be in the interval [15 seconds, 30 minutes]. 745 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 746 * 0 indicates that the 747 * request has the default deadline. The default deadline depends on the 748 * [scaling 749 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 750 * of the service: 10 minutes for standard apps with automatic scaling, 24 751 * hours for standard apps with manual and basic scaling, and 60 minutes for 752 * flex apps. If the request deadline is set, it must be in the interval [15 753 * seconds, 24 hours 15 seconds]. Regardless of the task's 754 * `dispatch_deadline`, the app handler will not run for longer than than 755 * the service's timeout. We recommend setting the `dispatch_deadline` to 756 * at most a few seconds more than the app handler's timeout. For more 757 * information see 758 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 759 * `dispatch_deadline` will be truncated to the nearest millisecond. The 760 * deadline is an approximate deadline. 761 * </pre> 762 * 763 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 764 * 765 * @return The dispatchDeadline. 766 */ 767 @java.lang.Override getDispatchDeadline()768 public com.google.protobuf.Duration getDispatchDeadline() { 769 return dispatchDeadline_ == null 770 ? com.google.protobuf.Duration.getDefaultInstance() 771 : dispatchDeadline_; 772 } 773 /** 774 * 775 * 776 * <pre> 777 * The deadline for requests sent to the worker. If the worker does not 778 * respond by this deadline then the request is cancelled and the attempt 779 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 780 * task according to the 781 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 782 * Note that when the request is cancelled, Cloud Tasks will stop listening 783 * for the response, but whether the worker stops processing depends on the 784 * worker. For example, if the worker is stuck, it may not react to cancelled 785 * requests. 786 * The default and maximum values depend on the type of request: 787 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 788 * 10 minutes. The deadline 789 * must be in the interval [15 seconds, 30 minutes]. 790 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 791 * 0 indicates that the 792 * request has the default deadline. The default deadline depends on the 793 * [scaling 794 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 795 * of the service: 10 minutes for standard apps with automatic scaling, 24 796 * hours for standard apps with manual and basic scaling, and 60 minutes for 797 * flex apps. If the request deadline is set, it must be in the interval [15 798 * seconds, 24 hours 15 seconds]. Regardless of the task's 799 * `dispatch_deadline`, the app handler will not run for longer than than 800 * the service's timeout. We recommend setting the `dispatch_deadline` to 801 * at most a few seconds more than the app handler's timeout. For more 802 * information see 803 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 804 * `dispatch_deadline` will be truncated to the nearest millisecond. The 805 * deadline is an approximate deadline. 806 * </pre> 807 * 808 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 809 */ 810 @java.lang.Override getDispatchDeadlineOrBuilder()811 public com.google.protobuf.DurationOrBuilder getDispatchDeadlineOrBuilder() { 812 return dispatchDeadline_ == null 813 ? com.google.protobuf.Duration.getDefaultInstance() 814 : dispatchDeadline_; 815 } 816 817 public static final int DISPATCH_COUNT_FIELD_NUMBER = 6; 818 private int dispatchCount_ = 0; 819 /** 820 * 821 * 822 * <pre> 823 * Output only. The number of attempts dispatched. 824 * This count includes attempts which have been dispatched but haven't 825 * received a response. 826 * </pre> 827 * 828 * <code>int32 dispatch_count = 6;</code> 829 * 830 * @return The dispatchCount. 831 */ 832 @java.lang.Override getDispatchCount()833 public int getDispatchCount() { 834 return dispatchCount_; 835 } 836 837 public static final int RESPONSE_COUNT_FIELD_NUMBER = 7; 838 private int responseCount_ = 0; 839 /** 840 * 841 * 842 * <pre> 843 * Output only. The number of attempts which have received a response. 844 * </pre> 845 * 846 * <code>int32 response_count = 7;</code> 847 * 848 * @return The responseCount. 849 */ 850 @java.lang.Override getResponseCount()851 public int getResponseCount() { 852 return responseCount_; 853 } 854 855 public static final int FIRST_ATTEMPT_FIELD_NUMBER = 8; 856 private com.google.cloud.tasks.v2beta3.Attempt firstAttempt_; 857 /** 858 * 859 * 860 * <pre> 861 * Output only. The status of the task's first attempt. 862 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 863 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 864 * is not retained by Cloud Tasks. 865 * </pre> 866 * 867 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 868 * 869 * @return Whether the firstAttempt field is set. 870 */ 871 @java.lang.Override hasFirstAttempt()872 public boolean hasFirstAttempt() { 873 return firstAttempt_ != null; 874 } 875 /** 876 * 877 * 878 * <pre> 879 * Output only. The status of the task's first attempt. 880 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 881 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 882 * is not retained by Cloud Tasks. 883 * </pre> 884 * 885 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 886 * 887 * @return The firstAttempt. 888 */ 889 @java.lang.Override getFirstAttempt()890 public com.google.cloud.tasks.v2beta3.Attempt getFirstAttempt() { 891 return firstAttempt_ == null 892 ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() 893 : firstAttempt_; 894 } 895 /** 896 * 897 * 898 * <pre> 899 * Output only. The status of the task's first attempt. 900 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 901 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 902 * is not retained by Cloud Tasks. 903 * </pre> 904 * 905 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 906 */ 907 @java.lang.Override getFirstAttemptOrBuilder()908 public com.google.cloud.tasks.v2beta3.AttemptOrBuilder getFirstAttemptOrBuilder() { 909 return firstAttempt_ == null 910 ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() 911 : firstAttempt_; 912 } 913 914 public static final int LAST_ATTEMPT_FIELD_NUMBER = 9; 915 private com.google.cloud.tasks.v2beta3.Attempt lastAttempt_; 916 /** 917 * 918 * 919 * <pre> 920 * Output only. The status of the task's last attempt. 921 * </pre> 922 * 923 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 924 * 925 * @return Whether the lastAttempt field is set. 926 */ 927 @java.lang.Override hasLastAttempt()928 public boolean hasLastAttempt() { 929 return lastAttempt_ != null; 930 } 931 /** 932 * 933 * 934 * <pre> 935 * Output only. The status of the task's last attempt. 936 * </pre> 937 * 938 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 939 * 940 * @return The lastAttempt. 941 */ 942 @java.lang.Override getLastAttempt()943 public com.google.cloud.tasks.v2beta3.Attempt getLastAttempt() { 944 return lastAttempt_ == null 945 ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() 946 : lastAttempt_; 947 } 948 /** 949 * 950 * 951 * <pre> 952 * Output only. The status of the task's last attempt. 953 * </pre> 954 * 955 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 956 */ 957 @java.lang.Override getLastAttemptOrBuilder()958 public com.google.cloud.tasks.v2beta3.AttemptOrBuilder getLastAttemptOrBuilder() { 959 return lastAttempt_ == null 960 ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() 961 : lastAttempt_; 962 } 963 964 public static final int VIEW_FIELD_NUMBER = 10; 965 private int view_ = 0; 966 /** 967 * 968 * 969 * <pre> 970 * Output only. The view specifies which subset of the 971 * [Task][google.cloud.tasks.v2beta3.Task] has been returned. 972 * </pre> 973 * 974 * <code>.google.cloud.tasks.v2beta3.Task.View view = 10;</code> 975 * 976 * @return The enum numeric value on the wire for view. 977 */ 978 @java.lang.Override getViewValue()979 public int getViewValue() { 980 return view_; 981 } 982 /** 983 * 984 * 985 * <pre> 986 * Output only. The view specifies which subset of the 987 * [Task][google.cloud.tasks.v2beta3.Task] has been returned. 988 * </pre> 989 * 990 * <code>.google.cloud.tasks.v2beta3.Task.View view = 10;</code> 991 * 992 * @return The view. 993 */ 994 @java.lang.Override getView()995 public com.google.cloud.tasks.v2beta3.Task.View getView() { 996 com.google.cloud.tasks.v2beta3.Task.View result = 997 com.google.cloud.tasks.v2beta3.Task.View.forNumber(view_); 998 return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; 999 } 1000 1001 private byte memoizedIsInitialized = -1; 1002 1003 @java.lang.Override isInitialized()1004 public final boolean isInitialized() { 1005 byte isInitialized = memoizedIsInitialized; 1006 if (isInitialized == 1) return true; 1007 if (isInitialized == 0) return false; 1008 1009 memoizedIsInitialized = 1; 1010 return true; 1011 } 1012 1013 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1014 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1015 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1016 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 1017 } 1018 if (payloadTypeCase_ == 3) { 1019 output.writeMessage(3, (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_); 1020 } 1021 if (scheduleTime_ != null) { 1022 output.writeMessage(4, getScheduleTime()); 1023 } 1024 if (createTime_ != null) { 1025 output.writeMessage(5, getCreateTime()); 1026 } 1027 if (dispatchCount_ != 0) { 1028 output.writeInt32(6, dispatchCount_); 1029 } 1030 if (responseCount_ != 0) { 1031 output.writeInt32(7, responseCount_); 1032 } 1033 if (firstAttempt_ != null) { 1034 output.writeMessage(8, getFirstAttempt()); 1035 } 1036 if (lastAttempt_ != null) { 1037 output.writeMessage(9, getLastAttempt()); 1038 } 1039 if (view_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { 1040 output.writeEnum(10, view_); 1041 } 1042 if (payloadTypeCase_ == 11) { 1043 output.writeMessage(11, (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_); 1044 } 1045 if (dispatchDeadline_ != null) { 1046 output.writeMessage(12, getDispatchDeadline()); 1047 } 1048 if (payloadTypeCase_ == 13) { 1049 output.writeMessage(13, (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_); 1050 } 1051 getUnknownFields().writeTo(output); 1052 } 1053 1054 @java.lang.Override getSerializedSize()1055 public int getSerializedSize() { 1056 int size = memoizedSize; 1057 if (size != -1) return size; 1058 1059 size = 0; 1060 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1061 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 1062 } 1063 if (payloadTypeCase_ == 3) { 1064 size += 1065 com.google.protobuf.CodedOutputStream.computeMessageSize( 1066 3, (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_); 1067 } 1068 if (scheduleTime_ != null) { 1069 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getScheduleTime()); 1070 } 1071 if (createTime_ != null) { 1072 size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); 1073 } 1074 if (dispatchCount_ != 0) { 1075 size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, dispatchCount_); 1076 } 1077 if (responseCount_ != 0) { 1078 size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, responseCount_); 1079 } 1080 if (firstAttempt_ != null) { 1081 size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFirstAttempt()); 1082 } 1083 if (lastAttempt_ != null) { 1084 size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getLastAttempt()); 1085 } 1086 if (view_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { 1087 size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, view_); 1088 } 1089 if (payloadTypeCase_ == 11) { 1090 size += 1091 com.google.protobuf.CodedOutputStream.computeMessageSize( 1092 11, (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_); 1093 } 1094 if (dispatchDeadline_ != null) { 1095 size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDispatchDeadline()); 1096 } 1097 if (payloadTypeCase_ == 13) { 1098 size += 1099 com.google.protobuf.CodedOutputStream.computeMessageSize( 1100 13, (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_); 1101 } 1102 size += getUnknownFields().getSerializedSize(); 1103 memoizedSize = size; 1104 return size; 1105 } 1106 1107 @java.lang.Override equals(final java.lang.Object obj)1108 public boolean equals(final java.lang.Object obj) { 1109 if (obj == this) { 1110 return true; 1111 } 1112 if (!(obj instanceof com.google.cloud.tasks.v2beta3.Task)) { 1113 return super.equals(obj); 1114 } 1115 com.google.cloud.tasks.v2beta3.Task other = (com.google.cloud.tasks.v2beta3.Task) obj; 1116 1117 if (!getName().equals(other.getName())) return false; 1118 if (hasScheduleTime() != other.hasScheduleTime()) return false; 1119 if (hasScheduleTime()) { 1120 if (!getScheduleTime().equals(other.getScheduleTime())) return false; 1121 } 1122 if (hasCreateTime() != other.hasCreateTime()) return false; 1123 if (hasCreateTime()) { 1124 if (!getCreateTime().equals(other.getCreateTime())) return false; 1125 } 1126 if (hasDispatchDeadline() != other.hasDispatchDeadline()) return false; 1127 if (hasDispatchDeadline()) { 1128 if (!getDispatchDeadline().equals(other.getDispatchDeadline())) return false; 1129 } 1130 if (getDispatchCount() != other.getDispatchCount()) return false; 1131 if (getResponseCount() != other.getResponseCount()) return false; 1132 if (hasFirstAttempt() != other.hasFirstAttempt()) return false; 1133 if (hasFirstAttempt()) { 1134 if (!getFirstAttempt().equals(other.getFirstAttempt())) return false; 1135 } 1136 if (hasLastAttempt() != other.hasLastAttempt()) return false; 1137 if (hasLastAttempt()) { 1138 if (!getLastAttempt().equals(other.getLastAttempt())) return false; 1139 } 1140 if (view_ != other.view_) return false; 1141 if (!getPayloadTypeCase().equals(other.getPayloadTypeCase())) return false; 1142 switch (payloadTypeCase_) { 1143 case 3: 1144 if (!getAppEngineHttpRequest().equals(other.getAppEngineHttpRequest())) return false; 1145 break; 1146 case 11: 1147 if (!getHttpRequest().equals(other.getHttpRequest())) return false; 1148 break; 1149 case 13: 1150 if (!getPullMessage().equals(other.getPullMessage())) return false; 1151 break; 1152 case 0: 1153 default: 1154 } 1155 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1156 return true; 1157 } 1158 1159 @java.lang.Override hashCode()1160 public int hashCode() { 1161 if (memoizedHashCode != 0) { 1162 return memoizedHashCode; 1163 } 1164 int hash = 41; 1165 hash = (19 * hash) + getDescriptor().hashCode(); 1166 hash = (37 * hash) + NAME_FIELD_NUMBER; 1167 hash = (53 * hash) + getName().hashCode(); 1168 if (hasScheduleTime()) { 1169 hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; 1170 hash = (53 * hash) + getScheduleTime().hashCode(); 1171 } 1172 if (hasCreateTime()) { 1173 hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; 1174 hash = (53 * hash) + getCreateTime().hashCode(); 1175 } 1176 if (hasDispatchDeadline()) { 1177 hash = (37 * hash) + DISPATCH_DEADLINE_FIELD_NUMBER; 1178 hash = (53 * hash) + getDispatchDeadline().hashCode(); 1179 } 1180 hash = (37 * hash) + DISPATCH_COUNT_FIELD_NUMBER; 1181 hash = (53 * hash) + getDispatchCount(); 1182 hash = (37 * hash) + RESPONSE_COUNT_FIELD_NUMBER; 1183 hash = (53 * hash) + getResponseCount(); 1184 if (hasFirstAttempt()) { 1185 hash = (37 * hash) + FIRST_ATTEMPT_FIELD_NUMBER; 1186 hash = (53 * hash) + getFirstAttempt().hashCode(); 1187 } 1188 if (hasLastAttempt()) { 1189 hash = (37 * hash) + LAST_ATTEMPT_FIELD_NUMBER; 1190 hash = (53 * hash) + getLastAttempt().hashCode(); 1191 } 1192 hash = (37 * hash) + VIEW_FIELD_NUMBER; 1193 hash = (53 * hash) + view_; 1194 switch (payloadTypeCase_) { 1195 case 3: 1196 hash = (37 * hash) + APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER; 1197 hash = (53 * hash) + getAppEngineHttpRequest().hashCode(); 1198 break; 1199 case 11: 1200 hash = (37 * hash) + HTTP_REQUEST_FIELD_NUMBER; 1201 hash = (53 * hash) + getHttpRequest().hashCode(); 1202 break; 1203 case 13: 1204 hash = (37 * hash) + PULL_MESSAGE_FIELD_NUMBER; 1205 hash = (53 * hash) + getPullMessage().hashCode(); 1206 break; 1207 case 0: 1208 default: 1209 } 1210 hash = (29 * hash) + getUnknownFields().hashCode(); 1211 memoizedHashCode = hash; 1212 return hash; 1213 } 1214 parseFrom(java.nio.ByteBuffer data)1215 public static com.google.cloud.tasks.v2beta3.Task parseFrom(java.nio.ByteBuffer data) 1216 throws com.google.protobuf.InvalidProtocolBufferException { 1217 return PARSER.parseFrom(data); 1218 } 1219 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1220 public static com.google.cloud.tasks.v2beta3.Task parseFrom( 1221 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1222 throws com.google.protobuf.InvalidProtocolBufferException { 1223 return PARSER.parseFrom(data, extensionRegistry); 1224 } 1225 parseFrom(com.google.protobuf.ByteString data)1226 public static com.google.cloud.tasks.v2beta3.Task parseFrom(com.google.protobuf.ByteString data) 1227 throws com.google.protobuf.InvalidProtocolBufferException { 1228 return PARSER.parseFrom(data); 1229 } 1230 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1231 public static com.google.cloud.tasks.v2beta3.Task parseFrom( 1232 com.google.protobuf.ByteString data, 1233 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1234 throws com.google.protobuf.InvalidProtocolBufferException { 1235 return PARSER.parseFrom(data, extensionRegistry); 1236 } 1237 parseFrom(byte[] data)1238 public static com.google.cloud.tasks.v2beta3.Task parseFrom(byte[] data) 1239 throws com.google.protobuf.InvalidProtocolBufferException { 1240 return PARSER.parseFrom(data); 1241 } 1242 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1243 public static com.google.cloud.tasks.v2beta3.Task parseFrom( 1244 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1245 throws com.google.protobuf.InvalidProtocolBufferException { 1246 return PARSER.parseFrom(data, extensionRegistry); 1247 } 1248 parseFrom(java.io.InputStream input)1249 public static com.google.cloud.tasks.v2beta3.Task parseFrom(java.io.InputStream input) 1250 throws java.io.IOException { 1251 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1252 } 1253 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1254 public static com.google.cloud.tasks.v2beta3.Task parseFrom( 1255 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1256 throws java.io.IOException { 1257 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1258 PARSER, input, extensionRegistry); 1259 } 1260 parseDelimitedFrom(java.io.InputStream input)1261 public static com.google.cloud.tasks.v2beta3.Task parseDelimitedFrom(java.io.InputStream input) 1262 throws java.io.IOException { 1263 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1264 } 1265 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1266 public static com.google.cloud.tasks.v2beta3.Task parseDelimitedFrom( 1267 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1268 throws java.io.IOException { 1269 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1270 PARSER, input, extensionRegistry); 1271 } 1272 parseFrom( com.google.protobuf.CodedInputStream input)1273 public static com.google.cloud.tasks.v2beta3.Task parseFrom( 1274 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1275 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1276 } 1277 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1278 public static com.google.cloud.tasks.v2beta3.Task parseFrom( 1279 com.google.protobuf.CodedInputStream input, 1280 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1281 throws java.io.IOException { 1282 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1283 PARSER, input, extensionRegistry); 1284 } 1285 1286 @java.lang.Override newBuilderForType()1287 public Builder newBuilderForType() { 1288 return newBuilder(); 1289 } 1290 newBuilder()1291 public static Builder newBuilder() { 1292 return DEFAULT_INSTANCE.toBuilder(); 1293 } 1294 newBuilder(com.google.cloud.tasks.v2beta3.Task prototype)1295 public static Builder newBuilder(com.google.cloud.tasks.v2beta3.Task prototype) { 1296 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1297 } 1298 1299 @java.lang.Override toBuilder()1300 public Builder toBuilder() { 1301 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1302 } 1303 1304 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1305 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1306 Builder builder = new Builder(parent); 1307 return builder; 1308 } 1309 /** 1310 * 1311 * 1312 * <pre> 1313 * A unit of scheduled work. 1314 * </pre> 1315 * 1316 * Protobuf type {@code google.cloud.tasks.v2beta3.Task} 1317 */ 1318 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1319 implements 1320 // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.Task) 1321 com.google.cloud.tasks.v2beta3.TaskOrBuilder { getDescriptor()1322 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1323 return com.google.cloud.tasks.v2beta3.TaskProto 1324 .internal_static_google_cloud_tasks_v2beta3_Task_descriptor; 1325 } 1326 1327 @java.lang.Override 1328 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1329 internalGetFieldAccessorTable() { 1330 return com.google.cloud.tasks.v2beta3.TaskProto 1331 .internal_static_google_cloud_tasks_v2beta3_Task_fieldAccessorTable 1332 .ensureFieldAccessorsInitialized( 1333 com.google.cloud.tasks.v2beta3.Task.class, 1334 com.google.cloud.tasks.v2beta3.Task.Builder.class); 1335 } 1336 1337 // Construct using com.google.cloud.tasks.v2beta3.Task.newBuilder() Builder()1338 private Builder() {} 1339 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1340 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1341 super(parent); 1342 } 1343 1344 @java.lang.Override clear()1345 public Builder clear() { 1346 super.clear(); 1347 bitField0_ = 0; 1348 name_ = ""; 1349 if (appEngineHttpRequestBuilder_ != null) { 1350 appEngineHttpRequestBuilder_.clear(); 1351 } 1352 if (httpRequestBuilder_ != null) { 1353 httpRequestBuilder_.clear(); 1354 } 1355 if (pullMessageBuilder_ != null) { 1356 pullMessageBuilder_.clear(); 1357 } 1358 scheduleTime_ = null; 1359 if (scheduleTimeBuilder_ != null) { 1360 scheduleTimeBuilder_.dispose(); 1361 scheduleTimeBuilder_ = null; 1362 } 1363 createTime_ = null; 1364 if (createTimeBuilder_ != null) { 1365 createTimeBuilder_.dispose(); 1366 createTimeBuilder_ = null; 1367 } 1368 dispatchDeadline_ = null; 1369 if (dispatchDeadlineBuilder_ != null) { 1370 dispatchDeadlineBuilder_.dispose(); 1371 dispatchDeadlineBuilder_ = null; 1372 } 1373 dispatchCount_ = 0; 1374 responseCount_ = 0; 1375 firstAttempt_ = null; 1376 if (firstAttemptBuilder_ != null) { 1377 firstAttemptBuilder_.dispose(); 1378 firstAttemptBuilder_ = null; 1379 } 1380 lastAttempt_ = null; 1381 if (lastAttemptBuilder_ != null) { 1382 lastAttemptBuilder_.dispose(); 1383 lastAttemptBuilder_ = null; 1384 } 1385 view_ = 0; 1386 payloadTypeCase_ = 0; 1387 payloadType_ = null; 1388 return this; 1389 } 1390 1391 @java.lang.Override getDescriptorForType()1392 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1393 return com.google.cloud.tasks.v2beta3.TaskProto 1394 .internal_static_google_cloud_tasks_v2beta3_Task_descriptor; 1395 } 1396 1397 @java.lang.Override getDefaultInstanceForType()1398 public com.google.cloud.tasks.v2beta3.Task getDefaultInstanceForType() { 1399 return com.google.cloud.tasks.v2beta3.Task.getDefaultInstance(); 1400 } 1401 1402 @java.lang.Override build()1403 public com.google.cloud.tasks.v2beta3.Task build() { 1404 com.google.cloud.tasks.v2beta3.Task result = buildPartial(); 1405 if (!result.isInitialized()) { 1406 throw newUninitializedMessageException(result); 1407 } 1408 return result; 1409 } 1410 1411 @java.lang.Override buildPartial()1412 public com.google.cloud.tasks.v2beta3.Task buildPartial() { 1413 com.google.cloud.tasks.v2beta3.Task result = new com.google.cloud.tasks.v2beta3.Task(this); 1414 if (bitField0_ != 0) { 1415 buildPartial0(result); 1416 } 1417 buildPartialOneofs(result); 1418 onBuilt(); 1419 return result; 1420 } 1421 buildPartial0(com.google.cloud.tasks.v2beta3.Task result)1422 private void buildPartial0(com.google.cloud.tasks.v2beta3.Task result) { 1423 int from_bitField0_ = bitField0_; 1424 if (((from_bitField0_ & 0x00000001) != 0)) { 1425 result.name_ = name_; 1426 } 1427 if (((from_bitField0_ & 0x00000010) != 0)) { 1428 result.scheduleTime_ = 1429 scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.build(); 1430 } 1431 if (((from_bitField0_ & 0x00000020) != 0)) { 1432 result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); 1433 } 1434 if (((from_bitField0_ & 0x00000040) != 0)) { 1435 result.dispatchDeadline_ = 1436 dispatchDeadlineBuilder_ == null ? dispatchDeadline_ : dispatchDeadlineBuilder_.build(); 1437 } 1438 if (((from_bitField0_ & 0x00000080) != 0)) { 1439 result.dispatchCount_ = dispatchCount_; 1440 } 1441 if (((from_bitField0_ & 0x00000100) != 0)) { 1442 result.responseCount_ = responseCount_; 1443 } 1444 if (((from_bitField0_ & 0x00000200) != 0)) { 1445 result.firstAttempt_ = 1446 firstAttemptBuilder_ == null ? firstAttempt_ : firstAttemptBuilder_.build(); 1447 } 1448 if (((from_bitField0_ & 0x00000400) != 0)) { 1449 result.lastAttempt_ = 1450 lastAttemptBuilder_ == null ? lastAttempt_ : lastAttemptBuilder_.build(); 1451 } 1452 if (((from_bitField0_ & 0x00000800) != 0)) { 1453 result.view_ = view_; 1454 } 1455 } 1456 buildPartialOneofs(com.google.cloud.tasks.v2beta3.Task result)1457 private void buildPartialOneofs(com.google.cloud.tasks.v2beta3.Task result) { 1458 result.payloadTypeCase_ = payloadTypeCase_; 1459 result.payloadType_ = this.payloadType_; 1460 if (payloadTypeCase_ == 3 && appEngineHttpRequestBuilder_ != null) { 1461 result.payloadType_ = appEngineHttpRequestBuilder_.build(); 1462 } 1463 if (payloadTypeCase_ == 11 && httpRequestBuilder_ != null) { 1464 result.payloadType_ = httpRequestBuilder_.build(); 1465 } 1466 if (payloadTypeCase_ == 13 && pullMessageBuilder_ != null) { 1467 result.payloadType_ = pullMessageBuilder_.build(); 1468 } 1469 } 1470 1471 @java.lang.Override clone()1472 public Builder clone() { 1473 return super.clone(); 1474 } 1475 1476 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1477 public Builder setField( 1478 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1479 return super.setField(field, value); 1480 } 1481 1482 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1483 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1484 return super.clearField(field); 1485 } 1486 1487 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1488 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1489 return super.clearOneof(oneof); 1490 } 1491 1492 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1493 public Builder setRepeatedField( 1494 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1495 return super.setRepeatedField(field, index, value); 1496 } 1497 1498 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1499 public Builder addRepeatedField( 1500 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1501 return super.addRepeatedField(field, value); 1502 } 1503 1504 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1505 public Builder mergeFrom(com.google.protobuf.Message other) { 1506 if (other instanceof com.google.cloud.tasks.v2beta3.Task) { 1507 return mergeFrom((com.google.cloud.tasks.v2beta3.Task) other); 1508 } else { 1509 super.mergeFrom(other); 1510 return this; 1511 } 1512 } 1513 mergeFrom(com.google.cloud.tasks.v2beta3.Task other)1514 public Builder mergeFrom(com.google.cloud.tasks.v2beta3.Task other) { 1515 if (other == com.google.cloud.tasks.v2beta3.Task.getDefaultInstance()) return this; 1516 if (!other.getName().isEmpty()) { 1517 name_ = other.name_; 1518 bitField0_ |= 0x00000001; 1519 onChanged(); 1520 } 1521 if (other.hasScheduleTime()) { 1522 mergeScheduleTime(other.getScheduleTime()); 1523 } 1524 if (other.hasCreateTime()) { 1525 mergeCreateTime(other.getCreateTime()); 1526 } 1527 if (other.hasDispatchDeadline()) { 1528 mergeDispatchDeadline(other.getDispatchDeadline()); 1529 } 1530 if (other.getDispatchCount() != 0) { 1531 setDispatchCount(other.getDispatchCount()); 1532 } 1533 if (other.getResponseCount() != 0) { 1534 setResponseCount(other.getResponseCount()); 1535 } 1536 if (other.hasFirstAttempt()) { 1537 mergeFirstAttempt(other.getFirstAttempt()); 1538 } 1539 if (other.hasLastAttempt()) { 1540 mergeLastAttempt(other.getLastAttempt()); 1541 } 1542 if (other.view_ != 0) { 1543 setViewValue(other.getViewValue()); 1544 } 1545 switch (other.getPayloadTypeCase()) { 1546 case APP_ENGINE_HTTP_REQUEST: 1547 { 1548 mergeAppEngineHttpRequest(other.getAppEngineHttpRequest()); 1549 break; 1550 } 1551 case HTTP_REQUEST: 1552 { 1553 mergeHttpRequest(other.getHttpRequest()); 1554 break; 1555 } 1556 case PULL_MESSAGE: 1557 { 1558 mergePullMessage(other.getPullMessage()); 1559 break; 1560 } 1561 case PAYLOADTYPE_NOT_SET: 1562 { 1563 break; 1564 } 1565 } 1566 this.mergeUnknownFields(other.getUnknownFields()); 1567 onChanged(); 1568 return this; 1569 } 1570 1571 @java.lang.Override isInitialized()1572 public final boolean isInitialized() { 1573 return true; 1574 } 1575 1576 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1577 public Builder mergeFrom( 1578 com.google.protobuf.CodedInputStream input, 1579 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1580 throws java.io.IOException { 1581 if (extensionRegistry == null) { 1582 throw new java.lang.NullPointerException(); 1583 } 1584 try { 1585 boolean done = false; 1586 while (!done) { 1587 int tag = input.readTag(); 1588 switch (tag) { 1589 case 0: 1590 done = true; 1591 break; 1592 case 10: 1593 { 1594 name_ = input.readStringRequireUtf8(); 1595 bitField0_ |= 0x00000001; 1596 break; 1597 } // case 10 1598 case 26: 1599 { 1600 input.readMessage( 1601 getAppEngineHttpRequestFieldBuilder().getBuilder(), extensionRegistry); 1602 payloadTypeCase_ = 3; 1603 break; 1604 } // case 26 1605 case 34: 1606 { 1607 input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); 1608 bitField0_ |= 0x00000010; 1609 break; 1610 } // case 34 1611 case 42: 1612 { 1613 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); 1614 bitField0_ |= 0x00000020; 1615 break; 1616 } // case 42 1617 case 48: 1618 { 1619 dispatchCount_ = input.readInt32(); 1620 bitField0_ |= 0x00000080; 1621 break; 1622 } // case 48 1623 case 56: 1624 { 1625 responseCount_ = input.readInt32(); 1626 bitField0_ |= 0x00000100; 1627 break; 1628 } // case 56 1629 case 66: 1630 { 1631 input.readMessage(getFirstAttemptFieldBuilder().getBuilder(), extensionRegistry); 1632 bitField0_ |= 0x00000200; 1633 break; 1634 } // case 66 1635 case 74: 1636 { 1637 input.readMessage(getLastAttemptFieldBuilder().getBuilder(), extensionRegistry); 1638 bitField0_ |= 0x00000400; 1639 break; 1640 } // case 74 1641 case 80: 1642 { 1643 view_ = input.readEnum(); 1644 bitField0_ |= 0x00000800; 1645 break; 1646 } // case 80 1647 case 90: 1648 { 1649 input.readMessage(getHttpRequestFieldBuilder().getBuilder(), extensionRegistry); 1650 payloadTypeCase_ = 11; 1651 break; 1652 } // case 90 1653 case 98: 1654 { 1655 input.readMessage( 1656 getDispatchDeadlineFieldBuilder().getBuilder(), extensionRegistry); 1657 bitField0_ |= 0x00000040; 1658 break; 1659 } // case 98 1660 case 106: 1661 { 1662 input.readMessage(getPullMessageFieldBuilder().getBuilder(), extensionRegistry); 1663 payloadTypeCase_ = 13; 1664 break; 1665 } // case 106 1666 default: 1667 { 1668 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1669 done = true; // was an endgroup tag 1670 } 1671 break; 1672 } // default: 1673 } // switch (tag) 1674 } // while (!done) 1675 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1676 throw e.unwrapIOException(); 1677 } finally { 1678 onChanged(); 1679 } // finally 1680 return this; 1681 } 1682 1683 private int payloadTypeCase_ = 0; 1684 private java.lang.Object payloadType_; 1685 getPayloadTypeCase()1686 public PayloadTypeCase getPayloadTypeCase() { 1687 return PayloadTypeCase.forNumber(payloadTypeCase_); 1688 } 1689 clearPayloadType()1690 public Builder clearPayloadType() { 1691 payloadTypeCase_ = 0; 1692 payloadType_ = null; 1693 onChanged(); 1694 return this; 1695 } 1696 1697 private int bitField0_; 1698 1699 private java.lang.Object name_ = ""; 1700 /** 1701 * 1702 * 1703 * <pre> 1704 * Optionally caller-specified in 1705 * [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. 1706 * The task name. 1707 * The task name must have the following format: 1708 * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` 1709 * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), 1710 * hyphens (-), colons (:), or periods (.). 1711 * For more information, see 1712 * [Identifying 1713 * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) 1714 * * `LOCATION_ID` is the canonical ID for the task's location. 1715 * The list of available locations can be obtained by calling 1716 * [ListLocations][google.cloud.location.Locations.ListLocations]. 1717 * For more information, see https://cloud.google.com/about/locations/. 1718 * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or 1719 * hyphens (-). The maximum length is 100 characters. 1720 * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), 1721 * hyphens (-), or underscores (_). The maximum length is 500 characters. 1722 * </pre> 1723 * 1724 * <code>string name = 1;</code> 1725 * 1726 * @return The name. 1727 */ getName()1728 public java.lang.String getName() { 1729 java.lang.Object ref = name_; 1730 if (!(ref instanceof java.lang.String)) { 1731 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1732 java.lang.String s = bs.toStringUtf8(); 1733 name_ = s; 1734 return s; 1735 } else { 1736 return (java.lang.String) ref; 1737 } 1738 } 1739 /** 1740 * 1741 * 1742 * <pre> 1743 * Optionally caller-specified in 1744 * [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. 1745 * The task name. 1746 * The task name must have the following format: 1747 * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` 1748 * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), 1749 * hyphens (-), colons (:), or periods (.). 1750 * For more information, see 1751 * [Identifying 1752 * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) 1753 * * `LOCATION_ID` is the canonical ID for the task's location. 1754 * The list of available locations can be obtained by calling 1755 * [ListLocations][google.cloud.location.Locations.ListLocations]. 1756 * For more information, see https://cloud.google.com/about/locations/. 1757 * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or 1758 * hyphens (-). The maximum length is 100 characters. 1759 * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), 1760 * hyphens (-), or underscores (_). The maximum length is 500 characters. 1761 * </pre> 1762 * 1763 * <code>string name = 1;</code> 1764 * 1765 * @return The bytes for name. 1766 */ getNameBytes()1767 public com.google.protobuf.ByteString getNameBytes() { 1768 java.lang.Object ref = name_; 1769 if (ref instanceof String) { 1770 com.google.protobuf.ByteString b = 1771 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1772 name_ = b; 1773 return b; 1774 } else { 1775 return (com.google.protobuf.ByteString) ref; 1776 } 1777 } 1778 /** 1779 * 1780 * 1781 * <pre> 1782 * Optionally caller-specified in 1783 * [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. 1784 * The task name. 1785 * The task name must have the following format: 1786 * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` 1787 * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), 1788 * hyphens (-), colons (:), or periods (.). 1789 * For more information, see 1790 * [Identifying 1791 * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) 1792 * * `LOCATION_ID` is the canonical ID for the task's location. 1793 * The list of available locations can be obtained by calling 1794 * [ListLocations][google.cloud.location.Locations.ListLocations]. 1795 * For more information, see https://cloud.google.com/about/locations/. 1796 * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or 1797 * hyphens (-). The maximum length is 100 characters. 1798 * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), 1799 * hyphens (-), or underscores (_). The maximum length is 500 characters. 1800 * </pre> 1801 * 1802 * <code>string name = 1;</code> 1803 * 1804 * @param value The name to set. 1805 * @return This builder for chaining. 1806 */ setName(java.lang.String value)1807 public Builder setName(java.lang.String value) { 1808 if (value == null) { 1809 throw new NullPointerException(); 1810 } 1811 name_ = value; 1812 bitField0_ |= 0x00000001; 1813 onChanged(); 1814 return this; 1815 } 1816 /** 1817 * 1818 * 1819 * <pre> 1820 * Optionally caller-specified in 1821 * [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. 1822 * The task name. 1823 * The task name must have the following format: 1824 * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` 1825 * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), 1826 * hyphens (-), colons (:), or periods (.). 1827 * For more information, see 1828 * [Identifying 1829 * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) 1830 * * `LOCATION_ID` is the canonical ID for the task's location. 1831 * The list of available locations can be obtained by calling 1832 * [ListLocations][google.cloud.location.Locations.ListLocations]. 1833 * For more information, see https://cloud.google.com/about/locations/. 1834 * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or 1835 * hyphens (-). The maximum length is 100 characters. 1836 * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), 1837 * hyphens (-), or underscores (_). The maximum length is 500 characters. 1838 * </pre> 1839 * 1840 * <code>string name = 1;</code> 1841 * 1842 * @return This builder for chaining. 1843 */ clearName()1844 public Builder clearName() { 1845 name_ = getDefaultInstance().getName(); 1846 bitField0_ = (bitField0_ & ~0x00000001); 1847 onChanged(); 1848 return this; 1849 } 1850 /** 1851 * 1852 * 1853 * <pre> 1854 * Optionally caller-specified in 1855 * [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. 1856 * The task name. 1857 * The task name must have the following format: 1858 * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` 1859 * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), 1860 * hyphens (-), colons (:), or periods (.). 1861 * For more information, see 1862 * [Identifying 1863 * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) 1864 * * `LOCATION_ID` is the canonical ID for the task's location. 1865 * The list of available locations can be obtained by calling 1866 * [ListLocations][google.cloud.location.Locations.ListLocations]. 1867 * For more information, see https://cloud.google.com/about/locations/. 1868 * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or 1869 * hyphens (-). The maximum length is 100 characters. 1870 * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), 1871 * hyphens (-), or underscores (_). The maximum length is 500 characters. 1872 * </pre> 1873 * 1874 * <code>string name = 1;</code> 1875 * 1876 * @param value The bytes for name to set. 1877 * @return This builder for chaining. 1878 */ setNameBytes(com.google.protobuf.ByteString value)1879 public Builder setNameBytes(com.google.protobuf.ByteString value) { 1880 if (value == null) { 1881 throw new NullPointerException(); 1882 } 1883 checkByteStringIsUtf8(value); 1884 name_ = value; 1885 bitField0_ |= 0x00000001; 1886 onChanged(); 1887 return this; 1888 } 1889 1890 private com.google.protobuf.SingleFieldBuilderV3< 1891 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest, 1892 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder, 1893 com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder> 1894 appEngineHttpRequestBuilder_; 1895 /** 1896 * 1897 * 1898 * <pre> 1899 * HTTP request that is sent to the App Engine app handler. 1900 * An App Engine task is a task that has 1901 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 1902 * set. 1903 * </pre> 1904 * 1905 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 1906 * 1907 * @return Whether the appEngineHttpRequest field is set. 1908 */ 1909 @java.lang.Override hasAppEngineHttpRequest()1910 public boolean hasAppEngineHttpRequest() { 1911 return payloadTypeCase_ == 3; 1912 } 1913 /** 1914 * 1915 * 1916 * <pre> 1917 * HTTP request that is sent to the App Engine app handler. 1918 * An App Engine task is a task that has 1919 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 1920 * set. 1921 * </pre> 1922 * 1923 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 1924 * 1925 * @return The appEngineHttpRequest. 1926 */ 1927 @java.lang.Override getAppEngineHttpRequest()1928 public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest getAppEngineHttpRequest() { 1929 if (appEngineHttpRequestBuilder_ == null) { 1930 if (payloadTypeCase_ == 3) { 1931 return (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_; 1932 } 1933 return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); 1934 } else { 1935 if (payloadTypeCase_ == 3) { 1936 return appEngineHttpRequestBuilder_.getMessage(); 1937 } 1938 return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); 1939 } 1940 } 1941 /** 1942 * 1943 * 1944 * <pre> 1945 * HTTP request that is sent to the App Engine app handler. 1946 * An App Engine task is a task that has 1947 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 1948 * set. 1949 * </pre> 1950 * 1951 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 1952 */ setAppEngineHttpRequest( com.google.cloud.tasks.v2beta3.AppEngineHttpRequest value)1953 public Builder setAppEngineHttpRequest( 1954 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest value) { 1955 if (appEngineHttpRequestBuilder_ == null) { 1956 if (value == null) { 1957 throw new NullPointerException(); 1958 } 1959 payloadType_ = value; 1960 onChanged(); 1961 } else { 1962 appEngineHttpRequestBuilder_.setMessage(value); 1963 } 1964 payloadTypeCase_ = 3; 1965 return this; 1966 } 1967 /** 1968 * 1969 * 1970 * <pre> 1971 * HTTP request that is sent to the App Engine app handler. 1972 * An App Engine task is a task that has 1973 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 1974 * set. 1975 * </pre> 1976 * 1977 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 1978 */ setAppEngineHttpRequest( com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder builderForValue)1979 public Builder setAppEngineHttpRequest( 1980 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder builderForValue) { 1981 if (appEngineHttpRequestBuilder_ == null) { 1982 payloadType_ = builderForValue.build(); 1983 onChanged(); 1984 } else { 1985 appEngineHttpRequestBuilder_.setMessage(builderForValue.build()); 1986 } 1987 payloadTypeCase_ = 3; 1988 return this; 1989 } 1990 /** 1991 * 1992 * 1993 * <pre> 1994 * HTTP request that is sent to the App Engine app handler. 1995 * An App Engine task is a task that has 1996 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 1997 * set. 1998 * </pre> 1999 * 2000 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 2001 */ mergeAppEngineHttpRequest( com.google.cloud.tasks.v2beta3.AppEngineHttpRequest value)2002 public Builder mergeAppEngineHttpRequest( 2003 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest value) { 2004 if (appEngineHttpRequestBuilder_ == null) { 2005 if (payloadTypeCase_ == 3 2006 && payloadType_ 2007 != com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance()) { 2008 payloadType_ = 2009 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.newBuilder( 2010 (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_) 2011 .mergeFrom(value) 2012 .buildPartial(); 2013 } else { 2014 payloadType_ = value; 2015 } 2016 onChanged(); 2017 } else { 2018 if (payloadTypeCase_ == 3) { 2019 appEngineHttpRequestBuilder_.mergeFrom(value); 2020 } else { 2021 appEngineHttpRequestBuilder_.setMessage(value); 2022 } 2023 } 2024 payloadTypeCase_ = 3; 2025 return this; 2026 } 2027 /** 2028 * 2029 * 2030 * <pre> 2031 * HTTP request that is sent to the App Engine app handler. 2032 * An App Engine task is a task that has 2033 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 2034 * set. 2035 * </pre> 2036 * 2037 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 2038 */ clearAppEngineHttpRequest()2039 public Builder clearAppEngineHttpRequest() { 2040 if (appEngineHttpRequestBuilder_ == null) { 2041 if (payloadTypeCase_ == 3) { 2042 payloadTypeCase_ = 0; 2043 payloadType_ = null; 2044 onChanged(); 2045 } 2046 } else { 2047 if (payloadTypeCase_ == 3) { 2048 payloadTypeCase_ = 0; 2049 payloadType_ = null; 2050 } 2051 appEngineHttpRequestBuilder_.clear(); 2052 } 2053 return this; 2054 } 2055 /** 2056 * 2057 * 2058 * <pre> 2059 * HTTP request that is sent to the App Engine app handler. 2060 * An App Engine task is a task that has 2061 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 2062 * set. 2063 * </pre> 2064 * 2065 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 2066 */ 2067 public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder getAppEngineHttpRequestBuilder()2068 getAppEngineHttpRequestBuilder() { 2069 return getAppEngineHttpRequestFieldBuilder().getBuilder(); 2070 } 2071 /** 2072 * 2073 * 2074 * <pre> 2075 * HTTP request that is sent to the App Engine app handler. 2076 * An App Engine task is a task that has 2077 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 2078 * set. 2079 * </pre> 2080 * 2081 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 2082 */ 2083 @java.lang.Override 2084 public com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder getAppEngineHttpRequestOrBuilder()2085 getAppEngineHttpRequestOrBuilder() { 2086 if ((payloadTypeCase_ == 3) && (appEngineHttpRequestBuilder_ != null)) { 2087 return appEngineHttpRequestBuilder_.getMessageOrBuilder(); 2088 } else { 2089 if (payloadTypeCase_ == 3) { 2090 return (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_; 2091 } 2092 return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); 2093 } 2094 } 2095 /** 2096 * 2097 * 2098 * <pre> 2099 * HTTP request that is sent to the App Engine app handler. 2100 * An App Engine task is a task that has 2101 * [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] 2102 * set. 2103 * </pre> 2104 * 2105 * <code>.google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3;</code> 2106 */ 2107 private com.google.protobuf.SingleFieldBuilderV3< 2108 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest, 2109 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder, 2110 com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder> getAppEngineHttpRequestFieldBuilder()2111 getAppEngineHttpRequestFieldBuilder() { 2112 if (appEngineHttpRequestBuilder_ == null) { 2113 if (!(payloadTypeCase_ == 3)) { 2114 payloadType_ = com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); 2115 } 2116 appEngineHttpRequestBuilder_ = 2117 new com.google.protobuf.SingleFieldBuilderV3< 2118 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest, 2119 com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder, 2120 com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder>( 2121 (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_, 2122 getParentForChildren(), 2123 isClean()); 2124 payloadType_ = null; 2125 } 2126 payloadTypeCase_ = 3; 2127 onChanged(); 2128 return appEngineHttpRequestBuilder_; 2129 } 2130 2131 private com.google.protobuf.SingleFieldBuilderV3< 2132 com.google.cloud.tasks.v2beta3.HttpRequest, 2133 com.google.cloud.tasks.v2beta3.HttpRequest.Builder, 2134 com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder> 2135 httpRequestBuilder_; 2136 /** 2137 * 2138 * 2139 * <pre> 2140 * HTTP request that is sent to the task's target. 2141 * An HTTP task is a task that has 2142 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 2143 * </pre> 2144 * 2145 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 2146 * 2147 * @return Whether the httpRequest field is set. 2148 */ 2149 @java.lang.Override hasHttpRequest()2150 public boolean hasHttpRequest() { 2151 return payloadTypeCase_ == 11; 2152 } 2153 /** 2154 * 2155 * 2156 * <pre> 2157 * HTTP request that is sent to the task's target. 2158 * An HTTP task is a task that has 2159 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 2160 * </pre> 2161 * 2162 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 2163 * 2164 * @return The httpRequest. 2165 */ 2166 @java.lang.Override getHttpRequest()2167 public com.google.cloud.tasks.v2beta3.HttpRequest getHttpRequest() { 2168 if (httpRequestBuilder_ == null) { 2169 if (payloadTypeCase_ == 11) { 2170 return (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_; 2171 } 2172 return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); 2173 } else { 2174 if (payloadTypeCase_ == 11) { 2175 return httpRequestBuilder_.getMessage(); 2176 } 2177 return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); 2178 } 2179 } 2180 /** 2181 * 2182 * 2183 * <pre> 2184 * HTTP request that is sent to the task's target. 2185 * An HTTP task is a task that has 2186 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 2187 * </pre> 2188 * 2189 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 2190 */ setHttpRequest(com.google.cloud.tasks.v2beta3.HttpRequest value)2191 public Builder setHttpRequest(com.google.cloud.tasks.v2beta3.HttpRequest value) { 2192 if (httpRequestBuilder_ == null) { 2193 if (value == null) { 2194 throw new NullPointerException(); 2195 } 2196 payloadType_ = value; 2197 onChanged(); 2198 } else { 2199 httpRequestBuilder_.setMessage(value); 2200 } 2201 payloadTypeCase_ = 11; 2202 return this; 2203 } 2204 /** 2205 * 2206 * 2207 * <pre> 2208 * HTTP request that is sent to the task's target. 2209 * An HTTP task is a task that has 2210 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 2211 * </pre> 2212 * 2213 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 2214 */ setHttpRequest( com.google.cloud.tasks.v2beta3.HttpRequest.Builder builderForValue)2215 public Builder setHttpRequest( 2216 com.google.cloud.tasks.v2beta3.HttpRequest.Builder builderForValue) { 2217 if (httpRequestBuilder_ == null) { 2218 payloadType_ = builderForValue.build(); 2219 onChanged(); 2220 } else { 2221 httpRequestBuilder_.setMessage(builderForValue.build()); 2222 } 2223 payloadTypeCase_ = 11; 2224 return this; 2225 } 2226 /** 2227 * 2228 * 2229 * <pre> 2230 * HTTP request that is sent to the task's target. 2231 * An HTTP task is a task that has 2232 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 2233 * </pre> 2234 * 2235 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 2236 */ mergeHttpRequest(com.google.cloud.tasks.v2beta3.HttpRequest value)2237 public Builder mergeHttpRequest(com.google.cloud.tasks.v2beta3.HttpRequest value) { 2238 if (httpRequestBuilder_ == null) { 2239 if (payloadTypeCase_ == 11 2240 && payloadType_ != com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance()) { 2241 payloadType_ = 2242 com.google.cloud.tasks.v2beta3.HttpRequest.newBuilder( 2243 (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_) 2244 .mergeFrom(value) 2245 .buildPartial(); 2246 } else { 2247 payloadType_ = value; 2248 } 2249 onChanged(); 2250 } else { 2251 if (payloadTypeCase_ == 11) { 2252 httpRequestBuilder_.mergeFrom(value); 2253 } else { 2254 httpRequestBuilder_.setMessage(value); 2255 } 2256 } 2257 payloadTypeCase_ = 11; 2258 return this; 2259 } 2260 /** 2261 * 2262 * 2263 * <pre> 2264 * HTTP request that is sent to the task's target. 2265 * An HTTP task is a task that has 2266 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 2267 * </pre> 2268 * 2269 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 2270 */ clearHttpRequest()2271 public Builder clearHttpRequest() { 2272 if (httpRequestBuilder_ == null) { 2273 if (payloadTypeCase_ == 11) { 2274 payloadTypeCase_ = 0; 2275 payloadType_ = null; 2276 onChanged(); 2277 } 2278 } else { 2279 if (payloadTypeCase_ == 11) { 2280 payloadTypeCase_ = 0; 2281 payloadType_ = null; 2282 } 2283 httpRequestBuilder_.clear(); 2284 } 2285 return this; 2286 } 2287 /** 2288 * 2289 * 2290 * <pre> 2291 * HTTP request that is sent to the task's target. 2292 * An HTTP task is a task that has 2293 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 2294 * </pre> 2295 * 2296 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 2297 */ getHttpRequestBuilder()2298 public com.google.cloud.tasks.v2beta3.HttpRequest.Builder getHttpRequestBuilder() { 2299 return getHttpRequestFieldBuilder().getBuilder(); 2300 } 2301 /** 2302 * 2303 * 2304 * <pre> 2305 * HTTP request that is sent to the task's target. 2306 * An HTTP task is a task that has 2307 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 2308 * </pre> 2309 * 2310 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 2311 */ 2312 @java.lang.Override getHttpRequestOrBuilder()2313 public com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder getHttpRequestOrBuilder() { 2314 if ((payloadTypeCase_ == 11) && (httpRequestBuilder_ != null)) { 2315 return httpRequestBuilder_.getMessageOrBuilder(); 2316 } else { 2317 if (payloadTypeCase_ == 11) { 2318 return (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_; 2319 } 2320 return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); 2321 } 2322 } 2323 /** 2324 * 2325 * 2326 * <pre> 2327 * HTTP request that is sent to the task's target. 2328 * An HTTP task is a task that has 2329 * [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. 2330 * </pre> 2331 * 2332 * <code>.google.cloud.tasks.v2beta3.HttpRequest http_request = 11;</code> 2333 */ 2334 private com.google.protobuf.SingleFieldBuilderV3< 2335 com.google.cloud.tasks.v2beta3.HttpRequest, 2336 com.google.cloud.tasks.v2beta3.HttpRequest.Builder, 2337 com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder> getHttpRequestFieldBuilder()2338 getHttpRequestFieldBuilder() { 2339 if (httpRequestBuilder_ == null) { 2340 if (!(payloadTypeCase_ == 11)) { 2341 payloadType_ = com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); 2342 } 2343 httpRequestBuilder_ = 2344 new com.google.protobuf.SingleFieldBuilderV3< 2345 com.google.cloud.tasks.v2beta3.HttpRequest, 2346 com.google.cloud.tasks.v2beta3.HttpRequest.Builder, 2347 com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder>( 2348 (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_, 2349 getParentForChildren(), 2350 isClean()); 2351 payloadType_ = null; 2352 } 2353 payloadTypeCase_ = 11; 2354 onChanged(); 2355 return httpRequestBuilder_; 2356 } 2357 2358 private com.google.protobuf.SingleFieldBuilderV3< 2359 com.google.cloud.tasks.v2beta3.PullMessage, 2360 com.google.cloud.tasks.v2beta3.PullMessage.Builder, 2361 com.google.cloud.tasks.v2beta3.PullMessageOrBuilder> 2362 pullMessageBuilder_; 2363 /** 2364 * 2365 * 2366 * <pre> 2367 * Pull Message contained in a task in a 2368 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 2369 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 2370 * currently is to provide backward compatibility with App Engine Task Queue 2371 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 2372 * queues to provide a way to inspect contents of pull tasks through the 2373 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 2374 * </pre> 2375 * 2376 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 2377 * 2378 * @return Whether the pullMessage field is set. 2379 */ 2380 @java.lang.Override hasPullMessage()2381 public boolean hasPullMessage() { 2382 return payloadTypeCase_ == 13; 2383 } 2384 /** 2385 * 2386 * 2387 * <pre> 2388 * Pull Message contained in a task in a 2389 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 2390 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 2391 * currently is to provide backward compatibility with App Engine Task Queue 2392 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 2393 * queues to provide a way to inspect contents of pull tasks through the 2394 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 2395 * </pre> 2396 * 2397 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 2398 * 2399 * @return The pullMessage. 2400 */ 2401 @java.lang.Override getPullMessage()2402 public com.google.cloud.tasks.v2beta3.PullMessage getPullMessage() { 2403 if (pullMessageBuilder_ == null) { 2404 if (payloadTypeCase_ == 13) { 2405 return (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_; 2406 } 2407 return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); 2408 } else { 2409 if (payloadTypeCase_ == 13) { 2410 return pullMessageBuilder_.getMessage(); 2411 } 2412 return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); 2413 } 2414 } 2415 /** 2416 * 2417 * 2418 * <pre> 2419 * Pull Message contained in a task in a 2420 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 2421 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 2422 * currently is to provide backward compatibility with App Engine Task Queue 2423 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 2424 * queues to provide a way to inspect contents of pull tasks through the 2425 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 2426 * </pre> 2427 * 2428 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 2429 */ setPullMessage(com.google.cloud.tasks.v2beta3.PullMessage value)2430 public Builder setPullMessage(com.google.cloud.tasks.v2beta3.PullMessage value) { 2431 if (pullMessageBuilder_ == null) { 2432 if (value == null) { 2433 throw new NullPointerException(); 2434 } 2435 payloadType_ = value; 2436 onChanged(); 2437 } else { 2438 pullMessageBuilder_.setMessage(value); 2439 } 2440 payloadTypeCase_ = 13; 2441 return this; 2442 } 2443 /** 2444 * 2445 * 2446 * <pre> 2447 * Pull Message contained in a task in a 2448 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 2449 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 2450 * currently is to provide backward compatibility with App Engine Task Queue 2451 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 2452 * queues to provide a way to inspect contents of pull tasks through the 2453 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 2454 * </pre> 2455 * 2456 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 2457 */ setPullMessage( com.google.cloud.tasks.v2beta3.PullMessage.Builder builderForValue)2458 public Builder setPullMessage( 2459 com.google.cloud.tasks.v2beta3.PullMessage.Builder builderForValue) { 2460 if (pullMessageBuilder_ == null) { 2461 payloadType_ = builderForValue.build(); 2462 onChanged(); 2463 } else { 2464 pullMessageBuilder_.setMessage(builderForValue.build()); 2465 } 2466 payloadTypeCase_ = 13; 2467 return this; 2468 } 2469 /** 2470 * 2471 * 2472 * <pre> 2473 * Pull Message contained in a task in a 2474 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 2475 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 2476 * currently is to provide backward compatibility with App Engine Task Queue 2477 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 2478 * queues to provide a way to inspect contents of pull tasks through the 2479 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 2480 * </pre> 2481 * 2482 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 2483 */ mergePullMessage(com.google.cloud.tasks.v2beta3.PullMessage value)2484 public Builder mergePullMessage(com.google.cloud.tasks.v2beta3.PullMessage value) { 2485 if (pullMessageBuilder_ == null) { 2486 if (payloadTypeCase_ == 13 2487 && payloadType_ != com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance()) { 2488 payloadType_ = 2489 com.google.cloud.tasks.v2beta3.PullMessage.newBuilder( 2490 (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_) 2491 .mergeFrom(value) 2492 .buildPartial(); 2493 } else { 2494 payloadType_ = value; 2495 } 2496 onChanged(); 2497 } else { 2498 if (payloadTypeCase_ == 13) { 2499 pullMessageBuilder_.mergeFrom(value); 2500 } else { 2501 pullMessageBuilder_.setMessage(value); 2502 } 2503 } 2504 payloadTypeCase_ = 13; 2505 return this; 2506 } 2507 /** 2508 * 2509 * 2510 * <pre> 2511 * Pull Message contained in a task in a 2512 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 2513 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 2514 * currently is to provide backward compatibility with App Engine Task Queue 2515 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 2516 * queues to provide a way to inspect contents of pull tasks through the 2517 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 2518 * </pre> 2519 * 2520 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 2521 */ clearPullMessage()2522 public Builder clearPullMessage() { 2523 if (pullMessageBuilder_ == null) { 2524 if (payloadTypeCase_ == 13) { 2525 payloadTypeCase_ = 0; 2526 payloadType_ = null; 2527 onChanged(); 2528 } 2529 } else { 2530 if (payloadTypeCase_ == 13) { 2531 payloadTypeCase_ = 0; 2532 payloadType_ = null; 2533 } 2534 pullMessageBuilder_.clear(); 2535 } 2536 return this; 2537 } 2538 /** 2539 * 2540 * 2541 * <pre> 2542 * Pull Message contained in a task in a 2543 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 2544 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 2545 * currently is to provide backward compatibility with App Engine Task Queue 2546 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 2547 * queues to provide a way to inspect contents of pull tasks through the 2548 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 2549 * </pre> 2550 * 2551 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 2552 */ getPullMessageBuilder()2553 public com.google.cloud.tasks.v2beta3.PullMessage.Builder getPullMessageBuilder() { 2554 return getPullMessageFieldBuilder().getBuilder(); 2555 } 2556 /** 2557 * 2558 * 2559 * <pre> 2560 * Pull Message contained in a task in a 2561 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 2562 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 2563 * currently is to provide backward compatibility with App Engine Task Queue 2564 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 2565 * queues to provide a way to inspect contents of pull tasks through the 2566 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 2567 * </pre> 2568 * 2569 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 2570 */ 2571 @java.lang.Override getPullMessageOrBuilder()2572 public com.google.cloud.tasks.v2beta3.PullMessageOrBuilder getPullMessageOrBuilder() { 2573 if ((payloadTypeCase_ == 13) && (pullMessageBuilder_ != null)) { 2574 return pullMessageBuilder_.getMessageOrBuilder(); 2575 } else { 2576 if (payloadTypeCase_ == 13) { 2577 return (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_; 2578 } 2579 return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); 2580 } 2581 } 2582 /** 2583 * 2584 * 2585 * <pre> 2586 * Pull Message contained in a task in a 2587 * [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload 2588 * type cannot be explicitly set through Cloud Tasks API. Its purpose, 2589 * currently is to provide backward compatibility with App Engine Task Queue 2590 * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) 2591 * queues to provide a way to inspect contents of pull tasks through the 2592 * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. 2593 * </pre> 2594 * 2595 * <code>.google.cloud.tasks.v2beta3.PullMessage pull_message = 13;</code> 2596 */ 2597 private com.google.protobuf.SingleFieldBuilderV3< 2598 com.google.cloud.tasks.v2beta3.PullMessage, 2599 com.google.cloud.tasks.v2beta3.PullMessage.Builder, 2600 com.google.cloud.tasks.v2beta3.PullMessageOrBuilder> getPullMessageFieldBuilder()2601 getPullMessageFieldBuilder() { 2602 if (pullMessageBuilder_ == null) { 2603 if (!(payloadTypeCase_ == 13)) { 2604 payloadType_ = com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); 2605 } 2606 pullMessageBuilder_ = 2607 new com.google.protobuf.SingleFieldBuilderV3< 2608 com.google.cloud.tasks.v2beta3.PullMessage, 2609 com.google.cloud.tasks.v2beta3.PullMessage.Builder, 2610 com.google.cloud.tasks.v2beta3.PullMessageOrBuilder>( 2611 (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_, 2612 getParentForChildren(), 2613 isClean()); 2614 payloadType_ = null; 2615 } 2616 payloadTypeCase_ = 13; 2617 onChanged(); 2618 return pullMessageBuilder_; 2619 } 2620 2621 private com.google.protobuf.Timestamp scheduleTime_; 2622 private com.google.protobuf.SingleFieldBuilderV3< 2623 com.google.protobuf.Timestamp, 2624 com.google.protobuf.Timestamp.Builder, 2625 com.google.protobuf.TimestampOrBuilder> 2626 scheduleTimeBuilder_; 2627 /** 2628 * 2629 * 2630 * <pre> 2631 * The time when the task is scheduled to be attempted. 2632 * For App Engine queues, this is when the task will be attempted or retried. 2633 * `schedule_time` will be truncated to the nearest microsecond. 2634 * </pre> 2635 * 2636 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 2637 * 2638 * @return Whether the scheduleTime field is set. 2639 */ hasScheduleTime()2640 public boolean hasScheduleTime() { 2641 return ((bitField0_ & 0x00000010) != 0); 2642 } 2643 /** 2644 * 2645 * 2646 * <pre> 2647 * The time when the task is scheduled to be attempted. 2648 * For App Engine queues, this is when the task will be attempted or retried. 2649 * `schedule_time` will be truncated to the nearest microsecond. 2650 * </pre> 2651 * 2652 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 2653 * 2654 * @return The scheduleTime. 2655 */ getScheduleTime()2656 public com.google.protobuf.Timestamp getScheduleTime() { 2657 if (scheduleTimeBuilder_ == null) { 2658 return scheduleTime_ == null 2659 ? com.google.protobuf.Timestamp.getDefaultInstance() 2660 : scheduleTime_; 2661 } else { 2662 return scheduleTimeBuilder_.getMessage(); 2663 } 2664 } 2665 /** 2666 * 2667 * 2668 * <pre> 2669 * The time when the task is scheduled to be attempted. 2670 * For App Engine queues, this is when the task will be attempted or retried. 2671 * `schedule_time` will be truncated to the nearest microsecond. 2672 * </pre> 2673 * 2674 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 2675 */ setScheduleTime(com.google.protobuf.Timestamp value)2676 public Builder setScheduleTime(com.google.protobuf.Timestamp value) { 2677 if (scheduleTimeBuilder_ == null) { 2678 if (value == null) { 2679 throw new NullPointerException(); 2680 } 2681 scheduleTime_ = value; 2682 } else { 2683 scheduleTimeBuilder_.setMessage(value); 2684 } 2685 bitField0_ |= 0x00000010; 2686 onChanged(); 2687 return this; 2688 } 2689 /** 2690 * 2691 * 2692 * <pre> 2693 * The time when the task is scheduled to be attempted. 2694 * For App Engine queues, this is when the task will be attempted or retried. 2695 * `schedule_time` will be truncated to the nearest microsecond. 2696 * </pre> 2697 * 2698 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 2699 */ setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue)2700 public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { 2701 if (scheduleTimeBuilder_ == null) { 2702 scheduleTime_ = builderForValue.build(); 2703 } else { 2704 scheduleTimeBuilder_.setMessage(builderForValue.build()); 2705 } 2706 bitField0_ |= 0x00000010; 2707 onChanged(); 2708 return this; 2709 } 2710 /** 2711 * 2712 * 2713 * <pre> 2714 * The time when the task is scheduled to be attempted. 2715 * For App Engine queues, this is when the task will be attempted or retried. 2716 * `schedule_time` will be truncated to the nearest microsecond. 2717 * </pre> 2718 * 2719 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 2720 */ mergeScheduleTime(com.google.protobuf.Timestamp value)2721 public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { 2722 if (scheduleTimeBuilder_ == null) { 2723 if (((bitField0_ & 0x00000010) != 0) 2724 && scheduleTime_ != null 2725 && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 2726 getScheduleTimeBuilder().mergeFrom(value); 2727 } else { 2728 scheduleTime_ = value; 2729 } 2730 } else { 2731 scheduleTimeBuilder_.mergeFrom(value); 2732 } 2733 bitField0_ |= 0x00000010; 2734 onChanged(); 2735 return this; 2736 } 2737 /** 2738 * 2739 * 2740 * <pre> 2741 * The time when the task is scheduled to be attempted. 2742 * For App Engine queues, this is when the task will be attempted or retried. 2743 * `schedule_time` will be truncated to the nearest microsecond. 2744 * </pre> 2745 * 2746 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 2747 */ clearScheduleTime()2748 public Builder clearScheduleTime() { 2749 bitField0_ = (bitField0_ & ~0x00000010); 2750 scheduleTime_ = null; 2751 if (scheduleTimeBuilder_ != null) { 2752 scheduleTimeBuilder_.dispose(); 2753 scheduleTimeBuilder_ = null; 2754 } 2755 onChanged(); 2756 return this; 2757 } 2758 /** 2759 * 2760 * 2761 * <pre> 2762 * The time when the task is scheduled to be attempted. 2763 * For App Engine queues, this is when the task will be attempted or retried. 2764 * `schedule_time` will be truncated to the nearest microsecond. 2765 * </pre> 2766 * 2767 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 2768 */ getScheduleTimeBuilder()2769 public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { 2770 bitField0_ |= 0x00000010; 2771 onChanged(); 2772 return getScheduleTimeFieldBuilder().getBuilder(); 2773 } 2774 /** 2775 * 2776 * 2777 * <pre> 2778 * The time when the task is scheduled to be attempted. 2779 * For App Engine queues, this is when the task will be attempted or retried. 2780 * `schedule_time` will be truncated to the nearest microsecond. 2781 * </pre> 2782 * 2783 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 2784 */ getScheduleTimeOrBuilder()2785 public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { 2786 if (scheduleTimeBuilder_ != null) { 2787 return scheduleTimeBuilder_.getMessageOrBuilder(); 2788 } else { 2789 return scheduleTime_ == null 2790 ? com.google.protobuf.Timestamp.getDefaultInstance() 2791 : scheduleTime_; 2792 } 2793 } 2794 /** 2795 * 2796 * 2797 * <pre> 2798 * The time when the task is scheduled to be attempted. 2799 * For App Engine queues, this is when the task will be attempted or retried. 2800 * `schedule_time` will be truncated to the nearest microsecond. 2801 * </pre> 2802 * 2803 * <code>.google.protobuf.Timestamp schedule_time = 4;</code> 2804 */ 2805 private com.google.protobuf.SingleFieldBuilderV3< 2806 com.google.protobuf.Timestamp, 2807 com.google.protobuf.Timestamp.Builder, 2808 com.google.protobuf.TimestampOrBuilder> getScheduleTimeFieldBuilder()2809 getScheduleTimeFieldBuilder() { 2810 if (scheduleTimeBuilder_ == null) { 2811 scheduleTimeBuilder_ = 2812 new com.google.protobuf.SingleFieldBuilderV3< 2813 com.google.protobuf.Timestamp, 2814 com.google.protobuf.Timestamp.Builder, 2815 com.google.protobuf.TimestampOrBuilder>( 2816 getScheduleTime(), getParentForChildren(), isClean()); 2817 scheduleTime_ = null; 2818 } 2819 return scheduleTimeBuilder_; 2820 } 2821 2822 private com.google.protobuf.Timestamp createTime_; 2823 private com.google.protobuf.SingleFieldBuilderV3< 2824 com.google.protobuf.Timestamp, 2825 com.google.protobuf.Timestamp.Builder, 2826 com.google.protobuf.TimestampOrBuilder> 2827 createTimeBuilder_; 2828 /** 2829 * 2830 * 2831 * <pre> 2832 * Output only. The time that the task was created. 2833 * `create_time` will be truncated to the nearest second. 2834 * </pre> 2835 * 2836 * <code>.google.protobuf.Timestamp create_time = 5;</code> 2837 * 2838 * @return Whether the createTime field is set. 2839 */ hasCreateTime()2840 public boolean hasCreateTime() { 2841 return ((bitField0_ & 0x00000020) != 0); 2842 } 2843 /** 2844 * 2845 * 2846 * <pre> 2847 * Output only. The time that the task was created. 2848 * `create_time` will be truncated to the nearest second. 2849 * </pre> 2850 * 2851 * <code>.google.protobuf.Timestamp create_time = 5;</code> 2852 * 2853 * @return The createTime. 2854 */ getCreateTime()2855 public com.google.protobuf.Timestamp getCreateTime() { 2856 if (createTimeBuilder_ == null) { 2857 return createTime_ == null 2858 ? com.google.protobuf.Timestamp.getDefaultInstance() 2859 : createTime_; 2860 } else { 2861 return createTimeBuilder_.getMessage(); 2862 } 2863 } 2864 /** 2865 * 2866 * 2867 * <pre> 2868 * Output only. The time that the task was created. 2869 * `create_time` will be truncated to the nearest second. 2870 * </pre> 2871 * 2872 * <code>.google.protobuf.Timestamp create_time = 5;</code> 2873 */ setCreateTime(com.google.protobuf.Timestamp value)2874 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 2875 if (createTimeBuilder_ == null) { 2876 if (value == null) { 2877 throw new NullPointerException(); 2878 } 2879 createTime_ = value; 2880 } else { 2881 createTimeBuilder_.setMessage(value); 2882 } 2883 bitField0_ |= 0x00000020; 2884 onChanged(); 2885 return this; 2886 } 2887 /** 2888 * 2889 * 2890 * <pre> 2891 * Output only. The time that the task was created. 2892 * `create_time` will be truncated to the nearest second. 2893 * </pre> 2894 * 2895 * <code>.google.protobuf.Timestamp create_time = 5;</code> 2896 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)2897 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 2898 if (createTimeBuilder_ == null) { 2899 createTime_ = builderForValue.build(); 2900 } else { 2901 createTimeBuilder_.setMessage(builderForValue.build()); 2902 } 2903 bitField0_ |= 0x00000020; 2904 onChanged(); 2905 return this; 2906 } 2907 /** 2908 * 2909 * 2910 * <pre> 2911 * Output only. The time that the task was created. 2912 * `create_time` will be truncated to the nearest second. 2913 * </pre> 2914 * 2915 * <code>.google.protobuf.Timestamp create_time = 5;</code> 2916 */ mergeCreateTime(com.google.protobuf.Timestamp value)2917 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 2918 if (createTimeBuilder_ == null) { 2919 if (((bitField0_ & 0x00000020) != 0) 2920 && createTime_ != null 2921 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 2922 getCreateTimeBuilder().mergeFrom(value); 2923 } else { 2924 createTime_ = value; 2925 } 2926 } else { 2927 createTimeBuilder_.mergeFrom(value); 2928 } 2929 bitField0_ |= 0x00000020; 2930 onChanged(); 2931 return this; 2932 } 2933 /** 2934 * 2935 * 2936 * <pre> 2937 * Output only. The time that the task was created. 2938 * `create_time` will be truncated to the nearest second. 2939 * </pre> 2940 * 2941 * <code>.google.protobuf.Timestamp create_time = 5;</code> 2942 */ clearCreateTime()2943 public Builder clearCreateTime() { 2944 bitField0_ = (bitField0_ & ~0x00000020); 2945 createTime_ = null; 2946 if (createTimeBuilder_ != null) { 2947 createTimeBuilder_.dispose(); 2948 createTimeBuilder_ = null; 2949 } 2950 onChanged(); 2951 return this; 2952 } 2953 /** 2954 * 2955 * 2956 * <pre> 2957 * Output only. The time that the task was created. 2958 * `create_time` will be truncated to the nearest second. 2959 * </pre> 2960 * 2961 * <code>.google.protobuf.Timestamp create_time = 5;</code> 2962 */ getCreateTimeBuilder()2963 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 2964 bitField0_ |= 0x00000020; 2965 onChanged(); 2966 return getCreateTimeFieldBuilder().getBuilder(); 2967 } 2968 /** 2969 * 2970 * 2971 * <pre> 2972 * Output only. The time that the task was created. 2973 * `create_time` will be truncated to the nearest second. 2974 * </pre> 2975 * 2976 * <code>.google.protobuf.Timestamp create_time = 5;</code> 2977 */ getCreateTimeOrBuilder()2978 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 2979 if (createTimeBuilder_ != null) { 2980 return createTimeBuilder_.getMessageOrBuilder(); 2981 } else { 2982 return createTime_ == null 2983 ? com.google.protobuf.Timestamp.getDefaultInstance() 2984 : createTime_; 2985 } 2986 } 2987 /** 2988 * 2989 * 2990 * <pre> 2991 * Output only. The time that the task was created. 2992 * `create_time` will be truncated to the nearest second. 2993 * </pre> 2994 * 2995 * <code>.google.protobuf.Timestamp create_time = 5;</code> 2996 */ 2997 private com.google.protobuf.SingleFieldBuilderV3< 2998 com.google.protobuf.Timestamp, 2999 com.google.protobuf.Timestamp.Builder, 3000 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()3001 getCreateTimeFieldBuilder() { 3002 if (createTimeBuilder_ == null) { 3003 createTimeBuilder_ = 3004 new com.google.protobuf.SingleFieldBuilderV3< 3005 com.google.protobuf.Timestamp, 3006 com.google.protobuf.Timestamp.Builder, 3007 com.google.protobuf.TimestampOrBuilder>( 3008 getCreateTime(), getParentForChildren(), isClean()); 3009 createTime_ = null; 3010 } 3011 return createTimeBuilder_; 3012 } 3013 3014 private com.google.protobuf.Duration dispatchDeadline_; 3015 private com.google.protobuf.SingleFieldBuilderV3< 3016 com.google.protobuf.Duration, 3017 com.google.protobuf.Duration.Builder, 3018 com.google.protobuf.DurationOrBuilder> 3019 dispatchDeadlineBuilder_; 3020 /** 3021 * 3022 * 3023 * <pre> 3024 * The deadline for requests sent to the worker. If the worker does not 3025 * respond by this deadline then the request is cancelled and the attempt 3026 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 3027 * task according to the 3028 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 3029 * Note that when the request is cancelled, Cloud Tasks will stop listening 3030 * for the response, but whether the worker stops processing depends on the 3031 * worker. For example, if the worker is stuck, it may not react to cancelled 3032 * requests. 3033 * The default and maximum values depend on the type of request: 3034 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 3035 * 10 minutes. The deadline 3036 * must be in the interval [15 seconds, 30 minutes]. 3037 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 3038 * 0 indicates that the 3039 * request has the default deadline. The default deadline depends on the 3040 * [scaling 3041 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 3042 * of the service: 10 minutes for standard apps with automatic scaling, 24 3043 * hours for standard apps with manual and basic scaling, and 60 minutes for 3044 * flex apps. If the request deadline is set, it must be in the interval [15 3045 * seconds, 24 hours 15 seconds]. Regardless of the task's 3046 * `dispatch_deadline`, the app handler will not run for longer than than 3047 * the service's timeout. We recommend setting the `dispatch_deadline` to 3048 * at most a few seconds more than the app handler's timeout. For more 3049 * information see 3050 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 3051 * `dispatch_deadline` will be truncated to the nearest millisecond. The 3052 * deadline is an approximate deadline. 3053 * </pre> 3054 * 3055 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 3056 * 3057 * @return Whether the dispatchDeadline field is set. 3058 */ hasDispatchDeadline()3059 public boolean hasDispatchDeadline() { 3060 return ((bitField0_ & 0x00000040) != 0); 3061 } 3062 /** 3063 * 3064 * 3065 * <pre> 3066 * The deadline for requests sent to the worker. If the worker does not 3067 * respond by this deadline then the request is cancelled and the attempt 3068 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 3069 * task according to the 3070 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 3071 * Note that when the request is cancelled, Cloud Tasks will stop listening 3072 * for the response, but whether the worker stops processing depends on the 3073 * worker. For example, if the worker is stuck, it may not react to cancelled 3074 * requests. 3075 * The default and maximum values depend on the type of request: 3076 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 3077 * 10 minutes. The deadline 3078 * must be in the interval [15 seconds, 30 minutes]. 3079 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 3080 * 0 indicates that the 3081 * request has the default deadline. The default deadline depends on the 3082 * [scaling 3083 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 3084 * of the service: 10 minutes for standard apps with automatic scaling, 24 3085 * hours for standard apps with manual and basic scaling, and 60 minutes for 3086 * flex apps. If the request deadline is set, it must be in the interval [15 3087 * seconds, 24 hours 15 seconds]. Regardless of the task's 3088 * `dispatch_deadline`, the app handler will not run for longer than than 3089 * the service's timeout. We recommend setting the `dispatch_deadline` to 3090 * at most a few seconds more than the app handler's timeout. For more 3091 * information see 3092 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 3093 * `dispatch_deadline` will be truncated to the nearest millisecond. The 3094 * deadline is an approximate deadline. 3095 * </pre> 3096 * 3097 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 3098 * 3099 * @return The dispatchDeadline. 3100 */ getDispatchDeadline()3101 public com.google.protobuf.Duration getDispatchDeadline() { 3102 if (dispatchDeadlineBuilder_ == null) { 3103 return dispatchDeadline_ == null 3104 ? com.google.protobuf.Duration.getDefaultInstance() 3105 : dispatchDeadline_; 3106 } else { 3107 return dispatchDeadlineBuilder_.getMessage(); 3108 } 3109 } 3110 /** 3111 * 3112 * 3113 * <pre> 3114 * The deadline for requests sent to the worker. If the worker does not 3115 * respond by this deadline then the request is cancelled and the attempt 3116 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 3117 * task according to the 3118 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 3119 * Note that when the request is cancelled, Cloud Tasks will stop listening 3120 * for the response, but whether the worker stops processing depends on the 3121 * worker. For example, if the worker is stuck, it may not react to cancelled 3122 * requests. 3123 * The default and maximum values depend on the type of request: 3124 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 3125 * 10 minutes. The deadline 3126 * must be in the interval [15 seconds, 30 minutes]. 3127 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 3128 * 0 indicates that the 3129 * request has the default deadline. The default deadline depends on the 3130 * [scaling 3131 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 3132 * of the service: 10 minutes for standard apps with automatic scaling, 24 3133 * hours for standard apps with manual and basic scaling, and 60 minutes for 3134 * flex apps. If the request deadline is set, it must be in the interval [15 3135 * seconds, 24 hours 15 seconds]. Regardless of the task's 3136 * `dispatch_deadline`, the app handler will not run for longer than than 3137 * the service's timeout. We recommend setting the `dispatch_deadline` to 3138 * at most a few seconds more than the app handler's timeout. For more 3139 * information see 3140 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 3141 * `dispatch_deadline` will be truncated to the nearest millisecond. The 3142 * deadline is an approximate deadline. 3143 * </pre> 3144 * 3145 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 3146 */ setDispatchDeadline(com.google.protobuf.Duration value)3147 public Builder setDispatchDeadline(com.google.protobuf.Duration value) { 3148 if (dispatchDeadlineBuilder_ == null) { 3149 if (value == null) { 3150 throw new NullPointerException(); 3151 } 3152 dispatchDeadline_ = value; 3153 } else { 3154 dispatchDeadlineBuilder_.setMessage(value); 3155 } 3156 bitField0_ |= 0x00000040; 3157 onChanged(); 3158 return this; 3159 } 3160 /** 3161 * 3162 * 3163 * <pre> 3164 * The deadline for requests sent to the worker. If the worker does not 3165 * respond by this deadline then the request is cancelled and the attempt 3166 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 3167 * task according to the 3168 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 3169 * Note that when the request is cancelled, Cloud Tasks will stop listening 3170 * for the response, but whether the worker stops processing depends on the 3171 * worker. For example, if the worker is stuck, it may not react to cancelled 3172 * requests. 3173 * The default and maximum values depend on the type of request: 3174 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 3175 * 10 minutes. The deadline 3176 * must be in the interval [15 seconds, 30 minutes]. 3177 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 3178 * 0 indicates that the 3179 * request has the default deadline. The default deadline depends on the 3180 * [scaling 3181 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 3182 * of the service: 10 minutes for standard apps with automatic scaling, 24 3183 * hours for standard apps with manual and basic scaling, and 60 minutes for 3184 * flex apps. If the request deadline is set, it must be in the interval [15 3185 * seconds, 24 hours 15 seconds]. Regardless of the task's 3186 * `dispatch_deadline`, the app handler will not run for longer than than 3187 * the service's timeout. We recommend setting the `dispatch_deadline` to 3188 * at most a few seconds more than the app handler's timeout. For more 3189 * information see 3190 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 3191 * `dispatch_deadline` will be truncated to the nearest millisecond. The 3192 * deadline is an approximate deadline. 3193 * </pre> 3194 * 3195 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 3196 */ setDispatchDeadline(com.google.protobuf.Duration.Builder builderForValue)3197 public Builder setDispatchDeadline(com.google.protobuf.Duration.Builder builderForValue) { 3198 if (dispatchDeadlineBuilder_ == null) { 3199 dispatchDeadline_ = builderForValue.build(); 3200 } else { 3201 dispatchDeadlineBuilder_.setMessage(builderForValue.build()); 3202 } 3203 bitField0_ |= 0x00000040; 3204 onChanged(); 3205 return this; 3206 } 3207 /** 3208 * 3209 * 3210 * <pre> 3211 * The deadline for requests sent to the worker. If the worker does not 3212 * respond by this deadline then the request is cancelled and the attempt 3213 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 3214 * task according to the 3215 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 3216 * Note that when the request is cancelled, Cloud Tasks will stop listening 3217 * for the response, but whether the worker stops processing depends on the 3218 * worker. For example, if the worker is stuck, it may not react to cancelled 3219 * requests. 3220 * The default and maximum values depend on the type of request: 3221 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 3222 * 10 minutes. The deadline 3223 * must be in the interval [15 seconds, 30 minutes]. 3224 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 3225 * 0 indicates that the 3226 * request has the default deadline. The default deadline depends on the 3227 * [scaling 3228 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 3229 * of the service: 10 minutes for standard apps with automatic scaling, 24 3230 * hours for standard apps with manual and basic scaling, and 60 minutes for 3231 * flex apps. If the request deadline is set, it must be in the interval [15 3232 * seconds, 24 hours 15 seconds]. Regardless of the task's 3233 * `dispatch_deadline`, the app handler will not run for longer than than 3234 * the service's timeout. We recommend setting the `dispatch_deadline` to 3235 * at most a few seconds more than the app handler's timeout. For more 3236 * information see 3237 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 3238 * `dispatch_deadline` will be truncated to the nearest millisecond. The 3239 * deadline is an approximate deadline. 3240 * </pre> 3241 * 3242 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 3243 */ mergeDispatchDeadline(com.google.protobuf.Duration value)3244 public Builder mergeDispatchDeadline(com.google.protobuf.Duration value) { 3245 if (dispatchDeadlineBuilder_ == null) { 3246 if (((bitField0_ & 0x00000040) != 0) 3247 && dispatchDeadline_ != null 3248 && dispatchDeadline_ != com.google.protobuf.Duration.getDefaultInstance()) { 3249 getDispatchDeadlineBuilder().mergeFrom(value); 3250 } else { 3251 dispatchDeadline_ = value; 3252 } 3253 } else { 3254 dispatchDeadlineBuilder_.mergeFrom(value); 3255 } 3256 bitField0_ |= 0x00000040; 3257 onChanged(); 3258 return this; 3259 } 3260 /** 3261 * 3262 * 3263 * <pre> 3264 * The deadline for requests sent to the worker. If the worker does not 3265 * respond by this deadline then the request is cancelled and the attempt 3266 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 3267 * task according to the 3268 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 3269 * Note that when the request is cancelled, Cloud Tasks will stop listening 3270 * for the response, but whether the worker stops processing depends on the 3271 * worker. For example, if the worker is stuck, it may not react to cancelled 3272 * requests. 3273 * The default and maximum values depend on the type of request: 3274 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 3275 * 10 minutes. The deadline 3276 * must be in the interval [15 seconds, 30 minutes]. 3277 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 3278 * 0 indicates that the 3279 * request has the default deadline. The default deadline depends on the 3280 * [scaling 3281 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 3282 * of the service: 10 minutes for standard apps with automatic scaling, 24 3283 * hours for standard apps with manual and basic scaling, and 60 minutes for 3284 * flex apps. If the request deadline is set, it must be in the interval [15 3285 * seconds, 24 hours 15 seconds]. Regardless of the task's 3286 * `dispatch_deadline`, the app handler will not run for longer than than 3287 * the service's timeout. We recommend setting the `dispatch_deadline` to 3288 * at most a few seconds more than the app handler's timeout. For more 3289 * information see 3290 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 3291 * `dispatch_deadline` will be truncated to the nearest millisecond. The 3292 * deadline is an approximate deadline. 3293 * </pre> 3294 * 3295 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 3296 */ clearDispatchDeadline()3297 public Builder clearDispatchDeadline() { 3298 bitField0_ = (bitField0_ & ~0x00000040); 3299 dispatchDeadline_ = null; 3300 if (dispatchDeadlineBuilder_ != null) { 3301 dispatchDeadlineBuilder_.dispose(); 3302 dispatchDeadlineBuilder_ = null; 3303 } 3304 onChanged(); 3305 return this; 3306 } 3307 /** 3308 * 3309 * 3310 * <pre> 3311 * The deadline for requests sent to the worker. If the worker does not 3312 * respond by this deadline then the request is cancelled and the attempt 3313 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 3314 * task according to the 3315 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 3316 * Note that when the request is cancelled, Cloud Tasks will stop listening 3317 * for the response, but whether the worker stops processing depends on the 3318 * worker. For example, if the worker is stuck, it may not react to cancelled 3319 * requests. 3320 * The default and maximum values depend on the type of request: 3321 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 3322 * 10 minutes. The deadline 3323 * must be in the interval [15 seconds, 30 minutes]. 3324 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 3325 * 0 indicates that the 3326 * request has the default deadline. The default deadline depends on the 3327 * [scaling 3328 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 3329 * of the service: 10 minutes for standard apps with automatic scaling, 24 3330 * hours for standard apps with manual and basic scaling, and 60 minutes for 3331 * flex apps. If the request deadline is set, it must be in the interval [15 3332 * seconds, 24 hours 15 seconds]. Regardless of the task's 3333 * `dispatch_deadline`, the app handler will not run for longer than than 3334 * the service's timeout. We recommend setting the `dispatch_deadline` to 3335 * at most a few seconds more than the app handler's timeout. For more 3336 * information see 3337 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 3338 * `dispatch_deadline` will be truncated to the nearest millisecond. The 3339 * deadline is an approximate deadline. 3340 * </pre> 3341 * 3342 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 3343 */ getDispatchDeadlineBuilder()3344 public com.google.protobuf.Duration.Builder getDispatchDeadlineBuilder() { 3345 bitField0_ |= 0x00000040; 3346 onChanged(); 3347 return getDispatchDeadlineFieldBuilder().getBuilder(); 3348 } 3349 /** 3350 * 3351 * 3352 * <pre> 3353 * The deadline for requests sent to the worker. If the worker does not 3354 * respond by this deadline then the request is cancelled and the attempt 3355 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 3356 * task according to the 3357 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 3358 * Note that when the request is cancelled, Cloud Tasks will stop listening 3359 * for the response, but whether the worker stops processing depends on the 3360 * worker. For example, if the worker is stuck, it may not react to cancelled 3361 * requests. 3362 * The default and maximum values depend on the type of request: 3363 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 3364 * 10 minutes. The deadline 3365 * must be in the interval [15 seconds, 30 minutes]. 3366 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 3367 * 0 indicates that the 3368 * request has the default deadline. The default deadline depends on the 3369 * [scaling 3370 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 3371 * of the service: 10 minutes for standard apps with automatic scaling, 24 3372 * hours for standard apps with manual and basic scaling, and 60 minutes for 3373 * flex apps. If the request deadline is set, it must be in the interval [15 3374 * seconds, 24 hours 15 seconds]. Regardless of the task's 3375 * `dispatch_deadline`, the app handler will not run for longer than than 3376 * the service's timeout. We recommend setting the `dispatch_deadline` to 3377 * at most a few seconds more than the app handler's timeout. For more 3378 * information see 3379 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 3380 * `dispatch_deadline` will be truncated to the nearest millisecond. The 3381 * deadline is an approximate deadline. 3382 * </pre> 3383 * 3384 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 3385 */ getDispatchDeadlineOrBuilder()3386 public com.google.protobuf.DurationOrBuilder getDispatchDeadlineOrBuilder() { 3387 if (dispatchDeadlineBuilder_ != null) { 3388 return dispatchDeadlineBuilder_.getMessageOrBuilder(); 3389 } else { 3390 return dispatchDeadline_ == null 3391 ? com.google.protobuf.Duration.getDefaultInstance() 3392 : dispatchDeadline_; 3393 } 3394 } 3395 /** 3396 * 3397 * 3398 * <pre> 3399 * The deadline for requests sent to the worker. If the worker does not 3400 * respond by this deadline then the request is cancelled and the attempt 3401 * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the 3402 * task according to the 3403 * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. 3404 * Note that when the request is cancelled, Cloud Tasks will stop listening 3405 * for the response, but whether the worker stops processing depends on the 3406 * worker. For example, if the worker is stuck, it may not react to cancelled 3407 * requests. 3408 * The default and maximum values depend on the type of request: 3409 * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 3410 * 10 minutes. The deadline 3411 * must be in the interval [15 seconds, 30 minutes]. 3412 * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 3413 * 0 indicates that the 3414 * request has the default deadline. The default deadline depends on the 3415 * [scaling 3416 * type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) 3417 * of the service: 10 minutes for standard apps with automatic scaling, 24 3418 * hours for standard apps with manual and basic scaling, and 60 minutes for 3419 * flex apps. If the request deadline is set, it must be in the interval [15 3420 * seconds, 24 hours 15 seconds]. Regardless of the task's 3421 * `dispatch_deadline`, the app handler will not run for longer than than 3422 * the service's timeout. We recommend setting the `dispatch_deadline` to 3423 * at most a few seconds more than the app handler's timeout. For more 3424 * information see 3425 * [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). 3426 * `dispatch_deadline` will be truncated to the nearest millisecond. The 3427 * deadline is an approximate deadline. 3428 * </pre> 3429 * 3430 * <code>.google.protobuf.Duration dispatch_deadline = 12;</code> 3431 */ 3432 private com.google.protobuf.SingleFieldBuilderV3< 3433 com.google.protobuf.Duration, 3434 com.google.protobuf.Duration.Builder, 3435 com.google.protobuf.DurationOrBuilder> getDispatchDeadlineFieldBuilder()3436 getDispatchDeadlineFieldBuilder() { 3437 if (dispatchDeadlineBuilder_ == null) { 3438 dispatchDeadlineBuilder_ = 3439 new com.google.protobuf.SingleFieldBuilderV3< 3440 com.google.protobuf.Duration, 3441 com.google.protobuf.Duration.Builder, 3442 com.google.protobuf.DurationOrBuilder>( 3443 getDispatchDeadline(), getParentForChildren(), isClean()); 3444 dispatchDeadline_ = null; 3445 } 3446 return dispatchDeadlineBuilder_; 3447 } 3448 3449 private int dispatchCount_; 3450 /** 3451 * 3452 * 3453 * <pre> 3454 * Output only. The number of attempts dispatched. 3455 * This count includes attempts which have been dispatched but haven't 3456 * received a response. 3457 * </pre> 3458 * 3459 * <code>int32 dispatch_count = 6;</code> 3460 * 3461 * @return The dispatchCount. 3462 */ 3463 @java.lang.Override getDispatchCount()3464 public int getDispatchCount() { 3465 return dispatchCount_; 3466 } 3467 /** 3468 * 3469 * 3470 * <pre> 3471 * Output only. The number of attempts dispatched. 3472 * This count includes attempts which have been dispatched but haven't 3473 * received a response. 3474 * </pre> 3475 * 3476 * <code>int32 dispatch_count = 6;</code> 3477 * 3478 * @param value The dispatchCount to set. 3479 * @return This builder for chaining. 3480 */ setDispatchCount(int value)3481 public Builder setDispatchCount(int value) { 3482 3483 dispatchCount_ = value; 3484 bitField0_ |= 0x00000080; 3485 onChanged(); 3486 return this; 3487 } 3488 /** 3489 * 3490 * 3491 * <pre> 3492 * Output only. The number of attempts dispatched. 3493 * This count includes attempts which have been dispatched but haven't 3494 * received a response. 3495 * </pre> 3496 * 3497 * <code>int32 dispatch_count = 6;</code> 3498 * 3499 * @return This builder for chaining. 3500 */ clearDispatchCount()3501 public Builder clearDispatchCount() { 3502 bitField0_ = (bitField0_ & ~0x00000080); 3503 dispatchCount_ = 0; 3504 onChanged(); 3505 return this; 3506 } 3507 3508 private int responseCount_; 3509 /** 3510 * 3511 * 3512 * <pre> 3513 * Output only. The number of attempts which have received a response. 3514 * </pre> 3515 * 3516 * <code>int32 response_count = 7;</code> 3517 * 3518 * @return The responseCount. 3519 */ 3520 @java.lang.Override getResponseCount()3521 public int getResponseCount() { 3522 return responseCount_; 3523 } 3524 /** 3525 * 3526 * 3527 * <pre> 3528 * Output only. The number of attempts which have received a response. 3529 * </pre> 3530 * 3531 * <code>int32 response_count = 7;</code> 3532 * 3533 * @param value The responseCount to set. 3534 * @return This builder for chaining. 3535 */ setResponseCount(int value)3536 public Builder setResponseCount(int value) { 3537 3538 responseCount_ = value; 3539 bitField0_ |= 0x00000100; 3540 onChanged(); 3541 return this; 3542 } 3543 /** 3544 * 3545 * 3546 * <pre> 3547 * Output only. The number of attempts which have received a response. 3548 * </pre> 3549 * 3550 * <code>int32 response_count = 7;</code> 3551 * 3552 * @return This builder for chaining. 3553 */ clearResponseCount()3554 public Builder clearResponseCount() { 3555 bitField0_ = (bitField0_ & ~0x00000100); 3556 responseCount_ = 0; 3557 onChanged(); 3558 return this; 3559 } 3560 3561 private com.google.cloud.tasks.v2beta3.Attempt firstAttempt_; 3562 private com.google.protobuf.SingleFieldBuilderV3< 3563 com.google.cloud.tasks.v2beta3.Attempt, 3564 com.google.cloud.tasks.v2beta3.Attempt.Builder, 3565 com.google.cloud.tasks.v2beta3.AttemptOrBuilder> 3566 firstAttemptBuilder_; 3567 /** 3568 * 3569 * 3570 * <pre> 3571 * Output only. The status of the task's first attempt. 3572 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 3573 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 3574 * is not retained by Cloud Tasks. 3575 * </pre> 3576 * 3577 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 3578 * 3579 * @return Whether the firstAttempt field is set. 3580 */ hasFirstAttempt()3581 public boolean hasFirstAttempt() { 3582 return ((bitField0_ & 0x00000200) != 0); 3583 } 3584 /** 3585 * 3586 * 3587 * <pre> 3588 * Output only. The status of the task's first attempt. 3589 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 3590 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 3591 * is not retained by Cloud Tasks. 3592 * </pre> 3593 * 3594 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 3595 * 3596 * @return The firstAttempt. 3597 */ getFirstAttempt()3598 public com.google.cloud.tasks.v2beta3.Attempt getFirstAttempt() { 3599 if (firstAttemptBuilder_ == null) { 3600 return firstAttempt_ == null 3601 ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() 3602 : firstAttempt_; 3603 } else { 3604 return firstAttemptBuilder_.getMessage(); 3605 } 3606 } 3607 /** 3608 * 3609 * 3610 * <pre> 3611 * Output only. The status of the task's first attempt. 3612 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 3613 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 3614 * is not retained by Cloud Tasks. 3615 * </pre> 3616 * 3617 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 3618 */ setFirstAttempt(com.google.cloud.tasks.v2beta3.Attempt value)3619 public Builder setFirstAttempt(com.google.cloud.tasks.v2beta3.Attempt value) { 3620 if (firstAttemptBuilder_ == null) { 3621 if (value == null) { 3622 throw new NullPointerException(); 3623 } 3624 firstAttempt_ = value; 3625 } else { 3626 firstAttemptBuilder_.setMessage(value); 3627 } 3628 bitField0_ |= 0x00000200; 3629 onChanged(); 3630 return this; 3631 } 3632 /** 3633 * 3634 * 3635 * <pre> 3636 * Output only. The status of the task's first attempt. 3637 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 3638 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 3639 * is not retained by Cloud Tasks. 3640 * </pre> 3641 * 3642 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 3643 */ setFirstAttempt(com.google.cloud.tasks.v2beta3.Attempt.Builder builderForValue)3644 public Builder setFirstAttempt(com.google.cloud.tasks.v2beta3.Attempt.Builder builderForValue) { 3645 if (firstAttemptBuilder_ == null) { 3646 firstAttempt_ = builderForValue.build(); 3647 } else { 3648 firstAttemptBuilder_.setMessage(builderForValue.build()); 3649 } 3650 bitField0_ |= 0x00000200; 3651 onChanged(); 3652 return this; 3653 } 3654 /** 3655 * 3656 * 3657 * <pre> 3658 * Output only. The status of the task's first attempt. 3659 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 3660 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 3661 * is not retained by Cloud Tasks. 3662 * </pre> 3663 * 3664 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 3665 */ mergeFirstAttempt(com.google.cloud.tasks.v2beta3.Attempt value)3666 public Builder mergeFirstAttempt(com.google.cloud.tasks.v2beta3.Attempt value) { 3667 if (firstAttemptBuilder_ == null) { 3668 if (((bitField0_ & 0x00000200) != 0) 3669 && firstAttempt_ != null 3670 && firstAttempt_ != com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance()) { 3671 getFirstAttemptBuilder().mergeFrom(value); 3672 } else { 3673 firstAttempt_ = value; 3674 } 3675 } else { 3676 firstAttemptBuilder_.mergeFrom(value); 3677 } 3678 bitField0_ |= 0x00000200; 3679 onChanged(); 3680 return this; 3681 } 3682 /** 3683 * 3684 * 3685 * <pre> 3686 * Output only. The status of the task's first attempt. 3687 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 3688 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 3689 * is not retained by Cloud Tasks. 3690 * </pre> 3691 * 3692 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 3693 */ clearFirstAttempt()3694 public Builder clearFirstAttempt() { 3695 bitField0_ = (bitField0_ & ~0x00000200); 3696 firstAttempt_ = null; 3697 if (firstAttemptBuilder_ != null) { 3698 firstAttemptBuilder_.dispose(); 3699 firstAttemptBuilder_ = null; 3700 } 3701 onChanged(); 3702 return this; 3703 } 3704 /** 3705 * 3706 * 3707 * <pre> 3708 * Output only. The status of the task's first attempt. 3709 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 3710 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 3711 * is not retained by Cloud Tasks. 3712 * </pre> 3713 * 3714 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 3715 */ getFirstAttemptBuilder()3716 public com.google.cloud.tasks.v2beta3.Attempt.Builder getFirstAttemptBuilder() { 3717 bitField0_ |= 0x00000200; 3718 onChanged(); 3719 return getFirstAttemptFieldBuilder().getBuilder(); 3720 } 3721 /** 3722 * 3723 * 3724 * <pre> 3725 * Output only. The status of the task's first attempt. 3726 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 3727 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 3728 * is not retained by Cloud Tasks. 3729 * </pre> 3730 * 3731 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 3732 */ getFirstAttemptOrBuilder()3733 public com.google.cloud.tasks.v2beta3.AttemptOrBuilder getFirstAttemptOrBuilder() { 3734 if (firstAttemptBuilder_ != null) { 3735 return firstAttemptBuilder_.getMessageOrBuilder(); 3736 } else { 3737 return firstAttempt_ == null 3738 ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() 3739 : firstAttempt_; 3740 } 3741 } 3742 /** 3743 * 3744 * 3745 * <pre> 3746 * Output only. The status of the task's first attempt. 3747 * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will 3748 * be set. The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information 3749 * is not retained by Cloud Tasks. 3750 * </pre> 3751 * 3752 * <code>.google.cloud.tasks.v2beta3.Attempt first_attempt = 8;</code> 3753 */ 3754 private com.google.protobuf.SingleFieldBuilderV3< 3755 com.google.cloud.tasks.v2beta3.Attempt, 3756 com.google.cloud.tasks.v2beta3.Attempt.Builder, 3757 com.google.cloud.tasks.v2beta3.AttemptOrBuilder> getFirstAttemptFieldBuilder()3758 getFirstAttemptFieldBuilder() { 3759 if (firstAttemptBuilder_ == null) { 3760 firstAttemptBuilder_ = 3761 new com.google.protobuf.SingleFieldBuilderV3< 3762 com.google.cloud.tasks.v2beta3.Attempt, 3763 com.google.cloud.tasks.v2beta3.Attempt.Builder, 3764 com.google.cloud.tasks.v2beta3.AttemptOrBuilder>( 3765 getFirstAttempt(), getParentForChildren(), isClean()); 3766 firstAttempt_ = null; 3767 } 3768 return firstAttemptBuilder_; 3769 } 3770 3771 private com.google.cloud.tasks.v2beta3.Attempt lastAttempt_; 3772 private com.google.protobuf.SingleFieldBuilderV3< 3773 com.google.cloud.tasks.v2beta3.Attempt, 3774 com.google.cloud.tasks.v2beta3.Attempt.Builder, 3775 com.google.cloud.tasks.v2beta3.AttemptOrBuilder> 3776 lastAttemptBuilder_; 3777 /** 3778 * 3779 * 3780 * <pre> 3781 * Output only. The status of the task's last attempt. 3782 * </pre> 3783 * 3784 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 3785 * 3786 * @return Whether the lastAttempt field is set. 3787 */ hasLastAttempt()3788 public boolean hasLastAttempt() { 3789 return ((bitField0_ & 0x00000400) != 0); 3790 } 3791 /** 3792 * 3793 * 3794 * <pre> 3795 * Output only. The status of the task's last attempt. 3796 * </pre> 3797 * 3798 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 3799 * 3800 * @return The lastAttempt. 3801 */ getLastAttempt()3802 public com.google.cloud.tasks.v2beta3.Attempt getLastAttempt() { 3803 if (lastAttemptBuilder_ == null) { 3804 return lastAttempt_ == null 3805 ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() 3806 : lastAttempt_; 3807 } else { 3808 return lastAttemptBuilder_.getMessage(); 3809 } 3810 } 3811 /** 3812 * 3813 * 3814 * <pre> 3815 * Output only. The status of the task's last attempt. 3816 * </pre> 3817 * 3818 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 3819 */ setLastAttempt(com.google.cloud.tasks.v2beta3.Attempt value)3820 public Builder setLastAttempt(com.google.cloud.tasks.v2beta3.Attempt value) { 3821 if (lastAttemptBuilder_ == null) { 3822 if (value == null) { 3823 throw new NullPointerException(); 3824 } 3825 lastAttempt_ = value; 3826 } else { 3827 lastAttemptBuilder_.setMessage(value); 3828 } 3829 bitField0_ |= 0x00000400; 3830 onChanged(); 3831 return this; 3832 } 3833 /** 3834 * 3835 * 3836 * <pre> 3837 * Output only. The status of the task's last attempt. 3838 * </pre> 3839 * 3840 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 3841 */ setLastAttempt(com.google.cloud.tasks.v2beta3.Attempt.Builder builderForValue)3842 public Builder setLastAttempt(com.google.cloud.tasks.v2beta3.Attempt.Builder builderForValue) { 3843 if (lastAttemptBuilder_ == null) { 3844 lastAttempt_ = builderForValue.build(); 3845 } else { 3846 lastAttemptBuilder_.setMessage(builderForValue.build()); 3847 } 3848 bitField0_ |= 0x00000400; 3849 onChanged(); 3850 return this; 3851 } 3852 /** 3853 * 3854 * 3855 * <pre> 3856 * Output only. The status of the task's last attempt. 3857 * </pre> 3858 * 3859 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 3860 */ mergeLastAttempt(com.google.cloud.tasks.v2beta3.Attempt value)3861 public Builder mergeLastAttempt(com.google.cloud.tasks.v2beta3.Attempt value) { 3862 if (lastAttemptBuilder_ == null) { 3863 if (((bitField0_ & 0x00000400) != 0) 3864 && lastAttempt_ != null 3865 && lastAttempt_ != com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance()) { 3866 getLastAttemptBuilder().mergeFrom(value); 3867 } else { 3868 lastAttempt_ = value; 3869 } 3870 } else { 3871 lastAttemptBuilder_.mergeFrom(value); 3872 } 3873 bitField0_ |= 0x00000400; 3874 onChanged(); 3875 return this; 3876 } 3877 /** 3878 * 3879 * 3880 * <pre> 3881 * Output only. The status of the task's last attempt. 3882 * </pre> 3883 * 3884 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 3885 */ clearLastAttempt()3886 public Builder clearLastAttempt() { 3887 bitField0_ = (bitField0_ & ~0x00000400); 3888 lastAttempt_ = null; 3889 if (lastAttemptBuilder_ != null) { 3890 lastAttemptBuilder_.dispose(); 3891 lastAttemptBuilder_ = null; 3892 } 3893 onChanged(); 3894 return this; 3895 } 3896 /** 3897 * 3898 * 3899 * <pre> 3900 * Output only. The status of the task's last attempt. 3901 * </pre> 3902 * 3903 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 3904 */ getLastAttemptBuilder()3905 public com.google.cloud.tasks.v2beta3.Attempt.Builder getLastAttemptBuilder() { 3906 bitField0_ |= 0x00000400; 3907 onChanged(); 3908 return getLastAttemptFieldBuilder().getBuilder(); 3909 } 3910 /** 3911 * 3912 * 3913 * <pre> 3914 * Output only. The status of the task's last attempt. 3915 * </pre> 3916 * 3917 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 3918 */ getLastAttemptOrBuilder()3919 public com.google.cloud.tasks.v2beta3.AttemptOrBuilder getLastAttemptOrBuilder() { 3920 if (lastAttemptBuilder_ != null) { 3921 return lastAttemptBuilder_.getMessageOrBuilder(); 3922 } else { 3923 return lastAttempt_ == null 3924 ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() 3925 : lastAttempt_; 3926 } 3927 } 3928 /** 3929 * 3930 * 3931 * <pre> 3932 * Output only. The status of the task's last attempt. 3933 * </pre> 3934 * 3935 * <code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code> 3936 */ 3937 private com.google.protobuf.SingleFieldBuilderV3< 3938 com.google.cloud.tasks.v2beta3.Attempt, 3939 com.google.cloud.tasks.v2beta3.Attempt.Builder, 3940 com.google.cloud.tasks.v2beta3.AttemptOrBuilder> getLastAttemptFieldBuilder()3941 getLastAttemptFieldBuilder() { 3942 if (lastAttemptBuilder_ == null) { 3943 lastAttemptBuilder_ = 3944 new com.google.protobuf.SingleFieldBuilderV3< 3945 com.google.cloud.tasks.v2beta3.Attempt, 3946 com.google.cloud.tasks.v2beta3.Attempt.Builder, 3947 com.google.cloud.tasks.v2beta3.AttemptOrBuilder>( 3948 getLastAttempt(), getParentForChildren(), isClean()); 3949 lastAttempt_ = null; 3950 } 3951 return lastAttemptBuilder_; 3952 } 3953 3954 private int view_ = 0; 3955 /** 3956 * 3957 * 3958 * <pre> 3959 * Output only. The view specifies which subset of the 3960 * [Task][google.cloud.tasks.v2beta3.Task] has been returned. 3961 * </pre> 3962 * 3963 * <code>.google.cloud.tasks.v2beta3.Task.View view = 10;</code> 3964 * 3965 * @return The enum numeric value on the wire for view. 3966 */ 3967 @java.lang.Override getViewValue()3968 public int getViewValue() { 3969 return view_; 3970 } 3971 /** 3972 * 3973 * 3974 * <pre> 3975 * Output only. The view specifies which subset of the 3976 * [Task][google.cloud.tasks.v2beta3.Task] has been returned. 3977 * </pre> 3978 * 3979 * <code>.google.cloud.tasks.v2beta3.Task.View view = 10;</code> 3980 * 3981 * @param value The enum numeric value on the wire for view to set. 3982 * @return This builder for chaining. 3983 */ setViewValue(int value)3984 public Builder setViewValue(int value) { 3985 view_ = value; 3986 bitField0_ |= 0x00000800; 3987 onChanged(); 3988 return this; 3989 } 3990 /** 3991 * 3992 * 3993 * <pre> 3994 * Output only. The view specifies which subset of the 3995 * [Task][google.cloud.tasks.v2beta3.Task] has been returned. 3996 * </pre> 3997 * 3998 * <code>.google.cloud.tasks.v2beta3.Task.View view = 10;</code> 3999 * 4000 * @return The view. 4001 */ 4002 @java.lang.Override getView()4003 public com.google.cloud.tasks.v2beta3.Task.View getView() { 4004 com.google.cloud.tasks.v2beta3.Task.View result = 4005 com.google.cloud.tasks.v2beta3.Task.View.forNumber(view_); 4006 return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; 4007 } 4008 /** 4009 * 4010 * 4011 * <pre> 4012 * Output only. The view specifies which subset of the 4013 * [Task][google.cloud.tasks.v2beta3.Task] has been returned. 4014 * </pre> 4015 * 4016 * <code>.google.cloud.tasks.v2beta3.Task.View view = 10;</code> 4017 * 4018 * @param value The view to set. 4019 * @return This builder for chaining. 4020 */ setView(com.google.cloud.tasks.v2beta3.Task.View value)4021 public Builder setView(com.google.cloud.tasks.v2beta3.Task.View value) { 4022 if (value == null) { 4023 throw new NullPointerException(); 4024 } 4025 bitField0_ |= 0x00000800; 4026 view_ = value.getNumber(); 4027 onChanged(); 4028 return this; 4029 } 4030 /** 4031 * 4032 * 4033 * <pre> 4034 * Output only. The view specifies which subset of the 4035 * [Task][google.cloud.tasks.v2beta3.Task] has been returned. 4036 * </pre> 4037 * 4038 * <code>.google.cloud.tasks.v2beta3.Task.View view = 10;</code> 4039 * 4040 * @return This builder for chaining. 4041 */ clearView()4042 public Builder clearView() { 4043 bitField0_ = (bitField0_ & ~0x00000800); 4044 view_ = 0; 4045 onChanged(); 4046 return this; 4047 } 4048 4049 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4050 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 4051 return super.setUnknownFields(unknownFields); 4052 } 4053 4054 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4055 public final Builder mergeUnknownFields( 4056 final com.google.protobuf.UnknownFieldSet unknownFields) { 4057 return super.mergeUnknownFields(unknownFields); 4058 } 4059 4060 // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.Task) 4061 } 4062 4063 // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Task) 4064 private static final com.google.cloud.tasks.v2beta3.Task DEFAULT_INSTANCE; 4065 4066 static { 4067 DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.Task(); 4068 } 4069 getDefaultInstance()4070 public static com.google.cloud.tasks.v2beta3.Task getDefaultInstance() { 4071 return DEFAULT_INSTANCE; 4072 } 4073 4074 private static final com.google.protobuf.Parser<Task> PARSER = 4075 new com.google.protobuf.AbstractParser<Task>() { 4076 @java.lang.Override 4077 public Task parsePartialFrom( 4078 com.google.protobuf.CodedInputStream input, 4079 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4080 throws com.google.protobuf.InvalidProtocolBufferException { 4081 Builder builder = newBuilder(); 4082 try { 4083 builder.mergeFrom(input, extensionRegistry); 4084 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4085 throw e.setUnfinishedMessage(builder.buildPartial()); 4086 } catch (com.google.protobuf.UninitializedMessageException e) { 4087 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 4088 } catch (java.io.IOException e) { 4089 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4090 .setUnfinishedMessage(builder.buildPartial()); 4091 } 4092 return builder.buildPartial(); 4093 } 4094 }; 4095 parser()4096 public static com.google.protobuf.Parser<Task> parser() { 4097 return PARSER; 4098 } 4099 4100 @java.lang.Override getParserForType()4101 public com.google.protobuf.Parser<Task> getParserForType() { 4102 return PARSER; 4103 } 4104 4105 @java.lang.Override getDefaultInstanceForType()4106 public com.google.cloud.tasks.v2beta3.Task getDefaultInstanceForType() { 4107 return DEFAULT_INSTANCE; 4108 } 4109 } 4110