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