• 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/container/v1/cluster_service.proto
18 
19 package com.google.container.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Represents an arbitrary window of time that recurs.
26  * </pre>
27  *
28  * Protobuf type {@code google.container.v1.RecurringTimeWindow}
29  */
30 public final class RecurringTimeWindow extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.container.v1.RecurringTimeWindow)
33     RecurringTimeWindowOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use RecurringTimeWindow.newBuilder() to construct.
RecurringTimeWindow(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private RecurringTimeWindow(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
RecurringTimeWindow()40   private RecurringTimeWindow() {
41     recurrence_ = "";
42   }
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new RecurringTimeWindow();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.container.v1.ClusterServiceProto
57         .internal_static_google_container_v1_RecurringTimeWindow_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.container.v1.ClusterServiceProto
64         .internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.container.v1.RecurringTimeWindow.class,
67             com.google.container.v1.RecurringTimeWindow.Builder.class);
68   }
69 
70   public static final int WINDOW_FIELD_NUMBER = 1;
71   private com.google.container.v1.TimeWindow window_;
72   /**
73    *
74    *
75    * <pre>
76    * The window of the first recurrence.
77    * </pre>
78    *
79    * <code>.google.container.v1.TimeWindow window = 1;</code>
80    *
81    * @return Whether the window field is set.
82    */
83   @java.lang.Override
hasWindow()84   public boolean hasWindow() {
85     return window_ != null;
86   }
87   /**
88    *
89    *
90    * <pre>
91    * The window of the first recurrence.
92    * </pre>
93    *
94    * <code>.google.container.v1.TimeWindow window = 1;</code>
95    *
96    * @return The window.
97    */
98   @java.lang.Override
getWindow()99   public com.google.container.v1.TimeWindow getWindow() {
100     return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_;
101   }
102   /**
103    *
104    *
105    * <pre>
106    * The window of the first recurrence.
107    * </pre>
108    *
109    * <code>.google.container.v1.TimeWindow window = 1;</code>
110    */
111   @java.lang.Override
getWindowOrBuilder()112   public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() {
113     return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_;
114   }
115 
116   public static final int RECURRENCE_FIELD_NUMBER = 2;
117 
118   @SuppressWarnings("serial")
119   private volatile java.lang.Object recurrence_ = "";
120   /**
121    *
122    *
123    * <pre>
124    * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
125    * this window reccurs. They go on for the span of time between the start and
126    * end time.
127    * For example, to have something repeat every weekday, you'd use:
128    * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
129    * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
130    * `FREQ=DAILY`
131    * For the first weekend of every month:
132    * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
133    * This specifies how frequently the window starts. Eg, if you wanted to have
134    * a 9-5 UTC-4 window every weekday, you'd use something like:
135    * ```
136    * start time = 2019-01-01T09:00:00-0400
137    * end time = 2019-01-01T17:00:00-0400
138    * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
139    * ```
140    * Windows can span multiple days. Eg, to make the window encompass every
141    * weekend from midnight Saturday till the last minute of Sunday UTC:
142    * ```
143    * start time = 2019-01-05T00:00:00Z
144    * end time = 2019-01-07T23:59:00Z
145    * recurrence = FREQ=WEEKLY;BYDAY=SA
146    * ```
147    * Note the start and end time's specific dates are largely arbitrary except
148    * to specify duration of the window and when it first starts.
149    * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
150    * </pre>
151    *
152    * <code>string recurrence = 2;</code>
153    *
154    * @return The recurrence.
155    */
156   @java.lang.Override
getRecurrence()157   public java.lang.String getRecurrence() {
158     java.lang.Object ref = recurrence_;
159     if (ref instanceof java.lang.String) {
160       return (java.lang.String) ref;
161     } else {
162       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
163       java.lang.String s = bs.toStringUtf8();
164       recurrence_ = s;
165       return s;
166     }
167   }
168   /**
169    *
170    *
171    * <pre>
172    * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
173    * this window reccurs. They go on for the span of time between the start and
174    * end time.
175    * For example, to have something repeat every weekday, you'd use:
176    * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
177    * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
178    * `FREQ=DAILY`
179    * For the first weekend of every month:
180    * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
181    * This specifies how frequently the window starts. Eg, if you wanted to have
182    * a 9-5 UTC-4 window every weekday, you'd use something like:
183    * ```
184    * start time = 2019-01-01T09:00:00-0400
185    * end time = 2019-01-01T17:00:00-0400
186    * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
187    * ```
188    * Windows can span multiple days. Eg, to make the window encompass every
189    * weekend from midnight Saturday till the last minute of Sunday UTC:
190    * ```
191    * start time = 2019-01-05T00:00:00Z
192    * end time = 2019-01-07T23:59:00Z
193    * recurrence = FREQ=WEEKLY;BYDAY=SA
194    * ```
195    * Note the start and end time's specific dates are largely arbitrary except
196    * to specify duration of the window and when it first starts.
197    * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
198    * </pre>
199    *
200    * <code>string recurrence = 2;</code>
201    *
202    * @return The bytes for recurrence.
203    */
204   @java.lang.Override
getRecurrenceBytes()205   public com.google.protobuf.ByteString getRecurrenceBytes() {
206     java.lang.Object ref = recurrence_;
207     if (ref instanceof java.lang.String) {
208       com.google.protobuf.ByteString b =
209           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
210       recurrence_ = b;
211       return b;
212     } else {
213       return (com.google.protobuf.ByteString) ref;
214     }
215   }
216 
217   private byte memoizedIsInitialized = -1;
218 
219   @java.lang.Override
isInitialized()220   public final boolean isInitialized() {
221     byte isInitialized = memoizedIsInitialized;
222     if (isInitialized == 1) return true;
223     if (isInitialized == 0) return false;
224 
225     memoizedIsInitialized = 1;
226     return true;
227   }
228 
229   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)230   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
231     if (window_ != null) {
232       output.writeMessage(1, getWindow());
233     }
234     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) {
235       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recurrence_);
236     }
237     getUnknownFields().writeTo(output);
238   }
239 
240   @java.lang.Override
getSerializedSize()241   public int getSerializedSize() {
242     int size = memoizedSize;
243     if (size != -1) return size;
244 
245     size = 0;
246     if (window_ != null) {
247       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow());
248     }
249     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) {
250       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recurrence_);
251     }
252     size += getUnknownFields().getSerializedSize();
253     memoizedSize = size;
254     return size;
255   }
256 
257   @java.lang.Override
equals(final java.lang.Object obj)258   public boolean equals(final java.lang.Object obj) {
259     if (obj == this) {
260       return true;
261     }
262     if (!(obj instanceof com.google.container.v1.RecurringTimeWindow)) {
263       return super.equals(obj);
264     }
265     com.google.container.v1.RecurringTimeWindow other =
266         (com.google.container.v1.RecurringTimeWindow) obj;
267 
268     if (hasWindow() != other.hasWindow()) return false;
269     if (hasWindow()) {
270       if (!getWindow().equals(other.getWindow())) return false;
271     }
272     if (!getRecurrence().equals(other.getRecurrence())) return false;
273     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
274     return true;
275   }
276 
277   @java.lang.Override
hashCode()278   public int hashCode() {
279     if (memoizedHashCode != 0) {
280       return memoizedHashCode;
281     }
282     int hash = 41;
283     hash = (19 * hash) + getDescriptor().hashCode();
284     if (hasWindow()) {
285       hash = (37 * hash) + WINDOW_FIELD_NUMBER;
286       hash = (53 * hash) + getWindow().hashCode();
287     }
288     hash = (37 * hash) + RECURRENCE_FIELD_NUMBER;
289     hash = (53 * hash) + getRecurrence().hashCode();
290     hash = (29 * hash) + getUnknownFields().hashCode();
291     memoizedHashCode = hash;
292     return hash;
293   }
294 
parseFrom(java.nio.ByteBuffer data)295   public static com.google.container.v1.RecurringTimeWindow parseFrom(java.nio.ByteBuffer data)
296       throws com.google.protobuf.InvalidProtocolBufferException {
297     return PARSER.parseFrom(data);
298   }
299 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)300   public static com.google.container.v1.RecurringTimeWindow parseFrom(
301       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
302       throws com.google.protobuf.InvalidProtocolBufferException {
303     return PARSER.parseFrom(data, extensionRegistry);
304   }
305 
parseFrom( com.google.protobuf.ByteString data)306   public static com.google.container.v1.RecurringTimeWindow parseFrom(
307       com.google.protobuf.ByteString data)
308       throws com.google.protobuf.InvalidProtocolBufferException {
309     return PARSER.parseFrom(data);
310   }
311 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)312   public static com.google.container.v1.RecurringTimeWindow parseFrom(
313       com.google.protobuf.ByteString data,
314       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
315       throws com.google.protobuf.InvalidProtocolBufferException {
316     return PARSER.parseFrom(data, extensionRegistry);
317   }
318 
parseFrom(byte[] data)319   public static com.google.container.v1.RecurringTimeWindow parseFrom(byte[] data)
320       throws com.google.protobuf.InvalidProtocolBufferException {
321     return PARSER.parseFrom(data);
322   }
323 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)324   public static com.google.container.v1.RecurringTimeWindow parseFrom(
325       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
326       throws com.google.protobuf.InvalidProtocolBufferException {
327     return PARSER.parseFrom(data, extensionRegistry);
328   }
329 
parseFrom(java.io.InputStream input)330   public static com.google.container.v1.RecurringTimeWindow parseFrom(java.io.InputStream input)
331       throws java.io.IOException {
332     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
333   }
334 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)335   public static com.google.container.v1.RecurringTimeWindow parseFrom(
336       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
337       throws java.io.IOException {
338     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
339         PARSER, input, extensionRegistry);
340   }
341 
parseDelimitedFrom( java.io.InputStream input)342   public static com.google.container.v1.RecurringTimeWindow parseDelimitedFrom(
343       java.io.InputStream input) throws java.io.IOException {
344     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
345   }
346 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)347   public static com.google.container.v1.RecurringTimeWindow parseDelimitedFrom(
348       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
349       throws java.io.IOException {
350     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
351         PARSER, input, extensionRegistry);
352   }
353 
parseFrom( com.google.protobuf.CodedInputStream input)354   public static com.google.container.v1.RecurringTimeWindow parseFrom(
355       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
356     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
357   }
358 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)359   public static com.google.container.v1.RecurringTimeWindow parseFrom(
360       com.google.protobuf.CodedInputStream input,
361       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
362       throws java.io.IOException {
363     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
364         PARSER, input, extensionRegistry);
365   }
366 
367   @java.lang.Override
newBuilderForType()368   public Builder newBuilderForType() {
369     return newBuilder();
370   }
371 
newBuilder()372   public static Builder newBuilder() {
373     return DEFAULT_INSTANCE.toBuilder();
374   }
375 
newBuilder(com.google.container.v1.RecurringTimeWindow prototype)376   public static Builder newBuilder(com.google.container.v1.RecurringTimeWindow prototype) {
377     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
378   }
379 
380   @java.lang.Override
toBuilder()381   public Builder toBuilder() {
382     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
383   }
384 
385   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)386   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
387     Builder builder = new Builder(parent);
388     return builder;
389   }
390   /**
391    *
392    *
393    * <pre>
394    * Represents an arbitrary window of time that recurs.
395    * </pre>
396    *
397    * Protobuf type {@code google.container.v1.RecurringTimeWindow}
398    */
399   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
400       implements
401       // @@protoc_insertion_point(builder_implements:google.container.v1.RecurringTimeWindow)
402       com.google.container.v1.RecurringTimeWindowOrBuilder {
getDescriptor()403     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
404       return com.google.container.v1.ClusterServiceProto
405           .internal_static_google_container_v1_RecurringTimeWindow_descriptor;
406     }
407 
408     @java.lang.Override
409     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()410         internalGetFieldAccessorTable() {
411       return com.google.container.v1.ClusterServiceProto
412           .internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable
413           .ensureFieldAccessorsInitialized(
414               com.google.container.v1.RecurringTimeWindow.class,
415               com.google.container.v1.RecurringTimeWindow.Builder.class);
416     }
417 
418     // Construct using com.google.container.v1.RecurringTimeWindow.newBuilder()
Builder()419     private Builder() {}
420 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)421     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
422       super(parent);
423     }
424 
425     @java.lang.Override
clear()426     public Builder clear() {
427       super.clear();
428       bitField0_ = 0;
429       window_ = null;
430       if (windowBuilder_ != null) {
431         windowBuilder_.dispose();
432         windowBuilder_ = null;
433       }
434       recurrence_ = "";
435       return this;
436     }
437 
438     @java.lang.Override
getDescriptorForType()439     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
440       return com.google.container.v1.ClusterServiceProto
441           .internal_static_google_container_v1_RecurringTimeWindow_descriptor;
442     }
443 
444     @java.lang.Override
getDefaultInstanceForType()445     public com.google.container.v1.RecurringTimeWindow getDefaultInstanceForType() {
446       return com.google.container.v1.RecurringTimeWindow.getDefaultInstance();
447     }
448 
449     @java.lang.Override
build()450     public com.google.container.v1.RecurringTimeWindow build() {
451       com.google.container.v1.RecurringTimeWindow result = buildPartial();
452       if (!result.isInitialized()) {
453         throw newUninitializedMessageException(result);
454       }
455       return result;
456     }
457 
458     @java.lang.Override
buildPartial()459     public com.google.container.v1.RecurringTimeWindow buildPartial() {
460       com.google.container.v1.RecurringTimeWindow result =
461           new com.google.container.v1.RecurringTimeWindow(this);
462       if (bitField0_ != 0) {
463         buildPartial0(result);
464       }
465       onBuilt();
466       return result;
467     }
468 
buildPartial0(com.google.container.v1.RecurringTimeWindow result)469     private void buildPartial0(com.google.container.v1.RecurringTimeWindow result) {
470       int from_bitField0_ = bitField0_;
471       if (((from_bitField0_ & 0x00000001) != 0)) {
472         result.window_ = windowBuilder_ == null ? window_ : windowBuilder_.build();
473       }
474       if (((from_bitField0_ & 0x00000002) != 0)) {
475         result.recurrence_ = recurrence_;
476       }
477     }
478 
479     @java.lang.Override
clone()480     public Builder clone() {
481       return super.clone();
482     }
483 
484     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)485     public Builder setField(
486         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
487       return super.setField(field, value);
488     }
489 
490     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)491     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
492       return super.clearField(field);
493     }
494 
495     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)496     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
497       return super.clearOneof(oneof);
498     }
499 
500     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)501     public Builder setRepeatedField(
502         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
503       return super.setRepeatedField(field, index, value);
504     }
505 
506     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)507     public Builder addRepeatedField(
508         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
509       return super.addRepeatedField(field, value);
510     }
511 
512     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)513     public Builder mergeFrom(com.google.protobuf.Message other) {
514       if (other instanceof com.google.container.v1.RecurringTimeWindow) {
515         return mergeFrom((com.google.container.v1.RecurringTimeWindow) other);
516       } else {
517         super.mergeFrom(other);
518         return this;
519       }
520     }
521 
mergeFrom(com.google.container.v1.RecurringTimeWindow other)522     public Builder mergeFrom(com.google.container.v1.RecurringTimeWindow other) {
523       if (other == com.google.container.v1.RecurringTimeWindow.getDefaultInstance()) return this;
524       if (other.hasWindow()) {
525         mergeWindow(other.getWindow());
526       }
527       if (!other.getRecurrence().isEmpty()) {
528         recurrence_ = other.recurrence_;
529         bitField0_ |= 0x00000002;
530         onChanged();
531       }
532       this.mergeUnknownFields(other.getUnknownFields());
533       onChanged();
534       return this;
535     }
536 
537     @java.lang.Override
isInitialized()538     public final boolean isInitialized() {
539       return true;
540     }
541 
542     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)543     public Builder mergeFrom(
544         com.google.protobuf.CodedInputStream input,
545         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
546         throws java.io.IOException {
547       if (extensionRegistry == null) {
548         throw new java.lang.NullPointerException();
549       }
550       try {
551         boolean done = false;
552         while (!done) {
553           int tag = input.readTag();
554           switch (tag) {
555             case 0:
556               done = true;
557               break;
558             case 10:
559               {
560                 input.readMessage(getWindowFieldBuilder().getBuilder(), extensionRegistry);
561                 bitField0_ |= 0x00000001;
562                 break;
563               } // case 10
564             case 18:
565               {
566                 recurrence_ = input.readStringRequireUtf8();
567                 bitField0_ |= 0x00000002;
568                 break;
569               } // case 18
570             default:
571               {
572                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
573                   done = true; // was an endgroup tag
574                 }
575                 break;
576               } // default:
577           } // switch (tag)
578         } // while (!done)
579       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
580         throw e.unwrapIOException();
581       } finally {
582         onChanged();
583       } // finally
584       return this;
585     }
586 
587     private int bitField0_;
588 
589     private com.google.container.v1.TimeWindow window_;
590     private com.google.protobuf.SingleFieldBuilderV3<
591             com.google.container.v1.TimeWindow,
592             com.google.container.v1.TimeWindow.Builder,
593             com.google.container.v1.TimeWindowOrBuilder>
594         windowBuilder_;
595     /**
596      *
597      *
598      * <pre>
599      * The window of the first recurrence.
600      * </pre>
601      *
602      * <code>.google.container.v1.TimeWindow window = 1;</code>
603      *
604      * @return Whether the window field is set.
605      */
hasWindow()606     public boolean hasWindow() {
607       return ((bitField0_ & 0x00000001) != 0);
608     }
609     /**
610      *
611      *
612      * <pre>
613      * The window of the first recurrence.
614      * </pre>
615      *
616      * <code>.google.container.v1.TimeWindow window = 1;</code>
617      *
618      * @return The window.
619      */
getWindow()620     public com.google.container.v1.TimeWindow getWindow() {
621       if (windowBuilder_ == null) {
622         return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_;
623       } else {
624         return windowBuilder_.getMessage();
625       }
626     }
627     /**
628      *
629      *
630      * <pre>
631      * The window of the first recurrence.
632      * </pre>
633      *
634      * <code>.google.container.v1.TimeWindow window = 1;</code>
635      */
setWindow(com.google.container.v1.TimeWindow value)636     public Builder setWindow(com.google.container.v1.TimeWindow value) {
637       if (windowBuilder_ == null) {
638         if (value == null) {
639           throw new NullPointerException();
640         }
641         window_ = value;
642       } else {
643         windowBuilder_.setMessage(value);
644       }
645       bitField0_ |= 0x00000001;
646       onChanged();
647       return this;
648     }
649     /**
650      *
651      *
652      * <pre>
653      * The window of the first recurrence.
654      * </pre>
655      *
656      * <code>.google.container.v1.TimeWindow window = 1;</code>
657      */
setWindow(com.google.container.v1.TimeWindow.Builder builderForValue)658     public Builder setWindow(com.google.container.v1.TimeWindow.Builder builderForValue) {
659       if (windowBuilder_ == null) {
660         window_ = builderForValue.build();
661       } else {
662         windowBuilder_.setMessage(builderForValue.build());
663       }
664       bitField0_ |= 0x00000001;
665       onChanged();
666       return this;
667     }
668     /**
669      *
670      *
671      * <pre>
672      * The window of the first recurrence.
673      * </pre>
674      *
675      * <code>.google.container.v1.TimeWindow window = 1;</code>
676      */
mergeWindow(com.google.container.v1.TimeWindow value)677     public Builder mergeWindow(com.google.container.v1.TimeWindow value) {
678       if (windowBuilder_ == null) {
679         if (((bitField0_ & 0x00000001) != 0)
680             && window_ != null
681             && window_ != com.google.container.v1.TimeWindow.getDefaultInstance()) {
682           getWindowBuilder().mergeFrom(value);
683         } else {
684           window_ = value;
685         }
686       } else {
687         windowBuilder_.mergeFrom(value);
688       }
689       bitField0_ |= 0x00000001;
690       onChanged();
691       return this;
692     }
693     /**
694      *
695      *
696      * <pre>
697      * The window of the first recurrence.
698      * </pre>
699      *
700      * <code>.google.container.v1.TimeWindow window = 1;</code>
701      */
clearWindow()702     public Builder clearWindow() {
703       bitField0_ = (bitField0_ & ~0x00000001);
704       window_ = null;
705       if (windowBuilder_ != null) {
706         windowBuilder_.dispose();
707         windowBuilder_ = null;
708       }
709       onChanged();
710       return this;
711     }
712     /**
713      *
714      *
715      * <pre>
716      * The window of the first recurrence.
717      * </pre>
718      *
719      * <code>.google.container.v1.TimeWindow window = 1;</code>
720      */
getWindowBuilder()721     public com.google.container.v1.TimeWindow.Builder getWindowBuilder() {
722       bitField0_ |= 0x00000001;
723       onChanged();
724       return getWindowFieldBuilder().getBuilder();
725     }
726     /**
727      *
728      *
729      * <pre>
730      * The window of the first recurrence.
731      * </pre>
732      *
733      * <code>.google.container.v1.TimeWindow window = 1;</code>
734      */
getWindowOrBuilder()735     public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() {
736       if (windowBuilder_ != null) {
737         return windowBuilder_.getMessageOrBuilder();
738       } else {
739         return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_;
740       }
741     }
742     /**
743      *
744      *
745      * <pre>
746      * The window of the first recurrence.
747      * </pre>
748      *
749      * <code>.google.container.v1.TimeWindow window = 1;</code>
750      */
751     private com.google.protobuf.SingleFieldBuilderV3<
752             com.google.container.v1.TimeWindow,
753             com.google.container.v1.TimeWindow.Builder,
754             com.google.container.v1.TimeWindowOrBuilder>
getWindowFieldBuilder()755         getWindowFieldBuilder() {
756       if (windowBuilder_ == null) {
757         windowBuilder_ =
758             new com.google.protobuf.SingleFieldBuilderV3<
759                 com.google.container.v1.TimeWindow,
760                 com.google.container.v1.TimeWindow.Builder,
761                 com.google.container.v1.TimeWindowOrBuilder>(
762                 getWindow(), getParentForChildren(), isClean());
763         window_ = null;
764       }
765       return windowBuilder_;
766     }
767 
768     private java.lang.Object recurrence_ = "";
769     /**
770      *
771      *
772      * <pre>
773      * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
774      * this window reccurs. They go on for the span of time between the start and
775      * end time.
776      * For example, to have something repeat every weekday, you'd use:
777      * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
778      * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
779      * `FREQ=DAILY`
780      * For the first weekend of every month:
781      * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
782      * This specifies how frequently the window starts. Eg, if you wanted to have
783      * a 9-5 UTC-4 window every weekday, you'd use something like:
784      * ```
785      * start time = 2019-01-01T09:00:00-0400
786      * end time = 2019-01-01T17:00:00-0400
787      * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
788      * ```
789      * Windows can span multiple days. Eg, to make the window encompass every
790      * weekend from midnight Saturday till the last minute of Sunday UTC:
791      * ```
792      * start time = 2019-01-05T00:00:00Z
793      * end time = 2019-01-07T23:59:00Z
794      * recurrence = FREQ=WEEKLY;BYDAY=SA
795      * ```
796      * Note the start and end time's specific dates are largely arbitrary except
797      * to specify duration of the window and when it first starts.
798      * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
799      * </pre>
800      *
801      * <code>string recurrence = 2;</code>
802      *
803      * @return The recurrence.
804      */
getRecurrence()805     public java.lang.String getRecurrence() {
806       java.lang.Object ref = recurrence_;
807       if (!(ref instanceof java.lang.String)) {
808         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
809         java.lang.String s = bs.toStringUtf8();
810         recurrence_ = s;
811         return s;
812       } else {
813         return (java.lang.String) ref;
814       }
815     }
816     /**
817      *
818      *
819      * <pre>
820      * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
821      * this window reccurs. They go on for the span of time between the start and
822      * end time.
823      * For example, to have something repeat every weekday, you'd use:
824      * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
825      * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
826      * `FREQ=DAILY`
827      * For the first weekend of every month:
828      * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
829      * This specifies how frequently the window starts. Eg, if you wanted to have
830      * a 9-5 UTC-4 window every weekday, you'd use something like:
831      * ```
832      * start time = 2019-01-01T09:00:00-0400
833      * end time = 2019-01-01T17:00:00-0400
834      * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
835      * ```
836      * Windows can span multiple days. Eg, to make the window encompass every
837      * weekend from midnight Saturday till the last minute of Sunday UTC:
838      * ```
839      * start time = 2019-01-05T00:00:00Z
840      * end time = 2019-01-07T23:59:00Z
841      * recurrence = FREQ=WEEKLY;BYDAY=SA
842      * ```
843      * Note the start and end time's specific dates are largely arbitrary except
844      * to specify duration of the window and when it first starts.
845      * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
846      * </pre>
847      *
848      * <code>string recurrence = 2;</code>
849      *
850      * @return The bytes for recurrence.
851      */
getRecurrenceBytes()852     public com.google.protobuf.ByteString getRecurrenceBytes() {
853       java.lang.Object ref = recurrence_;
854       if (ref instanceof String) {
855         com.google.protobuf.ByteString b =
856             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
857         recurrence_ = b;
858         return b;
859       } else {
860         return (com.google.protobuf.ByteString) ref;
861       }
862     }
863     /**
864      *
865      *
866      * <pre>
867      * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
868      * this window reccurs. They go on for the span of time between the start and
869      * end time.
870      * For example, to have something repeat every weekday, you'd use:
871      * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
872      * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
873      * `FREQ=DAILY`
874      * For the first weekend of every month:
875      * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
876      * This specifies how frequently the window starts. Eg, if you wanted to have
877      * a 9-5 UTC-4 window every weekday, you'd use something like:
878      * ```
879      * start time = 2019-01-01T09:00:00-0400
880      * end time = 2019-01-01T17:00:00-0400
881      * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
882      * ```
883      * Windows can span multiple days. Eg, to make the window encompass every
884      * weekend from midnight Saturday till the last minute of Sunday UTC:
885      * ```
886      * start time = 2019-01-05T00:00:00Z
887      * end time = 2019-01-07T23:59:00Z
888      * recurrence = FREQ=WEEKLY;BYDAY=SA
889      * ```
890      * Note the start and end time's specific dates are largely arbitrary except
891      * to specify duration of the window and when it first starts.
892      * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
893      * </pre>
894      *
895      * <code>string recurrence = 2;</code>
896      *
897      * @param value The recurrence to set.
898      * @return This builder for chaining.
899      */
setRecurrence(java.lang.String value)900     public Builder setRecurrence(java.lang.String value) {
901       if (value == null) {
902         throw new NullPointerException();
903       }
904       recurrence_ = value;
905       bitField0_ |= 0x00000002;
906       onChanged();
907       return this;
908     }
909     /**
910      *
911      *
912      * <pre>
913      * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
914      * this window reccurs. They go on for the span of time between the start and
915      * end time.
916      * For example, to have something repeat every weekday, you'd use:
917      * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
918      * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
919      * `FREQ=DAILY`
920      * For the first weekend of every month:
921      * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
922      * This specifies how frequently the window starts. Eg, if you wanted to have
923      * a 9-5 UTC-4 window every weekday, you'd use something like:
924      * ```
925      * start time = 2019-01-01T09:00:00-0400
926      * end time = 2019-01-01T17:00:00-0400
927      * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
928      * ```
929      * Windows can span multiple days. Eg, to make the window encompass every
930      * weekend from midnight Saturday till the last minute of Sunday UTC:
931      * ```
932      * start time = 2019-01-05T00:00:00Z
933      * end time = 2019-01-07T23:59:00Z
934      * recurrence = FREQ=WEEKLY;BYDAY=SA
935      * ```
936      * Note the start and end time's specific dates are largely arbitrary except
937      * to specify duration of the window and when it first starts.
938      * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
939      * </pre>
940      *
941      * <code>string recurrence = 2;</code>
942      *
943      * @return This builder for chaining.
944      */
clearRecurrence()945     public Builder clearRecurrence() {
946       recurrence_ = getDefaultInstance().getRecurrence();
947       bitField0_ = (bitField0_ & ~0x00000002);
948       onChanged();
949       return this;
950     }
951     /**
952      *
953      *
954      * <pre>
955      * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
956      * this window reccurs. They go on for the span of time between the start and
957      * end time.
958      * For example, to have something repeat every weekday, you'd use:
959      * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
960      * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
961      * `FREQ=DAILY`
962      * For the first weekend of every month:
963      * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
964      * This specifies how frequently the window starts. Eg, if you wanted to have
965      * a 9-5 UTC-4 window every weekday, you'd use something like:
966      * ```
967      * start time = 2019-01-01T09:00:00-0400
968      * end time = 2019-01-01T17:00:00-0400
969      * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
970      * ```
971      * Windows can span multiple days. Eg, to make the window encompass every
972      * weekend from midnight Saturday till the last minute of Sunday UTC:
973      * ```
974      * start time = 2019-01-05T00:00:00Z
975      * end time = 2019-01-07T23:59:00Z
976      * recurrence = FREQ=WEEKLY;BYDAY=SA
977      * ```
978      * Note the start and end time's specific dates are largely arbitrary except
979      * to specify duration of the window and when it first starts.
980      * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
981      * </pre>
982      *
983      * <code>string recurrence = 2;</code>
984      *
985      * @param value The bytes for recurrence to set.
986      * @return This builder for chaining.
987      */
setRecurrenceBytes(com.google.protobuf.ByteString value)988     public Builder setRecurrenceBytes(com.google.protobuf.ByteString value) {
989       if (value == null) {
990         throw new NullPointerException();
991       }
992       checkByteStringIsUtf8(value);
993       recurrence_ = value;
994       bitField0_ |= 0x00000002;
995       onChanged();
996       return this;
997     }
998 
999     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1000     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1001       return super.setUnknownFields(unknownFields);
1002     }
1003 
1004     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1005     public final Builder mergeUnknownFields(
1006         final com.google.protobuf.UnknownFieldSet unknownFields) {
1007       return super.mergeUnknownFields(unknownFields);
1008     }
1009 
1010     // @@protoc_insertion_point(builder_scope:google.container.v1.RecurringTimeWindow)
1011   }
1012 
1013   // @@protoc_insertion_point(class_scope:google.container.v1.RecurringTimeWindow)
1014   private static final com.google.container.v1.RecurringTimeWindow DEFAULT_INSTANCE;
1015 
1016   static {
1017     DEFAULT_INSTANCE = new com.google.container.v1.RecurringTimeWindow();
1018   }
1019 
getDefaultInstance()1020   public static com.google.container.v1.RecurringTimeWindow getDefaultInstance() {
1021     return DEFAULT_INSTANCE;
1022   }
1023 
1024   private static final com.google.protobuf.Parser<RecurringTimeWindow> PARSER =
1025       new com.google.protobuf.AbstractParser<RecurringTimeWindow>() {
1026         @java.lang.Override
1027         public RecurringTimeWindow parsePartialFrom(
1028             com.google.protobuf.CodedInputStream input,
1029             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1030             throws com.google.protobuf.InvalidProtocolBufferException {
1031           Builder builder = newBuilder();
1032           try {
1033             builder.mergeFrom(input, extensionRegistry);
1034           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1035             throw e.setUnfinishedMessage(builder.buildPartial());
1036           } catch (com.google.protobuf.UninitializedMessageException e) {
1037             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1038           } catch (java.io.IOException e) {
1039             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1040                 .setUnfinishedMessage(builder.buildPartial());
1041           }
1042           return builder.buildPartial();
1043         }
1044       };
1045 
parser()1046   public static com.google.protobuf.Parser<RecurringTimeWindow> parser() {
1047     return PARSER;
1048   }
1049 
1050   @java.lang.Override
getParserForType()1051   public com.google.protobuf.Parser<RecurringTimeWindow> getParserForType() {
1052     return PARSER;
1053   }
1054 
1055   @java.lang.Override
getDefaultInstanceForType()1056   public com.google.container.v1.RecurringTimeWindow getDefaultInstanceForType() {
1057     return DEFAULT_INSTANCE;
1058   }
1059 }
1060