• 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/notebooks/v1/schedule.proto
18 
19 package com.google.cloud.notebooks.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * The definition of a schedule.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.notebooks.v1.Schedule}
29  */
30 public final class Schedule extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Schedule)
33     ScheduleOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use Schedule.newBuilder() to construct.
Schedule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private Schedule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
Schedule()40   private Schedule() {
41     name_ = "";
42     displayName_ = "";
43     description_ = "";
44     state_ = 0;
45     cronSchedule_ = "";
46     timeZone_ = "";
47     recentExecutions_ = java.util.Collections.emptyList();
48   }
49 
50   @java.lang.Override
51   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)52   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
53     return new Schedule();
54   }
55 
56   @java.lang.Override
getUnknownFields()57   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
58     return this.unknownFields;
59   }
60 
getDescriptor()61   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
62     return com.google.cloud.notebooks.v1.ScheduleProto
63         .internal_static_google_cloud_notebooks_v1_Schedule_descriptor;
64   }
65 
66   @java.lang.Override
67   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()68       internalGetFieldAccessorTable() {
69     return com.google.cloud.notebooks.v1.ScheduleProto
70         .internal_static_google_cloud_notebooks_v1_Schedule_fieldAccessorTable
71         .ensureFieldAccessorsInitialized(
72             com.google.cloud.notebooks.v1.Schedule.class,
73             com.google.cloud.notebooks.v1.Schedule.Builder.class);
74   }
75 
76   /**
77    *
78    *
79    * <pre>
80    * State of the job.
81    * </pre>
82    *
83    * Protobuf enum {@code google.cloud.notebooks.v1.Schedule.State}
84    */
85   public enum State implements com.google.protobuf.ProtocolMessageEnum {
86     /**
87      *
88      *
89      * <pre>
90      * Unspecified state.
91      * </pre>
92      *
93      * <code>STATE_UNSPECIFIED = 0;</code>
94      */
95     STATE_UNSPECIFIED(0),
96     /**
97      *
98      *
99      * <pre>
100      * The job is executing normally.
101      * </pre>
102      *
103      * <code>ENABLED = 1;</code>
104      */
105     ENABLED(1),
106     /**
107      *
108      *
109      * <pre>
110      * The job is paused by the user. It will not execute. A user can
111      * intentionally pause the job using
112      * [PauseJobRequest][].
113      * </pre>
114      *
115      * <code>PAUSED = 2;</code>
116      */
117     PAUSED(2),
118     /**
119      *
120      *
121      * <pre>
122      * The job is disabled by the system due to error. The user
123      * cannot directly set a job to be disabled.
124      * </pre>
125      *
126      * <code>DISABLED = 3;</code>
127      */
128     DISABLED(3),
129     /**
130      *
131      *
132      * <pre>
133      * The job state resulting from a failed [CloudScheduler.UpdateJob][]
134      * operation. To recover a job from this state, retry
135      * [CloudScheduler.UpdateJob][] until a successful response is received.
136      * </pre>
137      *
138      * <code>UPDATE_FAILED = 4;</code>
139      */
140     UPDATE_FAILED(4),
141     /**
142      *
143      *
144      * <pre>
145      * The schedule resource is being created.
146      * </pre>
147      *
148      * <code>INITIALIZING = 5;</code>
149      */
150     INITIALIZING(5),
151     /**
152      *
153      *
154      * <pre>
155      * The schedule resource is being deleted.
156      * </pre>
157      *
158      * <code>DELETING = 6;</code>
159      */
160     DELETING(6),
161     UNRECOGNIZED(-1),
162     ;
163 
164     /**
165      *
166      *
167      * <pre>
168      * Unspecified state.
169      * </pre>
170      *
171      * <code>STATE_UNSPECIFIED = 0;</code>
172      */
173     public static final int STATE_UNSPECIFIED_VALUE = 0;
174     /**
175      *
176      *
177      * <pre>
178      * The job is executing normally.
179      * </pre>
180      *
181      * <code>ENABLED = 1;</code>
182      */
183     public static final int ENABLED_VALUE = 1;
184     /**
185      *
186      *
187      * <pre>
188      * The job is paused by the user. It will not execute. A user can
189      * intentionally pause the job using
190      * [PauseJobRequest][].
191      * </pre>
192      *
193      * <code>PAUSED = 2;</code>
194      */
195     public static final int PAUSED_VALUE = 2;
196     /**
197      *
198      *
199      * <pre>
200      * The job is disabled by the system due to error. The user
201      * cannot directly set a job to be disabled.
202      * </pre>
203      *
204      * <code>DISABLED = 3;</code>
205      */
206     public static final int DISABLED_VALUE = 3;
207     /**
208      *
209      *
210      * <pre>
211      * The job state resulting from a failed [CloudScheduler.UpdateJob][]
212      * operation. To recover a job from this state, retry
213      * [CloudScheduler.UpdateJob][] until a successful response is received.
214      * </pre>
215      *
216      * <code>UPDATE_FAILED = 4;</code>
217      */
218     public static final int UPDATE_FAILED_VALUE = 4;
219     /**
220      *
221      *
222      * <pre>
223      * The schedule resource is being created.
224      * </pre>
225      *
226      * <code>INITIALIZING = 5;</code>
227      */
228     public static final int INITIALIZING_VALUE = 5;
229     /**
230      *
231      *
232      * <pre>
233      * The schedule resource is being deleted.
234      * </pre>
235      *
236      * <code>DELETING = 6;</code>
237      */
238     public static final int DELETING_VALUE = 6;
239 
getNumber()240     public final int getNumber() {
241       if (this == UNRECOGNIZED) {
242         throw new java.lang.IllegalArgumentException(
243             "Can't get the number of an unknown enum value.");
244       }
245       return value;
246     }
247 
248     /**
249      * @param value The numeric wire value of the corresponding enum entry.
250      * @return The enum associated with the given numeric wire value.
251      * @deprecated Use {@link #forNumber(int)} instead.
252      */
253     @java.lang.Deprecated
valueOf(int value)254     public static State valueOf(int value) {
255       return forNumber(value);
256     }
257 
258     /**
259      * @param value The numeric wire value of the corresponding enum entry.
260      * @return The enum associated with the given numeric wire value.
261      */
forNumber(int value)262     public static State forNumber(int value) {
263       switch (value) {
264         case 0:
265           return STATE_UNSPECIFIED;
266         case 1:
267           return ENABLED;
268         case 2:
269           return PAUSED;
270         case 3:
271           return DISABLED;
272         case 4:
273           return UPDATE_FAILED;
274         case 5:
275           return INITIALIZING;
276         case 6:
277           return DELETING;
278         default:
279           return null;
280       }
281     }
282 
internalGetValueMap()283     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
284       return internalValueMap;
285     }
286 
287     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
288         new com.google.protobuf.Internal.EnumLiteMap<State>() {
289           public State findValueByNumber(int number) {
290             return State.forNumber(number);
291           }
292         };
293 
getValueDescriptor()294     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
295       if (this == UNRECOGNIZED) {
296         throw new java.lang.IllegalStateException(
297             "Can't get the descriptor of an unrecognized enum value.");
298       }
299       return getDescriptor().getValues().get(ordinal());
300     }
301 
getDescriptorForType()302     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
303       return getDescriptor();
304     }
305 
getDescriptor()306     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
307       return com.google.cloud.notebooks.v1.Schedule.getDescriptor().getEnumTypes().get(0);
308     }
309 
310     private static final State[] VALUES = values();
311 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)312     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
313       if (desc.getType() != getDescriptor()) {
314         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
315       }
316       if (desc.getIndex() == -1) {
317         return UNRECOGNIZED;
318       }
319       return VALUES[desc.getIndex()];
320     }
321 
322     private final int value;
323 
State(int value)324     private State(int value) {
325       this.value = value;
326     }
327 
328     // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.Schedule.State)
329   }
330 
331   public static final int NAME_FIELD_NUMBER = 1;
332 
333   @SuppressWarnings("serial")
334   private volatile java.lang.Object name_ = "";
335   /**
336    *
337    *
338    * <pre>
339    * Output only. The name of this schedule. Format:
340    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
341    * </pre>
342    *
343    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
344    *
345    * @return The name.
346    */
347   @java.lang.Override
getName()348   public java.lang.String getName() {
349     java.lang.Object ref = name_;
350     if (ref instanceof java.lang.String) {
351       return (java.lang.String) ref;
352     } else {
353       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
354       java.lang.String s = bs.toStringUtf8();
355       name_ = s;
356       return s;
357     }
358   }
359   /**
360    *
361    *
362    * <pre>
363    * Output only. The name of this schedule. Format:
364    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
365    * </pre>
366    *
367    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
368    *
369    * @return The bytes for name.
370    */
371   @java.lang.Override
getNameBytes()372   public com.google.protobuf.ByteString getNameBytes() {
373     java.lang.Object ref = name_;
374     if (ref instanceof java.lang.String) {
375       com.google.protobuf.ByteString b =
376           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
377       name_ = b;
378       return b;
379     } else {
380       return (com.google.protobuf.ByteString) ref;
381     }
382   }
383 
384   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
385 
386   @SuppressWarnings("serial")
387   private volatile java.lang.Object displayName_ = "";
388   /**
389    *
390    *
391    * <pre>
392    * Output only. Display name used for UI purposes.
393    * Name can only contain alphanumeric characters, hyphens `-`,
394    * and underscores `_`.
395    * </pre>
396    *
397    * <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
398    *
399    * @return The displayName.
400    */
401   @java.lang.Override
getDisplayName()402   public java.lang.String getDisplayName() {
403     java.lang.Object ref = displayName_;
404     if (ref instanceof java.lang.String) {
405       return (java.lang.String) ref;
406     } else {
407       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
408       java.lang.String s = bs.toStringUtf8();
409       displayName_ = s;
410       return s;
411     }
412   }
413   /**
414    *
415    *
416    * <pre>
417    * Output only. Display name used for UI purposes.
418    * Name can only contain alphanumeric characters, hyphens `-`,
419    * and underscores `_`.
420    * </pre>
421    *
422    * <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
423    *
424    * @return The bytes for displayName.
425    */
426   @java.lang.Override
getDisplayNameBytes()427   public com.google.protobuf.ByteString getDisplayNameBytes() {
428     java.lang.Object ref = displayName_;
429     if (ref instanceof java.lang.String) {
430       com.google.protobuf.ByteString b =
431           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
432       displayName_ = b;
433       return b;
434     } else {
435       return (com.google.protobuf.ByteString) ref;
436     }
437   }
438 
439   public static final int DESCRIPTION_FIELD_NUMBER = 3;
440 
441   @SuppressWarnings("serial")
442   private volatile java.lang.Object description_ = "";
443   /**
444    *
445    *
446    * <pre>
447    * A brief description of this environment.
448    * </pre>
449    *
450    * <code>string description = 3;</code>
451    *
452    * @return The description.
453    */
454   @java.lang.Override
getDescription()455   public java.lang.String getDescription() {
456     java.lang.Object ref = description_;
457     if (ref instanceof java.lang.String) {
458       return (java.lang.String) ref;
459     } else {
460       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
461       java.lang.String s = bs.toStringUtf8();
462       description_ = s;
463       return s;
464     }
465   }
466   /**
467    *
468    *
469    * <pre>
470    * A brief description of this environment.
471    * </pre>
472    *
473    * <code>string description = 3;</code>
474    *
475    * @return The bytes for description.
476    */
477   @java.lang.Override
getDescriptionBytes()478   public com.google.protobuf.ByteString getDescriptionBytes() {
479     java.lang.Object ref = description_;
480     if (ref instanceof java.lang.String) {
481       com.google.protobuf.ByteString b =
482           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
483       description_ = b;
484       return b;
485     } else {
486       return (com.google.protobuf.ByteString) ref;
487     }
488   }
489 
490   public static final int STATE_FIELD_NUMBER = 4;
491   private int state_ = 0;
492   /**
493    * <code>.google.cloud.notebooks.v1.Schedule.State state = 4;</code>
494    *
495    * @return The enum numeric value on the wire for state.
496    */
497   @java.lang.Override
getStateValue()498   public int getStateValue() {
499     return state_;
500   }
501   /**
502    * <code>.google.cloud.notebooks.v1.Schedule.State state = 4;</code>
503    *
504    * @return The state.
505    */
506   @java.lang.Override
getState()507   public com.google.cloud.notebooks.v1.Schedule.State getState() {
508     com.google.cloud.notebooks.v1.Schedule.State result =
509         com.google.cloud.notebooks.v1.Schedule.State.forNumber(state_);
510     return result == null ? com.google.cloud.notebooks.v1.Schedule.State.UNRECOGNIZED : result;
511   }
512 
513   public static final int CRON_SCHEDULE_FIELD_NUMBER = 5;
514 
515   @SuppressWarnings("serial")
516   private volatile java.lang.Object cronSchedule_ = "";
517   /**
518    *
519    *
520    * <pre>
521    * Cron-tab formatted schedule by which the job will execute.
522    * Format: minute, hour, day of month, month, day of week,
523    * e.g. `0 0 * * WED` = every Wednesday
524    * More examples: https://crontab.guru/examples.html
525    * </pre>
526    *
527    * <code>string cron_schedule = 5;</code>
528    *
529    * @return The cronSchedule.
530    */
531   @java.lang.Override
getCronSchedule()532   public java.lang.String getCronSchedule() {
533     java.lang.Object ref = cronSchedule_;
534     if (ref instanceof java.lang.String) {
535       return (java.lang.String) ref;
536     } else {
537       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
538       java.lang.String s = bs.toStringUtf8();
539       cronSchedule_ = s;
540       return s;
541     }
542   }
543   /**
544    *
545    *
546    * <pre>
547    * Cron-tab formatted schedule by which the job will execute.
548    * Format: minute, hour, day of month, month, day of week,
549    * e.g. `0 0 * * WED` = every Wednesday
550    * More examples: https://crontab.guru/examples.html
551    * </pre>
552    *
553    * <code>string cron_schedule = 5;</code>
554    *
555    * @return The bytes for cronSchedule.
556    */
557   @java.lang.Override
getCronScheduleBytes()558   public com.google.protobuf.ByteString getCronScheduleBytes() {
559     java.lang.Object ref = cronSchedule_;
560     if (ref instanceof java.lang.String) {
561       com.google.protobuf.ByteString b =
562           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
563       cronSchedule_ = b;
564       return b;
565     } else {
566       return (com.google.protobuf.ByteString) ref;
567     }
568   }
569 
570   public static final int TIME_ZONE_FIELD_NUMBER = 6;
571 
572   @SuppressWarnings("serial")
573   private volatile java.lang.Object timeZone_ = "";
574   /**
575    *
576    *
577    * <pre>
578    * Timezone on which the cron_schedule.
579    * The value of this field must be a time zone name from the tz database.
580    * TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
581    * Note that some time zones include a provision for daylight savings time.
582    * The rules for daylight saving time are determined by the chosen tz.
583    * For UTC use the string "utc". If a time zone is not specified,
584    * the default will be in UTC (also known as GMT).
585    * </pre>
586    *
587    * <code>string time_zone = 6;</code>
588    *
589    * @return The timeZone.
590    */
591   @java.lang.Override
getTimeZone()592   public java.lang.String getTimeZone() {
593     java.lang.Object ref = timeZone_;
594     if (ref instanceof java.lang.String) {
595       return (java.lang.String) ref;
596     } else {
597       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
598       java.lang.String s = bs.toStringUtf8();
599       timeZone_ = s;
600       return s;
601     }
602   }
603   /**
604    *
605    *
606    * <pre>
607    * Timezone on which the cron_schedule.
608    * The value of this field must be a time zone name from the tz database.
609    * TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
610    * Note that some time zones include a provision for daylight savings time.
611    * The rules for daylight saving time are determined by the chosen tz.
612    * For UTC use the string "utc". If a time zone is not specified,
613    * the default will be in UTC (also known as GMT).
614    * </pre>
615    *
616    * <code>string time_zone = 6;</code>
617    *
618    * @return The bytes for timeZone.
619    */
620   @java.lang.Override
getTimeZoneBytes()621   public com.google.protobuf.ByteString getTimeZoneBytes() {
622     java.lang.Object ref = timeZone_;
623     if (ref instanceof java.lang.String) {
624       com.google.protobuf.ByteString b =
625           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
626       timeZone_ = b;
627       return b;
628     } else {
629       return (com.google.protobuf.ByteString) ref;
630     }
631   }
632 
633   public static final int CREATE_TIME_FIELD_NUMBER = 7;
634   private com.google.protobuf.Timestamp createTime_;
635   /**
636    *
637    *
638    * <pre>
639    * Output only. Time the schedule was created.
640    * </pre>
641    *
642    * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
643    * </code>
644    *
645    * @return Whether the createTime field is set.
646    */
647   @java.lang.Override
hasCreateTime()648   public boolean hasCreateTime() {
649     return createTime_ != null;
650   }
651   /**
652    *
653    *
654    * <pre>
655    * Output only. Time the schedule was created.
656    * </pre>
657    *
658    * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
659    * </code>
660    *
661    * @return The createTime.
662    */
663   @java.lang.Override
getCreateTime()664   public com.google.protobuf.Timestamp getCreateTime() {
665     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
666   }
667   /**
668    *
669    *
670    * <pre>
671    * Output only. Time the schedule was created.
672    * </pre>
673    *
674    * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
675    * </code>
676    */
677   @java.lang.Override
getCreateTimeOrBuilder()678   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
679     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
680   }
681 
682   public static final int UPDATE_TIME_FIELD_NUMBER = 8;
683   private com.google.protobuf.Timestamp updateTime_;
684   /**
685    *
686    *
687    * <pre>
688    * Output only. Time the schedule was last updated.
689    * </pre>
690    *
691    * <code>.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
692    * </code>
693    *
694    * @return Whether the updateTime field is set.
695    */
696   @java.lang.Override
hasUpdateTime()697   public boolean hasUpdateTime() {
698     return updateTime_ != null;
699   }
700   /**
701    *
702    *
703    * <pre>
704    * Output only. Time the schedule was last updated.
705    * </pre>
706    *
707    * <code>.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
708    * </code>
709    *
710    * @return The updateTime.
711    */
712   @java.lang.Override
getUpdateTime()713   public com.google.protobuf.Timestamp getUpdateTime() {
714     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
715   }
716   /**
717    *
718    *
719    * <pre>
720    * Output only. Time the schedule was last updated.
721    * </pre>
722    *
723    * <code>.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
724    * </code>
725    */
726   @java.lang.Override
getUpdateTimeOrBuilder()727   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
728     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
729   }
730 
731   public static final int EXECUTION_TEMPLATE_FIELD_NUMBER = 9;
732   private com.google.cloud.notebooks.v1.ExecutionTemplate executionTemplate_;
733   /**
734    *
735    *
736    * <pre>
737    * Notebook Execution Template corresponding to this schedule.
738    * </pre>
739    *
740    * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
741    *
742    * @return Whether the executionTemplate field is set.
743    */
744   @java.lang.Override
hasExecutionTemplate()745   public boolean hasExecutionTemplate() {
746     return executionTemplate_ != null;
747   }
748   /**
749    *
750    *
751    * <pre>
752    * Notebook Execution Template corresponding to this schedule.
753    * </pre>
754    *
755    * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
756    *
757    * @return The executionTemplate.
758    */
759   @java.lang.Override
getExecutionTemplate()760   public com.google.cloud.notebooks.v1.ExecutionTemplate getExecutionTemplate() {
761     return executionTemplate_ == null
762         ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance()
763         : executionTemplate_;
764   }
765   /**
766    *
767    *
768    * <pre>
769    * Notebook Execution Template corresponding to this schedule.
770    * </pre>
771    *
772    * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
773    */
774   @java.lang.Override
getExecutionTemplateOrBuilder()775   public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemplateOrBuilder() {
776     return executionTemplate_ == null
777         ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance()
778         : executionTemplate_;
779   }
780 
781   public static final int RECENT_EXECUTIONS_FIELD_NUMBER = 10;
782 
783   @SuppressWarnings("serial")
784   private java.util.List<com.google.cloud.notebooks.v1.Execution> recentExecutions_;
785   /**
786    *
787    *
788    * <pre>
789    * Output only. The most recent execution names triggered from this schedule and their
790    * corresponding states.
791    * </pre>
792    *
793    * <code>
794    * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
795    * </code>
796    */
797   @java.lang.Override
getRecentExecutionsList()798   public java.util.List<com.google.cloud.notebooks.v1.Execution> getRecentExecutionsList() {
799     return recentExecutions_;
800   }
801   /**
802    *
803    *
804    * <pre>
805    * Output only. The most recent execution names triggered from this schedule and their
806    * corresponding states.
807    * </pre>
808    *
809    * <code>
810    * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
811    * </code>
812    */
813   @java.lang.Override
814   public java.util.List<? extends com.google.cloud.notebooks.v1.ExecutionOrBuilder>
getRecentExecutionsOrBuilderList()815       getRecentExecutionsOrBuilderList() {
816     return recentExecutions_;
817   }
818   /**
819    *
820    *
821    * <pre>
822    * Output only. The most recent execution names triggered from this schedule and their
823    * corresponding states.
824    * </pre>
825    *
826    * <code>
827    * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
828    * </code>
829    */
830   @java.lang.Override
getRecentExecutionsCount()831   public int getRecentExecutionsCount() {
832     return recentExecutions_.size();
833   }
834   /**
835    *
836    *
837    * <pre>
838    * Output only. The most recent execution names triggered from this schedule and their
839    * corresponding states.
840    * </pre>
841    *
842    * <code>
843    * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
844    * </code>
845    */
846   @java.lang.Override
getRecentExecutions(int index)847   public com.google.cloud.notebooks.v1.Execution getRecentExecutions(int index) {
848     return recentExecutions_.get(index);
849   }
850   /**
851    *
852    *
853    * <pre>
854    * Output only. The most recent execution names triggered from this schedule and their
855    * corresponding states.
856    * </pre>
857    *
858    * <code>
859    * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
860    * </code>
861    */
862   @java.lang.Override
getRecentExecutionsOrBuilder(int index)863   public com.google.cloud.notebooks.v1.ExecutionOrBuilder getRecentExecutionsOrBuilder(int index) {
864     return recentExecutions_.get(index);
865   }
866 
867   private byte memoizedIsInitialized = -1;
868 
869   @java.lang.Override
isInitialized()870   public final boolean isInitialized() {
871     byte isInitialized = memoizedIsInitialized;
872     if (isInitialized == 1) return true;
873     if (isInitialized == 0) return false;
874 
875     memoizedIsInitialized = 1;
876     return true;
877   }
878 
879   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)880   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
881     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
882       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
883     }
884     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
885       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
886     }
887     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
888       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
889     }
890     if (state_ != com.google.cloud.notebooks.v1.Schedule.State.STATE_UNSPECIFIED.getNumber()) {
891       output.writeEnum(4, state_);
892     }
893     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) {
894       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cronSchedule_);
895     }
896     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) {
897       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, timeZone_);
898     }
899     if (createTime_ != null) {
900       output.writeMessage(7, getCreateTime());
901     }
902     if (updateTime_ != null) {
903       output.writeMessage(8, getUpdateTime());
904     }
905     if (executionTemplate_ != null) {
906       output.writeMessage(9, getExecutionTemplate());
907     }
908     for (int i = 0; i < recentExecutions_.size(); i++) {
909       output.writeMessage(10, recentExecutions_.get(i));
910     }
911     getUnknownFields().writeTo(output);
912   }
913 
914   @java.lang.Override
getSerializedSize()915   public int getSerializedSize() {
916     int size = memoizedSize;
917     if (size != -1) return size;
918 
919     size = 0;
920     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
921       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
922     }
923     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
924       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
925     }
926     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
927       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
928     }
929     if (state_ != com.google.cloud.notebooks.v1.Schedule.State.STATE_UNSPECIFIED.getNumber()) {
930       size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_);
931     }
932     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) {
933       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cronSchedule_);
934     }
935     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) {
936       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, timeZone_);
937     }
938     if (createTime_ != null) {
939       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
940     }
941     if (updateTime_ != null) {
942       size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime());
943     }
944     if (executionTemplate_ != null) {
945       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExecutionTemplate());
946     }
947     for (int i = 0; i < recentExecutions_.size(); i++) {
948       size +=
949           com.google.protobuf.CodedOutputStream.computeMessageSize(10, recentExecutions_.get(i));
950     }
951     size += getUnknownFields().getSerializedSize();
952     memoizedSize = size;
953     return size;
954   }
955 
956   @java.lang.Override
equals(final java.lang.Object obj)957   public boolean equals(final java.lang.Object obj) {
958     if (obj == this) {
959       return true;
960     }
961     if (!(obj instanceof com.google.cloud.notebooks.v1.Schedule)) {
962       return super.equals(obj);
963     }
964     com.google.cloud.notebooks.v1.Schedule other = (com.google.cloud.notebooks.v1.Schedule) obj;
965 
966     if (!getName().equals(other.getName())) return false;
967     if (!getDisplayName().equals(other.getDisplayName())) return false;
968     if (!getDescription().equals(other.getDescription())) return false;
969     if (state_ != other.state_) return false;
970     if (!getCronSchedule().equals(other.getCronSchedule())) return false;
971     if (!getTimeZone().equals(other.getTimeZone())) return false;
972     if (hasCreateTime() != other.hasCreateTime()) return false;
973     if (hasCreateTime()) {
974       if (!getCreateTime().equals(other.getCreateTime())) return false;
975     }
976     if (hasUpdateTime() != other.hasUpdateTime()) return false;
977     if (hasUpdateTime()) {
978       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
979     }
980     if (hasExecutionTemplate() != other.hasExecutionTemplate()) return false;
981     if (hasExecutionTemplate()) {
982       if (!getExecutionTemplate().equals(other.getExecutionTemplate())) return false;
983     }
984     if (!getRecentExecutionsList().equals(other.getRecentExecutionsList())) return false;
985     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
986     return true;
987   }
988 
989   @java.lang.Override
hashCode()990   public int hashCode() {
991     if (memoizedHashCode != 0) {
992       return memoizedHashCode;
993     }
994     int hash = 41;
995     hash = (19 * hash) + getDescriptor().hashCode();
996     hash = (37 * hash) + NAME_FIELD_NUMBER;
997     hash = (53 * hash) + getName().hashCode();
998     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
999     hash = (53 * hash) + getDisplayName().hashCode();
1000     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1001     hash = (53 * hash) + getDescription().hashCode();
1002     hash = (37 * hash) + STATE_FIELD_NUMBER;
1003     hash = (53 * hash) + state_;
1004     hash = (37 * hash) + CRON_SCHEDULE_FIELD_NUMBER;
1005     hash = (53 * hash) + getCronSchedule().hashCode();
1006     hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER;
1007     hash = (53 * hash) + getTimeZone().hashCode();
1008     if (hasCreateTime()) {
1009       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1010       hash = (53 * hash) + getCreateTime().hashCode();
1011     }
1012     if (hasUpdateTime()) {
1013       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
1014       hash = (53 * hash) + getUpdateTime().hashCode();
1015     }
1016     if (hasExecutionTemplate()) {
1017       hash = (37 * hash) + EXECUTION_TEMPLATE_FIELD_NUMBER;
1018       hash = (53 * hash) + getExecutionTemplate().hashCode();
1019     }
1020     if (getRecentExecutionsCount() > 0) {
1021       hash = (37 * hash) + RECENT_EXECUTIONS_FIELD_NUMBER;
1022       hash = (53 * hash) + getRecentExecutionsList().hashCode();
1023     }
1024     hash = (29 * hash) + getUnknownFields().hashCode();
1025     memoizedHashCode = hash;
1026     return hash;
1027   }
1028 
parseFrom(java.nio.ByteBuffer data)1029   public static com.google.cloud.notebooks.v1.Schedule parseFrom(java.nio.ByteBuffer data)
1030       throws com.google.protobuf.InvalidProtocolBufferException {
1031     return PARSER.parseFrom(data);
1032   }
1033 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1034   public static com.google.cloud.notebooks.v1.Schedule parseFrom(
1035       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1036       throws com.google.protobuf.InvalidProtocolBufferException {
1037     return PARSER.parseFrom(data, extensionRegistry);
1038   }
1039 
parseFrom( com.google.protobuf.ByteString data)1040   public static com.google.cloud.notebooks.v1.Schedule parseFrom(
1041       com.google.protobuf.ByteString data)
1042       throws com.google.protobuf.InvalidProtocolBufferException {
1043     return PARSER.parseFrom(data);
1044   }
1045 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1046   public static com.google.cloud.notebooks.v1.Schedule parseFrom(
1047       com.google.protobuf.ByteString data,
1048       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1049       throws com.google.protobuf.InvalidProtocolBufferException {
1050     return PARSER.parseFrom(data, extensionRegistry);
1051   }
1052 
parseFrom(byte[] data)1053   public static com.google.cloud.notebooks.v1.Schedule parseFrom(byte[] data)
1054       throws com.google.protobuf.InvalidProtocolBufferException {
1055     return PARSER.parseFrom(data);
1056   }
1057 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1058   public static com.google.cloud.notebooks.v1.Schedule parseFrom(
1059       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1060       throws com.google.protobuf.InvalidProtocolBufferException {
1061     return PARSER.parseFrom(data, extensionRegistry);
1062   }
1063 
parseFrom(java.io.InputStream input)1064   public static com.google.cloud.notebooks.v1.Schedule parseFrom(java.io.InputStream input)
1065       throws java.io.IOException {
1066     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1067   }
1068 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1069   public static com.google.cloud.notebooks.v1.Schedule parseFrom(
1070       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1071       throws java.io.IOException {
1072     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1073         PARSER, input, extensionRegistry);
1074   }
1075 
parseDelimitedFrom(java.io.InputStream input)1076   public static com.google.cloud.notebooks.v1.Schedule parseDelimitedFrom(java.io.InputStream input)
1077       throws java.io.IOException {
1078     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1079   }
1080 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1081   public static com.google.cloud.notebooks.v1.Schedule parseDelimitedFrom(
1082       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1083       throws java.io.IOException {
1084     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1085         PARSER, input, extensionRegistry);
1086   }
1087 
parseFrom( com.google.protobuf.CodedInputStream input)1088   public static com.google.cloud.notebooks.v1.Schedule parseFrom(
1089       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1090     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1091   }
1092 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1093   public static com.google.cloud.notebooks.v1.Schedule parseFrom(
1094       com.google.protobuf.CodedInputStream input,
1095       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1096       throws java.io.IOException {
1097     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1098         PARSER, input, extensionRegistry);
1099   }
1100 
1101   @java.lang.Override
newBuilderForType()1102   public Builder newBuilderForType() {
1103     return newBuilder();
1104   }
1105 
newBuilder()1106   public static Builder newBuilder() {
1107     return DEFAULT_INSTANCE.toBuilder();
1108   }
1109 
newBuilder(com.google.cloud.notebooks.v1.Schedule prototype)1110   public static Builder newBuilder(com.google.cloud.notebooks.v1.Schedule prototype) {
1111     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1112   }
1113 
1114   @java.lang.Override
toBuilder()1115   public Builder toBuilder() {
1116     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1117   }
1118 
1119   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1120   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1121     Builder builder = new Builder(parent);
1122     return builder;
1123   }
1124   /**
1125    *
1126    *
1127    * <pre>
1128    * The definition of a schedule.
1129    * </pre>
1130    *
1131    * Protobuf type {@code google.cloud.notebooks.v1.Schedule}
1132    */
1133   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1134       implements
1135       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Schedule)
1136       com.google.cloud.notebooks.v1.ScheduleOrBuilder {
getDescriptor()1137     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1138       return com.google.cloud.notebooks.v1.ScheduleProto
1139           .internal_static_google_cloud_notebooks_v1_Schedule_descriptor;
1140     }
1141 
1142     @java.lang.Override
1143     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1144         internalGetFieldAccessorTable() {
1145       return com.google.cloud.notebooks.v1.ScheduleProto
1146           .internal_static_google_cloud_notebooks_v1_Schedule_fieldAccessorTable
1147           .ensureFieldAccessorsInitialized(
1148               com.google.cloud.notebooks.v1.Schedule.class,
1149               com.google.cloud.notebooks.v1.Schedule.Builder.class);
1150     }
1151 
1152     // Construct using com.google.cloud.notebooks.v1.Schedule.newBuilder()
Builder()1153     private Builder() {}
1154 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1155     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1156       super(parent);
1157     }
1158 
1159     @java.lang.Override
clear()1160     public Builder clear() {
1161       super.clear();
1162       bitField0_ = 0;
1163       name_ = "";
1164       displayName_ = "";
1165       description_ = "";
1166       state_ = 0;
1167       cronSchedule_ = "";
1168       timeZone_ = "";
1169       createTime_ = null;
1170       if (createTimeBuilder_ != null) {
1171         createTimeBuilder_.dispose();
1172         createTimeBuilder_ = null;
1173       }
1174       updateTime_ = null;
1175       if (updateTimeBuilder_ != null) {
1176         updateTimeBuilder_.dispose();
1177         updateTimeBuilder_ = null;
1178       }
1179       executionTemplate_ = null;
1180       if (executionTemplateBuilder_ != null) {
1181         executionTemplateBuilder_.dispose();
1182         executionTemplateBuilder_ = null;
1183       }
1184       if (recentExecutionsBuilder_ == null) {
1185         recentExecutions_ = java.util.Collections.emptyList();
1186       } else {
1187         recentExecutions_ = null;
1188         recentExecutionsBuilder_.clear();
1189       }
1190       bitField0_ = (bitField0_ & ~0x00000200);
1191       return this;
1192     }
1193 
1194     @java.lang.Override
getDescriptorForType()1195     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1196       return com.google.cloud.notebooks.v1.ScheduleProto
1197           .internal_static_google_cloud_notebooks_v1_Schedule_descriptor;
1198     }
1199 
1200     @java.lang.Override
getDefaultInstanceForType()1201     public com.google.cloud.notebooks.v1.Schedule getDefaultInstanceForType() {
1202       return com.google.cloud.notebooks.v1.Schedule.getDefaultInstance();
1203     }
1204 
1205     @java.lang.Override
build()1206     public com.google.cloud.notebooks.v1.Schedule build() {
1207       com.google.cloud.notebooks.v1.Schedule result = buildPartial();
1208       if (!result.isInitialized()) {
1209         throw newUninitializedMessageException(result);
1210       }
1211       return result;
1212     }
1213 
1214     @java.lang.Override
buildPartial()1215     public com.google.cloud.notebooks.v1.Schedule buildPartial() {
1216       com.google.cloud.notebooks.v1.Schedule result =
1217           new com.google.cloud.notebooks.v1.Schedule(this);
1218       buildPartialRepeatedFields(result);
1219       if (bitField0_ != 0) {
1220         buildPartial0(result);
1221       }
1222       onBuilt();
1223       return result;
1224     }
1225 
buildPartialRepeatedFields(com.google.cloud.notebooks.v1.Schedule result)1226     private void buildPartialRepeatedFields(com.google.cloud.notebooks.v1.Schedule result) {
1227       if (recentExecutionsBuilder_ == null) {
1228         if (((bitField0_ & 0x00000200) != 0)) {
1229           recentExecutions_ = java.util.Collections.unmodifiableList(recentExecutions_);
1230           bitField0_ = (bitField0_ & ~0x00000200);
1231         }
1232         result.recentExecutions_ = recentExecutions_;
1233       } else {
1234         result.recentExecutions_ = recentExecutionsBuilder_.build();
1235       }
1236     }
1237 
buildPartial0(com.google.cloud.notebooks.v1.Schedule result)1238     private void buildPartial0(com.google.cloud.notebooks.v1.Schedule result) {
1239       int from_bitField0_ = bitField0_;
1240       if (((from_bitField0_ & 0x00000001) != 0)) {
1241         result.name_ = name_;
1242       }
1243       if (((from_bitField0_ & 0x00000002) != 0)) {
1244         result.displayName_ = displayName_;
1245       }
1246       if (((from_bitField0_ & 0x00000004) != 0)) {
1247         result.description_ = description_;
1248       }
1249       if (((from_bitField0_ & 0x00000008) != 0)) {
1250         result.state_ = state_;
1251       }
1252       if (((from_bitField0_ & 0x00000010) != 0)) {
1253         result.cronSchedule_ = cronSchedule_;
1254       }
1255       if (((from_bitField0_ & 0x00000020) != 0)) {
1256         result.timeZone_ = timeZone_;
1257       }
1258       if (((from_bitField0_ & 0x00000040) != 0)) {
1259         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
1260       }
1261       if (((from_bitField0_ & 0x00000080) != 0)) {
1262         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
1263       }
1264       if (((from_bitField0_ & 0x00000100) != 0)) {
1265         result.executionTemplate_ =
1266             executionTemplateBuilder_ == null
1267                 ? executionTemplate_
1268                 : executionTemplateBuilder_.build();
1269       }
1270     }
1271 
1272     @java.lang.Override
clone()1273     public Builder clone() {
1274       return super.clone();
1275     }
1276 
1277     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1278     public Builder setField(
1279         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1280       return super.setField(field, value);
1281     }
1282 
1283     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1284     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1285       return super.clearField(field);
1286     }
1287 
1288     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1289     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1290       return super.clearOneof(oneof);
1291     }
1292 
1293     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1294     public Builder setRepeatedField(
1295         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1296       return super.setRepeatedField(field, index, value);
1297     }
1298 
1299     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1300     public Builder addRepeatedField(
1301         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1302       return super.addRepeatedField(field, value);
1303     }
1304 
1305     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1306     public Builder mergeFrom(com.google.protobuf.Message other) {
1307       if (other instanceof com.google.cloud.notebooks.v1.Schedule) {
1308         return mergeFrom((com.google.cloud.notebooks.v1.Schedule) other);
1309       } else {
1310         super.mergeFrom(other);
1311         return this;
1312       }
1313     }
1314 
mergeFrom(com.google.cloud.notebooks.v1.Schedule other)1315     public Builder mergeFrom(com.google.cloud.notebooks.v1.Schedule other) {
1316       if (other == com.google.cloud.notebooks.v1.Schedule.getDefaultInstance()) return this;
1317       if (!other.getName().isEmpty()) {
1318         name_ = other.name_;
1319         bitField0_ |= 0x00000001;
1320         onChanged();
1321       }
1322       if (!other.getDisplayName().isEmpty()) {
1323         displayName_ = other.displayName_;
1324         bitField0_ |= 0x00000002;
1325         onChanged();
1326       }
1327       if (!other.getDescription().isEmpty()) {
1328         description_ = other.description_;
1329         bitField0_ |= 0x00000004;
1330         onChanged();
1331       }
1332       if (other.state_ != 0) {
1333         setStateValue(other.getStateValue());
1334       }
1335       if (!other.getCronSchedule().isEmpty()) {
1336         cronSchedule_ = other.cronSchedule_;
1337         bitField0_ |= 0x00000010;
1338         onChanged();
1339       }
1340       if (!other.getTimeZone().isEmpty()) {
1341         timeZone_ = other.timeZone_;
1342         bitField0_ |= 0x00000020;
1343         onChanged();
1344       }
1345       if (other.hasCreateTime()) {
1346         mergeCreateTime(other.getCreateTime());
1347       }
1348       if (other.hasUpdateTime()) {
1349         mergeUpdateTime(other.getUpdateTime());
1350       }
1351       if (other.hasExecutionTemplate()) {
1352         mergeExecutionTemplate(other.getExecutionTemplate());
1353       }
1354       if (recentExecutionsBuilder_ == null) {
1355         if (!other.recentExecutions_.isEmpty()) {
1356           if (recentExecutions_.isEmpty()) {
1357             recentExecutions_ = other.recentExecutions_;
1358             bitField0_ = (bitField0_ & ~0x00000200);
1359           } else {
1360             ensureRecentExecutionsIsMutable();
1361             recentExecutions_.addAll(other.recentExecutions_);
1362           }
1363           onChanged();
1364         }
1365       } else {
1366         if (!other.recentExecutions_.isEmpty()) {
1367           if (recentExecutionsBuilder_.isEmpty()) {
1368             recentExecutionsBuilder_.dispose();
1369             recentExecutionsBuilder_ = null;
1370             recentExecutions_ = other.recentExecutions_;
1371             bitField0_ = (bitField0_ & ~0x00000200);
1372             recentExecutionsBuilder_ =
1373                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1374                     ? getRecentExecutionsFieldBuilder()
1375                     : null;
1376           } else {
1377             recentExecutionsBuilder_.addAllMessages(other.recentExecutions_);
1378           }
1379         }
1380       }
1381       this.mergeUnknownFields(other.getUnknownFields());
1382       onChanged();
1383       return this;
1384     }
1385 
1386     @java.lang.Override
isInitialized()1387     public final boolean isInitialized() {
1388       return true;
1389     }
1390 
1391     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1392     public Builder mergeFrom(
1393         com.google.protobuf.CodedInputStream input,
1394         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1395         throws java.io.IOException {
1396       if (extensionRegistry == null) {
1397         throw new java.lang.NullPointerException();
1398       }
1399       try {
1400         boolean done = false;
1401         while (!done) {
1402           int tag = input.readTag();
1403           switch (tag) {
1404             case 0:
1405               done = true;
1406               break;
1407             case 10:
1408               {
1409                 name_ = input.readStringRequireUtf8();
1410                 bitField0_ |= 0x00000001;
1411                 break;
1412               } // case 10
1413             case 18:
1414               {
1415                 displayName_ = input.readStringRequireUtf8();
1416                 bitField0_ |= 0x00000002;
1417                 break;
1418               } // case 18
1419             case 26:
1420               {
1421                 description_ = input.readStringRequireUtf8();
1422                 bitField0_ |= 0x00000004;
1423                 break;
1424               } // case 26
1425             case 32:
1426               {
1427                 state_ = input.readEnum();
1428                 bitField0_ |= 0x00000008;
1429                 break;
1430               } // case 32
1431             case 42:
1432               {
1433                 cronSchedule_ = input.readStringRequireUtf8();
1434                 bitField0_ |= 0x00000010;
1435                 break;
1436               } // case 42
1437             case 50:
1438               {
1439                 timeZone_ = input.readStringRequireUtf8();
1440                 bitField0_ |= 0x00000020;
1441                 break;
1442               } // case 50
1443             case 58:
1444               {
1445                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1446                 bitField0_ |= 0x00000040;
1447                 break;
1448               } // case 58
1449             case 66:
1450               {
1451                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
1452                 bitField0_ |= 0x00000080;
1453                 break;
1454               } // case 66
1455             case 74:
1456               {
1457                 input.readMessage(
1458                     getExecutionTemplateFieldBuilder().getBuilder(), extensionRegistry);
1459                 bitField0_ |= 0x00000100;
1460                 break;
1461               } // case 74
1462             case 82:
1463               {
1464                 com.google.cloud.notebooks.v1.Execution m =
1465                     input.readMessage(
1466                         com.google.cloud.notebooks.v1.Execution.parser(), extensionRegistry);
1467                 if (recentExecutionsBuilder_ == null) {
1468                   ensureRecentExecutionsIsMutable();
1469                   recentExecutions_.add(m);
1470                 } else {
1471                   recentExecutionsBuilder_.addMessage(m);
1472                 }
1473                 break;
1474               } // case 82
1475             default:
1476               {
1477                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1478                   done = true; // was an endgroup tag
1479                 }
1480                 break;
1481               } // default:
1482           } // switch (tag)
1483         } // while (!done)
1484       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1485         throw e.unwrapIOException();
1486       } finally {
1487         onChanged();
1488       } // finally
1489       return this;
1490     }
1491 
1492     private int bitField0_;
1493 
1494     private java.lang.Object name_ = "";
1495     /**
1496      *
1497      *
1498      * <pre>
1499      * Output only. The name of this schedule. Format:
1500      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
1501      * </pre>
1502      *
1503      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1504      *
1505      * @return The name.
1506      */
getName()1507     public java.lang.String getName() {
1508       java.lang.Object ref = name_;
1509       if (!(ref instanceof java.lang.String)) {
1510         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1511         java.lang.String s = bs.toStringUtf8();
1512         name_ = s;
1513         return s;
1514       } else {
1515         return (java.lang.String) ref;
1516       }
1517     }
1518     /**
1519      *
1520      *
1521      * <pre>
1522      * Output only. The name of this schedule. Format:
1523      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
1524      * </pre>
1525      *
1526      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1527      *
1528      * @return The bytes for name.
1529      */
getNameBytes()1530     public com.google.protobuf.ByteString getNameBytes() {
1531       java.lang.Object ref = name_;
1532       if (ref instanceof String) {
1533         com.google.protobuf.ByteString b =
1534             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1535         name_ = b;
1536         return b;
1537       } else {
1538         return (com.google.protobuf.ByteString) ref;
1539       }
1540     }
1541     /**
1542      *
1543      *
1544      * <pre>
1545      * Output only. The name of this schedule. Format:
1546      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
1547      * </pre>
1548      *
1549      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1550      *
1551      * @param value The name to set.
1552      * @return This builder for chaining.
1553      */
setName(java.lang.String value)1554     public Builder setName(java.lang.String value) {
1555       if (value == null) {
1556         throw new NullPointerException();
1557       }
1558       name_ = value;
1559       bitField0_ |= 0x00000001;
1560       onChanged();
1561       return this;
1562     }
1563     /**
1564      *
1565      *
1566      * <pre>
1567      * Output only. The name of this schedule. Format:
1568      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
1569      * </pre>
1570      *
1571      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1572      *
1573      * @return This builder for chaining.
1574      */
clearName()1575     public Builder clearName() {
1576       name_ = getDefaultInstance().getName();
1577       bitField0_ = (bitField0_ & ~0x00000001);
1578       onChanged();
1579       return this;
1580     }
1581     /**
1582      *
1583      *
1584      * <pre>
1585      * Output only. The name of this schedule. Format:
1586      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
1587      * </pre>
1588      *
1589      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1590      *
1591      * @param value The bytes for name to set.
1592      * @return This builder for chaining.
1593      */
setNameBytes(com.google.protobuf.ByteString value)1594     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1595       if (value == null) {
1596         throw new NullPointerException();
1597       }
1598       checkByteStringIsUtf8(value);
1599       name_ = value;
1600       bitField0_ |= 0x00000001;
1601       onChanged();
1602       return this;
1603     }
1604 
1605     private java.lang.Object displayName_ = "";
1606     /**
1607      *
1608      *
1609      * <pre>
1610      * Output only. Display name used for UI purposes.
1611      * Name can only contain alphanumeric characters, hyphens `-`,
1612      * and underscores `_`.
1613      * </pre>
1614      *
1615      * <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1616      *
1617      * @return The displayName.
1618      */
getDisplayName()1619     public java.lang.String getDisplayName() {
1620       java.lang.Object ref = displayName_;
1621       if (!(ref instanceof java.lang.String)) {
1622         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1623         java.lang.String s = bs.toStringUtf8();
1624         displayName_ = s;
1625         return s;
1626       } else {
1627         return (java.lang.String) ref;
1628       }
1629     }
1630     /**
1631      *
1632      *
1633      * <pre>
1634      * Output only. Display name used for UI purposes.
1635      * Name can only contain alphanumeric characters, hyphens `-`,
1636      * and underscores `_`.
1637      * </pre>
1638      *
1639      * <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1640      *
1641      * @return The bytes for displayName.
1642      */
getDisplayNameBytes()1643     public com.google.protobuf.ByteString getDisplayNameBytes() {
1644       java.lang.Object ref = displayName_;
1645       if (ref instanceof String) {
1646         com.google.protobuf.ByteString b =
1647             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1648         displayName_ = b;
1649         return b;
1650       } else {
1651         return (com.google.protobuf.ByteString) ref;
1652       }
1653     }
1654     /**
1655      *
1656      *
1657      * <pre>
1658      * Output only. Display name used for UI purposes.
1659      * Name can only contain alphanumeric characters, hyphens `-`,
1660      * and underscores `_`.
1661      * </pre>
1662      *
1663      * <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1664      *
1665      * @param value The displayName to set.
1666      * @return This builder for chaining.
1667      */
setDisplayName(java.lang.String value)1668     public Builder setDisplayName(java.lang.String value) {
1669       if (value == null) {
1670         throw new NullPointerException();
1671       }
1672       displayName_ = value;
1673       bitField0_ |= 0x00000002;
1674       onChanged();
1675       return this;
1676     }
1677     /**
1678      *
1679      *
1680      * <pre>
1681      * Output only. Display name used for UI purposes.
1682      * Name can only contain alphanumeric characters, hyphens `-`,
1683      * and underscores `_`.
1684      * </pre>
1685      *
1686      * <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1687      *
1688      * @return This builder for chaining.
1689      */
clearDisplayName()1690     public Builder clearDisplayName() {
1691       displayName_ = getDefaultInstance().getDisplayName();
1692       bitField0_ = (bitField0_ & ~0x00000002);
1693       onChanged();
1694       return this;
1695     }
1696     /**
1697      *
1698      *
1699      * <pre>
1700      * Output only. Display name used for UI purposes.
1701      * Name can only contain alphanumeric characters, hyphens `-`,
1702      * and underscores `_`.
1703      * </pre>
1704      *
1705      * <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1706      *
1707      * @param value The bytes for displayName to set.
1708      * @return This builder for chaining.
1709      */
setDisplayNameBytes(com.google.protobuf.ByteString value)1710     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
1711       if (value == null) {
1712         throw new NullPointerException();
1713       }
1714       checkByteStringIsUtf8(value);
1715       displayName_ = value;
1716       bitField0_ |= 0x00000002;
1717       onChanged();
1718       return this;
1719     }
1720 
1721     private java.lang.Object description_ = "";
1722     /**
1723      *
1724      *
1725      * <pre>
1726      * A brief description of this environment.
1727      * </pre>
1728      *
1729      * <code>string description = 3;</code>
1730      *
1731      * @return The description.
1732      */
getDescription()1733     public java.lang.String getDescription() {
1734       java.lang.Object ref = description_;
1735       if (!(ref instanceof java.lang.String)) {
1736         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1737         java.lang.String s = bs.toStringUtf8();
1738         description_ = s;
1739         return s;
1740       } else {
1741         return (java.lang.String) ref;
1742       }
1743     }
1744     /**
1745      *
1746      *
1747      * <pre>
1748      * A brief description of this environment.
1749      * </pre>
1750      *
1751      * <code>string description = 3;</code>
1752      *
1753      * @return The bytes for description.
1754      */
getDescriptionBytes()1755     public com.google.protobuf.ByteString getDescriptionBytes() {
1756       java.lang.Object ref = description_;
1757       if (ref instanceof String) {
1758         com.google.protobuf.ByteString b =
1759             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1760         description_ = b;
1761         return b;
1762       } else {
1763         return (com.google.protobuf.ByteString) ref;
1764       }
1765     }
1766     /**
1767      *
1768      *
1769      * <pre>
1770      * A brief description of this environment.
1771      * </pre>
1772      *
1773      * <code>string description = 3;</code>
1774      *
1775      * @param value The description to set.
1776      * @return This builder for chaining.
1777      */
setDescription(java.lang.String value)1778     public Builder setDescription(java.lang.String value) {
1779       if (value == null) {
1780         throw new NullPointerException();
1781       }
1782       description_ = value;
1783       bitField0_ |= 0x00000004;
1784       onChanged();
1785       return this;
1786     }
1787     /**
1788      *
1789      *
1790      * <pre>
1791      * A brief description of this environment.
1792      * </pre>
1793      *
1794      * <code>string description = 3;</code>
1795      *
1796      * @return This builder for chaining.
1797      */
clearDescription()1798     public Builder clearDescription() {
1799       description_ = getDefaultInstance().getDescription();
1800       bitField0_ = (bitField0_ & ~0x00000004);
1801       onChanged();
1802       return this;
1803     }
1804     /**
1805      *
1806      *
1807      * <pre>
1808      * A brief description of this environment.
1809      * </pre>
1810      *
1811      * <code>string description = 3;</code>
1812      *
1813      * @param value The bytes for description to set.
1814      * @return This builder for chaining.
1815      */
setDescriptionBytes(com.google.protobuf.ByteString value)1816     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
1817       if (value == null) {
1818         throw new NullPointerException();
1819       }
1820       checkByteStringIsUtf8(value);
1821       description_ = value;
1822       bitField0_ |= 0x00000004;
1823       onChanged();
1824       return this;
1825     }
1826 
1827     private int state_ = 0;
1828     /**
1829      * <code>.google.cloud.notebooks.v1.Schedule.State state = 4;</code>
1830      *
1831      * @return The enum numeric value on the wire for state.
1832      */
1833     @java.lang.Override
getStateValue()1834     public int getStateValue() {
1835       return state_;
1836     }
1837     /**
1838      * <code>.google.cloud.notebooks.v1.Schedule.State state = 4;</code>
1839      *
1840      * @param value The enum numeric value on the wire for state to set.
1841      * @return This builder for chaining.
1842      */
setStateValue(int value)1843     public Builder setStateValue(int value) {
1844       state_ = value;
1845       bitField0_ |= 0x00000008;
1846       onChanged();
1847       return this;
1848     }
1849     /**
1850      * <code>.google.cloud.notebooks.v1.Schedule.State state = 4;</code>
1851      *
1852      * @return The state.
1853      */
1854     @java.lang.Override
getState()1855     public com.google.cloud.notebooks.v1.Schedule.State getState() {
1856       com.google.cloud.notebooks.v1.Schedule.State result =
1857           com.google.cloud.notebooks.v1.Schedule.State.forNumber(state_);
1858       return result == null ? com.google.cloud.notebooks.v1.Schedule.State.UNRECOGNIZED : result;
1859     }
1860     /**
1861      * <code>.google.cloud.notebooks.v1.Schedule.State state = 4;</code>
1862      *
1863      * @param value The state to set.
1864      * @return This builder for chaining.
1865      */
setState(com.google.cloud.notebooks.v1.Schedule.State value)1866     public Builder setState(com.google.cloud.notebooks.v1.Schedule.State value) {
1867       if (value == null) {
1868         throw new NullPointerException();
1869       }
1870       bitField0_ |= 0x00000008;
1871       state_ = value.getNumber();
1872       onChanged();
1873       return this;
1874     }
1875     /**
1876      * <code>.google.cloud.notebooks.v1.Schedule.State state = 4;</code>
1877      *
1878      * @return This builder for chaining.
1879      */
clearState()1880     public Builder clearState() {
1881       bitField0_ = (bitField0_ & ~0x00000008);
1882       state_ = 0;
1883       onChanged();
1884       return this;
1885     }
1886 
1887     private java.lang.Object cronSchedule_ = "";
1888     /**
1889      *
1890      *
1891      * <pre>
1892      * Cron-tab formatted schedule by which the job will execute.
1893      * Format: minute, hour, day of month, month, day of week,
1894      * e.g. `0 0 * * WED` = every Wednesday
1895      * More examples: https://crontab.guru/examples.html
1896      * </pre>
1897      *
1898      * <code>string cron_schedule = 5;</code>
1899      *
1900      * @return The cronSchedule.
1901      */
getCronSchedule()1902     public java.lang.String getCronSchedule() {
1903       java.lang.Object ref = cronSchedule_;
1904       if (!(ref instanceof java.lang.String)) {
1905         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1906         java.lang.String s = bs.toStringUtf8();
1907         cronSchedule_ = s;
1908         return s;
1909       } else {
1910         return (java.lang.String) ref;
1911       }
1912     }
1913     /**
1914      *
1915      *
1916      * <pre>
1917      * Cron-tab formatted schedule by which the job will execute.
1918      * Format: minute, hour, day of month, month, day of week,
1919      * e.g. `0 0 * * WED` = every Wednesday
1920      * More examples: https://crontab.guru/examples.html
1921      * </pre>
1922      *
1923      * <code>string cron_schedule = 5;</code>
1924      *
1925      * @return The bytes for cronSchedule.
1926      */
getCronScheduleBytes()1927     public com.google.protobuf.ByteString getCronScheduleBytes() {
1928       java.lang.Object ref = cronSchedule_;
1929       if (ref instanceof String) {
1930         com.google.protobuf.ByteString b =
1931             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1932         cronSchedule_ = b;
1933         return b;
1934       } else {
1935         return (com.google.protobuf.ByteString) ref;
1936       }
1937     }
1938     /**
1939      *
1940      *
1941      * <pre>
1942      * Cron-tab formatted schedule by which the job will execute.
1943      * Format: minute, hour, day of month, month, day of week,
1944      * e.g. `0 0 * * WED` = every Wednesday
1945      * More examples: https://crontab.guru/examples.html
1946      * </pre>
1947      *
1948      * <code>string cron_schedule = 5;</code>
1949      *
1950      * @param value The cronSchedule to set.
1951      * @return This builder for chaining.
1952      */
setCronSchedule(java.lang.String value)1953     public Builder setCronSchedule(java.lang.String value) {
1954       if (value == null) {
1955         throw new NullPointerException();
1956       }
1957       cronSchedule_ = value;
1958       bitField0_ |= 0x00000010;
1959       onChanged();
1960       return this;
1961     }
1962     /**
1963      *
1964      *
1965      * <pre>
1966      * Cron-tab formatted schedule by which the job will execute.
1967      * Format: minute, hour, day of month, month, day of week,
1968      * e.g. `0 0 * * WED` = every Wednesday
1969      * More examples: https://crontab.guru/examples.html
1970      * </pre>
1971      *
1972      * <code>string cron_schedule = 5;</code>
1973      *
1974      * @return This builder for chaining.
1975      */
clearCronSchedule()1976     public Builder clearCronSchedule() {
1977       cronSchedule_ = getDefaultInstance().getCronSchedule();
1978       bitField0_ = (bitField0_ & ~0x00000010);
1979       onChanged();
1980       return this;
1981     }
1982     /**
1983      *
1984      *
1985      * <pre>
1986      * Cron-tab formatted schedule by which the job will execute.
1987      * Format: minute, hour, day of month, month, day of week,
1988      * e.g. `0 0 * * WED` = every Wednesday
1989      * More examples: https://crontab.guru/examples.html
1990      * </pre>
1991      *
1992      * <code>string cron_schedule = 5;</code>
1993      *
1994      * @param value The bytes for cronSchedule to set.
1995      * @return This builder for chaining.
1996      */
setCronScheduleBytes(com.google.protobuf.ByteString value)1997     public Builder setCronScheduleBytes(com.google.protobuf.ByteString value) {
1998       if (value == null) {
1999         throw new NullPointerException();
2000       }
2001       checkByteStringIsUtf8(value);
2002       cronSchedule_ = value;
2003       bitField0_ |= 0x00000010;
2004       onChanged();
2005       return this;
2006     }
2007 
2008     private java.lang.Object timeZone_ = "";
2009     /**
2010      *
2011      *
2012      * <pre>
2013      * Timezone on which the cron_schedule.
2014      * The value of this field must be a time zone name from the tz database.
2015      * TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
2016      * Note that some time zones include a provision for daylight savings time.
2017      * The rules for daylight saving time are determined by the chosen tz.
2018      * For UTC use the string "utc". If a time zone is not specified,
2019      * the default will be in UTC (also known as GMT).
2020      * </pre>
2021      *
2022      * <code>string time_zone = 6;</code>
2023      *
2024      * @return The timeZone.
2025      */
getTimeZone()2026     public java.lang.String getTimeZone() {
2027       java.lang.Object ref = timeZone_;
2028       if (!(ref instanceof java.lang.String)) {
2029         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2030         java.lang.String s = bs.toStringUtf8();
2031         timeZone_ = s;
2032         return s;
2033       } else {
2034         return (java.lang.String) ref;
2035       }
2036     }
2037     /**
2038      *
2039      *
2040      * <pre>
2041      * Timezone on which the cron_schedule.
2042      * The value of this field must be a time zone name from the tz database.
2043      * TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
2044      * Note that some time zones include a provision for daylight savings time.
2045      * The rules for daylight saving time are determined by the chosen tz.
2046      * For UTC use the string "utc". If a time zone is not specified,
2047      * the default will be in UTC (also known as GMT).
2048      * </pre>
2049      *
2050      * <code>string time_zone = 6;</code>
2051      *
2052      * @return The bytes for timeZone.
2053      */
getTimeZoneBytes()2054     public com.google.protobuf.ByteString getTimeZoneBytes() {
2055       java.lang.Object ref = timeZone_;
2056       if (ref instanceof String) {
2057         com.google.protobuf.ByteString b =
2058             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2059         timeZone_ = b;
2060         return b;
2061       } else {
2062         return (com.google.protobuf.ByteString) ref;
2063       }
2064     }
2065     /**
2066      *
2067      *
2068      * <pre>
2069      * Timezone on which the cron_schedule.
2070      * The value of this field must be a time zone name from the tz database.
2071      * TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
2072      * Note that some time zones include a provision for daylight savings time.
2073      * The rules for daylight saving time are determined by the chosen tz.
2074      * For UTC use the string "utc". If a time zone is not specified,
2075      * the default will be in UTC (also known as GMT).
2076      * </pre>
2077      *
2078      * <code>string time_zone = 6;</code>
2079      *
2080      * @param value The timeZone to set.
2081      * @return This builder for chaining.
2082      */
setTimeZone(java.lang.String value)2083     public Builder setTimeZone(java.lang.String value) {
2084       if (value == null) {
2085         throw new NullPointerException();
2086       }
2087       timeZone_ = value;
2088       bitField0_ |= 0x00000020;
2089       onChanged();
2090       return this;
2091     }
2092     /**
2093      *
2094      *
2095      * <pre>
2096      * Timezone on which the cron_schedule.
2097      * The value of this field must be a time zone name from the tz database.
2098      * TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
2099      * Note that some time zones include a provision for daylight savings time.
2100      * The rules for daylight saving time are determined by the chosen tz.
2101      * For UTC use the string "utc". If a time zone is not specified,
2102      * the default will be in UTC (also known as GMT).
2103      * </pre>
2104      *
2105      * <code>string time_zone = 6;</code>
2106      *
2107      * @return This builder for chaining.
2108      */
clearTimeZone()2109     public Builder clearTimeZone() {
2110       timeZone_ = getDefaultInstance().getTimeZone();
2111       bitField0_ = (bitField0_ & ~0x00000020);
2112       onChanged();
2113       return this;
2114     }
2115     /**
2116      *
2117      *
2118      * <pre>
2119      * Timezone on which the cron_schedule.
2120      * The value of this field must be a time zone name from the tz database.
2121      * TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
2122      * Note that some time zones include a provision for daylight savings time.
2123      * The rules for daylight saving time are determined by the chosen tz.
2124      * For UTC use the string "utc". If a time zone is not specified,
2125      * the default will be in UTC (also known as GMT).
2126      * </pre>
2127      *
2128      * <code>string time_zone = 6;</code>
2129      *
2130      * @param value The bytes for timeZone to set.
2131      * @return This builder for chaining.
2132      */
setTimeZoneBytes(com.google.protobuf.ByteString value)2133     public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) {
2134       if (value == null) {
2135         throw new NullPointerException();
2136       }
2137       checkByteStringIsUtf8(value);
2138       timeZone_ = value;
2139       bitField0_ |= 0x00000020;
2140       onChanged();
2141       return this;
2142     }
2143 
2144     private com.google.protobuf.Timestamp createTime_;
2145     private com.google.protobuf.SingleFieldBuilderV3<
2146             com.google.protobuf.Timestamp,
2147             com.google.protobuf.Timestamp.Builder,
2148             com.google.protobuf.TimestampOrBuilder>
2149         createTimeBuilder_;
2150     /**
2151      *
2152      *
2153      * <pre>
2154      * Output only. Time the schedule was created.
2155      * </pre>
2156      *
2157      * <code>
2158      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2159      * </code>
2160      *
2161      * @return Whether the createTime field is set.
2162      */
hasCreateTime()2163     public boolean hasCreateTime() {
2164       return ((bitField0_ & 0x00000040) != 0);
2165     }
2166     /**
2167      *
2168      *
2169      * <pre>
2170      * Output only. Time the schedule was created.
2171      * </pre>
2172      *
2173      * <code>
2174      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2175      * </code>
2176      *
2177      * @return The createTime.
2178      */
getCreateTime()2179     public com.google.protobuf.Timestamp getCreateTime() {
2180       if (createTimeBuilder_ == null) {
2181         return createTime_ == null
2182             ? com.google.protobuf.Timestamp.getDefaultInstance()
2183             : createTime_;
2184       } else {
2185         return createTimeBuilder_.getMessage();
2186       }
2187     }
2188     /**
2189      *
2190      *
2191      * <pre>
2192      * Output only. Time the schedule was created.
2193      * </pre>
2194      *
2195      * <code>
2196      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2197      * </code>
2198      */
setCreateTime(com.google.protobuf.Timestamp value)2199     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
2200       if (createTimeBuilder_ == null) {
2201         if (value == null) {
2202           throw new NullPointerException();
2203         }
2204         createTime_ = value;
2205       } else {
2206         createTimeBuilder_.setMessage(value);
2207       }
2208       bitField0_ |= 0x00000040;
2209       onChanged();
2210       return this;
2211     }
2212     /**
2213      *
2214      *
2215      * <pre>
2216      * Output only. Time the schedule was created.
2217      * </pre>
2218      *
2219      * <code>
2220      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2221      * </code>
2222      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)2223     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2224       if (createTimeBuilder_ == null) {
2225         createTime_ = builderForValue.build();
2226       } else {
2227         createTimeBuilder_.setMessage(builderForValue.build());
2228       }
2229       bitField0_ |= 0x00000040;
2230       onChanged();
2231       return this;
2232     }
2233     /**
2234      *
2235      *
2236      * <pre>
2237      * Output only. Time the schedule was created.
2238      * </pre>
2239      *
2240      * <code>
2241      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2242      * </code>
2243      */
mergeCreateTime(com.google.protobuf.Timestamp value)2244     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
2245       if (createTimeBuilder_ == null) {
2246         if (((bitField0_ & 0x00000040) != 0)
2247             && createTime_ != null
2248             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2249           getCreateTimeBuilder().mergeFrom(value);
2250         } else {
2251           createTime_ = value;
2252         }
2253       } else {
2254         createTimeBuilder_.mergeFrom(value);
2255       }
2256       bitField0_ |= 0x00000040;
2257       onChanged();
2258       return this;
2259     }
2260     /**
2261      *
2262      *
2263      * <pre>
2264      * Output only. Time the schedule was created.
2265      * </pre>
2266      *
2267      * <code>
2268      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2269      * </code>
2270      */
clearCreateTime()2271     public Builder clearCreateTime() {
2272       bitField0_ = (bitField0_ & ~0x00000040);
2273       createTime_ = null;
2274       if (createTimeBuilder_ != null) {
2275         createTimeBuilder_.dispose();
2276         createTimeBuilder_ = null;
2277       }
2278       onChanged();
2279       return this;
2280     }
2281     /**
2282      *
2283      *
2284      * <pre>
2285      * Output only. Time the schedule was created.
2286      * </pre>
2287      *
2288      * <code>
2289      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2290      * </code>
2291      */
getCreateTimeBuilder()2292     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
2293       bitField0_ |= 0x00000040;
2294       onChanged();
2295       return getCreateTimeFieldBuilder().getBuilder();
2296     }
2297     /**
2298      *
2299      *
2300      * <pre>
2301      * Output only. Time the schedule was created.
2302      * </pre>
2303      *
2304      * <code>
2305      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2306      * </code>
2307      */
getCreateTimeOrBuilder()2308     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
2309       if (createTimeBuilder_ != null) {
2310         return createTimeBuilder_.getMessageOrBuilder();
2311       } else {
2312         return createTime_ == null
2313             ? com.google.protobuf.Timestamp.getDefaultInstance()
2314             : createTime_;
2315       }
2316     }
2317     /**
2318      *
2319      *
2320      * <pre>
2321      * Output only. Time the schedule was created.
2322      * </pre>
2323      *
2324      * <code>
2325      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2326      * </code>
2327      */
2328     private com.google.protobuf.SingleFieldBuilderV3<
2329             com.google.protobuf.Timestamp,
2330             com.google.protobuf.Timestamp.Builder,
2331             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()2332         getCreateTimeFieldBuilder() {
2333       if (createTimeBuilder_ == null) {
2334         createTimeBuilder_ =
2335             new com.google.protobuf.SingleFieldBuilderV3<
2336                 com.google.protobuf.Timestamp,
2337                 com.google.protobuf.Timestamp.Builder,
2338                 com.google.protobuf.TimestampOrBuilder>(
2339                 getCreateTime(), getParentForChildren(), isClean());
2340         createTime_ = null;
2341       }
2342       return createTimeBuilder_;
2343     }
2344 
2345     private com.google.protobuf.Timestamp updateTime_;
2346     private com.google.protobuf.SingleFieldBuilderV3<
2347             com.google.protobuf.Timestamp,
2348             com.google.protobuf.Timestamp.Builder,
2349             com.google.protobuf.TimestampOrBuilder>
2350         updateTimeBuilder_;
2351     /**
2352      *
2353      *
2354      * <pre>
2355      * Output only. Time the schedule was last updated.
2356      * </pre>
2357      *
2358      * <code>
2359      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2360      * </code>
2361      *
2362      * @return Whether the updateTime field is set.
2363      */
hasUpdateTime()2364     public boolean hasUpdateTime() {
2365       return ((bitField0_ & 0x00000080) != 0);
2366     }
2367     /**
2368      *
2369      *
2370      * <pre>
2371      * Output only. Time the schedule was last updated.
2372      * </pre>
2373      *
2374      * <code>
2375      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2376      * </code>
2377      *
2378      * @return The updateTime.
2379      */
getUpdateTime()2380     public com.google.protobuf.Timestamp getUpdateTime() {
2381       if (updateTimeBuilder_ == null) {
2382         return updateTime_ == null
2383             ? com.google.protobuf.Timestamp.getDefaultInstance()
2384             : updateTime_;
2385       } else {
2386         return updateTimeBuilder_.getMessage();
2387       }
2388     }
2389     /**
2390      *
2391      *
2392      * <pre>
2393      * Output only. Time the schedule was last updated.
2394      * </pre>
2395      *
2396      * <code>
2397      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2398      * </code>
2399      */
setUpdateTime(com.google.protobuf.Timestamp value)2400     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
2401       if (updateTimeBuilder_ == null) {
2402         if (value == null) {
2403           throw new NullPointerException();
2404         }
2405         updateTime_ = value;
2406       } else {
2407         updateTimeBuilder_.setMessage(value);
2408       }
2409       bitField0_ |= 0x00000080;
2410       onChanged();
2411       return this;
2412     }
2413     /**
2414      *
2415      *
2416      * <pre>
2417      * Output only. Time the schedule was last updated.
2418      * </pre>
2419      *
2420      * <code>
2421      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2422      * </code>
2423      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)2424     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2425       if (updateTimeBuilder_ == null) {
2426         updateTime_ = builderForValue.build();
2427       } else {
2428         updateTimeBuilder_.setMessage(builderForValue.build());
2429       }
2430       bitField0_ |= 0x00000080;
2431       onChanged();
2432       return this;
2433     }
2434     /**
2435      *
2436      *
2437      * <pre>
2438      * Output only. Time the schedule was last updated.
2439      * </pre>
2440      *
2441      * <code>
2442      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2443      * </code>
2444      */
mergeUpdateTime(com.google.protobuf.Timestamp value)2445     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
2446       if (updateTimeBuilder_ == null) {
2447         if (((bitField0_ & 0x00000080) != 0)
2448             && updateTime_ != null
2449             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2450           getUpdateTimeBuilder().mergeFrom(value);
2451         } else {
2452           updateTime_ = value;
2453         }
2454       } else {
2455         updateTimeBuilder_.mergeFrom(value);
2456       }
2457       bitField0_ |= 0x00000080;
2458       onChanged();
2459       return this;
2460     }
2461     /**
2462      *
2463      *
2464      * <pre>
2465      * Output only. Time the schedule was last updated.
2466      * </pre>
2467      *
2468      * <code>
2469      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2470      * </code>
2471      */
clearUpdateTime()2472     public Builder clearUpdateTime() {
2473       bitField0_ = (bitField0_ & ~0x00000080);
2474       updateTime_ = null;
2475       if (updateTimeBuilder_ != null) {
2476         updateTimeBuilder_.dispose();
2477         updateTimeBuilder_ = null;
2478       }
2479       onChanged();
2480       return this;
2481     }
2482     /**
2483      *
2484      *
2485      * <pre>
2486      * Output only. Time the schedule was last updated.
2487      * </pre>
2488      *
2489      * <code>
2490      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2491      * </code>
2492      */
getUpdateTimeBuilder()2493     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
2494       bitField0_ |= 0x00000080;
2495       onChanged();
2496       return getUpdateTimeFieldBuilder().getBuilder();
2497     }
2498     /**
2499      *
2500      *
2501      * <pre>
2502      * Output only. Time the schedule was last updated.
2503      * </pre>
2504      *
2505      * <code>
2506      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2507      * </code>
2508      */
getUpdateTimeOrBuilder()2509     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
2510       if (updateTimeBuilder_ != null) {
2511         return updateTimeBuilder_.getMessageOrBuilder();
2512       } else {
2513         return updateTime_ == null
2514             ? com.google.protobuf.Timestamp.getDefaultInstance()
2515             : updateTime_;
2516       }
2517     }
2518     /**
2519      *
2520      *
2521      * <pre>
2522      * Output only. Time the schedule was last updated.
2523      * </pre>
2524      *
2525      * <code>
2526      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2527      * </code>
2528      */
2529     private com.google.protobuf.SingleFieldBuilderV3<
2530             com.google.protobuf.Timestamp,
2531             com.google.protobuf.Timestamp.Builder,
2532             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()2533         getUpdateTimeFieldBuilder() {
2534       if (updateTimeBuilder_ == null) {
2535         updateTimeBuilder_ =
2536             new com.google.protobuf.SingleFieldBuilderV3<
2537                 com.google.protobuf.Timestamp,
2538                 com.google.protobuf.Timestamp.Builder,
2539                 com.google.protobuf.TimestampOrBuilder>(
2540                 getUpdateTime(), getParentForChildren(), isClean());
2541         updateTime_ = null;
2542       }
2543       return updateTimeBuilder_;
2544     }
2545 
2546     private com.google.cloud.notebooks.v1.ExecutionTemplate executionTemplate_;
2547     private com.google.protobuf.SingleFieldBuilderV3<
2548             com.google.cloud.notebooks.v1.ExecutionTemplate,
2549             com.google.cloud.notebooks.v1.ExecutionTemplate.Builder,
2550             com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder>
2551         executionTemplateBuilder_;
2552     /**
2553      *
2554      *
2555      * <pre>
2556      * Notebook Execution Template corresponding to this schedule.
2557      * </pre>
2558      *
2559      * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
2560      *
2561      * @return Whether the executionTemplate field is set.
2562      */
hasExecutionTemplate()2563     public boolean hasExecutionTemplate() {
2564       return ((bitField0_ & 0x00000100) != 0);
2565     }
2566     /**
2567      *
2568      *
2569      * <pre>
2570      * Notebook Execution Template corresponding to this schedule.
2571      * </pre>
2572      *
2573      * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
2574      *
2575      * @return The executionTemplate.
2576      */
getExecutionTemplate()2577     public com.google.cloud.notebooks.v1.ExecutionTemplate getExecutionTemplate() {
2578       if (executionTemplateBuilder_ == null) {
2579         return executionTemplate_ == null
2580             ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance()
2581             : executionTemplate_;
2582       } else {
2583         return executionTemplateBuilder_.getMessage();
2584       }
2585     }
2586     /**
2587      *
2588      *
2589      * <pre>
2590      * Notebook Execution Template corresponding to this schedule.
2591      * </pre>
2592      *
2593      * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
2594      */
setExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTemplate value)2595     public Builder setExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTemplate value) {
2596       if (executionTemplateBuilder_ == null) {
2597         if (value == null) {
2598           throw new NullPointerException();
2599         }
2600         executionTemplate_ = value;
2601       } else {
2602         executionTemplateBuilder_.setMessage(value);
2603       }
2604       bitField0_ |= 0x00000100;
2605       onChanged();
2606       return this;
2607     }
2608     /**
2609      *
2610      *
2611      * <pre>
2612      * Notebook Execution Template corresponding to this schedule.
2613      * </pre>
2614      *
2615      * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
2616      */
setExecutionTemplate( com.google.cloud.notebooks.v1.ExecutionTemplate.Builder builderForValue)2617     public Builder setExecutionTemplate(
2618         com.google.cloud.notebooks.v1.ExecutionTemplate.Builder builderForValue) {
2619       if (executionTemplateBuilder_ == null) {
2620         executionTemplate_ = builderForValue.build();
2621       } else {
2622         executionTemplateBuilder_.setMessage(builderForValue.build());
2623       }
2624       bitField0_ |= 0x00000100;
2625       onChanged();
2626       return this;
2627     }
2628     /**
2629      *
2630      *
2631      * <pre>
2632      * Notebook Execution Template corresponding to this schedule.
2633      * </pre>
2634      *
2635      * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
2636      */
mergeExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTemplate value)2637     public Builder mergeExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTemplate value) {
2638       if (executionTemplateBuilder_ == null) {
2639         if (((bitField0_ & 0x00000100) != 0)
2640             && executionTemplate_ != null
2641             && executionTemplate_
2642                 != com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance()) {
2643           getExecutionTemplateBuilder().mergeFrom(value);
2644         } else {
2645           executionTemplate_ = value;
2646         }
2647       } else {
2648         executionTemplateBuilder_.mergeFrom(value);
2649       }
2650       bitField0_ |= 0x00000100;
2651       onChanged();
2652       return this;
2653     }
2654     /**
2655      *
2656      *
2657      * <pre>
2658      * Notebook Execution Template corresponding to this schedule.
2659      * </pre>
2660      *
2661      * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
2662      */
clearExecutionTemplate()2663     public Builder clearExecutionTemplate() {
2664       bitField0_ = (bitField0_ & ~0x00000100);
2665       executionTemplate_ = null;
2666       if (executionTemplateBuilder_ != null) {
2667         executionTemplateBuilder_.dispose();
2668         executionTemplateBuilder_ = null;
2669       }
2670       onChanged();
2671       return this;
2672     }
2673     /**
2674      *
2675      *
2676      * <pre>
2677      * Notebook Execution Template corresponding to this schedule.
2678      * </pre>
2679      *
2680      * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
2681      */
getExecutionTemplateBuilder()2682     public com.google.cloud.notebooks.v1.ExecutionTemplate.Builder getExecutionTemplateBuilder() {
2683       bitField0_ |= 0x00000100;
2684       onChanged();
2685       return getExecutionTemplateFieldBuilder().getBuilder();
2686     }
2687     /**
2688      *
2689      *
2690      * <pre>
2691      * Notebook Execution Template corresponding to this schedule.
2692      * </pre>
2693      *
2694      * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
2695      */
2696     public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder
getExecutionTemplateOrBuilder()2697         getExecutionTemplateOrBuilder() {
2698       if (executionTemplateBuilder_ != null) {
2699         return executionTemplateBuilder_.getMessageOrBuilder();
2700       } else {
2701         return executionTemplate_ == null
2702             ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance()
2703             : executionTemplate_;
2704       }
2705     }
2706     /**
2707      *
2708      *
2709      * <pre>
2710      * Notebook Execution Template corresponding to this schedule.
2711      * </pre>
2712      *
2713      * <code>.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9;</code>
2714      */
2715     private com.google.protobuf.SingleFieldBuilderV3<
2716             com.google.cloud.notebooks.v1.ExecutionTemplate,
2717             com.google.cloud.notebooks.v1.ExecutionTemplate.Builder,
2718             com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder>
getExecutionTemplateFieldBuilder()2719         getExecutionTemplateFieldBuilder() {
2720       if (executionTemplateBuilder_ == null) {
2721         executionTemplateBuilder_ =
2722             new com.google.protobuf.SingleFieldBuilderV3<
2723                 com.google.cloud.notebooks.v1.ExecutionTemplate,
2724                 com.google.cloud.notebooks.v1.ExecutionTemplate.Builder,
2725                 com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder>(
2726                 getExecutionTemplate(), getParentForChildren(), isClean());
2727         executionTemplate_ = null;
2728       }
2729       return executionTemplateBuilder_;
2730     }
2731 
2732     private java.util.List<com.google.cloud.notebooks.v1.Execution> recentExecutions_ =
2733         java.util.Collections.emptyList();
2734 
ensureRecentExecutionsIsMutable()2735     private void ensureRecentExecutionsIsMutable() {
2736       if (!((bitField0_ & 0x00000200) != 0)) {
2737         recentExecutions_ =
2738             new java.util.ArrayList<com.google.cloud.notebooks.v1.Execution>(recentExecutions_);
2739         bitField0_ |= 0x00000200;
2740       }
2741     }
2742 
2743     private com.google.protobuf.RepeatedFieldBuilderV3<
2744             com.google.cloud.notebooks.v1.Execution,
2745             com.google.cloud.notebooks.v1.Execution.Builder,
2746             com.google.cloud.notebooks.v1.ExecutionOrBuilder>
2747         recentExecutionsBuilder_;
2748 
2749     /**
2750      *
2751      *
2752      * <pre>
2753      * Output only. The most recent execution names triggered from this schedule and their
2754      * corresponding states.
2755      * </pre>
2756      *
2757      * <code>
2758      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2759      * </code>
2760      */
getRecentExecutionsList()2761     public java.util.List<com.google.cloud.notebooks.v1.Execution> getRecentExecutionsList() {
2762       if (recentExecutionsBuilder_ == null) {
2763         return java.util.Collections.unmodifiableList(recentExecutions_);
2764       } else {
2765         return recentExecutionsBuilder_.getMessageList();
2766       }
2767     }
2768     /**
2769      *
2770      *
2771      * <pre>
2772      * Output only. The most recent execution names triggered from this schedule and their
2773      * corresponding states.
2774      * </pre>
2775      *
2776      * <code>
2777      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2778      * </code>
2779      */
getRecentExecutionsCount()2780     public int getRecentExecutionsCount() {
2781       if (recentExecutionsBuilder_ == null) {
2782         return recentExecutions_.size();
2783       } else {
2784         return recentExecutionsBuilder_.getCount();
2785       }
2786     }
2787     /**
2788      *
2789      *
2790      * <pre>
2791      * Output only. The most recent execution names triggered from this schedule and their
2792      * corresponding states.
2793      * </pre>
2794      *
2795      * <code>
2796      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2797      * </code>
2798      */
getRecentExecutions(int index)2799     public com.google.cloud.notebooks.v1.Execution getRecentExecutions(int index) {
2800       if (recentExecutionsBuilder_ == null) {
2801         return recentExecutions_.get(index);
2802       } else {
2803         return recentExecutionsBuilder_.getMessage(index);
2804       }
2805     }
2806     /**
2807      *
2808      *
2809      * <pre>
2810      * Output only. The most recent execution names triggered from this schedule and their
2811      * corresponding states.
2812      * </pre>
2813      *
2814      * <code>
2815      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2816      * </code>
2817      */
setRecentExecutions(int index, com.google.cloud.notebooks.v1.Execution value)2818     public Builder setRecentExecutions(int index, com.google.cloud.notebooks.v1.Execution value) {
2819       if (recentExecutionsBuilder_ == null) {
2820         if (value == null) {
2821           throw new NullPointerException();
2822         }
2823         ensureRecentExecutionsIsMutable();
2824         recentExecutions_.set(index, value);
2825         onChanged();
2826       } else {
2827         recentExecutionsBuilder_.setMessage(index, value);
2828       }
2829       return this;
2830     }
2831     /**
2832      *
2833      *
2834      * <pre>
2835      * Output only. The most recent execution names triggered from this schedule and their
2836      * corresponding states.
2837      * </pre>
2838      *
2839      * <code>
2840      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2841      * </code>
2842      */
setRecentExecutions( int index, com.google.cloud.notebooks.v1.Execution.Builder builderForValue)2843     public Builder setRecentExecutions(
2844         int index, com.google.cloud.notebooks.v1.Execution.Builder builderForValue) {
2845       if (recentExecutionsBuilder_ == null) {
2846         ensureRecentExecutionsIsMutable();
2847         recentExecutions_.set(index, builderForValue.build());
2848         onChanged();
2849       } else {
2850         recentExecutionsBuilder_.setMessage(index, builderForValue.build());
2851       }
2852       return this;
2853     }
2854     /**
2855      *
2856      *
2857      * <pre>
2858      * Output only. The most recent execution names triggered from this schedule and their
2859      * corresponding states.
2860      * </pre>
2861      *
2862      * <code>
2863      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2864      * </code>
2865      */
addRecentExecutions(com.google.cloud.notebooks.v1.Execution value)2866     public Builder addRecentExecutions(com.google.cloud.notebooks.v1.Execution value) {
2867       if (recentExecutionsBuilder_ == null) {
2868         if (value == null) {
2869           throw new NullPointerException();
2870         }
2871         ensureRecentExecutionsIsMutable();
2872         recentExecutions_.add(value);
2873         onChanged();
2874       } else {
2875         recentExecutionsBuilder_.addMessage(value);
2876       }
2877       return this;
2878     }
2879     /**
2880      *
2881      *
2882      * <pre>
2883      * Output only. The most recent execution names triggered from this schedule and their
2884      * corresponding states.
2885      * </pre>
2886      *
2887      * <code>
2888      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2889      * </code>
2890      */
addRecentExecutions(int index, com.google.cloud.notebooks.v1.Execution value)2891     public Builder addRecentExecutions(int index, com.google.cloud.notebooks.v1.Execution value) {
2892       if (recentExecutionsBuilder_ == null) {
2893         if (value == null) {
2894           throw new NullPointerException();
2895         }
2896         ensureRecentExecutionsIsMutable();
2897         recentExecutions_.add(index, value);
2898         onChanged();
2899       } else {
2900         recentExecutionsBuilder_.addMessage(index, value);
2901       }
2902       return this;
2903     }
2904     /**
2905      *
2906      *
2907      * <pre>
2908      * Output only. The most recent execution names triggered from this schedule and their
2909      * corresponding states.
2910      * </pre>
2911      *
2912      * <code>
2913      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2914      * </code>
2915      */
addRecentExecutions( com.google.cloud.notebooks.v1.Execution.Builder builderForValue)2916     public Builder addRecentExecutions(
2917         com.google.cloud.notebooks.v1.Execution.Builder builderForValue) {
2918       if (recentExecutionsBuilder_ == null) {
2919         ensureRecentExecutionsIsMutable();
2920         recentExecutions_.add(builderForValue.build());
2921         onChanged();
2922       } else {
2923         recentExecutionsBuilder_.addMessage(builderForValue.build());
2924       }
2925       return this;
2926     }
2927     /**
2928      *
2929      *
2930      * <pre>
2931      * Output only. The most recent execution names triggered from this schedule and their
2932      * corresponding states.
2933      * </pre>
2934      *
2935      * <code>
2936      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2937      * </code>
2938      */
addRecentExecutions( int index, com.google.cloud.notebooks.v1.Execution.Builder builderForValue)2939     public Builder addRecentExecutions(
2940         int index, com.google.cloud.notebooks.v1.Execution.Builder builderForValue) {
2941       if (recentExecutionsBuilder_ == null) {
2942         ensureRecentExecutionsIsMutable();
2943         recentExecutions_.add(index, builderForValue.build());
2944         onChanged();
2945       } else {
2946         recentExecutionsBuilder_.addMessage(index, builderForValue.build());
2947       }
2948       return this;
2949     }
2950     /**
2951      *
2952      *
2953      * <pre>
2954      * Output only. The most recent execution names triggered from this schedule and their
2955      * corresponding states.
2956      * </pre>
2957      *
2958      * <code>
2959      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2960      * </code>
2961      */
addAllRecentExecutions( java.lang.Iterable<? extends com.google.cloud.notebooks.v1.Execution> values)2962     public Builder addAllRecentExecutions(
2963         java.lang.Iterable<? extends com.google.cloud.notebooks.v1.Execution> values) {
2964       if (recentExecutionsBuilder_ == null) {
2965         ensureRecentExecutionsIsMutable();
2966         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentExecutions_);
2967         onChanged();
2968       } else {
2969         recentExecutionsBuilder_.addAllMessages(values);
2970       }
2971       return this;
2972     }
2973     /**
2974      *
2975      *
2976      * <pre>
2977      * Output only. The most recent execution names triggered from this schedule and their
2978      * corresponding states.
2979      * </pre>
2980      *
2981      * <code>
2982      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2983      * </code>
2984      */
clearRecentExecutions()2985     public Builder clearRecentExecutions() {
2986       if (recentExecutionsBuilder_ == null) {
2987         recentExecutions_ = java.util.Collections.emptyList();
2988         bitField0_ = (bitField0_ & ~0x00000200);
2989         onChanged();
2990       } else {
2991         recentExecutionsBuilder_.clear();
2992       }
2993       return this;
2994     }
2995     /**
2996      *
2997      *
2998      * <pre>
2999      * Output only. The most recent execution names triggered from this schedule and their
3000      * corresponding states.
3001      * </pre>
3002      *
3003      * <code>
3004      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3005      * </code>
3006      */
removeRecentExecutions(int index)3007     public Builder removeRecentExecutions(int index) {
3008       if (recentExecutionsBuilder_ == null) {
3009         ensureRecentExecutionsIsMutable();
3010         recentExecutions_.remove(index);
3011         onChanged();
3012       } else {
3013         recentExecutionsBuilder_.remove(index);
3014       }
3015       return this;
3016     }
3017     /**
3018      *
3019      *
3020      * <pre>
3021      * Output only. The most recent execution names triggered from this schedule and their
3022      * corresponding states.
3023      * </pre>
3024      *
3025      * <code>
3026      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3027      * </code>
3028      */
getRecentExecutionsBuilder(int index)3029     public com.google.cloud.notebooks.v1.Execution.Builder getRecentExecutionsBuilder(int index) {
3030       return getRecentExecutionsFieldBuilder().getBuilder(index);
3031     }
3032     /**
3033      *
3034      *
3035      * <pre>
3036      * Output only. The most recent execution names triggered from this schedule and their
3037      * corresponding states.
3038      * </pre>
3039      *
3040      * <code>
3041      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3042      * </code>
3043      */
getRecentExecutionsOrBuilder( int index)3044     public com.google.cloud.notebooks.v1.ExecutionOrBuilder getRecentExecutionsOrBuilder(
3045         int index) {
3046       if (recentExecutionsBuilder_ == null) {
3047         return recentExecutions_.get(index);
3048       } else {
3049         return recentExecutionsBuilder_.getMessageOrBuilder(index);
3050       }
3051     }
3052     /**
3053      *
3054      *
3055      * <pre>
3056      * Output only. The most recent execution names triggered from this schedule and their
3057      * corresponding states.
3058      * </pre>
3059      *
3060      * <code>
3061      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3062      * </code>
3063      */
3064     public java.util.List<? extends com.google.cloud.notebooks.v1.ExecutionOrBuilder>
getRecentExecutionsOrBuilderList()3065         getRecentExecutionsOrBuilderList() {
3066       if (recentExecutionsBuilder_ != null) {
3067         return recentExecutionsBuilder_.getMessageOrBuilderList();
3068       } else {
3069         return java.util.Collections.unmodifiableList(recentExecutions_);
3070       }
3071     }
3072     /**
3073      *
3074      *
3075      * <pre>
3076      * Output only. The most recent execution names triggered from this schedule and their
3077      * corresponding states.
3078      * </pre>
3079      *
3080      * <code>
3081      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3082      * </code>
3083      */
addRecentExecutionsBuilder()3084     public com.google.cloud.notebooks.v1.Execution.Builder addRecentExecutionsBuilder() {
3085       return getRecentExecutionsFieldBuilder()
3086           .addBuilder(com.google.cloud.notebooks.v1.Execution.getDefaultInstance());
3087     }
3088     /**
3089      *
3090      *
3091      * <pre>
3092      * Output only. The most recent execution names triggered from this schedule and their
3093      * corresponding states.
3094      * </pre>
3095      *
3096      * <code>
3097      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3098      * </code>
3099      */
addRecentExecutionsBuilder(int index)3100     public com.google.cloud.notebooks.v1.Execution.Builder addRecentExecutionsBuilder(int index) {
3101       return getRecentExecutionsFieldBuilder()
3102           .addBuilder(index, com.google.cloud.notebooks.v1.Execution.getDefaultInstance());
3103     }
3104     /**
3105      *
3106      *
3107      * <pre>
3108      * Output only. The most recent execution names triggered from this schedule and their
3109      * corresponding states.
3110      * </pre>
3111      *
3112      * <code>
3113      * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3114      * </code>
3115      */
3116     public java.util.List<com.google.cloud.notebooks.v1.Execution.Builder>
getRecentExecutionsBuilderList()3117         getRecentExecutionsBuilderList() {
3118       return getRecentExecutionsFieldBuilder().getBuilderList();
3119     }
3120 
3121     private com.google.protobuf.RepeatedFieldBuilderV3<
3122             com.google.cloud.notebooks.v1.Execution,
3123             com.google.cloud.notebooks.v1.Execution.Builder,
3124             com.google.cloud.notebooks.v1.ExecutionOrBuilder>
getRecentExecutionsFieldBuilder()3125         getRecentExecutionsFieldBuilder() {
3126       if (recentExecutionsBuilder_ == null) {
3127         recentExecutionsBuilder_ =
3128             new com.google.protobuf.RepeatedFieldBuilderV3<
3129                 com.google.cloud.notebooks.v1.Execution,
3130                 com.google.cloud.notebooks.v1.Execution.Builder,
3131                 com.google.cloud.notebooks.v1.ExecutionOrBuilder>(
3132                 recentExecutions_,
3133                 ((bitField0_ & 0x00000200) != 0),
3134                 getParentForChildren(),
3135                 isClean());
3136         recentExecutions_ = null;
3137       }
3138       return recentExecutionsBuilder_;
3139     }
3140 
3141     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3142     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3143       return super.setUnknownFields(unknownFields);
3144     }
3145 
3146     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3147     public final Builder mergeUnknownFields(
3148         final com.google.protobuf.UnknownFieldSet unknownFields) {
3149       return super.mergeUnknownFields(unknownFields);
3150     }
3151 
3152     // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Schedule)
3153   }
3154 
3155   // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Schedule)
3156   private static final com.google.cloud.notebooks.v1.Schedule DEFAULT_INSTANCE;
3157 
3158   static {
3159     DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Schedule();
3160   }
3161 
getDefaultInstance()3162   public static com.google.cloud.notebooks.v1.Schedule getDefaultInstance() {
3163     return DEFAULT_INSTANCE;
3164   }
3165 
3166   private static final com.google.protobuf.Parser<Schedule> PARSER =
3167       new com.google.protobuf.AbstractParser<Schedule>() {
3168         @java.lang.Override
3169         public Schedule parsePartialFrom(
3170             com.google.protobuf.CodedInputStream input,
3171             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3172             throws com.google.protobuf.InvalidProtocolBufferException {
3173           Builder builder = newBuilder();
3174           try {
3175             builder.mergeFrom(input, extensionRegistry);
3176           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3177             throw e.setUnfinishedMessage(builder.buildPartial());
3178           } catch (com.google.protobuf.UninitializedMessageException e) {
3179             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3180           } catch (java.io.IOException e) {
3181             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3182                 .setUnfinishedMessage(builder.buildPartial());
3183           }
3184           return builder.buildPartial();
3185         }
3186       };
3187 
parser()3188   public static com.google.protobuf.Parser<Schedule> parser() {
3189     return PARSER;
3190   }
3191 
3192   @java.lang.Override
getParserForType()3193   public com.google.protobuf.Parser<Schedule> getParserForType() {
3194     return PARSER;
3195   }
3196 
3197   @java.lang.Override
getDefaultInstanceForType()3198   public com.google.cloud.notebooks.v1.Schedule getDefaultInstanceForType() {
3199     return DEFAULT_INSTANCE;
3200   }
3201 }
3202