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