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