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