• 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/gaming/v1beta/common.proto
18 
19 package com.google.cloud.gaming.v1beta;
20 
21 /**
22  *
23  *
24  * <pre>
25  * The schedule of a recurring or one time event. The event's time span is
26  * specified by start_time and end_time. If the scheduled event's timespan is
27  * larger than the cron_spec + cron_job_duration, the event will be recurring.
28  * If only cron_spec + cron_job_duration are specified, the event is effective
29  * starting at the local time specified by cron_spec, and is recurring.
30  * ```
31  * start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time
32  * cron job: cron spec start time + duration
33  * ```
34  * </pre>
35  *
36  * Protobuf type {@code google.cloud.gaming.v1beta.Schedule}
37  */
38 public final class Schedule extends com.google.protobuf.GeneratedMessageV3
39     implements
40     // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1beta.Schedule)
41     ScheduleOrBuilder {
42   private static final long serialVersionUID = 0L;
43   // Use Schedule.newBuilder() to construct.
Schedule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)44   private Schedule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
45     super(builder);
46   }
47 
Schedule()48   private Schedule() {
49     cronSpec_ = "";
50   }
51 
52   @java.lang.Override
53   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)54   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
55     return new Schedule();
56   }
57 
58   @java.lang.Override
getUnknownFields()59   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
60     return this.unknownFields;
61   }
62 
getDescriptor()63   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
64     return com.google.cloud.gaming.v1beta.Common
65         .internal_static_google_cloud_gaming_v1beta_Schedule_descriptor;
66   }
67 
68   @java.lang.Override
69   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()70       internalGetFieldAccessorTable() {
71     return com.google.cloud.gaming.v1beta.Common
72         .internal_static_google_cloud_gaming_v1beta_Schedule_fieldAccessorTable
73         .ensureFieldAccessorsInitialized(
74             com.google.cloud.gaming.v1beta.Schedule.class,
75             com.google.cloud.gaming.v1beta.Schedule.Builder.class);
76   }
77 
78   public static final int START_TIME_FIELD_NUMBER = 1;
79   private com.google.protobuf.Timestamp startTime_;
80   /**
81    *
82    *
83    * <pre>
84    * The start time of the event.
85    * </pre>
86    *
87    * <code>.google.protobuf.Timestamp start_time = 1;</code>
88    *
89    * @return Whether the startTime field is set.
90    */
91   @java.lang.Override
hasStartTime()92   public boolean hasStartTime() {
93     return startTime_ != null;
94   }
95   /**
96    *
97    *
98    * <pre>
99    * The start time of the event.
100    * </pre>
101    *
102    * <code>.google.protobuf.Timestamp start_time = 1;</code>
103    *
104    * @return The startTime.
105    */
106   @java.lang.Override
getStartTime()107   public com.google.protobuf.Timestamp getStartTime() {
108     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
109   }
110   /**
111    *
112    *
113    * <pre>
114    * The start time of the event.
115    * </pre>
116    *
117    * <code>.google.protobuf.Timestamp start_time = 1;</code>
118    */
119   @java.lang.Override
getStartTimeOrBuilder()120   public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
121     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
122   }
123 
124   public static final int END_TIME_FIELD_NUMBER = 2;
125   private com.google.protobuf.Timestamp endTime_;
126   /**
127    *
128    *
129    * <pre>
130    * The end time of the event.
131    * </pre>
132    *
133    * <code>.google.protobuf.Timestamp end_time = 2;</code>
134    *
135    * @return Whether the endTime field is set.
136    */
137   @java.lang.Override
hasEndTime()138   public boolean hasEndTime() {
139     return endTime_ != null;
140   }
141   /**
142    *
143    *
144    * <pre>
145    * The end time of the event.
146    * </pre>
147    *
148    * <code>.google.protobuf.Timestamp end_time = 2;</code>
149    *
150    * @return The endTime.
151    */
152   @java.lang.Override
getEndTime()153   public com.google.protobuf.Timestamp getEndTime() {
154     return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
155   }
156   /**
157    *
158    *
159    * <pre>
160    * The end time of the event.
161    * </pre>
162    *
163    * <code>.google.protobuf.Timestamp end_time = 2;</code>
164    */
165   @java.lang.Override
getEndTimeOrBuilder()166   public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
167     return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
168   }
169 
170   public static final int CRON_JOB_DURATION_FIELD_NUMBER = 3;
171   private com.google.protobuf.Duration cronJobDuration_;
172   /**
173    *
174    *
175    * <pre>
176    * The duration for the cron job event. The duration of the event is effective
177    * after the cron job's start time.
178    * </pre>
179    *
180    * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
181    *
182    * @return Whether the cronJobDuration field is set.
183    */
184   @java.lang.Override
hasCronJobDuration()185   public boolean hasCronJobDuration() {
186     return cronJobDuration_ != null;
187   }
188   /**
189    *
190    *
191    * <pre>
192    * The duration for the cron job event. The duration of the event is effective
193    * after the cron job's start time.
194    * </pre>
195    *
196    * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
197    *
198    * @return The cronJobDuration.
199    */
200   @java.lang.Override
getCronJobDuration()201   public com.google.protobuf.Duration getCronJobDuration() {
202     return cronJobDuration_ == null
203         ? com.google.protobuf.Duration.getDefaultInstance()
204         : cronJobDuration_;
205   }
206   /**
207    *
208    *
209    * <pre>
210    * The duration for the cron job event. The duration of the event is effective
211    * after the cron job's start time.
212    * </pre>
213    *
214    * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
215    */
216   @java.lang.Override
getCronJobDurationOrBuilder()217   public com.google.protobuf.DurationOrBuilder getCronJobDurationOrBuilder() {
218     return cronJobDuration_ == null
219         ? com.google.protobuf.Duration.getDefaultInstance()
220         : cronJobDuration_;
221   }
222 
223   public static final int CRON_SPEC_FIELD_NUMBER = 4;
224 
225   @SuppressWarnings("serial")
226   private volatile java.lang.Object cronSpec_ = "";
227   /**
228    *
229    *
230    * <pre>
231    * The cron definition of the scheduled event. See
232    * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as
233    * defined by the realm.
234    * </pre>
235    *
236    * <code>string cron_spec = 4;</code>
237    *
238    * @return The cronSpec.
239    */
240   @java.lang.Override
getCronSpec()241   public java.lang.String getCronSpec() {
242     java.lang.Object ref = cronSpec_;
243     if (ref instanceof java.lang.String) {
244       return (java.lang.String) ref;
245     } else {
246       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
247       java.lang.String s = bs.toStringUtf8();
248       cronSpec_ = s;
249       return s;
250     }
251   }
252   /**
253    *
254    *
255    * <pre>
256    * The cron definition of the scheduled event. See
257    * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as
258    * defined by the realm.
259    * </pre>
260    *
261    * <code>string cron_spec = 4;</code>
262    *
263    * @return The bytes for cronSpec.
264    */
265   @java.lang.Override
getCronSpecBytes()266   public com.google.protobuf.ByteString getCronSpecBytes() {
267     java.lang.Object ref = cronSpec_;
268     if (ref instanceof java.lang.String) {
269       com.google.protobuf.ByteString b =
270           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
271       cronSpec_ = b;
272       return b;
273     } else {
274       return (com.google.protobuf.ByteString) ref;
275     }
276   }
277 
278   private byte memoizedIsInitialized = -1;
279 
280   @java.lang.Override
isInitialized()281   public final boolean isInitialized() {
282     byte isInitialized = memoizedIsInitialized;
283     if (isInitialized == 1) return true;
284     if (isInitialized == 0) return false;
285 
286     memoizedIsInitialized = 1;
287     return true;
288   }
289 
290   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)291   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
292     if (startTime_ != null) {
293       output.writeMessage(1, getStartTime());
294     }
295     if (endTime_ != null) {
296       output.writeMessage(2, getEndTime());
297     }
298     if (cronJobDuration_ != null) {
299       output.writeMessage(3, getCronJobDuration());
300     }
301     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSpec_)) {
302       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cronSpec_);
303     }
304     getUnknownFields().writeTo(output);
305   }
306 
307   @java.lang.Override
getSerializedSize()308   public int getSerializedSize() {
309     int size = memoizedSize;
310     if (size != -1) return size;
311 
312     size = 0;
313     if (startTime_ != null) {
314       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
315     }
316     if (endTime_ != null) {
317       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
318     }
319     if (cronJobDuration_ != null) {
320       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCronJobDuration());
321     }
322     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSpec_)) {
323       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cronSpec_);
324     }
325     size += getUnknownFields().getSerializedSize();
326     memoizedSize = size;
327     return size;
328   }
329 
330   @java.lang.Override
equals(final java.lang.Object obj)331   public boolean equals(final java.lang.Object obj) {
332     if (obj == this) {
333       return true;
334     }
335     if (!(obj instanceof com.google.cloud.gaming.v1beta.Schedule)) {
336       return super.equals(obj);
337     }
338     com.google.cloud.gaming.v1beta.Schedule other = (com.google.cloud.gaming.v1beta.Schedule) obj;
339 
340     if (hasStartTime() != other.hasStartTime()) return false;
341     if (hasStartTime()) {
342       if (!getStartTime().equals(other.getStartTime())) return false;
343     }
344     if (hasEndTime() != other.hasEndTime()) return false;
345     if (hasEndTime()) {
346       if (!getEndTime().equals(other.getEndTime())) return false;
347     }
348     if (hasCronJobDuration() != other.hasCronJobDuration()) return false;
349     if (hasCronJobDuration()) {
350       if (!getCronJobDuration().equals(other.getCronJobDuration())) return false;
351     }
352     if (!getCronSpec().equals(other.getCronSpec())) return false;
353     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
354     return true;
355   }
356 
357   @java.lang.Override
hashCode()358   public int hashCode() {
359     if (memoizedHashCode != 0) {
360       return memoizedHashCode;
361     }
362     int hash = 41;
363     hash = (19 * hash) + getDescriptor().hashCode();
364     if (hasStartTime()) {
365       hash = (37 * hash) + START_TIME_FIELD_NUMBER;
366       hash = (53 * hash) + getStartTime().hashCode();
367     }
368     if (hasEndTime()) {
369       hash = (37 * hash) + END_TIME_FIELD_NUMBER;
370       hash = (53 * hash) + getEndTime().hashCode();
371     }
372     if (hasCronJobDuration()) {
373       hash = (37 * hash) + CRON_JOB_DURATION_FIELD_NUMBER;
374       hash = (53 * hash) + getCronJobDuration().hashCode();
375     }
376     hash = (37 * hash) + CRON_SPEC_FIELD_NUMBER;
377     hash = (53 * hash) + getCronSpec().hashCode();
378     hash = (29 * hash) + getUnknownFields().hashCode();
379     memoizedHashCode = hash;
380     return hash;
381   }
382 
parseFrom(java.nio.ByteBuffer data)383   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(java.nio.ByteBuffer data)
384       throws com.google.protobuf.InvalidProtocolBufferException {
385     return PARSER.parseFrom(data);
386   }
387 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)388   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(
389       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
390       throws com.google.protobuf.InvalidProtocolBufferException {
391     return PARSER.parseFrom(data, extensionRegistry);
392   }
393 
parseFrom( com.google.protobuf.ByteString data)394   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(
395       com.google.protobuf.ByteString data)
396       throws com.google.protobuf.InvalidProtocolBufferException {
397     return PARSER.parseFrom(data);
398   }
399 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)400   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(
401       com.google.protobuf.ByteString data,
402       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
403       throws com.google.protobuf.InvalidProtocolBufferException {
404     return PARSER.parseFrom(data, extensionRegistry);
405   }
406 
parseFrom(byte[] data)407   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(byte[] data)
408       throws com.google.protobuf.InvalidProtocolBufferException {
409     return PARSER.parseFrom(data);
410   }
411 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)412   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(
413       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
414       throws com.google.protobuf.InvalidProtocolBufferException {
415     return PARSER.parseFrom(data, extensionRegistry);
416   }
417 
parseFrom(java.io.InputStream input)418   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(java.io.InputStream input)
419       throws java.io.IOException {
420     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
421   }
422 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)423   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(
424       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
425       throws java.io.IOException {
426     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
427         PARSER, input, extensionRegistry);
428   }
429 
parseDelimitedFrom( java.io.InputStream input)430   public static com.google.cloud.gaming.v1beta.Schedule parseDelimitedFrom(
431       java.io.InputStream input) throws java.io.IOException {
432     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
433   }
434 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)435   public static com.google.cloud.gaming.v1beta.Schedule parseDelimitedFrom(
436       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
437       throws java.io.IOException {
438     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
439         PARSER, input, extensionRegistry);
440   }
441 
parseFrom( com.google.protobuf.CodedInputStream input)442   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(
443       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
444     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
445   }
446 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)447   public static com.google.cloud.gaming.v1beta.Schedule parseFrom(
448       com.google.protobuf.CodedInputStream input,
449       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
450       throws java.io.IOException {
451     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
452         PARSER, input, extensionRegistry);
453   }
454 
455   @java.lang.Override
newBuilderForType()456   public Builder newBuilderForType() {
457     return newBuilder();
458   }
459 
newBuilder()460   public static Builder newBuilder() {
461     return DEFAULT_INSTANCE.toBuilder();
462   }
463 
newBuilder(com.google.cloud.gaming.v1beta.Schedule prototype)464   public static Builder newBuilder(com.google.cloud.gaming.v1beta.Schedule prototype) {
465     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
466   }
467 
468   @java.lang.Override
toBuilder()469   public Builder toBuilder() {
470     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
471   }
472 
473   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)474   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
475     Builder builder = new Builder(parent);
476     return builder;
477   }
478   /**
479    *
480    *
481    * <pre>
482    * The schedule of a recurring or one time event. The event's time span is
483    * specified by start_time and end_time. If the scheduled event's timespan is
484    * larger than the cron_spec + cron_job_duration, the event will be recurring.
485    * If only cron_spec + cron_job_duration are specified, the event is effective
486    * starting at the local time specified by cron_spec, and is recurring.
487    * ```
488    * start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time
489    * cron job: cron spec start time + duration
490    * ```
491    * </pre>
492    *
493    * Protobuf type {@code google.cloud.gaming.v1beta.Schedule}
494    */
495   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
496       implements
497       // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1beta.Schedule)
498       com.google.cloud.gaming.v1beta.ScheduleOrBuilder {
getDescriptor()499     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
500       return com.google.cloud.gaming.v1beta.Common
501           .internal_static_google_cloud_gaming_v1beta_Schedule_descriptor;
502     }
503 
504     @java.lang.Override
505     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()506         internalGetFieldAccessorTable() {
507       return com.google.cloud.gaming.v1beta.Common
508           .internal_static_google_cloud_gaming_v1beta_Schedule_fieldAccessorTable
509           .ensureFieldAccessorsInitialized(
510               com.google.cloud.gaming.v1beta.Schedule.class,
511               com.google.cloud.gaming.v1beta.Schedule.Builder.class);
512     }
513 
514     // Construct using com.google.cloud.gaming.v1beta.Schedule.newBuilder()
Builder()515     private Builder() {}
516 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)517     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
518       super(parent);
519     }
520 
521     @java.lang.Override
clear()522     public Builder clear() {
523       super.clear();
524       bitField0_ = 0;
525       startTime_ = null;
526       if (startTimeBuilder_ != null) {
527         startTimeBuilder_.dispose();
528         startTimeBuilder_ = null;
529       }
530       endTime_ = null;
531       if (endTimeBuilder_ != null) {
532         endTimeBuilder_.dispose();
533         endTimeBuilder_ = null;
534       }
535       cronJobDuration_ = null;
536       if (cronJobDurationBuilder_ != null) {
537         cronJobDurationBuilder_.dispose();
538         cronJobDurationBuilder_ = null;
539       }
540       cronSpec_ = "";
541       return this;
542     }
543 
544     @java.lang.Override
getDescriptorForType()545     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
546       return com.google.cloud.gaming.v1beta.Common
547           .internal_static_google_cloud_gaming_v1beta_Schedule_descriptor;
548     }
549 
550     @java.lang.Override
getDefaultInstanceForType()551     public com.google.cloud.gaming.v1beta.Schedule getDefaultInstanceForType() {
552       return com.google.cloud.gaming.v1beta.Schedule.getDefaultInstance();
553     }
554 
555     @java.lang.Override
build()556     public com.google.cloud.gaming.v1beta.Schedule build() {
557       com.google.cloud.gaming.v1beta.Schedule result = buildPartial();
558       if (!result.isInitialized()) {
559         throw newUninitializedMessageException(result);
560       }
561       return result;
562     }
563 
564     @java.lang.Override
buildPartial()565     public com.google.cloud.gaming.v1beta.Schedule buildPartial() {
566       com.google.cloud.gaming.v1beta.Schedule result =
567           new com.google.cloud.gaming.v1beta.Schedule(this);
568       if (bitField0_ != 0) {
569         buildPartial0(result);
570       }
571       onBuilt();
572       return result;
573     }
574 
buildPartial0(com.google.cloud.gaming.v1beta.Schedule result)575     private void buildPartial0(com.google.cloud.gaming.v1beta.Schedule result) {
576       int from_bitField0_ = bitField0_;
577       if (((from_bitField0_ & 0x00000001) != 0)) {
578         result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
579       }
580       if (((from_bitField0_ & 0x00000002) != 0)) {
581         result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
582       }
583       if (((from_bitField0_ & 0x00000004) != 0)) {
584         result.cronJobDuration_ =
585             cronJobDurationBuilder_ == null ? cronJobDuration_ : cronJobDurationBuilder_.build();
586       }
587       if (((from_bitField0_ & 0x00000008) != 0)) {
588         result.cronSpec_ = cronSpec_;
589       }
590     }
591 
592     @java.lang.Override
clone()593     public Builder clone() {
594       return super.clone();
595     }
596 
597     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)598     public Builder setField(
599         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
600       return super.setField(field, value);
601     }
602 
603     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)604     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
605       return super.clearField(field);
606     }
607 
608     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)609     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
610       return super.clearOneof(oneof);
611     }
612 
613     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)614     public Builder setRepeatedField(
615         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
616       return super.setRepeatedField(field, index, value);
617     }
618 
619     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)620     public Builder addRepeatedField(
621         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
622       return super.addRepeatedField(field, value);
623     }
624 
625     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)626     public Builder mergeFrom(com.google.protobuf.Message other) {
627       if (other instanceof com.google.cloud.gaming.v1beta.Schedule) {
628         return mergeFrom((com.google.cloud.gaming.v1beta.Schedule) other);
629       } else {
630         super.mergeFrom(other);
631         return this;
632       }
633     }
634 
mergeFrom(com.google.cloud.gaming.v1beta.Schedule other)635     public Builder mergeFrom(com.google.cloud.gaming.v1beta.Schedule other) {
636       if (other == com.google.cloud.gaming.v1beta.Schedule.getDefaultInstance()) return this;
637       if (other.hasStartTime()) {
638         mergeStartTime(other.getStartTime());
639       }
640       if (other.hasEndTime()) {
641         mergeEndTime(other.getEndTime());
642       }
643       if (other.hasCronJobDuration()) {
644         mergeCronJobDuration(other.getCronJobDuration());
645       }
646       if (!other.getCronSpec().isEmpty()) {
647         cronSpec_ = other.cronSpec_;
648         bitField0_ |= 0x00000008;
649         onChanged();
650       }
651       this.mergeUnknownFields(other.getUnknownFields());
652       onChanged();
653       return this;
654     }
655 
656     @java.lang.Override
isInitialized()657     public final boolean isInitialized() {
658       return true;
659     }
660 
661     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)662     public Builder mergeFrom(
663         com.google.protobuf.CodedInputStream input,
664         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
665         throws java.io.IOException {
666       if (extensionRegistry == null) {
667         throw new java.lang.NullPointerException();
668       }
669       try {
670         boolean done = false;
671         while (!done) {
672           int tag = input.readTag();
673           switch (tag) {
674             case 0:
675               done = true;
676               break;
677             case 10:
678               {
679                 input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
680                 bitField0_ |= 0x00000001;
681                 break;
682               } // case 10
683             case 18:
684               {
685                 input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
686                 bitField0_ |= 0x00000002;
687                 break;
688               } // case 18
689             case 26:
690               {
691                 input.readMessage(getCronJobDurationFieldBuilder().getBuilder(), extensionRegistry);
692                 bitField0_ |= 0x00000004;
693                 break;
694               } // case 26
695             case 34:
696               {
697                 cronSpec_ = input.readStringRequireUtf8();
698                 bitField0_ |= 0x00000008;
699                 break;
700               } // case 34
701             default:
702               {
703                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
704                   done = true; // was an endgroup tag
705                 }
706                 break;
707               } // default:
708           } // switch (tag)
709         } // while (!done)
710       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
711         throw e.unwrapIOException();
712       } finally {
713         onChanged();
714       } // finally
715       return this;
716     }
717 
718     private int bitField0_;
719 
720     private com.google.protobuf.Timestamp startTime_;
721     private com.google.protobuf.SingleFieldBuilderV3<
722             com.google.protobuf.Timestamp,
723             com.google.protobuf.Timestamp.Builder,
724             com.google.protobuf.TimestampOrBuilder>
725         startTimeBuilder_;
726     /**
727      *
728      *
729      * <pre>
730      * The start time of the event.
731      * </pre>
732      *
733      * <code>.google.protobuf.Timestamp start_time = 1;</code>
734      *
735      * @return Whether the startTime field is set.
736      */
hasStartTime()737     public boolean hasStartTime() {
738       return ((bitField0_ & 0x00000001) != 0);
739     }
740     /**
741      *
742      *
743      * <pre>
744      * The start time of the event.
745      * </pre>
746      *
747      * <code>.google.protobuf.Timestamp start_time = 1;</code>
748      *
749      * @return The startTime.
750      */
getStartTime()751     public com.google.protobuf.Timestamp getStartTime() {
752       if (startTimeBuilder_ == null) {
753         return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
754       } else {
755         return startTimeBuilder_.getMessage();
756       }
757     }
758     /**
759      *
760      *
761      * <pre>
762      * The start time of the event.
763      * </pre>
764      *
765      * <code>.google.protobuf.Timestamp start_time = 1;</code>
766      */
setStartTime(com.google.protobuf.Timestamp value)767     public Builder setStartTime(com.google.protobuf.Timestamp value) {
768       if (startTimeBuilder_ == null) {
769         if (value == null) {
770           throw new NullPointerException();
771         }
772         startTime_ = value;
773       } else {
774         startTimeBuilder_.setMessage(value);
775       }
776       bitField0_ |= 0x00000001;
777       onChanged();
778       return this;
779     }
780     /**
781      *
782      *
783      * <pre>
784      * The start time of the event.
785      * </pre>
786      *
787      * <code>.google.protobuf.Timestamp start_time = 1;</code>
788      */
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)789     public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
790       if (startTimeBuilder_ == null) {
791         startTime_ = builderForValue.build();
792       } else {
793         startTimeBuilder_.setMessage(builderForValue.build());
794       }
795       bitField0_ |= 0x00000001;
796       onChanged();
797       return this;
798     }
799     /**
800      *
801      *
802      * <pre>
803      * The start time of the event.
804      * </pre>
805      *
806      * <code>.google.protobuf.Timestamp start_time = 1;</code>
807      */
mergeStartTime(com.google.protobuf.Timestamp value)808     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
809       if (startTimeBuilder_ == null) {
810         if (((bitField0_ & 0x00000001) != 0)
811             && startTime_ != null
812             && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
813           getStartTimeBuilder().mergeFrom(value);
814         } else {
815           startTime_ = value;
816         }
817       } else {
818         startTimeBuilder_.mergeFrom(value);
819       }
820       bitField0_ |= 0x00000001;
821       onChanged();
822       return this;
823     }
824     /**
825      *
826      *
827      * <pre>
828      * The start time of the event.
829      * </pre>
830      *
831      * <code>.google.protobuf.Timestamp start_time = 1;</code>
832      */
clearStartTime()833     public Builder clearStartTime() {
834       bitField0_ = (bitField0_ & ~0x00000001);
835       startTime_ = null;
836       if (startTimeBuilder_ != null) {
837         startTimeBuilder_.dispose();
838         startTimeBuilder_ = null;
839       }
840       onChanged();
841       return this;
842     }
843     /**
844      *
845      *
846      * <pre>
847      * The start time of the event.
848      * </pre>
849      *
850      * <code>.google.protobuf.Timestamp start_time = 1;</code>
851      */
getStartTimeBuilder()852     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
853       bitField0_ |= 0x00000001;
854       onChanged();
855       return getStartTimeFieldBuilder().getBuilder();
856     }
857     /**
858      *
859      *
860      * <pre>
861      * The start time of the event.
862      * </pre>
863      *
864      * <code>.google.protobuf.Timestamp start_time = 1;</code>
865      */
getStartTimeOrBuilder()866     public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
867       if (startTimeBuilder_ != null) {
868         return startTimeBuilder_.getMessageOrBuilder();
869       } else {
870         return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
871       }
872     }
873     /**
874      *
875      *
876      * <pre>
877      * The start time of the event.
878      * </pre>
879      *
880      * <code>.google.protobuf.Timestamp start_time = 1;</code>
881      */
882     private com.google.protobuf.SingleFieldBuilderV3<
883             com.google.protobuf.Timestamp,
884             com.google.protobuf.Timestamp.Builder,
885             com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder()886         getStartTimeFieldBuilder() {
887       if (startTimeBuilder_ == null) {
888         startTimeBuilder_ =
889             new com.google.protobuf.SingleFieldBuilderV3<
890                 com.google.protobuf.Timestamp,
891                 com.google.protobuf.Timestamp.Builder,
892                 com.google.protobuf.TimestampOrBuilder>(
893                 getStartTime(), getParentForChildren(), isClean());
894         startTime_ = null;
895       }
896       return startTimeBuilder_;
897     }
898 
899     private com.google.protobuf.Timestamp endTime_;
900     private com.google.protobuf.SingleFieldBuilderV3<
901             com.google.protobuf.Timestamp,
902             com.google.protobuf.Timestamp.Builder,
903             com.google.protobuf.TimestampOrBuilder>
904         endTimeBuilder_;
905     /**
906      *
907      *
908      * <pre>
909      * The end time of the event.
910      * </pre>
911      *
912      * <code>.google.protobuf.Timestamp end_time = 2;</code>
913      *
914      * @return Whether the endTime field is set.
915      */
hasEndTime()916     public boolean hasEndTime() {
917       return ((bitField0_ & 0x00000002) != 0);
918     }
919     /**
920      *
921      *
922      * <pre>
923      * The end time of the event.
924      * </pre>
925      *
926      * <code>.google.protobuf.Timestamp end_time = 2;</code>
927      *
928      * @return The endTime.
929      */
getEndTime()930     public com.google.protobuf.Timestamp getEndTime() {
931       if (endTimeBuilder_ == null) {
932         return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
933       } else {
934         return endTimeBuilder_.getMessage();
935       }
936     }
937     /**
938      *
939      *
940      * <pre>
941      * The end time of the event.
942      * </pre>
943      *
944      * <code>.google.protobuf.Timestamp end_time = 2;</code>
945      */
setEndTime(com.google.protobuf.Timestamp value)946     public Builder setEndTime(com.google.protobuf.Timestamp value) {
947       if (endTimeBuilder_ == null) {
948         if (value == null) {
949           throw new NullPointerException();
950         }
951         endTime_ = value;
952       } else {
953         endTimeBuilder_.setMessage(value);
954       }
955       bitField0_ |= 0x00000002;
956       onChanged();
957       return this;
958     }
959     /**
960      *
961      *
962      * <pre>
963      * The end time of the event.
964      * </pre>
965      *
966      * <code>.google.protobuf.Timestamp end_time = 2;</code>
967      */
setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)968     public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
969       if (endTimeBuilder_ == null) {
970         endTime_ = builderForValue.build();
971       } else {
972         endTimeBuilder_.setMessage(builderForValue.build());
973       }
974       bitField0_ |= 0x00000002;
975       onChanged();
976       return this;
977     }
978     /**
979      *
980      *
981      * <pre>
982      * The end time of the event.
983      * </pre>
984      *
985      * <code>.google.protobuf.Timestamp end_time = 2;</code>
986      */
mergeEndTime(com.google.protobuf.Timestamp value)987     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
988       if (endTimeBuilder_ == null) {
989         if (((bitField0_ & 0x00000002) != 0)
990             && endTime_ != null
991             && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
992           getEndTimeBuilder().mergeFrom(value);
993         } else {
994           endTime_ = value;
995         }
996       } else {
997         endTimeBuilder_.mergeFrom(value);
998       }
999       bitField0_ |= 0x00000002;
1000       onChanged();
1001       return this;
1002     }
1003     /**
1004      *
1005      *
1006      * <pre>
1007      * The end time of the event.
1008      * </pre>
1009      *
1010      * <code>.google.protobuf.Timestamp end_time = 2;</code>
1011      */
clearEndTime()1012     public Builder clearEndTime() {
1013       bitField0_ = (bitField0_ & ~0x00000002);
1014       endTime_ = null;
1015       if (endTimeBuilder_ != null) {
1016         endTimeBuilder_.dispose();
1017         endTimeBuilder_ = null;
1018       }
1019       onChanged();
1020       return this;
1021     }
1022     /**
1023      *
1024      *
1025      * <pre>
1026      * The end time of the event.
1027      * </pre>
1028      *
1029      * <code>.google.protobuf.Timestamp end_time = 2;</code>
1030      */
getEndTimeBuilder()1031     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
1032       bitField0_ |= 0x00000002;
1033       onChanged();
1034       return getEndTimeFieldBuilder().getBuilder();
1035     }
1036     /**
1037      *
1038      *
1039      * <pre>
1040      * The end time of the event.
1041      * </pre>
1042      *
1043      * <code>.google.protobuf.Timestamp end_time = 2;</code>
1044      */
getEndTimeOrBuilder()1045     public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
1046       if (endTimeBuilder_ != null) {
1047         return endTimeBuilder_.getMessageOrBuilder();
1048       } else {
1049         return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
1050       }
1051     }
1052     /**
1053      *
1054      *
1055      * <pre>
1056      * The end time of the event.
1057      * </pre>
1058      *
1059      * <code>.google.protobuf.Timestamp end_time = 2;</code>
1060      */
1061     private com.google.protobuf.SingleFieldBuilderV3<
1062             com.google.protobuf.Timestamp,
1063             com.google.protobuf.Timestamp.Builder,
1064             com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder()1065         getEndTimeFieldBuilder() {
1066       if (endTimeBuilder_ == null) {
1067         endTimeBuilder_ =
1068             new com.google.protobuf.SingleFieldBuilderV3<
1069                 com.google.protobuf.Timestamp,
1070                 com.google.protobuf.Timestamp.Builder,
1071                 com.google.protobuf.TimestampOrBuilder>(
1072                 getEndTime(), getParentForChildren(), isClean());
1073         endTime_ = null;
1074       }
1075       return endTimeBuilder_;
1076     }
1077 
1078     private com.google.protobuf.Duration cronJobDuration_;
1079     private com.google.protobuf.SingleFieldBuilderV3<
1080             com.google.protobuf.Duration,
1081             com.google.protobuf.Duration.Builder,
1082             com.google.protobuf.DurationOrBuilder>
1083         cronJobDurationBuilder_;
1084     /**
1085      *
1086      *
1087      * <pre>
1088      * The duration for the cron job event. The duration of the event is effective
1089      * after the cron job's start time.
1090      * </pre>
1091      *
1092      * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
1093      *
1094      * @return Whether the cronJobDuration field is set.
1095      */
hasCronJobDuration()1096     public boolean hasCronJobDuration() {
1097       return ((bitField0_ & 0x00000004) != 0);
1098     }
1099     /**
1100      *
1101      *
1102      * <pre>
1103      * The duration for the cron job event. The duration of the event is effective
1104      * after the cron job's start time.
1105      * </pre>
1106      *
1107      * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
1108      *
1109      * @return The cronJobDuration.
1110      */
getCronJobDuration()1111     public com.google.protobuf.Duration getCronJobDuration() {
1112       if (cronJobDurationBuilder_ == null) {
1113         return cronJobDuration_ == null
1114             ? com.google.protobuf.Duration.getDefaultInstance()
1115             : cronJobDuration_;
1116       } else {
1117         return cronJobDurationBuilder_.getMessage();
1118       }
1119     }
1120     /**
1121      *
1122      *
1123      * <pre>
1124      * The duration for the cron job event. The duration of the event is effective
1125      * after the cron job's start time.
1126      * </pre>
1127      *
1128      * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
1129      */
setCronJobDuration(com.google.protobuf.Duration value)1130     public Builder setCronJobDuration(com.google.protobuf.Duration value) {
1131       if (cronJobDurationBuilder_ == null) {
1132         if (value == null) {
1133           throw new NullPointerException();
1134         }
1135         cronJobDuration_ = value;
1136       } else {
1137         cronJobDurationBuilder_.setMessage(value);
1138       }
1139       bitField0_ |= 0x00000004;
1140       onChanged();
1141       return this;
1142     }
1143     /**
1144      *
1145      *
1146      * <pre>
1147      * The duration for the cron job event. The duration of the event is effective
1148      * after the cron job's start time.
1149      * </pre>
1150      *
1151      * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
1152      */
setCronJobDuration(com.google.protobuf.Duration.Builder builderForValue)1153     public Builder setCronJobDuration(com.google.protobuf.Duration.Builder builderForValue) {
1154       if (cronJobDurationBuilder_ == null) {
1155         cronJobDuration_ = builderForValue.build();
1156       } else {
1157         cronJobDurationBuilder_.setMessage(builderForValue.build());
1158       }
1159       bitField0_ |= 0x00000004;
1160       onChanged();
1161       return this;
1162     }
1163     /**
1164      *
1165      *
1166      * <pre>
1167      * The duration for the cron job event. The duration of the event is effective
1168      * after the cron job's start time.
1169      * </pre>
1170      *
1171      * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
1172      */
mergeCronJobDuration(com.google.protobuf.Duration value)1173     public Builder mergeCronJobDuration(com.google.protobuf.Duration value) {
1174       if (cronJobDurationBuilder_ == null) {
1175         if (((bitField0_ & 0x00000004) != 0)
1176             && cronJobDuration_ != null
1177             && cronJobDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
1178           getCronJobDurationBuilder().mergeFrom(value);
1179         } else {
1180           cronJobDuration_ = value;
1181         }
1182       } else {
1183         cronJobDurationBuilder_.mergeFrom(value);
1184       }
1185       bitField0_ |= 0x00000004;
1186       onChanged();
1187       return this;
1188     }
1189     /**
1190      *
1191      *
1192      * <pre>
1193      * The duration for the cron job event. The duration of the event is effective
1194      * after the cron job's start time.
1195      * </pre>
1196      *
1197      * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
1198      */
clearCronJobDuration()1199     public Builder clearCronJobDuration() {
1200       bitField0_ = (bitField0_ & ~0x00000004);
1201       cronJobDuration_ = null;
1202       if (cronJobDurationBuilder_ != null) {
1203         cronJobDurationBuilder_.dispose();
1204         cronJobDurationBuilder_ = null;
1205       }
1206       onChanged();
1207       return this;
1208     }
1209     /**
1210      *
1211      *
1212      * <pre>
1213      * The duration for the cron job event. The duration of the event is effective
1214      * after the cron job's start time.
1215      * </pre>
1216      *
1217      * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
1218      */
getCronJobDurationBuilder()1219     public com.google.protobuf.Duration.Builder getCronJobDurationBuilder() {
1220       bitField0_ |= 0x00000004;
1221       onChanged();
1222       return getCronJobDurationFieldBuilder().getBuilder();
1223     }
1224     /**
1225      *
1226      *
1227      * <pre>
1228      * The duration for the cron job event. The duration of the event is effective
1229      * after the cron job's start time.
1230      * </pre>
1231      *
1232      * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
1233      */
getCronJobDurationOrBuilder()1234     public com.google.protobuf.DurationOrBuilder getCronJobDurationOrBuilder() {
1235       if (cronJobDurationBuilder_ != null) {
1236         return cronJobDurationBuilder_.getMessageOrBuilder();
1237       } else {
1238         return cronJobDuration_ == null
1239             ? com.google.protobuf.Duration.getDefaultInstance()
1240             : cronJobDuration_;
1241       }
1242     }
1243     /**
1244      *
1245      *
1246      * <pre>
1247      * The duration for the cron job event. The duration of the event is effective
1248      * after the cron job's start time.
1249      * </pre>
1250      *
1251      * <code>.google.protobuf.Duration cron_job_duration = 3;</code>
1252      */
1253     private com.google.protobuf.SingleFieldBuilderV3<
1254             com.google.protobuf.Duration,
1255             com.google.protobuf.Duration.Builder,
1256             com.google.protobuf.DurationOrBuilder>
getCronJobDurationFieldBuilder()1257         getCronJobDurationFieldBuilder() {
1258       if (cronJobDurationBuilder_ == null) {
1259         cronJobDurationBuilder_ =
1260             new com.google.protobuf.SingleFieldBuilderV3<
1261                 com.google.protobuf.Duration,
1262                 com.google.protobuf.Duration.Builder,
1263                 com.google.protobuf.DurationOrBuilder>(
1264                 getCronJobDuration(), getParentForChildren(), isClean());
1265         cronJobDuration_ = null;
1266       }
1267       return cronJobDurationBuilder_;
1268     }
1269 
1270     private java.lang.Object cronSpec_ = "";
1271     /**
1272      *
1273      *
1274      * <pre>
1275      * The cron definition of the scheduled event. See
1276      * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as
1277      * defined by the realm.
1278      * </pre>
1279      *
1280      * <code>string cron_spec = 4;</code>
1281      *
1282      * @return The cronSpec.
1283      */
getCronSpec()1284     public java.lang.String getCronSpec() {
1285       java.lang.Object ref = cronSpec_;
1286       if (!(ref instanceof java.lang.String)) {
1287         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1288         java.lang.String s = bs.toStringUtf8();
1289         cronSpec_ = s;
1290         return s;
1291       } else {
1292         return (java.lang.String) ref;
1293       }
1294     }
1295     /**
1296      *
1297      *
1298      * <pre>
1299      * The cron definition of the scheduled event. See
1300      * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as
1301      * defined by the realm.
1302      * </pre>
1303      *
1304      * <code>string cron_spec = 4;</code>
1305      *
1306      * @return The bytes for cronSpec.
1307      */
getCronSpecBytes()1308     public com.google.protobuf.ByteString getCronSpecBytes() {
1309       java.lang.Object ref = cronSpec_;
1310       if (ref instanceof String) {
1311         com.google.protobuf.ByteString b =
1312             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1313         cronSpec_ = b;
1314         return b;
1315       } else {
1316         return (com.google.protobuf.ByteString) ref;
1317       }
1318     }
1319     /**
1320      *
1321      *
1322      * <pre>
1323      * The cron definition of the scheduled event. See
1324      * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as
1325      * defined by the realm.
1326      * </pre>
1327      *
1328      * <code>string cron_spec = 4;</code>
1329      *
1330      * @param value The cronSpec to set.
1331      * @return This builder for chaining.
1332      */
setCronSpec(java.lang.String value)1333     public Builder setCronSpec(java.lang.String value) {
1334       if (value == null) {
1335         throw new NullPointerException();
1336       }
1337       cronSpec_ = value;
1338       bitField0_ |= 0x00000008;
1339       onChanged();
1340       return this;
1341     }
1342     /**
1343      *
1344      *
1345      * <pre>
1346      * The cron definition of the scheduled event. See
1347      * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as
1348      * defined by the realm.
1349      * </pre>
1350      *
1351      * <code>string cron_spec = 4;</code>
1352      *
1353      * @return This builder for chaining.
1354      */
clearCronSpec()1355     public Builder clearCronSpec() {
1356       cronSpec_ = getDefaultInstance().getCronSpec();
1357       bitField0_ = (bitField0_ & ~0x00000008);
1358       onChanged();
1359       return this;
1360     }
1361     /**
1362      *
1363      *
1364      * <pre>
1365      * The cron definition of the scheduled event. See
1366      * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as
1367      * defined by the realm.
1368      * </pre>
1369      *
1370      * <code>string cron_spec = 4;</code>
1371      *
1372      * @param value The bytes for cronSpec to set.
1373      * @return This builder for chaining.
1374      */
setCronSpecBytes(com.google.protobuf.ByteString value)1375     public Builder setCronSpecBytes(com.google.protobuf.ByteString value) {
1376       if (value == null) {
1377         throw new NullPointerException();
1378       }
1379       checkByteStringIsUtf8(value);
1380       cronSpec_ = value;
1381       bitField0_ |= 0x00000008;
1382       onChanged();
1383       return this;
1384     }
1385 
1386     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1387     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1388       return super.setUnknownFields(unknownFields);
1389     }
1390 
1391     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1392     public final Builder mergeUnknownFields(
1393         final com.google.protobuf.UnknownFieldSet unknownFields) {
1394       return super.mergeUnknownFields(unknownFields);
1395     }
1396 
1397     // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1beta.Schedule)
1398   }
1399 
1400   // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1beta.Schedule)
1401   private static final com.google.cloud.gaming.v1beta.Schedule DEFAULT_INSTANCE;
1402 
1403   static {
1404     DEFAULT_INSTANCE = new com.google.cloud.gaming.v1beta.Schedule();
1405   }
1406 
getDefaultInstance()1407   public static com.google.cloud.gaming.v1beta.Schedule getDefaultInstance() {
1408     return DEFAULT_INSTANCE;
1409   }
1410 
1411   private static final com.google.protobuf.Parser<Schedule> PARSER =
1412       new com.google.protobuf.AbstractParser<Schedule>() {
1413         @java.lang.Override
1414         public Schedule parsePartialFrom(
1415             com.google.protobuf.CodedInputStream input,
1416             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1417             throws com.google.protobuf.InvalidProtocolBufferException {
1418           Builder builder = newBuilder();
1419           try {
1420             builder.mergeFrom(input, extensionRegistry);
1421           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1422             throw e.setUnfinishedMessage(builder.buildPartial());
1423           } catch (com.google.protobuf.UninitializedMessageException e) {
1424             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1425           } catch (java.io.IOException e) {
1426             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1427                 .setUnfinishedMessage(builder.buildPartial());
1428           }
1429           return builder.buildPartial();
1430         }
1431       };
1432 
parser()1433   public static com.google.protobuf.Parser<Schedule> parser() {
1434     return PARSER;
1435   }
1436 
1437   @java.lang.Override
getParserForType()1438   public com.google.protobuf.Parser<Schedule> getParserForType() {
1439     return PARSER;
1440   }
1441 
1442   @java.lang.Override
getDefaultInstanceForType()1443   public com.google.cloud.gaming.v1beta.Schedule getDefaultInstanceForType() {
1444     return DEFAULT_INSTANCE;
1445   }
1446 }
1447