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 * Configuration to suppress records whose suppression conditions evaluate to 26 * true. 27 * </pre> 28 * 29 * Protobuf type {@code google.privacy.dlp.v2.RecordSuppression} 30 */ 31 public final class RecordSuppression extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.RecordSuppression) 34 RecordSuppressionOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use RecordSuppression.newBuilder() to construct. RecordSuppression(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private RecordSuppression(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 RecordSuppression()41 private RecordSuppression() {} 42 43 @java.lang.Override 44 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)45 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 46 return new RecordSuppression(); 47 } 48 49 @java.lang.Override getUnknownFields()50 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 51 return this.unknownFields; 52 } 53 getDescriptor()54 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 55 return com.google.privacy.dlp.v2.DlpProto 56 .internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor; 57 } 58 59 @java.lang.Override 60 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()61 internalGetFieldAccessorTable() { 62 return com.google.privacy.dlp.v2.DlpProto 63 .internal_static_google_privacy_dlp_v2_RecordSuppression_fieldAccessorTable 64 .ensureFieldAccessorsInitialized( 65 com.google.privacy.dlp.v2.RecordSuppression.class, 66 com.google.privacy.dlp.v2.RecordSuppression.Builder.class); 67 } 68 69 public static final int CONDITION_FIELD_NUMBER = 1; 70 private com.google.privacy.dlp.v2.RecordCondition condition_; 71 /** 72 * 73 * 74 * <pre> 75 * A condition that when it evaluates to true will result in the record being 76 * evaluated to be suppressed from the transformed content. 77 * </pre> 78 * 79 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 80 * 81 * @return Whether the condition field is set. 82 */ 83 @java.lang.Override hasCondition()84 public boolean hasCondition() { 85 return condition_ != null; 86 } 87 /** 88 * 89 * 90 * <pre> 91 * A condition that when it evaluates to true will result in the record being 92 * evaluated to be suppressed from the transformed content. 93 * </pre> 94 * 95 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 96 * 97 * @return The condition. 98 */ 99 @java.lang.Override getCondition()100 public com.google.privacy.dlp.v2.RecordCondition getCondition() { 101 return condition_ == null 102 ? com.google.privacy.dlp.v2.RecordCondition.getDefaultInstance() 103 : condition_; 104 } 105 /** 106 * 107 * 108 * <pre> 109 * A condition that when it evaluates to true will result in the record being 110 * evaluated to be suppressed from the transformed content. 111 * </pre> 112 * 113 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 114 */ 115 @java.lang.Override getConditionOrBuilder()116 public com.google.privacy.dlp.v2.RecordConditionOrBuilder getConditionOrBuilder() { 117 return condition_ == null 118 ? com.google.privacy.dlp.v2.RecordCondition.getDefaultInstance() 119 : condition_; 120 } 121 122 private byte memoizedIsInitialized = -1; 123 124 @java.lang.Override isInitialized()125 public final boolean isInitialized() { 126 byte isInitialized = memoizedIsInitialized; 127 if (isInitialized == 1) return true; 128 if (isInitialized == 0) return false; 129 130 memoizedIsInitialized = 1; 131 return true; 132 } 133 134 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)135 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 136 if (condition_ != null) { 137 output.writeMessage(1, getCondition()); 138 } 139 getUnknownFields().writeTo(output); 140 } 141 142 @java.lang.Override getSerializedSize()143 public int getSerializedSize() { 144 int size = memoizedSize; 145 if (size != -1) return size; 146 147 size = 0; 148 if (condition_ != null) { 149 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCondition()); 150 } 151 size += getUnknownFields().getSerializedSize(); 152 memoizedSize = size; 153 return size; 154 } 155 156 @java.lang.Override equals(final java.lang.Object obj)157 public boolean equals(final java.lang.Object obj) { 158 if (obj == this) { 159 return true; 160 } 161 if (!(obj instanceof com.google.privacy.dlp.v2.RecordSuppression)) { 162 return super.equals(obj); 163 } 164 com.google.privacy.dlp.v2.RecordSuppression other = 165 (com.google.privacy.dlp.v2.RecordSuppression) obj; 166 167 if (hasCondition() != other.hasCondition()) return false; 168 if (hasCondition()) { 169 if (!getCondition().equals(other.getCondition())) return false; 170 } 171 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 172 return true; 173 } 174 175 @java.lang.Override hashCode()176 public int hashCode() { 177 if (memoizedHashCode != 0) { 178 return memoizedHashCode; 179 } 180 int hash = 41; 181 hash = (19 * hash) + getDescriptor().hashCode(); 182 if (hasCondition()) { 183 hash = (37 * hash) + CONDITION_FIELD_NUMBER; 184 hash = (53 * hash) + getCondition().hashCode(); 185 } 186 hash = (29 * hash) + getUnknownFields().hashCode(); 187 memoizedHashCode = hash; 188 return hash; 189 } 190 parseFrom(java.nio.ByteBuffer data)191 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom(java.nio.ByteBuffer data) 192 throws com.google.protobuf.InvalidProtocolBufferException { 193 return PARSER.parseFrom(data); 194 } 195 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)196 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom( 197 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 198 throws com.google.protobuf.InvalidProtocolBufferException { 199 return PARSER.parseFrom(data, extensionRegistry); 200 } 201 parseFrom( com.google.protobuf.ByteString data)202 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom( 203 com.google.protobuf.ByteString data) 204 throws com.google.protobuf.InvalidProtocolBufferException { 205 return PARSER.parseFrom(data); 206 } 207 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)208 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom( 209 com.google.protobuf.ByteString data, 210 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 211 throws com.google.protobuf.InvalidProtocolBufferException { 212 return PARSER.parseFrom(data, extensionRegistry); 213 } 214 parseFrom(byte[] data)215 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom(byte[] data) 216 throws com.google.protobuf.InvalidProtocolBufferException { 217 return PARSER.parseFrom(data); 218 } 219 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)220 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom( 221 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 222 throws com.google.protobuf.InvalidProtocolBufferException { 223 return PARSER.parseFrom(data, extensionRegistry); 224 } 225 parseFrom(java.io.InputStream input)226 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom(java.io.InputStream input) 227 throws java.io.IOException { 228 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 229 } 230 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)231 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom( 232 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 233 throws java.io.IOException { 234 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 235 PARSER, input, extensionRegistry); 236 } 237 parseDelimitedFrom( java.io.InputStream input)238 public static com.google.privacy.dlp.v2.RecordSuppression parseDelimitedFrom( 239 java.io.InputStream input) throws java.io.IOException { 240 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 241 } 242 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)243 public static com.google.privacy.dlp.v2.RecordSuppression parseDelimitedFrom( 244 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 245 throws java.io.IOException { 246 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 247 PARSER, input, extensionRegistry); 248 } 249 parseFrom( com.google.protobuf.CodedInputStream input)250 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom( 251 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 252 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 253 } 254 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)255 public static com.google.privacy.dlp.v2.RecordSuppression parseFrom( 256 com.google.protobuf.CodedInputStream input, 257 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 258 throws java.io.IOException { 259 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 260 PARSER, input, extensionRegistry); 261 } 262 263 @java.lang.Override newBuilderForType()264 public Builder newBuilderForType() { 265 return newBuilder(); 266 } 267 newBuilder()268 public static Builder newBuilder() { 269 return DEFAULT_INSTANCE.toBuilder(); 270 } 271 newBuilder(com.google.privacy.dlp.v2.RecordSuppression prototype)272 public static Builder newBuilder(com.google.privacy.dlp.v2.RecordSuppression prototype) { 273 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 274 } 275 276 @java.lang.Override toBuilder()277 public Builder toBuilder() { 278 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 279 } 280 281 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)282 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 283 Builder builder = new Builder(parent); 284 return builder; 285 } 286 /** 287 * 288 * 289 * <pre> 290 * Configuration to suppress records whose suppression conditions evaluate to 291 * true. 292 * </pre> 293 * 294 * Protobuf type {@code google.privacy.dlp.v2.RecordSuppression} 295 */ 296 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 297 implements 298 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.RecordSuppression) 299 com.google.privacy.dlp.v2.RecordSuppressionOrBuilder { getDescriptor()300 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 301 return com.google.privacy.dlp.v2.DlpProto 302 .internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor; 303 } 304 305 @java.lang.Override 306 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()307 internalGetFieldAccessorTable() { 308 return com.google.privacy.dlp.v2.DlpProto 309 .internal_static_google_privacy_dlp_v2_RecordSuppression_fieldAccessorTable 310 .ensureFieldAccessorsInitialized( 311 com.google.privacy.dlp.v2.RecordSuppression.class, 312 com.google.privacy.dlp.v2.RecordSuppression.Builder.class); 313 } 314 315 // Construct using com.google.privacy.dlp.v2.RecordSuppression.newBuilder() Builder()316 private Builder() {} 317 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)318 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 319 super(parent); 320 } 321 322 @java.lang.Override clear()323 public Builder clear() { 324 super.clear(); 325 bitField0_ = 0; 326 condition_ = null; 327 if (conditionBuilder_ != null) { 328 conditionBuilder_.dispose(); 329 conditionBuilder_ = null; 330 } 331 return this; 332 } 333 334 @java.lang.Override getDescriptorForType()335 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 336 return com.google.privacy.dlp.v2.DlpProto 337 .internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor; 338 } 339 340 @java.lang.Override getDefaultInstanceForType()341 public com.google.privacy.dlp.v2.RecordSuppression getDefaultInstanceForType() { 342 return com.google.privacy.dlp.v2.RecordSuppression.getDefaultInstance(); 343 } 344 345 @java.lang.Override build()346 public com.google.privacy.dlp.v2.RecordSuppression build() { 347 com.google.privacy.dlp.v2.RecordSuppression result = buildPartial(); 348 if (!result.isInitialized()) { 349 throw newUninitializedMessageException(result); 350 } 351 return result; 352 } 353 354 @java.lang.Override buildPartial()355 public com.google.privacy.dlp.v2.RecordSuppression buildPartial() { 356 com.google.privacy.dlp.v2.RecordSuppression result = 357 new com.google.privacy.dlp.v2.RecordSuppression(this); 358 if (bitField0_ != 0) { 359 buildPartial0(result); 360 } 361 onBuilt(); 362 return result; 363 } 364 buildPartial0(com.google.privacy.dlp.v2.RecordSuppression result)365 private void buildPartial0(com.google.privacy.dlp.v2.RecordSuppression result) { 366 int from_bitField0_ = bitField0_; 367 if (((from_bitField0_ & 0x00000001) != 0)) { 368 result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); 369 } 370 } 371 372 @java.lang.Override clone()373 public Builder clone() { 374 return super.clone(); 375 } 376 377 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)378 public Builder setField( 379 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 380 return super.setField(field, value); 381 } 382 383 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)384 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 385 return super.clearField(field); 386 } 387 388 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)389 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 390 return super.clearOneof(oneof); 391 } 392 393 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)394 public Builder setRepeatedField( 395 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 396 return super.setRepeatedField(field, index, value); 397 } 398 399 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)400 public Builder addRepeatedField( 401 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 402 return super.addRepeatedField(field, value); 403 } 404 405 @java.lang.Override mergeFrom(com.google.protobuf.Message other)406 public Builder mergeFrom(com.google.protobuf.Message other) { 407 if (other instanceof com.google.privacy.dlp.v2.RecordSuppression) { 408 return mergeFrom((com.google.privacy.dlp.v2.RecordSuppression) other); 409 } else { 410 super.mergeFrom(other); 411 return this; 412 } 413 } 414 mergeFrom(com.google.privacy.dlp.v2.RecordSuppression other)415 public Builder mergeFrom(com.google.privacy.dlp.v2.RecordSuppression other) { 416 if (other == com.google.privacy.dlp.v2.RecordSuppression.getDefaultInstance()) return this; 417 if (other.hasCondition()) { 418 mergeCondition(other.getCondition()); 419 } 420 this.mergeUnknownFields(other.getUnknownFields()); 421 onChanged(); 422 return this; 423 } 424 425 @java.lang.Override isInitialized()426 public final boolean isInitialized() { 427 return true; 428 } 429 430 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)431 public Builder mergeFrom( 432 com.google.protobuf.CodedInputStream input, 433 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 434 throws java.io.IOException { 435 if (extensionRegistry == null) { 436 throw new java.lang.NullPointerException(); 437 } 438 try { 439 boolean done = false; 440 while (!done) { 441 int tag = input.readTag(); 442 switch (tag) { 443 case 0: 444 done = true; 445 break; 446 case 10: 447 { 448 input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); 449 bitField0_ |= 0x00000001; 450 break; 451 } // case 10 452 default: 453 { 454 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 455 done = true; // was an endgroup tag 456 } 457 break; 458 } // default: 459 } // switch (tag) 460 } // while (!done) 461 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 462 throw e.unwrapIOException(); 463 } finally { 464 onChanged(); 465 } // finally 466 return this; 467 } 468 469 private int bitField0_; 470 471 private com.google.privacy.dlp.v2.RecordCondition condition_; 472 private com.google.protobuf.SingleFieldBuilderV3< 473 com.google.privacy.dlp.v2.RecordCondition, 474 com.google.privacy.dlp.v2.RecordCondition.Builder, 475 com.google.privacy.dlp.v2.RecordConditionOrBuilder> 476 conditionBuilder_; 477 /** 478 * 479 * 480 * <pre> 481 * A condition that when it evaluates to true will result in the record being 482 * evaluated to be suppressed from the transformed content. 483 * </pre> 484 * 485 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 486 * 487 * @return Whether the condition field is set. 488 */ hasCondition()489 public boolean hasCondition() { 490 return ((bitField0_ & 0x00000001) != 0); 491 } 492 /** 493 * 494 * 495 * <pre> 496 * A condition that when it evaluates to true will result in the record being 497 * evaluated to be suppressed from the transformed content. 498 * </pre> 499 * 500 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 501 * 502 * @return The condition. 503 */ getCondition()504 public com.google.privacy.dlp.v2.RecordCondition getCondition() { 505 if (conditionBuilder_ == null) { 506 return condition_ == null 507 ? com.google.privacy.dlp.v2.RecordCondition.getDefaultInstance() 508 : condition_; 509 } else { 510 return conditionBuilder_.getMessage(); 511 } 512 } 513 /** 514 * 515 * 516 * <pre> 517 * A condition that when it evaluates to true will result in the record being 518 * evaluated to be suppressed from the transformed content. 519 * </pre> 520 * 521 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 522 */ setCondition(com.google.privacy.dlp.v2.RecordCondition value)523 public Builder setCondition(com.google.privacy.dlp.v2.RecordCondition value) { 524 if (conditionBuilder_ == null) { 525 if (value == null) { 526 throw new NullPointerException(); 527 } 528 condition_ = value; 529 } else { 530 conditionBuilder_.setMessage(value); 531 } 532 bitField0_ |= 0x00000001; 533 onChanged(); 534 return this; 535 } 536 /** 537 * 538 * 539 * <pre> 540 * A condition that when it evaluates to true will result in the record being 541 * evaluated to be suppressed from the transformed content. 542 * </pre> 543 * 544 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 545 */ setCondition(com.google.privacy.dlp.v2.RecordCondition.Builder builderForValue)546 public Builder setCondition(com.google.privacy.dlp.v2.RecordCondition.Builder builderForValue) { 547 if (conditionBuilder_ == null) { 548 condition_ = builderForValue.build(); 549 } else { 550 conditionBuilder_.setMessage(builderForValue.build()); 551 } 552 bitField0_ |= 0x00000001; 553 onChanged(); 554 return this; 555 } 556 /** 557 * 558 * 559 * <pre> 560 * A condition that when it evaluates to true will result in the record being 561 * evaluated to be suppressed from the transformed content. 562 * </pre> 563 * 564 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 565 */ mergeCondition(com.google.privacy.dlp.v2.RecordCondition value)566 public Builder mergeCondition(com.google.privacy.dlp.v2.RecordCondition value) { 567 if (conditionBuilder_ == null) { 568 if (((bitField0_ & 0x00000001) != 0) 569 && condition_ != null 570 && condition_ != com.google.privacy.dlp.v2.RecordCondition.getDefaultInstance()) { 571 getConditionBuilder().mergeFrom(value); 572 } else { 573 condition_ = value; 574 } 575 } else { 576 conditionBuilder_.mergeFrom(value); 577 } 578 bitField0_ |= 0x00000001; 579 onChanged(); 580 return this; 581 } 582 /** 583 * 584 * 585 * <pre> 586 * A condition that when it evaluates to true will result in the record being 587 * evaluated to be suppressed from the transformed content. 588 * </pre> 589 * 590 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 591 */ clearCondition()592 public Builder clearCondition() { 593 bitField0_ = (bitField0_ & ~0x00000001); 594 condition_ = null; 595 if (conditionBuilder_ != null) { 596 conditionBuilder_.dispose(); 597 conditionBuilder_ = null; 598 } 599 onChanged(); 600 return this; 601 } 602 /** 603 * 604 * 605 * <pre> 606 * A condition that when it evaluates to true will result in the record being 607 * evaluated to be suppressed from the transformed content. 608 * </pre> 609 * 610 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 611 */ getConditionBuilder()612 public com.google.privacy.dlp.v2.RecordCondition.Builder getConditionBuilder() { 613 bitField0_ |= 0x00000001; 614 onChanged(); 615 return getConditionFieldBuilder().getBuilder(); 616 } 617 /** 618 * 619 * 620 * <pre> 621 * A condition that when it evaluates to true will result in the record being 622 * evaluated to be suppressed from the transformed content. 623 * </pre> 624 * 625 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 626 */ getConditionOrBuilder()627 public com.google.privacy.dlp.v2.RecordConditionOrBuilder getConditionOrBuilder() { 628 if (conditionBuilder_ != null) { 629 return conditionBuilder_.getMessageOrBuilder(); 630 } else { 631 return condition_ == null 632 ? com.google.privacy.dlp.v2.RecordCondition.getDefaultInstance() 633 : condition_; 634 } 635 } 636 /** 637 * 638 * 639 * <pre> 640 * A condition that when it evaluates to true will result in the record being 641 * evaluated to be suppressed from the transformed content. 642 * </pre> 643 * 644 * <code>.google.privacy.dlp.v2.RecordCondition condition = 1;</code> 645 */ 646 private com.google.protobuf.SingleFieldBuilderV3< 647 com.google.privacy.dlp.v2.RecordCondition, 648 com.google.privacy.dlp.v2.RecordCondition.Builder, 649 com.google.privacy.dlp.v2.RecordConditionOrBuilder> getConditionFieldBuilder()650 getConditionFieldBuilder() { 651 if (conditionBuilder_ == null) { 652 conditionBuilder_ = 653 new com.google.protobuf.SingleFieldBuilderV3< 654 com.google.privacy.dlp.v2.RecordCondition, 655 com.google.privacy.dlp.v2.RecordCondition.Builder, 656 com.google.privacy.dlp.v2.RecordConditionOrBuilder>( 657 getCondition(), getParentForChildren(), isClean()); 658 condition_ = null; 659 } 660 return conditionBuilder_; 661 } 662 663 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)664 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 665 return super.setUnknownFields(unknownFields); 666 } 667 668 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)669 public final Builder mergeUnknownFields( 670 final com.google.protobuf.UnknownFieldSet unknownFields) { 671 return super.mergeUnknownFields(unknownFields); 672 } 673 674 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.RecordSuppression) 675 } 676 677 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordSuppression) 678 private static final com.google.privacy.dlp.v2.RecordSuppression DEFAULT_INSTANCE; 679 680 static { 681 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.RecordSuppression(); 682 } 683 getDefaultInstance()684 public static com.google.privacy.dlp.v2.RecordSuppression getDefaultInstance() { 685 return DEFAULT_INSTANCE; 686 } 687 688 private static final com.google.protobuf.Parser<RecordSuppression> PARSER = 689 new com.google.protobuf.AbstractParser<RecordSuppression>() { 690 @java.lang.Override 691 public RecordSuppression parsePartialFrom( 692 com.google.protobuf.CodedInputStream input, 693 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 694 throws com.google.protobuf.InvalidProtocolBufferException { 695 Builder builder = newBuilder(); 696 try { 697 builder.mergeFrom(input, extensionRegistry); 698 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 699 throw e.setUnfinishedMessage(builder.buildPartial()); 700 } catch (com.google.protobuf.UninitializedMessageException e) { 701 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 702 } catch (java.io.IOException e) { 703 throw new com.google.protobuf.InvalidProtocolBufferException(e) 704 .setUnfinishedMessage(builder.buildPartial()); 705 } 706 return builder.buildPartial(); 707 } 708 }; 709 parser()710 public static com.google.protobuf.Parser<RecordSuppression> parser() { 711 return PARSER; 712 } 713 714 @java.lang.Override getParserForType()715 public com.google.protobuf.Parser<RecordSuppression> getParserForType() { 716 return PARSER; 717 } 718 719 @java.lang.Override getDefaultInstanceForType()720 public com.google.privacy.dlp.v2.RecordSuppression getDefaultInstanceForType() { 721 return DEFAULT_INSTANCE; 722 } 723 } 724