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/v1/common.proto 18 19 package com.google.cloud.gaming.v1; 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.v1.Schedule} 37 */ 38 public final class Schedule extends com.google.protobuf.GeneratedMessageV3 39 implements 40 // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1.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.v1.Common 65 .internal_static_google_cloud_gaming_v1_Schedule_descriptor; 66 } 67 68 @java.lang.Override 69 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()70 internalGetFieldAccessorTable() { 71 return com.google.cloud.gaming.v1.Common 72 .internal_static_google_cloud_gaming_v1_Schedule_fieldAccessorTable 73 .ensureFieldAccessorsInitialized( 74 com.google.cloud.gaming.v1.Schedule.class, 75 com.google.cloud.gaming.v1.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.v1.Schedule)) { 336 return super.equals(obj); 337 } 338 com.google.cloud.gaming.v1.Schedule other = (com.google.cloud.gaming.v1.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.v1.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.v1.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.v1.Schedule parseFrom(com.google.protobuf.ByteString data) 395 throws com.google.protobuf.InvalidProtocolBufferException { 396 return PARSER.parseFrom(data); 397 } 398 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)399 public static com.google.cloud.gaming.v1.Schedule parseFrom( 400 com.google.protobuf.ByteString data, 401 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 402 throws com.google.protobuf.InvalidProtocolBufferException { 403 return PARSER.parseFrom(data, extensionRegistry); 404 } 405 parseFrom(byte[] data)406 public static com.google.cloud.gaming.v1.Schedule parseFrom(byte[] data) 407 throws com.google.protobuf.InvalidProtocolBufferException { 408 return PARSER.parseFrom(data); 409 } 410 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)411 public static com.google.cloud.gaming.v1.Schedule parseFrom( 412 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 413 throws com.google.protobuf.InvalidProtocolBufferException { 414 return PARSER.parseFrom(data, extensionRegistry); 415 } 416 parseFrom(java.io.InputStream input)417 public static com.google.cloud.gaming.v1.Schedule parseFrom(java.io.InputStream input) 418 throws java.io.IOException { 419 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 420 } 421 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)422 public static com.google.cloud.gaming.v1.Schedule parseFrom( 423 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 424 throws java.io.IOException { 425 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 426 PARSER, input, extensionRegistry); 427 } 428 parseDelimitedFrom(java.io.InputStream input)429 public static com.google.cloud.gaming.v1.Schedule parseDelimitedFrom(java.io.InputStream input) 430 throws java.io.IOException { 431 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 432 } 433 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)434 public static com.google.cloud.gaming.v1.Schedule parseDelimitedFrom( 435 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 436 throws java.io.IOException { 437 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 438 PARSER, input, extensionRegistry); 439 } 440 parseFrom( com.google.protobuf.CodedInputStream input)441 public static com.google.cloud.gaming.v1.Schedule parseFrom( 442 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 443 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 444 } 445 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)446 public static com.google.cloud.gaming.v1.Schedule parseFrom( 447 com.google.protobuf.CodedInputStream input, 448 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 449 throws java.io.IOException { 450 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 451 PARSER, input, extensionRegistry); 452 } 453 454 @java.lang.Override newBuilderForType()455 public Builder newBuilderForType() { 456 return newBuilder(); 457 } 458 newBuilder()459 public static Builder newBuilder() { 460 return DEFAULT_INSTANCE.toBuilder(); 461 } 462 newBuilder(com.google.cloud.gaming.v1.Schedule prototype)463 public static Builder newBuilder(com.google.cloud.gaming.v1.Schedule prototype) { 464 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 465 } 466 467 @java.lang.Override toBuilder()468 public Builder toBuilder() { 469 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 470 } 471 472 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)473 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 474 Builder builder = new Builder(parent); 475 return builder; 476 } 477 /** 478 * 479 * 480 * <pre> 481 * The schedule of a recurring or one time event. The event's time span is 482 * specified by start_time and end_time. If the scheduled event's timespan is 483 * larger than the cron_spec + cron_job_duration, the event will be recurring. 484 * If only cron_spec + cron_job_duration are specified, the event is effective 485 * starting at the local time specified by cron_spec, and is recurring. 486 * ``` 487 * start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time 488 * cron job: cron spec start time + duration 489 * ``` 490 * </pre> 491 * 492 * Protobuf type {@code google.cloud.gaming.v1.Schedule} 493 */ 494 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 495 implements 496 // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1.Schedule) 497 com.google.cloud.gaming.v1.ScheduleOrBuilder { getDescriptor()498 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 499 return com.google.cloud.gaming.v1.Common 500 .internal_static_google_cloud_gaming_v1_Schedule_descriptor; 501 } 502 503 @java.lang.Override 504 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()505 internalGetFieldAccessorTable() { 506 return com.google.cloud.gaming.v1.Common 507 .internal_static_google_cloud_gaming_v1_Schedule_fieldAccessorTable 508 .ensureFieldAccessorsInitialized( 509 com.google.cloud.gaming.v1.Schedule.class, 510 com.google.cloud.gaming.v1.Schedule.Builder.class); 511 } 512 513 // Construct using com.google.cloud.gaming.v1.Schedule.newBuilder() Builder()514 private Builder() {} 515 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)516 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 517 super(parent); 518 } 519 520 @java.lang.Override clear()521 public Builder clear() { 522 super.clear(); 523 bitField0_ = 0; 524 startTime_ = null; 525 if (startTimeBuilder_ != null) { 526 startTimeBuilder_.dispose(); 527 startTimeBuilder_ = null; 528 } 529 endTime_ = null; 530 if (endTimeBuilder_ != null) { 531 endTimeBuilder_.dispose(); 532 endTimeBuilder_ = null; 533 } 534 cronJobDuration_ = null; 535 if (cronJobDurationBuilder_ != null) { 536 cronJobDurationBuilder_.dispose(); 537 cronJobDurationBuilder_ = null; 538 } 539 cronSpec_ = ""; 540 return this; 541 } 542 543 @java.lang.Override getDescriptorForType()544 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 545 return com.google.cloud.gaming.v1.Common 546 .internal_static_google_cloud_gaming_v1_Schedule_descriptor; 547 } 548 549 @java.lang.Override getDefaultInstanceForType()550 public com.google.cloud.gaming.v1.Schedule getDefaultInstanceForType() { 551 return com.google.cloud.gaming.v1.Schedule.getDefaultInstance(); 552 } 553 554 @java.lang.Override build()555 public com.google.cloud.gaming.v1.Schedule build() { 556 com.google.cloud.gaming.v1.Schedule result = buildPartial(); 557 if (!result.isInitialized()) { 558 throw newUninitializedMessageException(result); 559 } 560 return result; 561 } 562 563 @java.lang.Override buildPartial()564 public com.google.cloud.gaming.v1.Schedule buildPartial() { 565 com.google.cloud.gaming.v1.Schedule result = new com.google.cloud.gaming.v1.Schedule(this); 566 if (bitField0_ != 0) { 567 buildPartial0(result); 568 } 569 onBuilt(); 570 return result; 571 } 572 buildPartial0(com.google.cloud.gaming.v1.Schedule result)573 private void buildPartial0(com.google.cloud.gaming.v1.Schedule result) { 574 int from_bitField0_ = bitField0_; 575 if (((from_bitField0_ & 0x00000001) != 0)) { 576 result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); 577 } 578 if (((from_bitField0_ & 0x00000002) != 0)) { 579 result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); 580 } 581 if (((from_bitField0_ & 0x00000004) != 0)) { 582 result.cronJobDuration_ = 583 cronJobDurationBuilder_ == null ? cronJobDuration_ : cronJobDurationBuilder_.build(); 584 } 585 if (((from_bitField0_ & 0x00000008) != 0)) { 586 result.cronSpec_ = cronSpec_; 587 } 588 } 589 590 @java.lang.Override clone()591 public Builder clone() { 592 return super.clone(); 593 } 594 595 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)596 public Builder setField( 597 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 598 return super.setField(field, value); 599 } 600 601 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)602 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 603 return super.clearField(field); 604 } 605 606 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)607 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 608 return super.clearOneof(oneof); 609 } 610 611 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)612 public Builder setRepeatedField( 613 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 614 return super.setRepeatedField(field, index, value); 615 } 616 617 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)618 public Builder addRepeatedField( 619 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 620 return super.addRepeatedField(field, value); 621 } 622 623 @java.lang.Override mergeFrom(com.google.protobuf.Message other)624 public Builder mergeFrom(com.google.protobuf.Message other) { 625 if (other instanceof com.google.cloud.gaming.v1.Schedule) { 626 return mergeFrom((com.google.cloud.gaming.v1.Schedule) other); 627 } else { 628 super.mergeFrom(other); 629 return this; 630 } 631 } 632 mergeFrom(com.google.cloud.gaming.v1.Schedule other)633 public Builder mergeFrom(com.google.cloud.gaming.v1.Schedule other) { 634 if (other == com.google.cloud.gaming.v1.Schedule.getDefaultInstance()) return this; 635 if (other.hasStartTime()) { 636 mergeStartTime(other.getStartTime()); 637 } 638 if (other.hasEndTime()) { 639 mergeEndTime(other.getEndTime()); 640 } 641 if (other.hasCronJobDuration()) { 642 mergeCronJobDuration(other.getCronJobDuration()); 643 } 644 if (!other.getCronSpec().isEmpty()) { 645 cronSpec_ = other.cronSpec_; 646 bitField0_ |= 0x00000008; 647 onChanged(); 648 } 649 this.mergeUnknownFields(other.getUnknownFields()); 650 onChanged(); 651 return this; 652 } 653 654 @java.lang.Override isInitialized()655 public final boolean isInitialized() { 656 return true; 657 } 658 659 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)660 public Builder mergeFrom( 661 com.google.protobuf.CodedInputStream input, 662 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 663 throws java.io.IOException { 664 if (extensionRegistry == null) { 665 throw new java.lang.NullPointerException(); 666 } 667 try { 668 boolean done = false; 669 while (!done) { 670 int tag = input.readTag(); 671 switch (tag) { 672 case 0: 673 done = true; 674 break; 675 case 10: 676 { 677 input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); 678 bitField0_ |= 0x00000001; 679 break; 680 } // case 10 681 case 18: 682 { 683 input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); 684 bitField0_ |= 0x00000002; 685 break; 686 } // case 18 687 case 26: 688 { 689 input.readMessage(getCronJobDurationFieldBuilder().getBuilder(), extensionRegistry); 690 bitField0_ |= 0x00000004; 691 break; 692 } // case 26 693 case 34: 694 { 695 cronSpec_ = input.readStringRequireUtf8(); 696 bitField0_ |= 0x00000008; 697 break; 698 } // case 34 699 default: 700 { 701 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 702 done = true; // was an endgroup tag 703 } 704 break; 705 } // default: 706 } // switch (tag) 707 } // while (!done) 708 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 709 throw e.unwrapIOException(); 710 } finally { 711 onChanged(); 712 } // finally 713 return this; 714 } 715 716 private int bitField0_; 717 718 private com.google.protobuf.Timestamp startTime_; 719 private com.google.protobuf.SingleFieldBuilderV3< 720 com.google.protobuf.Timestamp, 721 com.google.protobuf.Timestamp.Builder, 722 com.google.protobuf.TimestampOrBuilder> 723 startTimeBuilder_; 724 /** 725 * 726 * 727 * <pre> 728 * The start time of the event. 729 * </pre> 730 * 731 * <code>.google.protobuf.Timestamp start_time = 1;</code> 732 * 733 * @return Whether the startTime field is set. 734 */ hasStartTime()735 public boolean hasStartTime() { 736 return ((bitField0_ & 0x00000001) != 0); 737 } 738 /** 739 * 740 * 741 * <pre> 742 * The start time of the event. 743 * </pre> 744 * 745 * <code>.google.protobuf.Timestamp start_time = 1;</code> 746 * 747 * @return The startTime. 748 */ getStartTime()749 public com.google.protobuf.Timestamp getStartTime() { 750 if (startTimeBuilder_ == null) { 751 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 752 } else { 753 return startTimeBuilder_.getMessage(); 754 } 755 } 756 /** 757 * 758 * 759 * <pre> 760 * The start time of the event. 761 * </pre> 762 * 763 * <code>.google.protobuf.Timestamp start_time = 1;</code> 764 */ setStartTime(com.google.protobuf.Timestamp value)765 public Builder setStartTime(com.google.protobuf.Timestamp value) { 766 if (startTimeBuilder_ == null) { 767 if (value == null) { 768 throw new NullPointerException(); 769 } 770 startTime_ = value; 771 } else { 772 startTimeBuilder_.setMessage(value); 773 } 774 bitField0_ |= 0x00000001; 775 onChanged(); 776 return this; 777 } 778 /** 779 * 780 * 781 * <pre> 782 * The start time of the event. 783 * </pre> 784 * 785 * <code>.google.protobuf.Timestamp start_time = 1;</code> 786 */ setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)787 public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { 788 if (startTimeBuilder_ == null) { 789 startTime_ = builderForValue.build(); 790 } else { 791 startTimeBuilder_.setMessage(builderForValue.build()); 792 } 793 bitField0_ |= 0x00000001; 794 onChanged(); 795 return this; 796 } 797 /** 798 * 799 * 800 * <pre> 801 * The start time of the event. 802 * </pre> 803 * 804 * <code>.google.protobuf.Timestamp start_time = 1;</code> 805 */ mergeStartTime(com.google.protobuf.Timestamp value)806 public Builder mergeStartTime(com.google.protobuf.Timestamp value) { 807 if (startTimeBuilder_ == null) { 808 if (((bitField0_ & 0x00000001) != 0) 809 && startTime_ != null 810 && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 811 getStartTimeBuilder().mergeFrom(value); 812 } else { 813 startTime_ = value; 814 } 815 } else { 816 startTimeBuilder_.mergeFrom(value); 817 } 818 bitField0_ |= 0x00000001; 819 onChanged(); 820 return this; 821 } 822 /** 823 * 824 * 825 * <pre> 826 * The start time of the event. 827 * </pre> 828 * 829 * <code>.google.protobuf.Timestamp start_time = 1;</code> 830 */ clearStartTime()831 public Builder clearStartTime() { 832 bitField0_ = (bitField0_ & ~0x00000001); 833 startTime_ = null; 834 if (startTimeBuilder_ != null) { 835 startTimeBuilder_.dispose(); 836 startTimeBuilder_ = null; 837 } 838 onChanged(); 839 return this; 840 } 841 /** 842 * 843 * 844 * <pre> 845 * The start time of the event. 846 * </pre> 847 * 848 * <code>.google.protobuf.Timestamp start_time = 1;</code> 849 */ getStartTimeBuilder()850 public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { 851 bitField0_ |= 0x00000001; 852 onChanged(); 853 return getStartTimeFieldBuilder().getBuilder(); 854 } 855 /** 856 * 857 * 858 * <pre> 859 * The start time of the event. 860 * </pre> 861 * 862 * <code>.google.protobuf.Timestamp start_time = 1;</code> 863 */ getStartTimeOrBuilder()864 public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 865 if (startTimeBuilder_ != null) { 866 return startTimeBuilder_.getMessageOrBuilder(); 867 } else { 868 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 869 } 870 } 871 /** 872 * 873 * 874 * <pre> 875 * The start time of the event. 876 * </pre> 877 * 878 * <code>.google.protobuf.Timestamp start_time = 1;</code> 879 */ 880 private com.google.protobuf.SingleFieldBuilderV3< 881 com.google.protobuf.Timestamp, 882 com.google.protobuf.Timestamp.Builder, 883 com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder()884 getStartTimeFieldBuilder() { 885 if (startTimeBuilder_ == null) { 886 startTimeBuilder_ = 887 new com.google.protobuf.SingleFieldBuilderV3< 888 com.google.protobuf.Timestamp, 889 com.google.protobuf.Timestamp.Builder, 890 com.google.protobuf.TimestampOrBuilder>( 891 getStartTime(), getParentForChildren(), isClean()); 892 startTime_ = null; 893 } 894 return startTimeBuilder_; 895 } 896 897 private com.google.protobuf.Timestamp endTime_; 898 private com.google.protobuf.SingleFieldBuilderV3< 899 com.google.protobuf.Timestamp, 900 com.google.protobuf.Timestamp.Builder, 901 com.google.protobuf.TimestampOrBuilder> 902 endTimeBuilder_; 903 /** 904 * 905 * 906 * <pre> 907 * The end time of the event. 908 * </pre> 909 * 910 * <code>.google.protobuf.Timestamp end_time = 2;</code> 911 * 912 * @return Whether the endTime field is set. 913 */ hasEndTime()914 public boolean hasEndTime() { 915 return ((bitField0_ & 0x00000002) != 0); 916 } 917 /** 918 * 919 * 920 * <pre> 921 * The end time of the event. 922 * </pre> 923 * 924 * <code>.google.protobuf.Timestamp end_time = 2;</code> 925 * 926 * @return The endTime. 927 */ getEndTime()928 public com.google.protobuf.Timestamp getEndTime() { 929 if (endTimeBuilder_ == null) { 930 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 931 } else { 932 return endTimeBuilder_.getMessage(); 933 } 934 } 935 /** 936 * 937 * 938 * <pre> 939 * The end time of the event. 940 * </pre> 941 * 942 * <code>.google.protobuf.Timestamp end_time = 2;</code> 943 */ setEndTime(com.google.protobuf.Timestamp value)944 public Builder setEndTime(com.google.protobuf.Timestamp value) { 945 if (endTimeBuilder_ == null) { 946 if (value == null) { 947 throw new NullPointerException(); 948 } 949 endTime_ = value; 950 } else { 951 endTimeBuilder_.setMessage(value); 952 } 953 bitField0_ |= 0x00000002; 954 onChanged(); 955 return this; 956 } 957 /** 958 * 959 * 960 * <pre> 961 * The end time of the event. 962 * </pre> 963 * 964 * <code>.google.protobuf.Timestamp end_time = 2;</code> 965 */ setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)966 public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { 967 if (endTimeBuilder_ == null) { 968 endTime_ = builderForValue.build(); 969 } else { 970 endTimeBuilder_.setMessage(builderForValue.build()); 971 } 972 bitField0_ |= 0x00000002; 973 onChanged(); 974 return this; 975 } 976 /** 977 * 978 * 979 * <pre> 980 * The end time of the event. 981 * </pre> 982 * 983 * <code>.google.protobuf.Timestamp end_time = 2;</code> 984 */ mergeEndTime(com.google.protobuf.Timestamp value)985 public Builder mergeEndTime(com.google.protobuf.Timestamp value) { 986 if (endTimeBuilder_ == null) { 987 if (((bitField0_ & 0x00000002) != 0) 988 && endTime_ != null 989 && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 990 getEndTimeBuilder().mergeFrom(value); 991 } else { 992 endTime_ = value; 993 } 994 } else { 995 endTimeBuilder_.mergeFrom(value); 996 } 997 bitField0_ |= 0x00000002; 998 onChanged(); 999 return this; 1000 } 1001 /** 1002 * 1003 * 1004 * <pre> 1005 * The end time of the event. 1006 * </pre> 1007 * 1008 * <code>.google.protobuf.Timestamp end_time = 2;</code> 1009 */ clearEndTime()1010 public Builder clearEndTime() { 1011 bitField0_ = (bitField0_ & ~0x00000002); 1012 endTime_ = null; 1013 if (endTimeBuilder_ != null) { 1014 endTimeBuilder_.dispose(); 1015 endTimeBuilder_ = null; 1016 } 1017 onChanged(); 1018 return this; 1019 } 1020 /** 1021 * 1022 * 1023 * <pre> 1024 * The end time of the event. 1025 * </pre> 1026 * 1027 * <code>.google.protobuf.Timestamp end_time = 2;</code> 1028 */ getEndTimeBuilder()1029 public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { 1030 bitField0_ |= 0x00000002; 1031 onChanged(); 1032 return getEndTimeFieldBuilder().getBuilder(); 1033 } 1034 /** 1035 * 1036 * 1037 * <pre> 1038 * The end time of the event. 1039 * </pre> 1040 * 1041 * <code>.google.protobuf.Timestamp end_time = 2;</code> 1042 */ getEndTimeOrBuilder()1043 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 1044 if (endTimeBuilder_ != null) { 1045 return endTimeBuilder_.getMessageOrBuilder(); 1046 } else { 1047 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 1048 } 1049 } 1050 /** 1051 * 1052 * 1053 * <pre> 1054 * The end time of the event. 1055 * </pre> 1056 * 1057 * <code>.google.protobuf.Timestamp end_time = 2;</code> 1058 */ 1059 private com.google.protobuf.SingleFieldBuilderV3< 1060 com.google.protobuf.Timestamp, 1061 com.google.protobuf.Timestamp.Builder, 1062 com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder()1063 getEndTimeFieldBuilder() { 1064 if (endTimeBuilder_ == null) { 1065 endTimeBuilder_ = 1066 new com.google.protobuf.SingleFieldBuilderV3< 1067 com.google.protobuf.Timestamp, 1068 com.google.protobuf.Timestamp.Builder, 1069 com.google.protobuf.TimestampOrBuilder>( 1070 getEndTime(), getParentForChildren(), isClean()); 1071 endTime_ = null; 1072 } 1073 return endTimeBuilder_; 1074 } 1075 1076 private com.google.protobuf.Duration cronJobDuration_; 1077 private com.google.protobuf.SingleFieldBuilderV3< 1078 com.google.protobuf.Duration, 1079 com.google.protobuf.Duration.Builder, 1080 com.google.protobuf.DurationOrBuilder> 1081 cronJobDurationBuilder_; 1082 /** 1083 * 1084 * 1085 * <pre> 1086 * The duration for the cron job event. The duration of the event is effective 1087 * after the cron job's start time. 1088 * </pre> 1089 * 1090 * <code>.google.protobuf.Duration cron_job_duration = 3;</code> 1091 * 1092 * @return Whether the cronJobDuration field is set. 1093 */ hasCronJobDuration()1094 public boolean hasCronJobDuration() { 1095 return ((bitField0_ & 0x00000004) != 0); 1096 } 1097 /** 1098 * 1099 * 1100 * <pre> 1101 * The duration for the cron job event. The duration of the event is effective 1102 * after the cron job's start time. 1103 * </pre> 1104 * 1105 * <code>.google.protobuf.Duration cron_job_duration = 3;</code> 1106 * 1107 * @return The cronJobDuration. 1108 */ getCronJobDuration()1109 public com.google.protobuf.Duration getCronJobDuration() { 1110 if (cronJobDurationBuilder_ == null) { 1111 return cronJobDuration_ == null 1112 ? com.google.protobuf.Duration.getDefaultInstance() 1113 : cronJobDuration_; 1114 } else { 1115 return cronJobDurationBuilder_.getMessage(); 1116 } 1117 } 1118 /** 1119 * 1120 * 1121 * <pre> 1122 * The duration for the cron job event. The duration of the event is effective 1123 * after the cron job's start time. 1124 * </pre> 1125 * 1126 * <code>.google.protobuf.Duration cron_job_duration = 3;</code> 1127 */ setCronJobDuration(com.google.protobuf.Duration value)1128 public Builder setCronJobDuration(com.google.protobuf.Duration value) { 1129 if (cronJobDurationBuilder_ == null) { 1130 if (value == null) { 1131 throw new NullPointerException(); 1132 } 1133 cronJobDuration_ = value; 1134 } else { 1135 cronJobDurationBuilder_.setMessage(value); 1136 } 1137 bitField0_ |= 0x00000004; 1138 onChanged(); 1139 return this; 1140 } 1141 /** 1142 * 1143 * 1144 * <pre> 1145 * The duration for the cron job event. The duration of the event is effective 1146 * after the cron job's start time. 1147 * </pre> 1148 * 1149 * <code>.google.protobuf.Duration cron_job_duration = 3;</code> 1150 */ setCronJobDuration(com.google.protobuf.Duration.Builder builderForValue)1151 public Builder setCronJobDuration(com.google.protobuf.Duration.Builder builderForValue) { 1152 if (cronJobDurationBuilder_ == null) { 1153 cronJobDuration_ = builderForValue.build(); 1154 } else { 1155 cronJobDurationBuilder_.setMessage(builderForValue.build()); 1156 } 1157 bitField0_ |= 0x00000004; 1158 onChanged(); 1159 return this; 1160 } 1161 /** 1162 * 1163 * 1164 * <pre> 1165 * The duration for the cron job event. The duration of the event is effective 1166 * after the cron job's start time. 1167 * </pre> 1168 * 1169 * <code>.google.protobuf.Duration cron_job_duration = 3;</code> 1170 */ mergeCronJobDuration(com.google.protobuf.Duration value)1171 public Builder mergeCronJobDuration(com.google.protobuf.Duration value) { 1172 if (cronJobDurationBuilder_ == null) { 1173 if (((bitField0_ & 0x00000004) != 0) 1174 && cronJobDuration_ != null 1175 && cronJobDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { 1176 getCronJobDurationBuilder().mergeFrom(value); 1177 } else { 1178 cronJobDuration_ = value; 1179 } 1180 } else { 1181 cronJobDurationBuilder_.mergeFrom(value); 1182 } 1183 bitField0_ |= 0x00000004; 1184 onChanged(); 1185 return this; 1186 } 1187 /** 1188 * 1189 * 1190 * <pre> 1191 * The duration for the cron job event. The duration of the event is effective 1192 * after the cron job's start time. 1193 * </pre> 1194 * 1195 * <code>.google.protobuf.Duration cron_job_duration = 3;</code> 1196 */ clearCronJobDuration()1197 public Builder clearCronJobDuration() { 1198 bitField0_ = (bitField0_ & ~0x00000004); 1199 cronJobDuration_ = null; 1200 if (cronJobDurationBuilder_ != null) { 1201 cronJobDurationBuilder_.dispose(); 1202 cronJobDurationBuilder_ = null; 1203 } 1204 onChanged(); 1205 return this; 1206 } 1207 /** 1208 * 1209 * 1210 * <pre> 1211 * The duration for the cron job event. The duration of the event is effective 1212 * after the cron job's start time. 1213 * </pre> 1214 * 1215 * <code>.google.protobuf.Duration cron_job_duration = 3;</code> 1216 */ getCronJobDurationBuilder()1217 public com.google.protobuf.Duration.Builder getCronJobDurationBuilder() { 1218 bitField0_ |= 0x00000004; 1219 onChanged(); 1220 return getCronJobDurationFieldBuilder().getBuilder(); 1221 } 1222 /** 1223 * 1224 * 1225 * <pre> 1226 * The duration for the cron job event. The duration of the event is effective 1227 * after the cron job's start time. 1228 * </pre> 1229 * 1230 * <code>.google.protobuf.Duration cron_job_duration = 3;</code> 1231 */ getCronJobDurationOrBuilder()1232 public com.google.protobuf.DurationOrBuilder getCronJobDurationOrBuilder() { 1233 if (cronJobDurationBuilder_ != null) { 1234 return cronJobDurationBuilder_.getMessageOrBuilder(); 1235 } else { 1236 return cronJobDuration_ == null 1237 ? com.google.protobuf.Duration.getDefaultInstance() 1238 : cronJobDuration_; 1239 } 1240 } 1241 /** 1242 * 1243 * 1244 * <pre> 1245 * The duration for the cron job event. The duration of the event is effective 1246 * after the cron job's start time. 1247 * </pre> 1248 * 1249 * <code>.google.protobuf.Duration cron_job_duration = 3;</code> 1250 */ 1251 private com.google.protobuf.SingleFieldBuilderV3< 1252 com.google.protobuf.Duration, 1253 com.google.protobuf.Duration.Builder, 1254 com.google.protobuf.DurationOrBuilder> getCronJobDurationFieldBuilder()1255 getCronJobDurationFieldBuilder() { 1256 if (cronJobDurationBuilder_ == null) { 1257 cronJobDurationBuilder_ = 1258 new com.google.protobuf.SingleFieldBuilderV3< 1259 com.google.protobuf.Duration, 1260 com.google.protobuf.Duration.Builder, 1261 com.google.protobuf.DurationOrBuilder>( 1262 getCronJobDuration(), getParentForChildren(), isClean()); 1263 cronJobDuration_ = null; 1264 } 1265 return cronJobDurationBuilder_; 1266 } 1267 1268 private java.lang.Object cronSpec_ = ""; 1269 /** 1270 * 1271 * 1272 * <pre> 1273 * The cron definition of the scheduled event. See 1274 * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as 1275 * defined by the realm. 1276 * </pre> 1277 * 1278 * <code>string cron_spec = 4;</code> 1279 * 1280 * @return The cronSpec. 1281 */ getCronSpec()1282 public java.lang.String getCronSpec() { 1283 java.lang.Object ref = cronSpec_; 1284 if (!(ref instanceof java.lang.String)) { 1285 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1286 java.lang.String s = bs.toStringUtf8(); 1287 cronSpec_ = s; 1288 return s; 1289 } else { 1290 return (java.lang.String) ref; 1291 } 1292 } 1293 /** 1294 * 1295 * 1296 * <pre> 1297 * The cron definition of the scheduled event. See 1298 * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as 1299 * defined by the realm. 1300 * </pre> 1301 * 1302 * <code>string cron_spec = 4;</code> 1303 * 1304 * @return The bytes for cronSpec. 1305 */ getCronSpecBytes()1306 public com.google.protobuf.ByteString getCronSpecBytes() { 1307 java.lang.Object ref = cronSpec_; 1308 if (ref instanceof String) { 1309 com.google.protobuf.ByteString b = 1310 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1311 cronSpec_ = b; 1312 return b; 1313 } else { 1314 return (com.google.protobuf.ByteString) ref; 1315 } 1316 } 1317 /** 1318 * 1319 * 1320 * <pre> 1321 * The cron definition of the scheduled event. See 1322 * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as 1323 * defined by the realm. 1324 * </pre> 1325 * 1326 * <code>string cron_spec = 4;</code> 1327 * 1328 * @param value The cronSpec to set. 1329 * @return This builder for chaining. 1330 */ setCronSpec(java.lang.String value)1331 public Builder setCronSpec(java.lang.String value) { 1332 if (value == null) { 1333 throw new NullPointerException(); 1334 } 1335 cronSpec_ = value; 1336 bitField0_ |= 0x00000008; 1337 onChanged(); 1338 return this; 1339 } 1340 /** 1341 * 1342 * 1343 * <pre> 1344 * The cron definition of the scheduled event. See 1345 * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as 1346 * defined by the realm. 1347 * </pre> 1348 * 1349 * <code>string cron_spec = 4;</code> 1350 * 1351 * @return This builder for chaining. 1352 */ clearCronSpec()1353 public Builder clearCronSpec() { 1354 cronSpec_ = getDefaultInstance().getCronSpec(); 1355 bitField0_ = (bitField0_ & ~0x00000008); 1356 onChanged(); 1357 return this; 1358 } 1359 /** 1360 * 1361 * 1362 * <pre> 1363 * The cron definition of the scheduled event. See 1364 * https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as 1365 * defined by the realm. 1366 * </pre> 1367 * 1368 * <code>string cron_spec = 4;</code> 1369 * 1370 * @param value The bytes for cronSpec to set. 1371 * @return This builder for chaining. 1372 */ setCronSpecBytes(com.google.protobuf.ByteString value)1373 public Builder setCronSpecBytes(com.google.protobuf.ByteString value) { 1374 if (value == null) { 1375 throw new NullPointerException(); 1376 } 1377 checkByteStringIsUtf8(value); 1378 cronSpec_ = value; 1379 bitField0_ |= 0x00000008; 1380 onChanged(); 1381 return this; 1382 } 1383 1384 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1385 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1386 return super.setUnknownFields(unknownFields); 1387 } 1388 1389 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1390 public final Builder mergeUnknownFields( 1391 final com.google.protobuf.UnknownFieldSet unknownFields) { 1392 return super.mergeUnknownFields(unknownFields); 1393 } 1394 1395 // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1.Schedule) 1396 } 1397 1398 // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1.Schedule) 1399 private static final com.google.cloud.gaming.v1.Schedule DEFAULT_INSTANCE; 1400 1401 static { 1402 DEFAULT_INSTANCE = new com.google.cloud.gaming.v1.Schedule(); 1403 } 1404 getDefaultInstance()1405 public static com.google.cloud.gaming.v1.Schedule getDefaultInstance() { 1406 return DEFAULT_INSTANCE; 1407 } 1408 1409 private static final com.google.protobuf.Parser<Schedule> PARSER = 1410 new com.google.protobuf.AbstractParser<Schedule>() { 1411 @java.lang.Override 1412 public Schedule parsePartialFrom( 1413 com.google.protobuf.CodedInputStream input, 1414 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1415 throws com.google.protobuf.InvalidProtocolBufferException { 1416 Builder builder = newBuilder(); 1417 try { 1418 builder.mergeFrom(input, extensionRegistry); 1419 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1420 throw e.setUnfinishedMessage(builder.buildPartial()); 1421 } catch (com.google.protobuf.UninitializedMessageException e) { 1422 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1423 } catch (java.io.IOException e) { 1424 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1425 .setUnfinishedMessage(builder.buildPartial()); 1426 } 1427 return builder.buildPartial(); 1428 } 1429 }; 1430 parser()1431 public static com.google.protobuf.Parser<Schedule> parser() { 1432 return PARSER; 1433 } 1434 1435 @java.lang.Override getParserForType()1436 public com.google.protobuf.Parser<Schedule> getParserForType() { 1437 return PARSER; 1438 } 1439 1440 @java.lang.Override getDefaultInstanceForType()1441 public com.google.cloud.gaming.v1.Schedule getDefaultInstanceForType() { 1442 return DEFAULT_INSTANCE; 1443 } 1444 } 1445