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/privacy/dlp/v2/dlp.proto 18 19 package com.google.privacy.dlp.v2; 20 21 /** 22 * 23 * 24 * <pre> 25 * Schedule for inspect job triggers. 26 * </pre> 27 * 28 * Protobuf type {@code google.privacy.dlp.v2.Schedule} 29 */ 30 public final class Schedule extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Schedule) 33 ScheduleOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use Schedule.newBuilder() to construct. Schedule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private Schedule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 Schedule()40 private Schedule() {} 41 42 @java.lang.Override 43 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)44 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 45 return new Schedule(); 46 } 47 48 @java.lang.Override getUnknownFields()49 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 50 return this.unknownFields; 51 } 52 getDescriptor()53 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 54 return com.google.privacy.dlp.v2.DlpProto 55 .internal_static_google_privacy_dlp_v2_Schedule_descriptor; 56 } 57 58 @java.lang.Override 59 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()60 internalGetFieldAccessorTable() { 61 return com.google.privacy.dlp.v2.DlpProto 62 .internal_static_google_privacy_dlp_v2_Schedule_fieldAccessorTable 63 .ensureFieldAccessorsInitialized( 64 com.google.privacy.dlp.v2.Schedule.class, 65 com.google.privacy.dlp.v2.Schedule.Builder.class); 66 } 67 68 private int optionCase_ = 0; 69 private java.lang.Object option_; 70 71 public enum OptionCase 72 implements 73 com.google.protobuf.Internal.EnumLite, 74 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 75 RECURRENCE_PERIOD_DURATION(1), 76 OPTION_NOT_SET(0); 77 private final int value; 78 OptionCase(int value)79 private OptionCase(int value) { 80 this.value = value; 81 } 82 /** 83 * @param value The number of the enum to look for. 84 * @return The enum associated with the given number. 85 * @deprecated Use {@link #forNumber(int)} instead. 86 */ 87 @java.lang.Deprecated valueOf(int value)88 public static OptionCase valueOf(int value) { 89 return forNumber(value); 90 } 91 forNumber(int value)92 public static OptionCase forNumber(int value) { 93 switch (value) { 94 case 1: 95 return RECURRENCE_PERIOD_DURATION; 96 case 0: 97 return OPTION_NOT_SET; 98 default: 99 return null; 100 } 101 } 102 getNumber()103 public int getNumber() { 104 return this.value; 105 } 106 }; 107 getOptionCase()108 public OptionCase getOptionCase() { 109 return OptionCase.forNumber(optionCase_); 110 } 111 112 public static final int RECURRENCE_PERIOD_DURATION_FIELD_NUMBER = 1; 113 /** 114 * 115 * 116 * <pre> 117 * With this option a job is started on a regular periodic basis. For 118 * example: every day (86400 seconds). 119 * A scheduled start time will be skipped if the previous 120 * execution has not ended when its scheduled time occurs. 121 * This value must be set to a time duration greater than or equal 122 * to 1 day and can be no longer than 60 days. 123 * </pre> 124 * 125 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 126 * 127 * @return Whether the recurrencePeriodDuration field is set. 128 */ 129 @java.lang.Override hasRecurrencePeriodDuration()130 public boolean hasRecurrencePeriodDuration() { 131 return optionCase_ == 1; 132 } 133 /** 134 * 135 * 136 * <pre> 137 * With this option a job is started on a regular periodic basis. For 138 * example: every day (86400 seconds). 139 * A scheduled start time will be skipped if the previous 140 * execution has not ended when its scheduled time occurs. 141 * This value must be set to a time duration greater than or equal 142 * to 1 day and can be no longer than 60 days. 143 * </pre> 144 * 145 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 146 * 147 * @return The recurrencePeriodDuration. 148 */ 149 @java.lang.Override getRecurrencePeriodDuration()150 public com.google.protobuf.Duration getRecurrencePeriodDuration() { 151 if (optionCase_ == 1) { 152 return (com.google.protobuf.Duration) option_; 153 } 154 return com.google.protobuf.Duration.getDefaultInstance(); 155 } 156 /** 157 * 158 * 159 * <pre> 160 * With this option a job is started on a regular periodic basis. For 161 * example: every day (86400 seconds). 162 * A scheduled start time will be skipped if the previous 163 * execution has not ended when its scheduled time occurs. 164 * This value must be set to a time duration greater than or equal 165 * to 1 day and can be no longer than 60 days. 166 * </pre> 167 * 168 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 169 */ 170 @java.lang.Override getRecurrencePeriodDurationOrBuilder()171 public com.google.protobuf.DurationOrBuilder getRecurrencePeriodDurationOrBuilder() { 172 if (optionCase_ == 1) { 173 return (com.google.protobuf.Duration) option_; 174 } 175 return com.google.protobuf.Duration.getDefaultInstance(); 176 } 177 178 private byte memoizedIsInitialized = -1; 179 180 @java.lang.Override isInitialized()181 public final boolean isInitialized() { 182 byte isInitialized = memoizedIsInitialized; 183 if (isInitialized == 1) return true; 184 if (isInitialized == 0) return false; 185 186 memoizedIsInitialized = 1; 187 return true; 188 } 189 190 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)191 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 192 if (optionCase_ == 1) { 193 output.writeMessage(1, (com.google.protobuf.Duration) option_); 194 } 195 getUnknownFields().writeTo(output); 196 } 197 198 @java.lang.Override getSerializedSize()199 public int getSerializedSize() { 200 int size = memoizedSize; 201 if (size != -1) return size; 202 203 size = 0; 204 if (optionCase_ == 1) { 205 size += 206 com.google.protobuf.CodedOutputStream.computeMessageSize( 207 1, (com.google.protobuf.Duration) option_); 208 } 209 size += getUnknownFields().getSerializedSize(); 210 memoizedSize = size; 211 return size; 212 } 213 214 @java.lang.Override equals(final java.lang.Object obj)215 public boolean equals(final java.lang.Object obj) { 216 if (obj == this) { 217 return true; 218 } 219 if (!(obj instanceof com.google.privacy.dlp.v2.Schedule)) { 220 return super.equals(obj); 221 } 222 com.google.privacy.dlp.v2.Schedule other = (com.google.privacy.dlp.v2.Schedule) obj; 223 224 if (!getOptionCase().equals(other.getOptionCase())) return false; 225 switch (optionCase_) { 226 case 1: 227 if (!getRecurrencePeriodDuration().equals(other.getRecurrencePeriodDuration())) 228 return false; 229 break; 230 case 0: 231 default: 232 } 233 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 234 return true; 235 } 236 237 @java.lang.Override hashCode()238 public int hashCode() { 239 if (memoizedHashCode != 0) { 240 return memoizedHashCode; 241 } 242 int hash = 41; 243 hash = (19 * hash) + getDescriptor().hashCode(); 244 switch (optionCase_) { 245 case 1: 246 hash = (37 * hash) + RECURRENCE_PERIOD_DURATION_FIELD_NUMBER; 247 hash = (53 * hash) + getRecurrencePeriodDuration().hashCode(); 248 break; 249 case 0: 250 default: 251 } 252 hash = (29 * hash) + getUnknownFields().hashCode(); 253 memoizedHashCode = hash; 254 return hash; 255 } 256 parseFrom(java.nio.ByteBuffer data)257 public static com.google.privacy.dlp.v2.Schedule parseFrom(java.nio.ByteBuffer data) 258 throws com.google.protobuf.InvalidProtocolBufferException { 259 return PARSER.parseFrom(data); 260 } 261 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)262 public static com.google.privacy.dlp.v2.Schedule parseFrom( 263 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 264 throws com.google.protobuf.InvalidProtocolBufferException { 265 return PARSER.parseFrom(data, extensionRegistry); 266 } 267 parseFrom(com.google.protobuf.ByteString data)268 public static com.google.privacy.dlp.v2.Schedule parseFrom(com.google.protobuf.ByteString data) 269 throws com.google.protobuf.InvalidProtocolBufferException { 270 return PARSER.parseFrom(data); 271 } 272 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)273 public static com.google.privacy.dlp.v2.Schedule parseFrom( 274 com.google.protobuf.ByteString data, 275 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 276 throws com.google.protobuf.InvalidProtocolBufferException { 277 return PARSER.parseFrom(data, extensionRegistry); 278 } 279 parseFrom(byte[] data)280 public static com.google.privacy.dlp.v2.Schedule parseFrom(byte[] data) 281 throws com.google.protobuf.InvalidProtocolBufferException { 282 return PARSER.parseFrom(data); 283 } 284 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)285 public static com.google.privacy.dlp.v2.Schedule parseFrom( 286 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 287 throws com.google.protobuf.InvalidProtocolBufferException { 288 return PARSER.parseFrom(data, extensionRegistry); 289 } 290 parseFrom(java.io.InputStream input)291 public static com.google.privacy.dlp.v2.Schedule parseFrom(java.io.InputStream input) 292 throws java.io.IOException { 293 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 294 } 295 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)296 public static com.google.privacy.dlp.v2.Schedule parseFrom( 297 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 298 throws java.io.IOException { 299 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 300 PARSER, input, extensionRegistry); 301 } 302 parseDelimitedFrom(java.io.InputStream input)303 public static com.google.privacy.dlp.v2.Schedule parseDelimitedFrom(java.io.InputStream input) 304 throws java.io.IOException { 305 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 306 } 307 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)308 public static com.google.privacy.dlp.v2.Schedule parseDelimitedFrom( 309 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 310 throws java.io.IOException { 311 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 312 PARSER, input, extensionRegistry); 313 } 314 parseFrom( com.google.protobuf.CodedInputStream input)315 public static com.google.privacy.dlp.v2.Schedule parseFrom( 316 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 317 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 318 } 319 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)320 public static com.google.privacy.dlp.v2.Schedule parseFrom( 321 com.google.protobuf.CodedInputStream input, 322 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 323 throws java.io.IOException { 324 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 325 PARSER, input, extensionRegistry); 326 } 327 328 @java.lang.Override newBuilderForType()329 public Builder newBuilderForType() { 330 return newBuilder(); 331 } 332 newBuilder()333 public static Builder newBuilder() { 334 return DEFAULT_INSTANCE.toBuilder(); 335 } 336 newBuilder(com.google.privacy.dlp.v2.Schedule prototype)337 public static Builder newBuilder(com.google.privacy.dlp.v2.Schedule prototype) { 338 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 339 } 340 341 @java.lang.Override toBuilder()342 public Builder toBuilder() { 343 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 344 } 345 346 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)347 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 348 Builder builder = new Builder(parent); 349 return builder; 350 } 351 /** 352 * 353 * 354 * <pre> 355 * Schedule for inspect job triggers. 356 * </pre> 357 * 358 * Protobuf type {@code google.privacy.dlp.v2.Schedule} 359 */ 360 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 361 implements 362 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Schedule) 363 com.google.privacy.dlp.v2.ScheduleOrBuilder { getDescriptor()364 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 365 return com.google.privacy.dlp.v2.DlpProto 366 .internal_static_google_privacy_dlp_v2_Schedule_descriptor; 367 } 368 369 @java.lang.Override 370 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()371 internalGetFieldAccessorTable() { 372 return com.google.privacy.dlp.v2.DlpProto 373 .internal_static_google_privacy_dlp_v2_Schedule_fieldAccessorTable 374 .ensureFieldAccessorsInitialized( 375 com.google.privacy.dlp.v2.Schedule.class, 376 com.google.privacy.dlp.v2.Schedule.Builder.class); 377 } 378 379 // Construct using com.google.privacy.dlp.v2.Schedule.newBuilder() Builder()380 private Builder() {} 381 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)382 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 383 super(parent); 384 } 385 386 @java.lang.Override clear()387 public Builder clear() { 388 super.clear(); 389 bitField0_ = 0; 390 if (recurrencePeriodDurationBuilder_ != null) { 391 recurrencePeriodDurationBuilder_.clear(); 392 } 393 optionCase_ = 0; 394 option_ = null; 395 return this; 396 } 397 398 @java.lang.Override getDescriptorForType()399 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 400 return com.google.privacy.dlp.v2.DlpProto 401 .internal_static_google_privacy_dlp_v2_Schedule_descriptor; 402 } 403 404 @java.lang.Override getDefaultInstanceForType()405 public com.google.privacy.dlp.v2.Schedule getDefaultInstanceForType() { 406 return com.google.privacy.dlp.v2.Schedule.getDefaultInstance(); 407 } 408 409 @java.lang.Override build()410 public com.google.privacy.dlp.v2.Schedule build() { 411 com.google.privacy.dlp.v2.Schedule result = buildPartial(); 412 if (!result.isInitialized()) { 413 throw newUninitializedMessageException(result); 414 } 415 return result; 416 } 417 418 @java.lang.Override buildPartial()419 public com.google.privacy.dlp.v2.Schedule buildPartial() { 420 com.google.privacy.dlp.v2.Schedule result = new com.google.privacy.dlp.v2.Schedule(this); 421 if (bitField0_ != 0) { 422 buildPartial0(result); 423 } 424 buildPartialOneofs(result); 425 onBuilt(); 426 return result; 427 } 428 buildPartial0(com.google.privacy.dlp.v2.Schedule result)429 private void buildPartial0(com.google.privacy.dlp.v2.Schedule result) { 430 int from_bitField0_ = bitField0_; 431 } 432 buildPartialOneofs(com.google.privacy.dlp.v2.Schedule result)433 private void buildPartialOneofs(com.google.privacy.dlp.v2.Schedule result) { 434 result.optionCase_ = optionCase_; 435 result.option_ = this.option_; 436 if (optionCase_ == 1 && recurrencePeriodDurationBuilder_ != null) { 437 result.option_ = recurrencePeriodDurationBuilder_.build(); 438 } 439 } 440 441 @java.lang.Override clone()442 public Builder clone() { 443 return super.clone(); 444 } 445 446 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)447 public Builder setField( 448 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 449 return super.setField(field, value); 450 } 451 452 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)453 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 454 return super.clearField(field); 455 } 456 457 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)458 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 459 return super.clearOneof(oneof); 460 } 461 462 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)463 public Builder setRepeatedField( 464 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 465 return super.setRepeatedField(field, index, value); 466 } 467 468 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)469 public Builder addRepeatedField( 470 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 471 return super.addRepeatedField(field, value); 472 } 473 474 @java.lang.Override mergeFrom(com.google.protobuf.Message other)475 public Builder mergeFrom(com.google.protobuf.Message other) { 476 if (other instanceof com.google.privacy.dlp.v2.Schedule) { 477 return mergeFrom((com.google.privacy.dlp.v2.Schedule) other); 478 } else { 479 super.mergeFrom(other); 480 return this; 481 } 482 } 483 mergeFrom(com.google.privacy.dlp.v2.Schedule other)484 public Builder mergeFrom(com.google.privacy.dlp.v2.Schedule other) { 485 if (other == com.google.privacy.dlp.v2.Schedule.getDefaultInstance()) return this; 486 switch (other.getOptionCase()) { 487 case RECURRENCE_PERIOD_DURATION: 488 { 489 mergeRecurrencePeriodDuration(other.getRecurrencePeriodDuration()); 490 break; 491 } 492 case OPTION_NOT_SET: 493 { 494 break; 495 } 496 } 497 this.mergeUnknownFields(other.getUnknownFields()); 498 onChanged(); 499 return this; 500 } 501 502 @java.lang.Override isInitialized()503 public final boolean isInitialized() { 504 return true; 505 } 506 507 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)508 public Builder mergeFrom( 509 com.google.protobuf.CodedInputStream input, 510 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 511 throws java.io.IOException { 512 if (extensionRegistry == null) { 513 throw new java.lang.NullPointerException(); 514 } 515 try { 516 boolean done = false; 517 while (!done) { 518 int tag = input.readTag(); 519 switch (tag) { 520 case 0: 521 done = true; 522 break; 523 case 10: 524 { 525 input.readMessage( 526 getRecurrencePeriodDurationFieldBuilder().getBuilder(), extensionRegistry); 527 optionCase_ = 1; 528 break; 529 } // case 10 530 default: 531 { 532 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 533 done = true; // was an endgroup tag 534 } 535 break; 536 } // default: 537 } // switch (tag) 538 } // while (!done) 539 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 540 throw e.unwrapIOException(); 541 } finally { 542 onChanged(); 543 } // finally 544 return this; 545 } 546 547 private int optionCase_ = 0; 548 private java.lang.Object option_; 549 getOptionCase()550 public OptionCase getOptionCase() { 551 return OptionCase.forNumber(optionCase_); 552 } 553 clearOption()554 public Builder clearOption() { 555 optionCase_ = 0; 556 option_ = null; 557 onChanged(); 558 return this; 559 } 560 561 private int bitField0_; 562 563 private com.google.protobuf.SingleFieldBuilderV3< 564 com.google.protobuf.Duration, 565 com.google.protobuf.Duration.Builder, 566 com.google.protobuf.DurationOrBuilder> 567 recurrencePeriodDurationBuilder_; 568 /** 569 * 570 * 571 * <pre> 572 * With this option a job is started on a regular periodic basis. For 573 * example: every day (86400 seconds). 574 * A scheduled start time will be skipped if the previous 575 * execution has not ended when its scheduled time occurs. 576 * This value must be set to a time duration greater than or equal 577 * to 1 day and can be no longer than 60 days. 578 * </pre> 579 * 580 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 581 * 582 * @return Whether the recurrencePeriodDuration field is set. 583 */ 584 @java.lang.Override hasRecurrencePeriodDuration()585 public boolean hasRecurrencePeriodDuration() { 586 return optionCase_ == 1; 587 } 588 /** 589 * 590 * 591 * <pre> 592 * With this option a job is started on a regular periodic basis. For 593 * example: every day (86400 seconds). 594 * A scheduled start time will be skipped if the previous 595 * execution has not ended when its scheduled time occurs. 596 * This value must be set to a time duration greater than or equal 597 * to 1 day and can be no longer than 60 days. 598 * </pre> 599 * 600 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 601 * 602 * @return The recurrencePeriodDuration. 603 */ 604 @java.lang.Override getRecurrencePeriodDuration()605 public com.google.protobuf.Duration getRecurrencePeriodDuration() { 606 if (recurrencePeriodDurationBuilder_ == null) { 607 if (optionCase_ == 1) { 608 return (com.google.protobuf.Duration) option_; 609 } 610 return com.google.protobuf.Duration.getDefaultInstance(); 611 } else { 612 if (optionCase_ == 1) { 613 return recurrencePeriodDurationBuilder_.getMessage(); 614 } 615 return com.google.protobuf.Duration.getDefaultInstance(); 616 } 617 } 618 /** 619 * 620 * 621 * <pre> 622 * With this option a job is started on a regular periodic basis. For 623 * example: every day (86400 seconds). 624 * A scheduled start time will be skipped if the previous 625 * execution has not ended when its scheduled time occurs. 626 * This value must be set to a time duration greater than or equal 627 * to 1 day and can be no longer than 60 days. 628 * </pre> 629 * 630 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 631 */ setRecurrencePeriodDuration(com.google.protobuf.Duration value)632 public Builder setRecurrencePeriodDuration(com.google.protobuf.Duration value) { 633 if (recurrencePeriodDurationBuilder_ == null) { 634 if (value == null) { 635 throw new NullPointerException(); 636 } 637 option_ = value; 638 onChanged(); 639 } else { 640 recurrencePeriodDurationBuilder_.setMessage(value); 641 } 642 optionCase_ = 1; 643 return this; 644 } 645 /** 646 * 647 * 648 * <pre> 649 * With this option a job is started on a regular periodic basis. For 650 * example: every day (86400 seconds). 651 * A scheduled start time will be skipped if the previous 652 * execution has not ended when its scheduled time occurs. 653 * This value must be set to a time duration greater than or equal 654 * to 1 day and can be no longer than 60 days. 655 * </pre> 656 * 657 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 658 */ setRecurrencePeriodDuration( com.google.protobuf.Duration.Builder builderForValue)659 public Builder setRecurrencePeriodDuration( 660 com.google.protobuf.Duration.Builder builderForValue) { 661 if (recurrencePeriodDurationBuilder_ == null) { 662 option_ = builderForValue.build(); 663 onChanged(); 664 } else { 665 recurrencePeriodDurationBuilder_.setMessage(builderForValue.build()); 666 } 667 optionCase_ = 1; 668 return this; 669 } 670 /** 671 * 672 * 673 * <pre> 674 * With this option a job is started on a regular periodic basis. For 675 * example: every day (86400 seconds). 676 * A scheduled start time will be skipped if the previous 677 * execution has not ended when its scheduled time occurs. 678 * This value must be set to a time duration greater than or equal 679 * to 1 day and can be no longer than 60 days. 680 * </pre> 681 * 682 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 683 */ mergeRecurrencePeriodDuration(com.google.protobuf.Duration value)684 public Builder mergeRecurrencePeriodDuration(com.google.protobuf.Duration value) { 685 if (recurrencePeriodDurationBuilder_ == null) { 686 if (optionCase_ == 1 && option_ != com.google.protobuf.Duration.getDefaultInstance()) { 687 option_ = 688 com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) option_) 689 .mergeFrom(value) 690 .buildPartial(); 691 } else { 692 option_ = value; 693 } 694 onChanged(); 695 } else { 696 if (optionCase_ == 1) { 697 recurrencePeriodDurationBuilder_.mergeFrom(value); 698 } else { 699 recurrencePeriodDurationBuilder_.setMessage(value); 700 } 701 } 702 optionCase_ = 1; 703 return this; 704 } 705 /** 706 * 707 * 708 * <pre> 709 * With this option a job is started on a regular periodic basis. For 710 * example: every day (86400 seconds). 711 * A scheduled start time will be skipped if the previous 712 * execution has not ended when its scheduled time occurs. 713 * This value must be set to a time duration greater than or equal 714 * to 1 day and can be no longer than 60 days. 715 * </pre> 716 * 717 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 718 */ clearRecurrencePeriodDuration()719 public Builder clearRecurrencePeriodDuration() { 720 if (recurrencePeriodDurationBuilder_ == null) { 721 if (optionCase_ == 1) { 722 optionCase_ = 0; 723 option_ = null; 724 onChanged(); 725 } 726 } else { 727 if (optionCase_ == 1) { 728 optionCase_ = 0; 729 option_ = null; 730 } 731 recurrencePeriodDurationBuilder_.clear(); 732 } 733 return this; 734 } 735 /** 736 * 737 * 738 * <pre> 739 * With this option a job is started on a regular periodic basis. For 740 * example: every day (86400 seconds). 741 * A scheduled start time will be skipped if the previous 742 * execution has not ended when its scheduled time occurs. 743 * This value must be set to a time duration greater than or equal 744 * to 1 day and can be no longer than 60 days. 745 * </pre> 746 * 747 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 748 */ getRecurrencePeriodDurationBuilder()749 public com.google.protobuf.Duration.Builder getRecurrencePeriodDurationBuilder() { 750 return getRecurrencePeriodDurationFieldBuilder().getBuilder(); 751 } 752 /** 753 * 754 * 755 * <pre> 756 * With this option a job is started on a regular periodic basis. For 757 * example: every day (86400 seconds). 758 * A scheduled start time will be skipped if the previous 759 * execution has not ended when its scheduled time occurs. 760 * This value must be set to a time duration greater than or equal 761 * to 1 day and can be no longer than 60 days. 762 * </pre> 763 * 764 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 765 */ 766 @java.lang.Override getRecurrencePeriodDurationOrBuilder()767 public com.google.protobuf.DurationOrBuilder getRecurrencePeriodDurationOrBuilder() { 768 if ((optionCase_ == 1) && (recurrencePeriodDurationBuilder_ != null)) { 769 return recurrencePeriodDurationBuilder_.getMessageOrBuilder(); 770 } else { 771 if (optionCase_ == 1) { 772 return (com.google.protobuf.Duration) option_; 773 } 774 return com.google.protobuf.Duration.getDefaultInstance(); 775 } 776 } 777 /** 778 * 779 * 780 * <pre> 781 * With this option a job is started on a regular periodic basis. For 782 * example: every day (86400 seconds). 783 * A scheduled start time will be skipped if the previous 784 * execution has not ended when its scheduled time occurs. 785 * This value must be set to a time duration greater than or equal 786 * to 1 day and can be no longer than 60 days. 787 * </pre> 788 * 789 * <code>.google.protobuf.Duration recurrence_period_duration = 1;</code> 790 */ 791 private com.google.protobuf.SingleFieldBuilderV3< 792 com.google.protobuf.Duration, 793 com.google.protobuf.Duration.Builder, 794 com.google.protobuf.DurationOrBuilder> getRecurrencePeriodDurationFieldBuilder()795 getRecurrencePeriodDurationFieldBuilder() { 796 if (recurrencePeriodDurationBuilder_ == null) { 797 if (!(optionCase_ == 1)) { 798 option_ = com.google.protobuf.Duration.getDefaultInstance(); 799 } 800 recurrencePeriodDurationBuilder_ = 801 new com.google.protobuf.SingleFieldBuilderV3< 802 com.google.protobuf.Duration, 803 com.google.protobuf.Duration.Builder, 804 com.google.protobuf.DurationOrBuilder>( 805 (com.google.protobuf.Duration) option_, getParentForChildren(), isClean()); 806 option_ = null; 807 } 808 optionCase_ = 1; 809 onChanged(); 810 return recurrencePeriodDurationBuilder_; 811 } 812 813 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)814 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 815 return super.setUnknownFields(unknownFields); 816 } 817 818 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)819 public final Builder mergeUnknownFields( 820 final com.google.protobuf.UnknownFieldSet unknownFields) { 821 return super.mergeUnknownFields(unknownFields); 822 } 823 824 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Schedule) 825 } 826 827 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Schedule) 828 private static final com.google.privacy.dlp.v2.Schedule DEFAULT_INSTANCE; 829 830 static { 831 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Schedule(); 832 } 833 getDefaultInstance()834 public static com.google.privacy.dlp.v2.Schedule getDefaultInstance() { 835 return DEFAULT_INSTANCE; 836 } 837 838 private static final com.google.protobuf.Parser<Schedule> PARSER = 839 new com.google.protobuf.AbstractParser<Schedule>() { 840 @java.lang.Override 841 public Schedule parsePartialFrom( 842 com.google.protobuf.CodedInputStream input, 843 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 844 throws com.google.protobuf.InvalidProtocolBufferException { 845 Builder builder = newBuilder(); 846 try { 847 builder.mergeFrom(input, extensionRegistry); 848 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 849 throw e.setUnfinishedMessage(builder.buildPartial()); 850 } catch (com.google.protobuf.UninitializedMessageException e) { 851 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 852 } catch (java.io.IOException e) { 853 throw new com.google.protobuf.InvalidProtocolBufferException(e) 854 .setUnfinishedMessage(builder.buildPartial()); 855 } 856 return builder.buildPartial(); 857 } 858 }; 859 parser()860 public static com.google.protobuf.Parser<Schedule> parser() { 861 return PARSER; 862 } 863 864 @java.lang.Override getParserForType()865 public com.google.protobuf.Parser<Schedule> getParserForType() { 866 return PARSER; 867 } 868 869 @java.lang.Override getDefaultInstanceForType()870 public com.google.privacy.dlp.v2.Schedule getDefaultInstanceForType() { 871 return DEFAULT_INSTANCE; 872 } 873 } 874