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 * Summary of a single transformation. 26 * Only one of 'transformation', 'field_transformation', or 'record_suppress' 27 * will be set. 28 * </pre> 29 * 30 * Protobuf type {@code google.privacy.dlp.v2.TransformationSummary} 31 */ 32 public final class TransformationSummary extends com.google.protobuf.GeneratedMessageV3 33 implements 34 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationSummary) 35 TransformationSummaryOrBuilder { 36 private static final long serialVersionUID = 0L; 37 // Use TransformationSummary.newBuilder() to construct. TransformationSummary(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38 private TransformationSummary(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 39 super(builder); 40 } 41 TransformationSummary()42 private TransformationSummary() { 43 fieldTransformations_ = java.util.Collections.emptyList(); 44 results_ = java.util.Collections.emptyList(); 45 } 46 47 @java.lang.Override 48 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)49 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 50 return new TransformationSummary(); 51 } 52 53 @java.lang.Override getUnknownFields()54 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 55 return this.unknownFields; 56 } 57 getDescriptor()58 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 59 return com.google.privacy.dlp.v2.DlpProto 60 .internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor; 61 } 62 63 @java.lang.Override 64 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()65 internalGetFieldAccessorTable() { 66 return com.google.privacy.dlp.v2.DlpProto 67 .internal_static_google_privacy_dlp_v2_TransformationSummary_fieldAccessorTable 68 .ensureFieldAccessorsInitialized( 69 com.google.privacy.dlp.v2.TransformationSummary.class, 70 com.google.privacy.dlp.v2.TransformationSummary.Builder.class); 71 } 72 73 /** 74 * 75 * 76 * <pre> 77 * Possible outcomes of transformations. 78 * </pre> 79 * 80 * Protobuf enum {@code google.privacy.dlp.v2.TransformationSummary.TransformationResultCode} 81 */ 82 public enum TransformationResultCode implements com.google.protobuf.ProtocolMessageEnum { 83 /** 84 * 85 * 86 * <pre> 87 * Unused 88 * </pre> 89 * 90 * <code>TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0;</code> 91 */ 92 TRANSFORMATION_RESULT_CODE_UNSPECIFIED(0), 93 /** 94 * 95 * 96 * <pre> 97 * Transformation completed without an error. 98 * </pre> 99 * 100 * <code>SUCCESS = 1;</code> 101 */ 102 SUCCESS(1), 103 /** 104 * 105 * 106 * <pre> 107 * Transformation had an error. 108 * </pre> 109 * 110 * <code>ERROR = 2;</code> 111 */ 112 ERROR(2), 113 UNRECOGNIZED(-1), 114 ; 115 116 /** 117 * 118 * 119 * <pre> 120 * Unused 121 * </pre> 122 * 123 * <code>TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0;</code> 124 */ 125 public static final int TRANSFORMATION_RESULT_CODE_UNSPECIFIED_VALUE = 0; 126 /** 127 * 128 * 129 * <pre> 130 * Transformation completed without an error. 131 * </pre> 132 * 133 * <code>SUCCESS = 1;</code> 134 */ 135 public static final int SUCCESS_VALUE = 1; 136 /** 137 * 138 * 139 * <pre> 140 * Transformation had an error. 141 * </pre> 142 * 143 * <code>ERROR = 2;</code> 144 */ 145 public static final int ERROR_VALUE = 2; 146 getNumber()147 public final int getNumber() { 148 if (this == UNRECOGNIZED) { 149 throw new java.lang.IllegalArgumentException( 150 "Can't get the number of an unknown enum value."); 151 } 152 return value; 153 } 154 155 /** 156 * @param value The numeric wire value of the corresponding enum entry. 157 * @return The enum associated with the given numeric wire value. 158 * @deprecated Use {@link #forNumber(int)} instead. 159 */ 160 @java.lang.Deprecated valueOf(int value)161 public static TransformationResultCode valueOf(int value) { 162 return forNumber(value); 163 } 164 165 /** 166 * @param value The numeric wire value of the corresponding enum entry. 167 * @return The enum associated with the given numeric wire value. 168 */ forNumber(int value)169 public static TransformationResultCode forNumber(int value) { 170 switch (value) { 171 case 0: 172 return TRANSFORMATION_RESULT_CODE_UNSPECIFIED; 173 case 1: 174 return SUCCESS; 175 case 2: 176 return ERROR; 177 default: 178 return null; 179 } 180 } 181 182 public static com.google.protobuf.Internal.EnumLiteMap<TransformationResultCode> internalGetValueMap()183 internalGetValueMap() { 184 return internalValueMap; 185 } 186 187 private static final com.google.protobuf.Internal.EnumLiteMap<TransformationResultCode> 188 internalValueMap = 189 new com.google.protobuf.Internal.EnumLiteMap<TransformationResultCode>() { 190 public TransformationResultCode findValueByNumber(int number) { 191 return TransformationResultCode.forNumber(number); 192 } 193 }; 194 getValueDescriptor()195 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 196 if (this == UNRECOGNIZED) { 197 throw new java.lang.IllegalStateException( 198 "Can't get the descriptor of an unrecognized enum value."); 199 } 200 return getDescriptor().getValues().get(ordinal()); 201 } 202 getDescriptorForType()203 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 204 return getDescriptor(); 205 } 206 getDescriptor()207 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 208 return com.google.privacy.dlp.v2.TransformationSummary.getDescriptor().getEnumTypes().get(0); 209 } 210 211 private static final TransformationResultCode[] VALUES = values(); 212 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)213 public static TransformationResultCode valueOf( 214 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 215 if (desc.getType() != getDescriptor()) { 216 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 217 } 218 if (desc.getIndex() == -1) { 219 return UNRECOGNIZED; 220 } 221 return VALUES[desc.getIndex()]; 222 } 223 224 private final int value; 225 TransformationResultCode(int value)226 private TransformationResultCode(int value) { 227 this.value = value; 228 } 229 230 // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.TransformationSummary.TransformationResultCode) 231 } 232 233 public interface SummaryResultOrBuilder 234 extends 235 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationSummary.SummaryResult) 236 com.google.protobuf.MessageOrBuilder { 237 238 /** 239 * 240 * 241 * <pre> 242 * Number of transformations counted by this result. 243 * </pre> 244 * 245 * <code>int64 count = 1;</code> 246 * 247 * @return The count. 248 */ getCount()249 long getCount(); 250 251 /** 252 * 253 * 254 * <pre> 255 * Outcome of the transformation. 256 * </pre> 257 * 258 * <code>.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2;</code> 259 * 260 * @return The enum numeric value on the wire for code. 261 */ getCodeValue()262 int getCodeValue(); 263 /** 264 * 265 * 266 * <pre> 267 * Outcome of the transformation. 268 * </pre> 269 * 270 * <code>.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2;</code> 271 * 272 * @return The code. 273 */ getCode()274 com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode getCode(); 275 276 /** 277 * 278 * 279 * <pre> 280 * A place for warnings or errors to show up if a transformation didn't 281 * work as expected. 282 * </pre> 283 * 284 * <code>string details = 3;</code> 285 * 286 * @return The details. 287 */ getDetails()288 java.lang.String getDetails(); 289 /** 290 * 291 * 292 * <pre> 293 * A place for warnings or errors to show up if a transformation didn't 294 * work as expected. 295 * </pre> 296 * 297 * <code>string details = 3;</code> 298 * 299 * @return The bytes for details. 300 */ getDetailsBytes()301 com.google.protobuf.ByteString getDetailsBytes(); 302 } 303 /** 304 * 305 * 306 * <pre> 307 * A collection that informs the user the number of times a particular 308 * `TransformationResultCode` and error details occurred. 309 * </pre> 310 * 311 * Protobuf type {@code google.privacy.dlp.v2.TransformationSummary.SummaryResult} 312 */ 313 public static final class SummaryResult extends com.google.protobuf.GeneratedMessageV3 314 implements 315 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationSummary.SummaryResult) 316 SummaryResultOrBuilder { 317 private static final long serialVersionUID = 0L; 318 // Use SummaryResult.newBuilder() to construct. SummaryResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)319 private SummaryResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 320 super(builder); 321 } 322 SummaryResult()323 private SummaryResult() { 324 code_ = 0; 325 details_ = ""; 326 } 327 328 @java.lang.Override 329 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)330 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 331 return new SummaryResult(); 332 } 333 334 @java.lang.Override getUnknownFields()335 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 336 return this.unknownFields; 337 } 338 getDescriptor()339 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 340 return com.google.privacy.dlp.v2.DlpProto 341 .internal_static_google_privacy_dlp_v2_TransformationSummary_SummaryResult_descriptor; 342 } 343 344 @java.lang.Override 345 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()346 internalGetFieldAccessorTable() { 347 return com.google.privacy.dlp.v2.DlpProto 348 .internal_static_google_privacy_dlp_v2_TransformationSummary_SummaryResult_fieldAccessorTable 349 .ensureFieldAccessorsInitialized( 350 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.class, 351 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder.class); 352 } 353 354 public static final int COUNT_FIELD_NUMBER = 1; 355 private long count_ = 0L; 356 /** 357 * 358 * 359 * <pre> 360 * Number of transformations counted by this result. 361 * </pre> 362 * 363 * <code>int64 count = 1;</code> 364 * 365 * @return The count. 366 */ 367 @java.lang.Override getCount()368 public long getCount() { 369 return count_; 370 } 371 372 public static final int CODE_FIELD_NUMBER = 2; 373 private int code_ = 0; 374 /** 375 * 376 * 377 * <pre> 378 * Outcome of the transformation. 379 * </pre> 380 * 381 * <code>.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2;</code> 382 * 383 * @return The enum numeric value on the wire for code. 384 */ 385 @java.lang.Override getCodeValue()386 public int getCodeValue() { 387 return code_; 388 } 389 /** 390 * 391 * 392 * <pre> 393 * Outcome of the transformation. 394 * </pre> 395 * 396 * <code>.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2;</code> 397 * 398 * @return The code. 399 */ 400 @java.lang.Override getCode()401 public com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode getCode() { 402 com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode result = 403 com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode.forNumber(code_); 404 return result == null 405 ? com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode.UNRECOGNIZED 406 : result; 407 } 408 409 public static final int DETAILS_FIELD_NUMBER = 3; 410 411 @SuppressWarnings("serial") 412 private volatile java.lang.Object details_ = ""; 413 /** 414 * 415 * 416 * <pre> 417 * A place for warnings or errors to show up if a transformation didn't 418 * work as expected. 419 * </pre> 420 * 421 * <code>string details = 3;</code> 422 * 423 * @return The details. 424 */ 425 @java.lang.Override getDetails()426 public java.lang.String getDetails() { 427 java.lang.Object ref = details_; 428 if (ref instanceof java.lang.String) { 429 return (java.lang.String) ref; 430 } else { 431 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 432 java.lang.String s = bs.toStringUtf8(); 433 details_ = s; 434 return s; 435 } 436 } 437 /** 438 * 439 * 440 * <pre> 441 * A place for warnings or errors to show up if a transformation didn't 442 * work as expected. 443 * </pre> 444 * 445 * <code>string details = 3;</code> 446 * 447 * @return The bytes for details. 448 */ 449 @java.lang.Override getDetailsBytes()450 public com.google.protobuf.ByteString getDetailsBytes() { 451 java.lang.Object ref = details_; 452 if (ref instanceof java.lang.String) { 453 com.google.protobuf.ByteString b = 454 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 455 details_ = b; 456 return b; 457 } else { 458 return (com.google.protobuf.ByteString) ref; 459 } 460 } 461 462 private byte memoizedIsInitialized = -1; 463 464 @java.lang.Override isInitialized()465 public final boolean isInitialized() { 466 byte isInitialized = memoizedIsInitialized; 467 if (isInitialized == 1) return true; 468 if (isInitialized == 0) return false; 469 470 memoizedIsInitialized = 1; 471 return true; 472 } 473 474 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)475 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 476 if (count_ != 0L) { 477 output.writeInt64(1, count_); 478 } 479 if (code_ 480 != com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode 481 .TRANSFORMATION_RESULT_CODE_UNSPECIFIED 482 .getNumber()) { 483 output.writeEnum(2, code_); 484 } 485 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { 486 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, details_); 487 } 488 getUnknownFields().writeTo(output); 489 } 490 491 @java.lang.Override getSerializedSize()492 public int getSerializedSize() { 493 int size = memoizedSize; 494 if (size != -1) return size; 495 496 size = 0; 497 if (count_ != 0L) { 498 size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_); 499 } 500 if (code_ 501 != com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode 502 .TRANSFORMATION_RESULT_CODE_UNSPECIFIED 503 .getNumber()) { 504 size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, code_); 505 } 506 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { 507 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); 508 } 509 size += getUnknownFields().getSerializedSize(); 510 memoizedSize = size; 511 return size; 512 } 513 514 @java.lang.Override equals(final java.lang.Object obj)515 public boolean equals(final java.lang.Object obj) { 516 if (obj == this) { 517 return true; 518 } 519 if (!(obj instanceof com.google.privacy.dlp.v2.TransformationSummary.SummaryResult)) { 520 return super.equals(obj); 521 } 522 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult other = 523 (com.google.privacy.dlp.v2.TransformationSummary.SummaryResult) obj; 524 525 if (getCount() != other.getCount()) return false; 526 if (code_ != other.code_) return false; 527 if (!getDetails().equals(other.getDetails())) return false; 528 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 529 return true; 530 } 531 532 @java.lang.Override hashCode()533 public int hashCode() { 534 if (memoizedHashCode != 0) { 535 return memoizedHashCode; 536 } 537 int hash = 41; 538 hash = (19 * hash) + getDescriptor().hashCode(); 539 hash = (37 * hash) + COUNT_FIELD_NUMBER; 540 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); 541 hash = (37 * hash) + CODE_FIELD_NUMBER; 542 hash = (53 * hash) + code_; 543 hash = (37 * hash) + DETAILS_FIELD_NUMBER; 544 hash = (53 * hash) + getDetails().hashCode(); 545 hash = (29 * hash) + getUnknownFields().hashCode(); 546 memoizedHashCode = hash; 547 return hash; 548 } 549 parseFrom( java.nio.ByteBuffer data)550 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 551 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 552 return PARSER.parseFrom(data); 553 } 554 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)555 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 556 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 557 throws com.google.protobuf.InvalidProtocolBufferException { 558 return PARSER.parseFrom(data, extensionRegistry); 559 } 560 parseFrom( com.google.protobuf.ByteString data)561 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 562 com.google.protobuf.ByteString data) 563 throws com.google.protobuf.InvalidProtocolBufferException { 564 return PARSER.parseFrom(data); 565 } 566 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)567 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 568 com.google.protobuf.ByteString data, 569 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 570 throws com.google.protobuf.InvalidProtocolBufferException { 571 return PARSER.parseFrom(data, extensionRegistry); 572 } 573 parseFrom( byte[] data)574 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 575 byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 576 return PARSER.parseFrom(data); 577 } 578 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)579 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 580 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 581 throws com.google.protobuf.InvalidProtocolBufferException { 582 return PARSER.parseFrom(data, extensionRegistry); 583 } 584 parseFrom( java.io.InputStream input)585 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 586 java.io.InputStream input) throws java.io.IOException { 587 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 588 } 589 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)590 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 591 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 592 throws java.io.IOException { 593 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 594 PARSER, input, extensionRegistry); 595 } 596 parseDelimitedFrom( java.io.InputStream input)597 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseDelimitedFrom( 598 java.io.InputStream input) throws java.io.IOException { 599 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 600 } 601 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)602 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseDelimitedFrom( 603 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 604 throws java.io.IOException { 605 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 606 PARSER, input, extensionRegistry); 607 } 608 parseFrom( com.google.protobuf.CodedInputStream input)609 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 610 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 611 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 612 } 613 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)614 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult parseFrom( 615 com.google.protobuf.CodedInputStream input, 616 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 617 throws java.io.IOException { 618 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 619 PARSER, input, extensionRegistry); 620 } 621 622 @java.lang.Override newBuilderForType()623 public Builder newBuilderForType() { 624 return newBuilder(); 625 } 626 newBuilder()627 public static Builder newBuilder() { 628 return DEFAULT_INSTANCE.toBuilder(); 629 } 630 newBuilder( com.google.privacy.dlp.v2.TransformationSummary.SummaryResult prototype)631 public static Builder newBuilder( 632 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult prototype) { 633 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 634 } 635 636 @java.lang.Override toBuilder()637 public Builder toBuilder() { 638 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 639 } 640 641 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)642 protected Builder newBuilderForType( 643 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 644 Builder builder = new Builder(parent); 645 return builder; 646 } 647 /** 648 * 649 * 650 * <pre> 651 * A collection that informs the user the number of times a particular 652 * `TransformationResultCode` and error details occurred. 653 * </pre> 654 * 655 * Protobuf type {@code google.privacy.dlp.v2.TransformationSummary.SummaryResult} 656 */ 657 public static final class Builder 658 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 659 implements 660 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationSummary.SummaryResult) 661 com.google.privacy.dlp.v2.TransformationSummary.SummaryResultOrBuilder { getDescriptor()662 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 663 return com.google.privacy.dlp.v2.DlpProto 664 .internal_static_google_privacy_dlp_v2_TransformationSummary_SummaryResult_descriptor; 665 } 666 667 @java.lang.Override 668 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()669 internalGetFieldAccessorTable() { 670 return com.google.privacy.dlp.v2.DlpProto 671 .internal_static_google_privacy_dlp_v2_TransformationSummary_SummaryResult_fieldAccessorTable 672 .ensureFieldAccessorsInitialized( 673 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.class, 674 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder.class); 675 } 676 677 // Construct using com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.newBuilder() Builder()678 private Builder() {} 679 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)680 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 681 super(parent); 682 } 683 684 @java.lang.Override clear()685 public Builder clear() { 686 super.clear(); 687 bitField0_ = 0; 688 count_ = 0L; 689 code_ = 0; 690 details_ = ""; 691 return this; 692 } 693 694 @java.lang.Override getDescriptorForType()695 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 696 return com.google.privacy.dlp.v2.DlpProto 697 .internal_static_google_privacy_dlp_v2_TransformationSummary_SummaryResult_descriptor; 698 } 699 700 @java.lang.Override 701 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult getDefaultInstanceForType()702 getDefaultInstanceForType() { 703 return com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.getDefaultInstance(); 704 } 705 706 @java.lang.Override build()707 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult build() { 708 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult result = buildPartial(); 709 if (!result.isInitialized()) { 710 throw newUninitializedMessageException(result); 711 } 712 return result; 713 } 714 715 @java.lang.Override buildPartial()716 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult buildPartial() { 717 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult result = 718 new com.google.privacy.dlp.v2.TransformationSummary.SummaryResult(this); 719 if (bitField0_ != 0) { 720 buildPartial0(result); 721 } 722 onBuilt(); 723 return result; 724 } 725 buildPartial0( com.google.privacy.dlp.v2.TransformationSummary.SummaryResult result)726 private void buildPartial0( 727 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult result) { 728 int from_bitField0_ = bitField0_; 729 if (((from_bitField0_ & 0x00000001) != 0)) { 730 result.count_ = count_; 731 } 732 if (((from_bitField0_ & 0x00000002) != 0)) { 733 result.code_ = code_; 734 } 735 if (((from_bitField0_ & 0x00000004) != 0)) { 736 result.details_ = details_; 737 } 738 } 739 740 @java.lang.Override clone()741 public Builder clone() { 742 return super.clone(); 743 } 744 745 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)746 public Builder setField( 747 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 748 return super.setField(field, value); 749 } 750 751 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)752 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 753 return super.clearField(field); 754 } 755 756 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)757 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 758 return super.clearOneof(oneof); 759 } 760 761 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)762 public Builder setRepeatedField( 763 com.google.protobuf.Descriptors.FieldDescriptor field, 764 int index, 765 java.lang.Object value) { 766 return super.setRepeatedField(field, index, value); 767 } 768 769 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)770 public Builder addRepeatedField( 771 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 772 return super.addRepeatedField(field, value); 773 } 774 775 @java.lang.Override mergeFrom(com.google.protobuf.Message other)776 public Builder mergeFrom(com.google.protobuf.Message other) { 777 if (other instanceof com.google.privacy.dlp.v2.TransformationSummary.SummaryResult) { 778 return mergeFrom((com.google.privacy.dlp.v2.TransformationSummary.SummaryResult) other); 779 } else { 780 super.mergeFrom(other); 781 return this; 782 } 783 } 784 mergeFrom( com.google.privacy.dlp.v2.TransformationSummary.SummaryResult other)785 public Builder mergeFrom( 786 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult other) { 787 if (other 788 == com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.getDefaultInstance()) 789 return this; 790 if (other.getCount() != 0L) { 791 setCount(other.getCount()); 792 } 793 if (other.code_ != 0) { 794 setCodeValue(other.getCodeValue()); 795 } 796 if (!other.getDetails().isEmpty()) { 797 details_ = other.details_; 798 bitField0_ |= 0x00000004; 799 onChanged(); 800 } 801 this.mergeUnknownFields(other.getUnknownFields()); 802 onChanged(); 803 return this; 804 } 805 806 @java.lang.Override isInitialized()807 public final boolean isInitialized() { 808 return true; 809 } 810 811 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)812 public Builder mergeFrom( 813 com.google.protobuf.CodedInputStream input, 814 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 815 throws java.io.IOException { 816 if (extensionRegistry == null) { 817 throw new java.lang.NullPointerException(); 818 } 819 try { 820 boolean done = false; 821 while (!done) { 822 int tag = input.readTag(); 823 switch (tag) { 824 case 0: 825 done = true; 826 break; 827 case 8: 828 { 829 count_ = input.readInt64(); 830 bitField0_ |= 0x00000001; 831 break; 832 } // case 8 833 case 16: 834 { 835 code_ = input.readEnum(); 836 bitField0_ |= 0x00000002; 837 break; 838 } // case 16 839 case 26: 840 { 841 details_ = input.readStringRequireUtf8(); 842 bitField0_ |= 0x00000004; 843 break; 844 } // case 26 845 default: 846 { 847 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 848 done = true; // was an endgroup tag 849 } 850 break; 851 } // default: 852 } // switch (tag) 853 } // while (!done) 854 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 855 throw e.unwrapIOException(); 856 } finally { 857 onChanged(); 858 } // finally 859 return this; 860 } 861 862 private int bitField0_; 863 864 private long count_; 865 /** 866 * 867 * 868 * <pre> 869 * Number of transformations counted by this result. 870 * </pre> 871 * 872 * <code>int64 count = 1;</code> 873 * 874 * @return The count. 875 */ 876 @java.lang.Override getCount()877 public long getCount() { 878 return count_; 879 } 880 /** 881 * 882 * 883 * <pre> 884 * Number of transformations counted by this result. 885 * </pre> 886 * 887 * <code>int64 count = 1;</code> 888 * 889 * @param value The count to set. 890 * @return This builder for chaining. 891 */ setCount(long value)892 public Builder setCount(long value) { 893 894 count_ = value; 895 bitField0_ |= 0x00000001; 896 onChanged(); 897 return this; 898 } 899 /** 900 * 901 * 902 * <pre> 903 * Number of transformations counted by this result. 904 * </pre> 905 * 906 * <code>int64 count = 1;</code> 907 * 908 * @return This builder for chaining. 909 */ clearCount()910 public Builder clearCount() { 911 bitField0_ = (bitField0_ & ~0x00000001); 912 count_ = 0L; 913 onChanged(); 914 return this; 915 } 916 917 private int code_ = 0; 918 /** 919 * 920 * 921 * <pre> 922 * Outcome of the transformation. 923 * </pre> 924 * 925 * <code>.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; 926 * </code> 927 * 928 * @return The enum numeric value on the wire for code. 929 */ 930 @java.lang.Override getCodeValue()931 public int getCodeValue() { 932 return code_; 933 } 934 /** 935 * 936 * 937 * <pre> 938 * Outcome of the transformation. 939 * </pre> 940 * 941 * <code>.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; 942 * </code> 943 * 944 * @param value The enum numeric value on the wire for code to set. 945 * @return This builder for chaining. 946 */ setCodeValue(int value)947 public Builder setCodeValue(int value) { 948 code_ = value; 949 bitField0_ |= 0x00000002; 950 onChanged(); 951 return this; 952 } 953 /** 954 * 955 * 956 * <pre> 957 * Outcome of the transformation. 958 * </pre> 959 * 960 * <code>.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; 961 * </code> 962 * 963 * @return The code. 964 */ 965 @java.lang.Override getCode()966 public com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode getCode() { 967 com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode result = 968 com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode.forNumber( 969 code_); 970 return result == null 971 ? com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode.UNRECOGNIZED 972 : result; 973 } 974 /** 975 * 976 * 977 * <pre> 978 * Outcome of the transformation. 979 * </pre> 980 * 981 * <code>.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; 982 * </code> 983 * 984 * @param value The code to set. 985 * @return This builder for chaining. 986 */ setCode( com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode value)987 public Builder setCode( 988 com.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode value) { 989 if (value == null) { 990 throw new NullPointerException(); 991 } 992 bitField0_ |= 0x00000002; 993 code_ = value.getNumber(); 994 onChanged(); 995 return this; 996 } 997 /** 998 * 999 * 1000 * <pre> 1001 * Outcome of the transformation. 1002 * </pre> 1003 * 1004 * <code>.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; 1005 * </code> 1006 * 1007 * @return This builder for chaining. 1008 */ clearCode()1009 public Builder clearCode() { 1010 bitField0_ = (bitField0_ & ~0x00000002); 1011 code_ = 0; 1012 onChanged(); 1013 return this; 1014 } 1015 1016 private java.lang.Object details_ = ""; 1017 /** 1018 * 1019 * 1020 * <pre> 1021 * A place for warnings or errors to show up if a transformation didn't 1022 * work as expected. 1023 * </pre> 1024 * 1025 * <code>string details = 3;</code> 1026 * 1027 * @return The details. 1028 */ getDetails()1029 public java.lang.String getDetails() { 1030 java.lang.Object ref = details_; 1031 if (!(ref instanceof java.lang.String)) { 1032 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1033 java.lang.String s = bs.toStringUtf8(); 1034 details_ = s; 1035 return s; 1036 } else { 1037 return (java.lang.String) ref; 1038 } 1039 } 1040 /** 1041 * 1042 * 1043 * <pre> 1044 * A place for warnings or errors to show up if a transformation didn't 1045 * work as expected. 1046 * </pre> 1047 * 1048 * <code>string details = 3;</code> 1049 * 1050 * @return The bytes for details. 1051 */ getDetailsBytes()1052 public com.google.protobuf.ByteString getDetailsBytes() { 1053 java.lang.Object ref = details_; 1054 if (ref instanceof String) { 1055 com.google.protobuf.ByteString b = 1056 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1057 details_ = b; 1058 return b; 1059 } else { 1060 return (com.google.protobuf.ByteString) ref; 1061 } 1062 } 1063 /** 1064 * 1065 * 1066 * <pre> 1067 * A place for warnings or errors to show up if a transformation didn't 1068 * work as expected. 1069 * </pre> 1070 * 1071 * <code>string details = 3;</code> 1072 * 1073 * @param value The details to set. 1074 * @return This builder for chaining. 1075 */ setDetails(java.lang.String value)1076 public Builder setDetails(java.lang.String value) { 1077 if (value == null) { 1078 throw new NullPointerException(); 1079 } 1080 details_ = value; 1081 bitField0_ |= 0x00000004; 1082 onChanged(); 1083 return this; 1084 } 1085 /** 1086 * 1087 * 1088 * <pre> 1089 * A place for warnings or errors to show up if a transformation didn't 1090 * work as expected. 1091 * </pre> 1092 * 1093 * <code>string details = 3;</code> 1094 * 1095 * @return This builder for chaining. 1096 */ clearDetails()1097 public Builder clearDetails() { 1098 details_ = getDefaultInstance().getDetails(); 1099 bitField0_ = (bitField0_ & ~0x00000004); 1100 onChanged(); 1101 return this; 1102 } 1103 /** 1104 * 1105 * 1106 * <pre> 1107 * A place for warnings or errors to show up if a transformation didn't 1108 * work as expected. 1109 * </pre> 1110 * 1111 * <code>string details = 3;</code> 1112 * 1113 * @param value The bytes for details to set. 1114 * @return This builder for chaining. 1115 */ setDetailsBytes(com.google.protobuf.ByteString value)1116 public Builder setDetailsBytes(com.google.protobuf.ByteString value) { 1117 if (value == null) { 1118 throw new NullPointerException(); 1119 } 1120 checkByteStringIsUtf8(value); 1121 details_ = value; 1122 bitField0_ |= 0x00000004; 1123 onChanged(); 1124 return this; 1125 } 1126 1127 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1128 public final Builder setUnknownFields( 1129 final com.google.protobuf.UnknownFieldSet unknownFields) { 1130 return super.setUnknownFields(unknownFields); 1131 } 1132 1133 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1134 public final Builder mergeUnknownFields( 1135 final com.google.protobuf.UnknownFieldSet unknownFields) { 1136 return super.mergeUnknownFields(unknownFields); 1137 } 1138 1139 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.TransformationSummary.SummaryResult) 1140 } 1141 1142 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationSummary.SummaryResult) 1143 private static final com.google.privacy.dlp.v2.TransformationSummary.SummaryResult 1144 DEFAULT_INSTANCE; 1145 1146 static { 1147 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationSummary.SummaryResult(); 1148 } 1149 1150 public static com.google.privacy.dlp.v2.TransformationSummary.SummaryResult getDefaultInstance()1151 getDefaultInstance() { 1152 return DEFAULT_INSTANCE; 1153 } 1154 1155 private static final com.google.protobuf.Parser<SummaryResult> PARSER = 1156 new com.google.protobuf.AbstractParser<SummaryResult>() { 1157 @java.lang.Override 1158 public SummaryResult parsePartialFrom( 1159 com.google.protobuf.CodedInputStream input, 1160 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1161 throws com.google.protobuf.InvalidProtocolBufferException { 1162 Builder builder = newBuilder(); 1163 try { 1164 builder.mergeFrom(input, extensionRegistry); 1165 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1166 throw e.setUnfinishedMessage(builder.buildPartial()); 1167 } catch (com.google.protobuf.UninitializedMessageException e) { 1168 throw e.asInvalidProtocolBufferException() 1169 .setUnfinishedMessage(builder.buildPartial()); 1170 } catch (java.io.IOException e) { 1171 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1172 .setUnfinishedMessage(builder.buildPartial()); 1173 } 1174 return builder.buildPartial(); 1175 } 1176 }; 1177 parser()1178 public static com.google.protobuf.Parser<SummaryResult> parser() { 1179 return PARSER; 1180 } 1181 1182 @java.lang.Override getParserForType()1183 public com.google.protobuf.Parser<SummaryResult> getParserForType() { 1184 return PARSER; 1185 } 1186 1187 @java.lang.Override 1188 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult getDefaultInstanceForType()1189 getDefaultInstanceForType() { 1190 return DEFAULT_INSTANCE; 1191 } 1192 } 1193 1194 public static final int INFO_TYPE_FIELD_NUMBER = 1; 1195 private com.google.privacy.dlp.v2.InfoType infoType_; 1196 /** 1197 * 1198 * 1199 * <pre> 1200 * Set if the transformation was limited to a specific InfoType. 1201 * </pre> 1202 * 1203 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 1204 * 1205 * @return Whether the infoType field is set. 1206 */ 1207 @java.lang.Override hasInfoType()1208 public boolean hasInfoType() { 1209 return infoType_ != null; 1210 } 1211 /** 1212 * 1213 * 1214 * <pre> 1215 * Set if the transformation was limited to a specific InfoType. 1216 * </pre> 1217 * 1218 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 1219 * 1220 * @return The infoType. 1221 */ 1222 @java.lang.Override getInfoType()1223 public com.google.privacy.dlp.v2.InfoType getInfoType() { 1224 return infoType_ == null ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() : infoType_; 1225 } 1226 /** 1227 * 1228 * 1229 * <pre> 1230 * Set if the transformation was limited to a specific InfoType. 1231 * </pre> 1232 * 1233 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 1234 */ 1235 @java.lang.Override getInfoTypeOrBuilder()1236 public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { 1237 return infoType_ == null ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() : infoType_; 1238 } 1239 1240 public static final int FIELD_FIELD_NUMBER = 2; 1241 private com.google.privacy.dlp.v2.FieldId field_; 1242 /** 1243 * 1244 * 1245 * <pre> 1246 * Set if the transformation was limited to a specific FieldId. 1247 * </pre> 1248 * 1249 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 1250 * 1251 * @return Whether the field field is set. 1252 */ 1253 @java.lang.Override hasField()1254 public boolean hasField() { 1255 return field_ != null; 1256 } 1257 /** 1258 * 1259 * 1260 * <pre> 1261 * Set if the transformation was limited to a specific FieldId. 1262 * </pre> 1263 * 1264 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 1265 * 1266 * @return The field. 1267 */ 1268 @java.lang.Override getField()1269 public com.google.privacy.dlp.v2.FieldId getField() { 1270 return field_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : field_; 1271 } 1272 /** 1273 * 1274 * 1275 * <pre> 1276 * Set if the transformation was limited to a specific FieldId. 1277 * </pre> 1278 * 1279 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 1280 */ 1281 @java.lang.Override getFieldOrBuilder()1282 public com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldOrBuilder() { 1283 return field_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : field_; 1284 } 1285 1286 public static final int TRANSFORMATION_FIELD_NUMBER = 3; 1287 private com.google.privacy.dlp.v2.PrimitiveTransformation transformation_; 1288 /** 1289 * 1290 * 1291 * <pre> 1292 * The specific transformation these stats apply to. 1293 * </pre> 1294 * 1295 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 1296 * 1297 * @return Whether the transformation field is set. 1298 */ 1299 @java.lang.Override hasTransformation()1300 public boolean hasTransformation() { 1301 return transformation_ != null; 1302 } 1303 /** 1304 * 1305 * 1306 * <pre> 1307 * The specific transformation these stats apply to. 1308 * </pre> 1309 * 1310 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 1311 * 1312 * @return The transformation. 1313 */ 1314 @java.lang.Override getTransformation()1315 public com.google.privacy.dlp.v2.PrimitiveTransformation getTransformation() { 1316 return transformation_ == null 1317 ? com.google.privacy.dlp.v2.PrimitiveTransformation.getDefaultInstance() 1318 : transformation_; 1319 } 1320 /** 1321 * 1322 * 1323 * <pre> 1324 * The specific transformation these stats apply to. 1325 * </pre> 1326 * 1327 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 1328 */ 1329 @java.lang.Override getTransformationOrBuilder()1330 public com.google.privacy.dlp.v2.PrimitiveTransformationOrBuilder getTransformationOrBuilder() { 1331 return transformation_ == null 1332 ? com.google.privacy.dlp.v2.PrimitiveTransformation.getDefaultInstance() 1333 : transformation_; 1334 } 1335 1336 public static final int FIELD_TRANSFORMATIONS_FIELD_NUMBER = 5; 1337 1338 @SuppressWarnings("serial") 1339 private java.util.List<com.google.privacy.dlp.v2.FieldTransformation> fieldTransformations_; 1340 /** 1341 * 1342 * 1343 * <pre> 1344 * The field transformation that was applied. 1345 * If multiple field transformations are requested for a single field, 1346 * this list will contain all of them; otherwise, only one is supplied. 1347 * </pre> 1348 * 1349 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 1350 */ 1351 @java.lang.Override 1352 public java.util.List<com.google.privacy.dlp.v2.FieldTransformation> getFieldTransformationsList()1353 getFieldTransformationsList() { 1354 return fieldTransformations_; 1355 } 1356 /** 1357 * 1358 * 1359 * <pre> 1360 * The field transformation that was applied. 1361 * If multiple field transformations are requested for a single field, 1362 * this list will contain all of them; otherwise, only one is supplied. 1363 * </pre> 1364 * 1365 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 1366 */ 1367 @java.lang.Override 1368 public java.util.List<? extends com.google.privacy.dlp.v2.FieldTransformationOrBuilder> getFieldTransformationsOrBuilderList()1369 getFieldTransformationsOrBuilderList() { 1370 return fieldTransformations_; 1371 } 1372 /** 1373 * 1374 * 1375 * <pre> 1376 * The field transformation that was applied. 1377 * If multiple field transformations are requested for a single field, 1378 * this list will contain all of them; otherwise, only one is supplied. 1379 * </pre> 1380 * 1381 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 1382 */ 1383 @java.lang.Override getFieldTransformationsCount()1384 public int getFieldTransformationsCount() { 1385 return fieldTransformations_.size(); 1386 } 1387 /** 1388 * 1389 * 1390 * <pre> 1391 * The field transformation that was applied. 1392 * If multiple field transformations are requested for a single field, 1393 * this list will contain all of them; otherwise, only one is supplied. 1394 * </pre> 1395 * 1396 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 1397 */ 1398 @java.lang.Override getFieldTransformations(int index)1399 public com.google.privacy.dlp.v2.FieldTransformation getFieldTransformations(int index) { 1400 return fieldTransformations_.get(index); 1401 } 1402 /** 1403 * 1404 * 1405 * <pre> 1406 * The field transformation that was applied. 1407 * If multiple field transformations are requested for a single field, 1408 * this list will contain all of them; otherwise, only one is supplied. 1409 * </pre> 1410 * 1411 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 1412 */ 1413 @java.lang.Override getFieldTransformationsOrBuilder( int index)1414 public com.google.privacy.dlp.v2.FieldTransformationOrBuilder getFieldTransformationsOrBuilder( 1415 int index) { 1416 return fieldTransformations_.get(index); 1417 } 1418 1419 public static final int RECORD_SUPPRESS_FIELD_NUMBER = 6; 1420 private com.google.privacy.dlp.v2.RecordSuppression recordSuppress_; 1421 /** 1422 * 1423 * 1424 * <pre> 1425 * The specific suppression option these stats apply to. 1426 * </pre> 1427 * 1428 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 1429 * 1430 * @return Whether the recordSuppress field is set. 1431 */ 1432 @java.lang.Override hasRecordSuppress()1433 public boolean hasRecordSuppress() { 1434 return recordSuppress_ != null; 1435 } 1436 /** 1437 * 1438 * 1439 * <pre> 1440 * The specific suppression option these stats apply to. 1441 * </pre> 1442 * 1443 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 1444 * 1445 * @return The recordSuppress. 1446 */ 1447 @java.lang.Override getRecordSuppress()1448 public com.google.privacy.dlp.v2.RecordSuppression getRecordSuppress() { 1449 return recordSuppress_ == null 1450 ? com.google.privacy.dlp.v2.RecordSuppression.getDefaultInstance() 1451 : recordSuppress_; 1452 } 1453 /** 1454 * 1455 * 1456 * <pre> 1457 * The specific suppression option these stats apply to. 1458 * </pre> 1459 * 1460 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 1461 */ 1462 @java.lang.Override getRecordSuppressOrBuilder()1463 public com.google.privacy.dlp.v2.RecordSuppressionOrBuilder getRecordSuppressOrBuilder() { 1464 return recordSuppress_ == null 1465 ? com.google.privacy.dlp.v2.RecordSuppression.getDefaultInstance() 1466 : recordSuppress_; 1467 } 1468 1469 public static final int RESULTS_FIELD_NUMBER = 4; 1470 1471 @SuppressWarnings("serial") 1472 private java.util.List<com.google.privacy.dlp.v2.TransformationSummary.SummaryResult> results_; 1473 /** 1474 * 1475 * 1476 * <pre> 1477 * Collection of all transformations that took place or had an error. 1478 * </pre> 1479 * 1480 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 1481 */ 1482 @java.lang.Override 1483 public java.util.List<com.google.privacy.dlp.v2.TransformationSummary.SummaryResult> getResultsList()1484 getResultsList() { 1485 return results_; 1486 } 1487 /** 1488 * 1489 * 1490 * <pre> 1491 * Collection of all transformations that took place or had an error. 1492 * </pre> 1493 * 1494 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 1495 */ 1496 @java.lang.Override 1497 public java.util.List< 1498 ? extends com.google.privacy.dlp.v2.TransformationSummary.SummaryResultOrBuilder> getResultsOrBuilderList()1499 getResultsOrBuilderList() { 1500 return results_; 1501 } 1502 /** 1503 * 1504 * 1505 * <pre> 1506 * Collection of all transformations that took place or had an error. 1507 * </pre> 1508 * 1509 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 1510 */ 1511 @java.lang.Override getResultsCount()1512 public int getResultsCount() { 1513 return results_.size(); 1514 } 1515 /** 1516 * 1517 * 1518 * <pre> 1519 * Collection of all transformations that took place or had an error. 1520 * </pre> 1521 * 1522 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 1523 */ 1524 @java.lang.Override getResults(int index)1525 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult getResults(int index) { 1526 return results_.get(index); 1527 } 1528 /** 1529 * 1530 * 1531 * <pre> 1532 * Collection of all transformations that took place or had an error. 1533 * </pre> 1534 * 1535 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 1536 */ 1537 @java.lang.Override getResultsOrBuilder( int index)1538 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResultOrBuilder getResultsOrBuilder( 1539 int index) { 1540 return results_.get(index); 1541 } 1542 1543 public static final int TRANSFORMED_BYTES_FIELD_NUMBER = 7; 1544 private long transformedBytes_ = 0L; 1545 /** 1546 * 1547 * 1548 * <pre> 1549 * Total size in bytes that were transformed in some way. 1550 * </pre> 1551 * 1552 * <code>int64 transformed_bytes = 7;</code> 1553 * 1554 * @return The transformedBytes. 1555 */ 1556 @java.lang.Override getTransformedBytes()1557 public long getTransformedBytes() { 1558 return transformedBytes_; 1559 } 1560 1561 private byte memoizedIsInitialized = -1; 1562 1563 @java.lang.Override isInitialized()1564 public final boolean isInitialized() { 1565 byte isInitialized = memoizedIsInitialized; 1566 if (isInitialized == 1) return true; 1567 if (isInitialized == 0) return false; 1568 1569 memoizedIsInitialized = 1; 1570 return true; 1571 } 1572 1573 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1574 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1575 if (infoType_ != null) { 1576 output.writeMessage(1, getInfoType()); 1577 } 1578 if (field_ != null) { 1579 output.writeMessage(2, getField()); 1580 } 1581 if (transformation_ != null) { 1582 output.writeMessage(3, getTransformation()); 1583 } 1584 for (int i = 0; i < results_.size(); i++) { 1585 output.writeMessage(4, results_.get(i)); 1586 } 1587 for (int i = 0; i < fieldTransformations_.size(); i++) { 1588 output.writeMessage(5, fieldTransformations_.get(i)); 1589 } 1590 if (recordSuppress_ != null) { 1591 output.writeMessage(6, getRecordSuppress()); 1592 } 1593 if (transformedBytes_ != 0L) { 1594 output.writeInt64(7, transformedBytes_); 1595 } 1596 getUnknownFields().writeTo(output); 1597 } 1598 1599 @java.lang.Override getSerializedSize()1600 public int getSerializedSize() { 1601 int size = memoizedSize; 1602 if (size != -1) return size; 1603 1604 size = 0; 1605 if (infoType_ != null) { 1606 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfoType()); 1607 } 1608 if (field_ != null) { 1609 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getField()); 1610 } 1611 if (transformation_ != null) { 1612 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTransformation()); 1613 } 1614 for (int i = 0; i < results_.size(); i++) { 1615 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, results_.get(i)); 1616 } 1617 for (int i = 0; i < fieldTransformations_.size(); i++) { 1618 size += 1619 com.google.protobuf.CodedOutputStream.computeMessageSize(5, fieldTransformations_.get(i)); 1620 } 1621 if (recordSuppress_ != null) { 1622 size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRecordSuppress()); 1623 } 1624 if (transformedBytes_ != 0L) { 1625 size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, transformedBytes_); 1626 } 1627 size += getUnknownFields().getSerializedSize(); 1628 memoizedSize = size; 1629 return size; 1630 } 1631 1632 @java.lang.Override equals(final java.lang.Object obj)1633 public boolean equals(final java.lang.Object obj) { 1634 if (obj == this) { 1635 return true; 1636 } 1637 if (!(obj instanceof com.google.privacy.dlp.v2.TransformationSummary)) { 1638 return super.equals(obj); 1639 } 1640 com.google.privacy.dlp.v2.TransformationSummary other = 1641 (com.google.privacy.dlp.v2.TransformationSummary) obj; 1642 1643 if (hasInfoType() != other.hasInfoType()) return false; 1644 if (hasInfoType()) { 1645 if (!getInfoType().equals(other.getInfoType())) return false; 1646 } 1647 if (hasField() != other.hasField()) return false; 1648 if (hasField()) { 1649 if (!getField().equals(other.getField())) return false; 1650 } 1651 if (hasTransformation() != other.hasTransformation()) return false; 1652 if (hasTransformation()) { 1653 if (!getTransformation().equals(other.getTransformation())) return false; 1654 } 1655 if (!getFieldTransformationsList().equals(other.getFieldTransformationsList())) return false; 1656 if (hasRecordSuppress() != other.hasRecordSuppress()) return false; 1657 if (hasRecordSuppress()) { 1658 if (!getRecordSuppress().equals(other.getRecordSuppress())) return false; 1659 } 1660 if (!getResultsList().equals(other.getResultsList())) return false; 1661 if (getTransformedBytes() != other.getTransformedBytes()) return false; 1662 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1663 return true; 1664 } 1665 1666 @java.lang.Override hashCode()1667 public int hashCode() { 1668 if (memoizedHashCode != 0) { 1669 return memoizedHashCode; 1670 } 1671 int hash = 41; 1672 hash = (19 * hash) + getDescriptor().hashCode(); 1673 if (hasInfoType()) { 1674 hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER; 1675 hash = (53 * hash) + getInfoType().hashCode(); 1676 } 1677 if (hasField()) { 1678 hash = (37 * hash) + FIELD_FIELD_NUMBER; 1679 hash = (53 * hash) + getField().hashCode(); 1680 } 1681 if (hasTransformation()) { 1682 hash = (37 * hash) + TRANSFORMATION_FIELD_NUMBER; 1683 hash = (53 * hash) + getTransformation().hashCode(); 1684 } 1685 if (getFieldTransformationsCount() > 0) { 1686 hash = (37 * hash) + FIELD_TRANSFORMATIONS_FIELD_NUMBER; 1687 hash = (53 * hash) + getFieldTransformationsList().hashCode(); 1688 } 1689 if (hasRecordSuppress()) { 1690 hash = (37 * hash) + RECORD_SUPPRESS_FIELD_NUMBER; 1691 hash = (53 * hash) + getRecordSuppress().hashCode(); 1692 } 1693 if (getResultsCount() > 0) { 1694 hash = (37 * hash) + RESULTS_FIELD_NUMBER; 1695 hash = (53 * hash) + getResultsList().hashCode(); 1696 } 1697 hash = (37 * hash) + TRANSFORMED_BYTES_FIELD_NUMBER; 1698 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTransformedBytes()); 1699 hash = (29 * hash) + getUnknownFields().hashCode(); 1700 memoizedHashCode = hash; 1701 return hash; 1702 } 1703 parseFrom(java.nio.ByteBuffer data)1704 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom(java.nio.ByteBuffer data) 1705 throws com.google.protobuf.InvalidProtocolBufferException { 1706 return PARSER.parseFrom(data); 1707 } 1708 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1709 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom( 1710 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1711 throws com.google.protobuf.InvalidProtocolBufferException { 1712 return PARSER.parseFrom(data, extensionRegistry); 1713 } 1714 parseFrom( com.google.protobuf.ByteString data)1715 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom( 1716 com.google.protobuf.ByteString data) 1717 throws com.google.protobuf.InvalidProtocolBufferException { 1718 return PARSER.parseFrom(data); 1719 } 1720 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1721 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom( 1722 com.google.protobuf.ByteString data, 1723 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1724 throws com.google.protobuf.InvalidProtocolBufferException { 1725 return PARSER.parseFrom(data, extensionRegistry); 1726 } 1727 parseFrom(byte[] data)1728 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom(byte[] data) 1729 throws com.google.protobuf.InvalidProtocolBufferException { 1730 return PARSER.parseFrom(data); 1731 } 1732 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1733 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom( 1734 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1735 throws com.google.protobuf.InvalidProtocolBufferException { 1736 return PARSER.parseFrom(data, extensionRegistry); 1737 } 1738 parseFrom(java.io.InputStream input)1739 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom(java.io.InputStream input) 1740 throws java.io.IOException { 1741 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1742 } 1743 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1744 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom( 1745 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1746 throws java.io.IOException { 1747 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1748 PARSER, input, extensionRegistry); 1749 } 1750 parseDelimitedFrom( java.io.InputStream input)1751 public static com.google.privacy.dlp.v2.TransformationSummary parseDelimitedFrom( 1752 java.io.InputStream input) throws java.io.IOException { 1753 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1754 } 1755 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1756 public static com.google.privacy.dlp.v2.TransformationSummary parseDelimitedFrom( 1757 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1758 throws java.io.IOException { 1759 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1760 PARSER, input, extensionRegistry); 1761 } 1762 parseFrom( com.google.protobuf.CodedInputStream input)1763 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom( 1764 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1765 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1766 } 1767 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1768 public static com.google.privacy.dlp.v2.TransformationSummary parseFrom( 1769 com.google.protobuf.CodedInputStream input, 1770 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1771 throws java.io.IOException { 1772 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1773 PARSER, input, extensionRegistry); 1774 } 1775 1776 @java.lang.Override newBuilderForType()1777 public Builder newBuilderForType() { 1778 return newBuilder(); 1779 } 1780 newBuilder()1781 public static Builder newBuilder() { 1782 return DEFAULT_INSTANCE.toBuilder(); 1783 } 1784 newBuilder(com.google.privacy.dlp.v2.TransformationSummary prototype)1785 public static Builder newBuilder(com.google.privacy.dlp.v2.TransformationSummary prototype) { 1786 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1787 } 1788 1789 @java.lang.Override toBuilder()1790 public Builder toBuilder() { 1791 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1792 } 1793 1794 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1795 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1796 Builder builder = new Builder(parent); 1797 return builder; 1798 } 1799 /** 1800 * 1801 * 1802 * <pre> 1803 * Summary of a single transformation. 1804 * Only one of 'transformation', 'field_transformation', or 'record_suppress' 1805 * will be set. 1806 * </pre> 1807 * 1808 * Protobuf type {@code google.privacy.dlp.v2.TransformationSummary} 1809 */ 1810 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1811 implements 1812 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationSummary) 1813 com.google.privacy.dlp.v2.TransformationSummaryOrBuilder { getDescriptor()1814 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1815 return com.google.privacy.dlp.v2.DlpProto 1816 .internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor; 1817 } 1818 1819 @java.lang.Override 1820 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1821 internalGetFieldAccessorTable() { 1822 return com.google.privacy.dlp.v2.DlpProto 1823 .internal_static_google_privacy_dlp_v2_TransformationSummary_fieldAccessorTable 1824 .ensureFieldAccessorsInitialized( 1825 com.google.privacy.dlp.v2.TransformationSummary.class, 1826 com.google.privacy.dlp.v2.TransformationSummary.Builder.class); 1827 } 1828 1829 // Construct using com.google.privacy.dlp.v2.TransformationSummary.newBuilder() Builder()1830 private Builder() {} 1831 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1832 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1833 super(parent); 1834 } 1835 1836 @java.lang.Override clear()1837 public Builder clear() { 1838 super.clear(); 1839 bitField0_ = 0; 1840 infoType_ = null; 1841 if (infoTypeBuilder_ != null) { 1842 infoTypeBuilder_.dispose(); 1843 infoTypeBuilder_ = null; 1844 } 1845 field_ = null; 1846 if (fieldBuilder_ != null) { 1847 fieldBuilder_.dispose(); 1848 fieldBuilder_ = null; 1849 } 1850 transformation_ = null; 1851 if (transformationBuilder_ != null) { 1852 transformationBuilder_.dispose(); 1853 transformationBuilder_ = null; 1854 } 1855 if (fieldTransformationsBuilder_ == null) { 1856 fieldTransformations_ = java.util.Collections.emptyList(); 1857 } else { 1858 fieldTransformations_ = null; 1859 fieldTransformationsBuilder_.clear(); 1860 } 1861 bitField0_ = (bitField0_ & ~0x00000008); 1862 recordSuppress_ = null; 1863 if (recordSuppressBuilder_ != null) { 1864 recordSuppressBuilder_.dispose(); 1865 recordSuppressBuilder_ = null; 1866 } 1867 if (resultsBuilder_ == null) { 1868 results_ = java.util.Collections.emptyList(); 1869 } else { 1870 results_ = null; 1871 resultsBuilder_.clear(); 1872 } 1873 bitField0_ = (bitField0_ & ~0x00000020); 1874 transformedBytes_ = 0L; 1875 return this; 1876 } 1877 1878 @java.lang.Override getDescriptorForType()1879 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1880 return com.google.privacy.dlp.v2.DlpProto 1881 .internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor; 1882 } 1883 1884 @java.lang.Override getDefaultInstanceForType()1885 public com.google.privacy.dlp.v2.TransformationSummary getDefaultInstanceForType() { 1886 return com.google.privacy.dlp.v2.TransformationSummary.getDefaultInstance(); 1887 } 1888 1889 @java.lang.Override build()1890 public com.google.privacy.dlp.v2.TransformationSummary build() { 1891 com.google.privacy.dlp.v2.TransformationSummary result = buildPartial(); 1892 if (!result.isInitialized()) { 1893 throw newUninitializedMessageException(result); 1894 } 1895 return result; 1896 } 1897 1898 @java.lang.Override buildPartial()1899 public com.google.privacy.dlp.v2.TransformationSummary buildPartial() { 1900 com.google.privacy.dlp.v2.TransformationSummary result = 1901 new com.google.privacy.dlp.v2.TransformationSummary(this); 1902 buildPartialRepeatedFields(result); 1903 if (bitField0_ != 0) { 1904 buildPartial0(result); 1905 } 1906 onBuilt(); 1907 return result; 1908 } 1909 buildPartialRepeatedFields( com.google.privacy.dlp.v2.TransformationSummary result)1910 private void buildPartialRepeatedFields( 1911 com.google.privacy.dlp.v2.TransformationSummary result) { 1912 if (fieldTransformationsBuilder_ == null) { 1913 if (((bitField0_ & 0x00000008) != 0)) { 1914 fieldTransformations_ = java.util.Collections.unmodifiableList(fieldTransformations_); 1915 bitField0_ = (bitField0_ & ~0x00000008); 1916 } 1917 result.fieldTransformations_ = fieldTransformations_; 1918 } else { 1919 result.fieldTransformations_ = fieldTransformationsBuilder_.build(); 1920 } 1921 if (resultsBuilder_ == null) { 1922 if (((bitField0_ & 0x00000020) != 0)) { 1923 results_ = java.util.Collections.unmodifiableList(results_); 1924 bitField0_ = (bitField0_ & ~0x00000020); 1925 } 1926 result.results_ = results_; 1927 } else { 1928 result.results_ = resultsBuilder_.build(); 1929 } 1930 } 1931 buildPartial0(com.google.privacy.dlp.v2.TransformationSummary result)1932 private void buildPartial0(com.google.privacy.dlp.v2.TransformationSummary result) { 1933 int from_bitField0_ = bitField0_; 1934 if (((from_bitField0_ & 0x00000001) != 0)) { 1935 result.infoType_ = infoTypeBuilder_ == null ? infoType_ : infoTypeBuilder_.build(); 1936 } 1937 if (((from_bitField0_ & 0x00000002) != 0)) { 1938 result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build(); 1939 } 1940 if (((from_bitField0_ & 0x00000004) != 0)) { 1941 result.transformation_ = 1942 transformationBuilder_ == null ? transformation_ : transformationBuilder_.build(); 1943 } 1944 if (((from_bitField0_ & 0x00000010) != 0)) { 1945 result.recordSuppress_ = 1946 recordSuppressBuilder_ == null ? recordSuppress_ : recordSuppressBuilder_.build(); 1947 } 1948 if (((from_bitField0_ & 0x00000040) != 0)) { 1949 result.transformedBytes_ = transformedBytes_; 1950 } 1951 } 1952 1953 @java.lang.Override clone()1954 public Builder clone() { 1955 return super.clone(); 1956 } 1957 1958 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1959 public Builder setField( 1960 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1961 return super.setField(field, value); 1962 } 1963 1964 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1965 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1966 return super.clearField(field); 1967 } 1968 1969 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1970 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1971 return super.clearOneof(oneof); 1972 } 1973 1974 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1975 public Builder setRepeatedField( 1976 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1977 return super.setRepeatedField(field, index, value); 1978 } 1979 1980 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1981 public Builder addRepeatedField( 1982 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1983 return super.addRepeatedField(field, value); 1984 } 1985 1986 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1987 public Builder mergeFrom(com.google.protobuf.Message other) { 1988 if (other instanceof com.google.privacy.dlp.v2.TransformationSummary) { 1989 return mergeFrom((com.google.privacy.dlp.v2.TransformationSummary) other); 1990 } else { 1991 super.mergeFrom(other); 1992 return this; 1993 } 1994 } 1995 mergeFrom(com.google.privacy.dlp.v2.TransformationSummary other)1996 public Builder mergeFrom(com.google.privacy.dlp.v2.TransformationSummary other) { 1997 if (other == com.google.privacy.dlp.v2.TransformationSummary.getDefaultInstance()) 1998 return this; 1999 if (other.hasInfoType()) { 2000 mergeInfoType(other.getInfoType()); 2001 } 2002 if (other.hasField()) { 2003 mergeField(other.getField()); 2004 } 2005 if (other.hasTransformation()) { 2006 mergeTransformation(other.getTransformation()); 2007 } 2008 if (fieldTransformationsBuilder_ == null) { 2009 if (!other.fieldTransformations_.isEmpty()) { 2010 if (fieldTransformations_.isEmpty()) { 2011 fieldTransformations_ = other.fieldTransformations_; 2012 bitField0_ = (bitField0_ & ~0x00000008); 2013 } else { 2014 ensureFieldTransformationsIsMutable(); 2015 fieldTransformations_.addAll(other.fieldTransformations_); 2016 } 2017 onChanged(); 2018 } 2019 } else { 2020 if (!other.fieldTransformations_.isEmpty()) { 2021 if (fieldTransformationsBuilder_.isEmpty()) { 2022 fieldTransformationsBuilder_.dispose(); 2023 fieldTransformationsBuilder_ = null; 2024 fieldTransformations_ = other.fieldTransformations_; 2025 bitField0_ = (bitField0_ & ~0x00000008); 2026 fieldTransformationsBuilder_ = 2027 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2028 ? getFieldTransformationsFieldBuilder() 2029 : null; 2030 } else { 2031 fieldTransformationsBuilder_.addAllMessages(other.fieldTransformations_); 2032 } 2033 } 2034 } 2035 if (other.hasRecordSuppress()) { 2036 mergeRecordSuppress(other.getRecordSuppress()); 2037 } 2038 if (resultsBuilder_ == null) { 2039 if (!other.results_.isEmpty()) { 2040 if (results_.isEmpty()) { 2041 results_ = other.results_; 2042 bitField0_ = (bitField0_ & ~0x00000020); 2043 } else { 2044 ensureResultsIsMutable(); 2045 results_.addAll(other.results_); 2046 } 2047 onChanged(); 2048 } 2049 } else { 2050 if (!other.results_.isEmpty()) { 2051 if (resultsBuilder_.isEmpty()) { 2052 resultsBuilder_.dispose(); 2053 resultsBuilder_ = null; 2054 results_ = other.results_; 2055 bitField0_ = (bitField0_ & ~0x00000020); 2056 resultsBuilder_ = 2057 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2058 ? getResultsFieldBuilder() 2059 : null; 2060 } else { 2061 resultsBuilder_.addAllMessages(other.results_); 2062 } 2063 } 2064 } 2065 if (other.getTransformedBytes() != 0L) { 2066 setTransformedBytes(other.getTransformedBytes()); 2067 } 2068 this.mergeUnknownFields(other.getUnknownFields()); 2069 onChanged(); 2070 return this; 2071 } 2072 2073 @java.lang.Override isInitialized()2074 public final boolean isInitialized() { 2075 return true; 2076 } 2077 2078 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2079 public Builder mergeFrom( 2080 com.google.protobuf.CodedInputStream input, 2081 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2082 throws java.io.IOException { 2083 if (extensionRegistry == null) { 2084 throw new java.lang.NullPointerException(); 2085 } 2086 try { 2087 boolean done = false; 2088 while (!done) { 2089 int tag = input.readTag(); 2090 switch (tag) { 2091 case 0: 2092 done = true; 2093 break; 2094 case 10: 2095 { 2096 input.readMessage(getInfoTypeFieldBuilder().getBuilder(), extensionRegistry); 2097 bitField0_ |= 0x00000001; 2098 break; 2099 } // case 10 2100 case 18: 2101 { 2102 input.readMessage(getFieldFieldBuilder().getBuilder(), extensionRegistry); 2103 bitField0_ |= 0x00000002; 2104 break; 2105 } // case 18 2106 case 26: 2107 { 2108 input.readMessage(getTransformationFieldBuilder().getBuilder(), extensionRegistry); 2109 bitField0_ |= 0x00000004; 2110 break; 2111 } // case 26 2112 case 34: 2113 { 2114 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult m = 2115 input.readMessage( 2116 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.parser(), 2117 extensionRegistry); 2118 if (resultsBuilder_ == null) { 2119 ensureResultsIsMutable(); 2120 results_.add(m); 2121 } else { 2122 resultsBuilder_.addMessage(m); 2123 } 2124 break; 2125 } // case 34 2126 case 42: 2127 { 2128 com.google.privacy.dlp.v2.FieldTransformation m = 2129 input.readMessage( 2130 com.google.privacy.dlp.v2.FieldTransformation.parser(), extensionRegistry); 2131 if (fieldTransformationsBuilder_ == null) { 2132 ensureFieldTransformationsIsMutable(); 2133 fieldTransformations_.add(m); 2134 } else { 2135 fieldTransformationsBuilder_.addMessage(m); 2136 } 2137 break; 2138 } // case 42 2139 case 50: 2140 { 2141 input.readMessage(getRecordSuppressFieldBuilder().getBuilder(), extensionRegistry); 2142 bitField0_ |= 0x00000010; 2143 break; 2144 } // case 50 2145 case 56: 2146 { 2147 transformedBytes_ = input.readInt64(); 2148 bitField0_ |= 0x00000040; 2149 break; 2150 } // case 56 2151 default: 2152 { 2153 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2154 done = true; // was an endgroup tag 2155 } 2156 break; 2157 } // default: 2158 } // switch (tag) 2159 } // while (!done) 2160 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2161 throw e.unwrapIOException(); 2162 } finally { 2163 onChanged(); 2164 } // finally 2165 return this; 2166 } 2167 2168 private int bitField0_; 2169 2170 private com.google.privacy.dlp.v2.InfoType infoType_; 2171 private com.google.protobuf.SingleFieldBuilderV3< 2172 com.google.privacy.dlp.v2.InfoType, 2173 com.google.privacy.dlp.v2.InfoType.Builder, 2174 com.google.privacy.dlp.v2.InfoTypeOrBuilder> 2175 infoTypeBuilder_; 2176 /** 2177 * 2178 * 2179 * <pre> 2180 * Set if the transformation was limited to a specific InfoType. 2181 * </pre> 2182 * 2183 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 2184 * 2185 * @return Whether the infoType field is set. 2186 */ hasInfoType()2187 public boolean hasInfoType() { 2188 return ((bitField0_ & 0x00000001) != 0); 2189 } 2190 /** 2191 * 2192 * 2193 * <pre> 2194 * Set if the transformation was limited to a specific InfoType. 2195 * </pre> 2196 * 2197 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 2198 * 2199 * @return The infoType. 2200 */ getInfoType()2201 public com.google.privacy.dlp.v2.InfoType getInfoType() { 2202 if (infoTypeBuilder_ == null) { 2203 return infoType_ == null 2204 ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() 2205 : infoType_; 2206 } else { 2207 return infoTypeBuilder_.getMessage(); 2208 } 2209 } 2210 /** 2211 * 2212 * 2213 * <pre> 2214 * Set if the transformation was limited to a specific InfoType. 2215 * </pre> 2216 * 2217 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 2218 */ setInfoType(com.google.privacy.dlp.v2.InfoType value)2219 public Builder setInfoType(com.google.privacy.dlp.v2.InfoType value) { 2220 if (infoTypeBuilder_ == null) { 2221 if (value == null) { 2222 throw new NullPointerException(); 2223 } 2224 infoType_ = value; 2225 } else { 2226 infoTypeBuilder_.setMessage(value); 2227 } 2228 bitField0_ |= 0x00000001; 2229 onChanged(); 2230 return this; 2231 } 2232 /** 2233 * 2234 * 2235 * <pre> 2236 * Set if the transformation was limited to a specific InfoType. 2237 * </pre> 2238 * 2239 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 2240 */ setInfoType(com.google.privacy.dlp.v2.InfoType.Builder builderForValue)2241 public Builder setInfoType(com.google.privacy.dlp.v2.InfoType.Builder builderForValue) { 2242 if (infoTypeBuilder_ == null) { 2243 infoType_ = builderForValue.build(); 2244 } else { 2245 infoTypeBuilder_.setMessage(builderForValue.build()); 2246 } 2247 bitField0_ |= 0x00000001; 2248 onChanged(); 2249 return this; 2250 } 2251 /** 2252 * 2253 * 2254 * <pre> 2255 * Set if the transformation was limited to a specific InfoType. 2256 * </pre> 2257 * 2258 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 2259 */ mergeInfoType(com.google.privacy.dlp.v2.InfoType value)2260 public Builder mergeInfoType(com.google.privacy.dlp.v2.InfoType value) { 2261 if (infoTypeBuilder_ == null) { 2262 if (((bitField0_ & 0x00000001) != 0) 2263 && infoType_ != null 2264 && infoType_ != com.google.privacy.dlp.v2.InfoType.getDefaultInstance()) { 2265 getInfoTypeBuilder().mergeFrom(value); 2266 } else { 2267 infoType_ = value; 2268 } 2269 } else { 2270 infoTypeBuilder_.mergeFrom(value); 2271 } 2272 bitField0_ |= 0x00000001; 2273 onChanged(); 2274 return this; 2275 } 2276 /** 2277 * 2278 * 2279 * <pre> 2280 * Set if the transformation was limited to a specific InfoType. 2281 * </pre> 2282 * 2283 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 2284 */ clearInfoType()2285 public Builder clearInfoType() { 2286 bitField0_ = (bitField0_ & ~0x00000001); 2287 infoType_ = null; 2288 if (infoTypeBuilder_ != null) { 2289 infoTypeBuilder_.dispose(); 2290 infoTypeBuilder_ = null; 2291 } 2292 onChanged(); 2293 return this; 2294 } 2295 /** 2296 * 2297 * 2298 * <pre> 2299 * Set if the transformation was limited to a specific InfoType. 2300 * </pre> 2301 * 2302 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 2303 */ getInfoTypeBuilder()2304 public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypeBuilder() { 2305 bitField0_ |= 0x00000001; 2306 onChanged(); 2307 return getInfoTypeFieldBuilder().getBuilder(); 2308 } 2309 /** 2310 * 2311 * 2312 * <pre> 2313 * Set if the transformation was limited to a specific InfoType. 2314 * </pre> 2315 * 2316 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 2317 */ getInfoTypeOrBuilder()2318 public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { 2319 if (infoTypeBuilder_ != null) { 2320 return infoTypeBuilder_.getMessageOrBuilder(); 2321 } else { 2322 return infoType_ == null 2323 ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() 2324 : infoType_; 2325 } 2326 } 2327 /** 2328 * 2329 * 2330 * <pre> 2331 * Set if the transformation was limited to a specific InfoType. 2332 * </pre> 2333 * 2334 * <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code> 2335 */ 2336 private com.google.protobuf.SingleFieldBuilderV3< 2337 com.google.privacy.dlp.v2.InfoType, 2338 com.google.privacy.dlp.v2.InfoType.Builder, 2339 com.google.privacy.dlp.v2.InfoTypeOrBuilder> getInfoTypeFieldBuilder()2340 getInfoTypeFieldBuilder() { 2341 if (infoTypeBuilder_ == null) { 2342 infoTypeBuilder_ = 2343 new com.google.protobuf.SingleFieldBuilderV3< 2344 com.google.privacy.dlp.v2.InfoType, 2345 com.google.privacy.dlp.v2.InfoType.Builder, 2346 com.google.privacy.dlp.v2.InfoTypeOrBuilder>( 2347 getInfoType(), getParentForChildren(), isClean()); 2348 infoType_ = null; 2349 } 2350 return infoTypeBuilder_; 2351 } 2352 2353 private com.google.privacy.dlp.v2.FieldId field_; 2354 private com.google.protobuf.SingleFieldBuilderV3< 2355 com.google.privacy.dlp.v2.FieldId, 2356 com.google.privacy.dlp.v2.FieldId.Builder, 2357 com.google.privacy.dlp.v2.FieldIdOrBuilder> 2358 fieldBuilder_; 2359 /** 2360 * 2361 * 2362 * <pre> 2363 * Set if the transformation was limited to a specific FieldId. 2364 * </pre> 2365 * 2366 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 2367 * 2368 * @return Whether the field field is set. 2369 */ hasField()2370 public boolean hasField() { 2371 return ((bitField0_ & 0x00000002) != 0); 2372 } 2373 /** 2374 * 2375 * 2376 * <pre> 2377 * Set if the transformation was limited to a specific FieldId. 2378 * </pre> 2379 * 2380 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 2381 * 2382 * @return The field. 2383 */ getField()2384 public com.google.privacy.dlp.v2.FieldId getField() { 2385 if (fieldBuilder_ == null) { 2386 return field_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : field_; 2387 } else { 2388 return fieldBuilder_.getMessage(); 2389 } 2390 } 2391 /** 2392 * 2393 * 2394 * <pre> 2395 * Set if the transformation was limited to a specific FieldId. 2396 * </pre> 2397 * 2398 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 2399 */ setField(com.google.privacy.dlp.v2.FieldId value)2400 public Builder setField(com.google.privacy.dlp.v2.FieldId value) { 2401 if (fieldBuilder_ == null) { 2402 if (value == null) { 2403 throw new NullPointerException(); 2404 } 2405 field_ = value; 2406 } else { 2407 fieldBuilder_.setMessage(value); 2408 } 2409 bitField0_ |= 0x00000002; 2410 onChanged(); 2411 return this; 2412 } 2413 /** 2414 * 2415 * 2416 * <pre> 2417 * Set if the transformation was limited to a specific FieldId. 2418 * </pre> 2419 * 2420 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 2421 */ setField(com.google.privacy.dlp.v2.FieldId.Builder builderForValue)2422 public Builder setField(com.google.privacy.dlp.v2.FieldId.Builder builderForValue) { 2423 if (fieldBuilder_ == null) { 2424 field_ = builderForValue.build(); 2425 } else { 2426 fieldBuilder_.setMessage(builderForValue.build()); 2427 } 2428 bitField0_ |= 0x00000002; 2429 onChanged(); 2430 return this; 2431 } 2432 /** 2433 * 2434 * 2435 * <pre> 2436 * Set if the transformation was limited to a specific FieldId. 2437 * </pre> 2438 * 2439 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 2440 */ mergeField(com.google.privacy.dlp.v2.FieldId value)2441 public Builder mergeField(com.google.privacy.dlp.v2.FieldId value) { 2442 if (fieldBuilder_ == null) { 2443 if (((bitField0_ & 0x00000002) != 0) 2444 && field_ != null 2445 && field_ != com.google.privacy.dlp.v2.FieldId.getDefaultInstance()) { 2446 getFieldBuilder().mergeFrom(value); 2447 } else { 2448 field_ = value; 2449 } 2450 } else { 2451 fieldBuilder_.mergeFrom(value); 2452 } 2453 bitField0_ |= 0x00000002; 2454 onChanged(); 2455 return this; 2456 } 2457 /** 2458 * 2459 * 2460 * <pre> 2461 * Set if the transformation was limited to a specific FieldId. 2462 * </pre> 2463 * 2464 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 2465 */ clearField()2466 public Builder clearField() { 2467 bitField0_ = (bitField0_ & ~0x00000002); 2468 field_ = null; 2469 if (fieldBuilder_ != null) { 2470 fieldBuilder_.dispose(); 2471 fieldBuilder_ = null; 2472 } 2473 onChanged(); 2474 return this; 2475 } 2476 /** 2477 * 2478 * 2479 * <pre> 2480 * Set if the transformation was limited to a specific FieldId. 2481 * </pre> 2482 * 2483 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 2484 */ getFieldBuilder()2485 public com.google.privacy.dlp.v2.FieldId.Builder getFieldBuilder() { 2486 bitField0_ |= 0x00000002; 2487 onChanged(); 2488 return getFieldFieldBuilder().getBuilder(); 2489 } 2490 /** 2491 * 2492 * 2493 * <pre> 2494 * Set if the transformation was limited to a specific FieldId. 2495 * </pre> 2496 * 2497 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 2498 */ getFieldOrBuilder()2499 public com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldOrBuilder() { 2500 if (fieldBuilder_ != null) { 2501 return fieldBuilder_.getMessageOrBuilder(); 2502 } else { 2503 return field_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : field_; 2504 } 2505 } 2506 /** 2507 * 2508 * 2509 * <pre> 2510 * Set if the transformation was limited to a specific FieldId. 2511 * </pre> 2512 * 2513 * <code>.google.privacy.dlp.v2.FieldId field = 2;</code> 2514 */ 2515 private com.google.protobuf.SingleFieldBuilderV3< 2516 com.google.privacy.dlp.v2.FieldId, 2517 com.google.privacy.dlp.v2.FieldId.Builder, 2518 com.google.privacy.dlp.v2.FieldIdOrBuilder> getFieldFieldBuilder()2519 getFieldFieldBuilder() { 2520 if (fieldBuilder_ == null) { 2521 fieldBuilder_ = 2522 new com.google.protobuf.SingleFieldBuilderV3< 2523 com.google.privacy.dlp.v2.FieldId, 2524 com.google.privacy.dlp.v2.FieldId.Builder, 2525 com.google.privacy.dlp.v2.FieldIdOrBuilder>( 2526 getField(), getParentForChildren(), isClean()); 2527 field_ = null; 2528 } 2529 return fieldBuilder_; 2530 } 2531 2532 private com.google.privacy.dlp.v2.PrimitiveTransformation transformation_; 2533 private com.google.protobuf.SingleFieldBuilderV3< 2534 com.google.privacy.dlp.v2.PrimitiveTransformation, 2535 com.google.privacy.dlp.v2.PrimitiveTransformation.Builder, 2536 com.google.privacy.dlp.v2.PrimitiveTransformationOrBuilder> 2537 transformationBuilder_; 2538 /** 2539 * 2540 * 2541 * <pre> 2542 * The specific transformation these stats apply to. 2543 * </pre> 2544 * 2545 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 2546 * 2547 * @return Whether the transformation field is set. 2548 */ hasTransformation()2549 public boolean hasTransformation() { 2550 return ((bitField0_ & 0x00000004) != 0); 2551 } 2552 /** 2553 * 2554 * 2555 * <pre> 2556 * The specific transformation these stats apply to. 2557 * </pre> 2558 * 2559 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 2560 * 2561 * @return The transformation. 2562 */ getTransformation()2563 public com.google.privacy.dlp.v2.PrimitiveTransformation getTransformation() { 2564 if (transformationBuilder_ == null) { 2565 return transformation_ == null 2566 ? com.google.privacy.dlp.v2.PrimitiveTransformation.getDefaultInstance() 2567 : transformation_; 2568 } else { 2569 return transformationBuilder_.getMessage(); 2570 } 2571 } 2572 /** 2573 * 2574 * 2575 * <pre> 2576 * The specific transformation these stats apply to. 2577 * </pre> 2578 * 2579 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 2580 */ setTransformation(com.google.privacy.dlp.v2.PrimitiveTransformation value)2581 public Builder setTransformation(com.google.privacy.dlp.v2.PrimitiveTransformation value) { 2582 if (transformationBuilder_ == null) { 2583 if (value == null) { 2584 throw new NullPointerException(); 2585 } 2586 transformation_ = value; 2587 } else { 2588 transformationBuilder_.setMessage(value); 2589 } 2590 bitField0_ |= 0x00000004; 2591 onChanged(); 2592 return this; 2593 } 2594 /** 2595 * 2596 * 2597 * <pre> 2598 * The specific transformation these stats apply to. 2599 * </pre> 2600 * 2601 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 2602 */ setTransformation( com.google.privacy.dlp.v2.PrimitiveTransformation.Builder builderForValue)2603 public Builder setTransformation( 2604 com.google.privacy.dlp.v2.PrimitiveTransformation.Builder builderForValue) { 2605 if (transformationBuilder_ == null) { 2606 transformation_ = builderForValue.build(); 2607 } else { 2608 transformationBuilder_.setMessage(builderForValue.build()); 2609 } 2610 bitField0_ |= 0x00000004; 2611 onChanged(); 2612 return this; 2613 } 2614 /** 2615 * 2616 * 2617 * <pre> 2618 * The specific transformation these stats apply to. 2619 * </pre> 2620 * 2621 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 2622 */ mergeTransformation(com.google.privacy.dlp.v2.PrimitiveTransformation value)2623 public Builder mergeTransformation(com.google.privacy.dlp.v2.PrimitiveTransformation value) { 2624 if (transformationBuilder_ == null) { 2625 if (((bitField0_ & 0x00000004) != 0) 2626 && transformation_ != null 2627 && transformation_ 2628 != com.google.privacy.dlp.v2.PrimitiveTransformation.getDefaultInstance()) { 2629 getTransformationBuilder().mergeFrom(value); 2630 } else { 2631 transformation_ = value; 2632 } 2633 } else { 2634 transformationBuilder_.mergeFrom(value); 2635 } 2636 bitField0_ |= 0x00000004; 2637 onChanged(); 2638 return this; 2639 } 2640 /** 2641 * 2642 * 2643 * <pre> 2644 * The specific transformation these stats apply to. 2645 * </pre> 2646 * 2647 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 2648 */ clearTransformation()2649 public Builder clearTransformation() { 2650 bitField0_ = (bitField0_ & ~0x00000004); 2651 transformation_ = null; 2652 if (transformationBuilder_ != null) { 2653 transformationBuilder_.dispose(); 2654 transformationBuilder_ = null; 2655 } 2656 onChanged(); 2657 return this; 2658 } 2659 /** 2660 * 2661 * 2662 * <pre> 2663 * The specific transformation these stats apply to. 2664 * </pre> 2665 * 2666 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 2667 */ getTransformationBuilder()2668 public com.google.privacy.dlp.v2.PrimitiveTransformation.Builder getTransformationBuilder() { 2669 bitField0_ |= 0x00000004; 2670 onChanged(); 2671 return getTransformationFieldBuilder().getBuilder(); 2672 } 2673 /** 2674 * 2675 * 2676 * <pre> 2677 * The specific transformation these stats apply to. 2678 * </pre> 2679 * 2680 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 2681 */ getTransformationOrBuilder()2682 public com.google.privacy.dlp.v2.PrimitiveTransformationOrBuilder getTransformationOrBuilder() { 2683 if (transformationBuilder_ != null) { 2684 return transformationBuilder_.getMessageOrBuilder(); 2685 } else { 2686 return transformation_ == null 2687 ? com.google.privacy.dlp.v2.PrimitiveTransformation.getDefaultInstance() 2688 : transformation_; 2689 } 2690 } 2691 /** 2692 * 2693 * 2694 * <pre> 2695 * The specific transformation these stats apply to. 2696 * </pre> 2697 * 2698 * <code>.google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;</code> 2699 */ 2700 private com.google.protobuf.SingleFieldBuilderV3< 2701 com.google.privacy.dlp.v2.PrimitiveTransformation, 2702 com.google.privacy.dlp.v2.PrimitiveTransformation.Builder, 2703 com.google.privacy.dlp.v2.PrimitiveTransformationOrBuilder> getTransformationFieldBuilder()2704 getTransformationFieldBuilder() { 2705 if (transformationBuilder_ == null) { 2706 transformationBuilder_ = 2707 new com.google.protobuf.SingleFieldBuilderV3< 2708 com.google.privacy.dlp.v2.PrimitiveTransformation, 2709 com.google.privacy.dlp.v2.PrimitiveTransformation.Builder, 2710 com.google.privacy.dlp.v2.PrimitiveTransformationOrBuilder>( 2711 getTransformation(), getParentForChildren(), isClean()); 2712 transformation_ = null; 2713 } 2714 return transformationBuilder_; 2715 } 2716 2717 private java.util.List<com.google.privacy.dlp.v2.FieldTransformation> fieldTransformations_ = 2718 java.util.Collections.emptyList(); 2719 ensureFieldTransformationsIsMutable()2720 private void ensureFieldTransformationsIsMutable() { 2721 if (!((bitField0_ & 0x00000008) != 0)) { 2722 fieldTransformations_ = 2723 new java.util.ArrayList<com.google.privacy.dlp.v2.FieldTransformation>( 2724 fieldTransformations_); 2725 bitField0_ |= 0x00000008; 2726 } 2727 } 2728 2729 private com.google.protobuf.RepeatedFieldBuilderV3< 2730 com.google.privacy.dlp.v2.FieldTransformation, 2731 com.google.privacy.dlp.v2.FieldTransformation.Builder, 2732 com.google.privacy.dlp.v2.FieldTransformationOrBuilder> 2733 fieldTransformationsBuilder_; 2734 2735 /** 2736 * 2737 * 2738 * <pre> 2739 * The field transformation that was applied. 2740 * If multiple field transformations are requested for a single field, 2741 * this list will contain all of them; otherwise, only one is supplied. 2742 * </pre> 2743 * 2744 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2745 */ 2746 public java.util.List<com.google.privacy.dlp.v2.FieldTransformation> getFieldTransformationsList()2747 getFieldTransformationsList() { 2748 if (fieldTransformationsBuilder_ == null) { 2749 return java.util.Collections.unmodifiableList(fieldTransformations_); 2750 } else { 2751 return fieldTransformationsBuilder_.getMessageList(); 2752 } 2753 } 2754 /** 2755 * 2756 * 2757 * <pre> 2758 * The field transformation that was applied. 2759 * If multiple field transformations are requested for a single field, 2760 * this list will contain all of them; otherwise, only one is supplied. 2761 * </pre> 2762 * 2763 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2764 */ getFieldTransformationsCount()2765 public int getFieldTransformationsCount() { 2766 if (fieldTransformationsBuilder_ == null) { 2767 return fieldTransformations_.size(); 2768 } else { 2769 return fieldTransformationsBuilder_.getCount(); 2770 } 2771 } 2772 /** 2773 * 2774 * 2775 * <pre> 2776 * The field transformation that was applied. 2777 * If multiple field transformations are requested for a single field, 2778 * this list will contain all of them; otherwise, only one is supplied. 2779 * </pre> 2780 * 2781 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2782 */ getFieldTransformations(int index)2783 public com.google.privacy.dlp.v2.FieldTransformation getFieldTransformations(int index) { 2784 if (fieldTransformationsBuilder_ == null) { 2785 return fieldTransformations_.get(index); 2786 } else { 2787 return fieldTransformationsBuilder_.getMessage(index); 2788 } 2789 } 2790 /** 2791 * 2792 * 2793 * <pre> 2794 * The field transformation that was applied. 2795 * If multiple field transformations are requested for a single field, 2796 * this list will contain all of them; otherwise, only one is supplied. 2797 * </pre> 2798 * 2799 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2800 */ setFieldTransformations( int index, com.google.privacy.dlp.v2.FieldTransformation value)2801 public Builder setFieldTransformations( 2802 int index, com.google.privacy.dlp.v2.FieldTransformation value) { 2803 if (fieldTransformationsBuilder_ == null) { 2804 if (value == null) { 2805 throw new NullPointerException(); 2806 } 2807 ensureFieldTransformationsIsMutable(); 2808 fieldTransformations_.set(index, value); 2809 onChanged(); 2810 } else { 2811 fieldTransformationsBuilder_.setMessage(index, value); 2812 } 2813 return this; 2814 } 2815 /** 2816 * 2817 * 2818 * <pre> 2819 * The field transformation that was applied. 2820 * If multiple field transformations are requested for a single field, 2821 * this list will contain all of them; otherwise, only one is supplied. 2822 * </pre> 2823 * 2824 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2825 */ setFieldTransformations( int index, com.google.privacy.dlp.v2.FieldTransformation.Builder builderForValue)2826 public Builder setFieldTransformations( 2827 int index, com.google.privacy.dlp.v2.FieldTransformation.Builder builderForValue) { 2828 if (fieldTransformationsBuilder_ == null) { 2829 ensureFieldTransformationsIsMutable(); 2830 fieldTransformations_.set(index, builderForValue.build()); 2831 onChanged(); 2832 } else { 2833 fieldTransformationsBuilder_.setMessage(index, builderForValue.build()); 2834 } 2835 return this; 2836 } 2837 /** 2838 * 2839 * 2840 * <pre> 2841 * The field transformation that was applied. 2842 * If multiple field transformations are requested for a single field, 2843 * this list will contain all of them; otherwise, only one is supplied. 2844 * </pre> 2845 * 2846 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2847 */ addFieldTransformations(com.google.privacy.dlp.v2.FieldTransformation value)2848 public Builder addFieldTransformations(com.google.privacy.dlp.v2.FieldTransformation value) { 2849 if (fieldTransformationsBuilder_ == null) { 2850 if (value == null) { 2851 throw new NullPointerException(); 2852 } 2853 ensureFieldTransformationsIsMutable(); 2854 fieldTransformations_.add(value); 2855 onChanged(); 2856 } else { 2857 fieldTransformationsBuilder_.addMessage(value); 2858 } 2859 return this; 2860 } 2861 /** 2862 * 2863 * 2864 * <pre> 2865 * The field transformation that was applied. 2866 * If multiple field transformations are requested for a single field, 2867 * this list will contain all of them; otherwise, only one is supplied. 2868 * </pre> 2869 * 2870 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2871 */ addFieldTransformations( int index, com.google.privacy.dlp.v2.FieldTransformation value)2872 public Builder addFieldTransformations( 2873 int index, com.google.privacy.dlp.v2.FieldTransformation value) { 2874 if (fieldTransformationsBuilder_ == null) { 2875 if (value == null) { 2876 throw new NullPointerException(); 2877 } 2878 ensureFieldTransformationsIsMutable(); 2879 fieldTransformations_.add(index, value); 2880 onChanged(); 2881 } else { 2882 fieldTransformationsBuilder_.addMessage(index, value); 2883 } 2884 return this; 2885 } 2886 /** 2887 * 2888 * 2889 * <pre> 2890 * The field transformation that was applied. 2891 * If multiple field transformations are requested for a single field, 2892 * this list will contain all of them; otherwise, only one is supplied. 2893 * </pre> 2894 * 2895 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2896 */ addFieldTransformations( com.google.privacy.dlp.v2.FieldTransformation.Builder builderForValue)2897 public Builder addFieldTransformations( 2898 com.google.privacy.dlp.v2.FieldTransformation.Builder builderForValue) { 2899 if (fieldTransformationsBuilder_ == null) { 2900 ensureFieldTransformationsIsMutable(); 2901 fieldTransformations_.add(builderForValue.build()); 2902 onChanged(); 2903 } else { 2904 fieldTransformationsBuilder_.addMessage(builderForValue.build()); 2905 } 2906 return this; 2907 } 2908 /** 2909 * 2910 * 2911 * <pre> 2912 * The field transformation that was applied. 2913 * If multiple field transformations are requested for a single field, 2914 * this list will contain all of them; otherwise, only one is supplied. 2915 * </pre> 2916 * 2917 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2918 */ addFieldTransformations( int index, com.google.privacy.dlp.v2.FieldTransformation.Builder builderForValue)2919 public Builder addFieldTransformations( 2920 int index, com.google.privacy.dlp.v2.FieldTransformation.Builder builderForValue) { 2921 if (fieldTransformationsBuilder_ == null) { 2922 ensureFieldTransformationsIsMutable(); 2923 fieldTransformations_.add(index, builderForValue.build()); 2924 onChanged(); 2925 } else { 2926 fieldTransformationsBuilder_.addMessage(index, builderForValue.build()); 2927 } 2928 return this; 2929 } 2930 /** 2931 * 2932 * 2933 * <pre> 2934 * The field transformation that was applied. 2935 * If multiple field transformations are requested for a single field, 2936 * this list will contain all of them; otherwise, only one is supplied. 2937 * </pre> 2938 * 2939 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2940 */ addAllFieldTransformations( java.lang.Iterable<? extends com.google.privacy.dlp.v2.FieldTransformation> values)2941 public Builder addAllFieldTransformations( 2942 java.lang.Iterable<? extends com.google.privacy.dlp.v2.FieldTransformation> values) { 2943 if (fieldTransformationsBuilder_ == null) { 2944 ensureFieldTransformationsIsMutable(); 2945 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldTransformations_); 2946 onChanged(); 2947 } else { 2948 fieldTransformationsBuilder_.addAllMessages(values); 2949 } 2950 return this; 2951 } 2952 /** 2953 * 2954 * 2955 * <pre> 2956 * The field transformation that was applied. 2957 * If multiple field transformations are requested for a single field, 2958 * this list will contain all of them; otherwise, only one is supplied. 2959 * </pre> 2960 * 2961 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2962 */ clearFieldTransformations()2963 public Builder clearFieldTransformations() { 2964 if (fieldTransformationsBuilder_ == null) { 2965 fieldTransformations_ = java.util.Collections.emptyList(); 2966 bitField0_ = (bitField0_ & ~0x00000008); 2967 onChanged(); 2968 } else { 2969 fieldTransformationsBuilder_.clear(); 2970 } 2971 return this; 2972 } 2973 /** 2974 * 2975 * 2976 * <pre> 2977 * The field transformation that was applied. 2978 * If multiple field transformations are requested for a single field, 2979 * this list will contain all of them; otherwise, only one is supplied. 2980 * </pre> 2981 * 2982 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 2983 */ removeFieldTransformations(int index)2984 public Builder removeFieldTransformations(int index) { 2985 if (fieldTransformationsBuilder_ == null) { 2986 ensureFieldTransformationsIsMutable(); 2987 fieldTransformations_.remove(index); 2988 onChanged(); 2989 } else { 2990 fieldTransformationsBuilder_.remove(index); 2991 } 2992 return this; 2993 } 2994 /** 2995 * 2996 * 2997 * <pre> 2998 * The field transformation that was applied. 2999 * If multiple field transformations are requested for a single field, 3000 * this list will contain all of them; otherwise, only one is supplied. 3001 * </pre> 3002 * 3003 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 3004 */ getFieldTransformationsBuilder( int index)3005 public com.google.privacy.dlp.v2.FieldTransformation.Builder getFieldTransformationsBuilder( 3006 int index) { 3007 return getFieldTransformationsFieldBuilder().getBuilder(index); 3008 } 3009 /** 3010 * 3011 * 3012 * <pre> 3013 * The field transformation that was applied. 3014 * If multiple field transformations are requested for a single field, 3015 * this list will contain all of them; otherwise, only one is supplied. 3016 * </pre> 3017 * 3018 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 3019 */ getFieldTransformationsOrBuilder( int index)3020 public com.google.privacy.dlp.v2.FieldTransformationOrBuilder getFieldTransformationsOrBuilder( 3021 int index) { 3022 if (fieldTransformationsBuilder_ == null) { 3023 return fieldTransformations_.get(index); 3024 } else { 3025 return fieldTransformationsBuilder_.getMessageOrBuilder(index); 3026 } 3027 } 3028 /** 3029 * 3030 * 3031 * <pre> 3032 * The field transformation that was applied. 3033 * If multiple field transformations are requested for a single field, 3034 * this list will contain all of them; otherwise, only one is supplied. 3035 * </pre> 3036 * 3037 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 3038 */ 3039 public java.util.List<? extends com.google.privacy.dlp.v2.FieldTransformationOrBuilder> getFieldTransformationsOrBuilderList()3040 getFieldTransformationsOrBuilderList() { 3041 if (fieldTransformationsBuilder_ != null) { 3042 return fieldTransformationsBuilder_.getMessageOrBuilderList(); 3043 } else { 3044 return java.util.Collections.unmodifiableList(fieldTransformations_); 3045 } 3046 } 3047 /** 3048 * 3049 * 3050 * <pre> 3051 * The field transformation that was applied. 3052 * If multiple field transformations are requested for a single field, 3053 * this list will contain all of them; otherwise, only one is supplied. 3054 * </pre> 3055 * 3056 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 3057 */ addFieldTransformationsBuilder()3058 public com.google.privacy.dlp.v2.FieldTransformation.Builder addFieldTransformationsBuilder() { 3059 return getFieldTransformationsFieldBuilder() 3060 .addBuilder(com.google.privacy.dlp.v2.FieldTransformation.getDefaultInstance()); 3061 } 3062 /** 3063 * 3064 * 3065 * <pre> 3066 * The field transformation that was applied. 3067 * If multiple field transformations are requested for a single field, 3068 * this list will contain all of them; otherwise, only one is supplied. 3069 * </pre> 3070 * 3071 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 3072 */ addFieldTransformationsBuilder( int index)3073 public com.google.privacy.dlp.v2.FieldTransformation.Builder addFieldTransformationsBuilder( 3074 int index) { 3075 return getFieldTransformationsFieldBuilder() 3076 .addBuilder(index, com.google.privacy.dlp.v2.FieldTransformation.getDefaultInstance()); 3077 } 3078 /** 3079 * 3080 * 3081 * <pre> 3082 * The field transformation that was applied. 3083 * If multiple field transformations are requested for a single field, 3084 * this list will contain all of them; otherwise, only one is supplied. 3085 * </pre> 3086 * 3087 * <code>repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;</code> 3088 */ 3089 public java.util.List<com.google.privacy.dlp.v2.FieldTransformation.Builder> getFieldTransformationsBuilderList()3090 getFieldTransformationsBuilderList() { 3091 return getFieldTransformationsFieldBuilder().getBuilderList(); 3092 } 3093 3094 private com.google.protobuf.RepeatedFieldBuilderV3< 3095 com.google.privacy.dlp.v2.FieldTransformation, 3096 com.google.privacy.dlp.v2.FieldTransformation.Builder, 3097 com.google.privacy.dlp.v2.FieldTransformationOrBuilder> getFieldTransformationsFieldBuilder()3098 getFieldTransformationsFieldBuilder() { 3099 if (fieldTransformationsBuilder_ == null) { 3100 fieldTransformationsBuilder_ = 3101 new com.google.protobuf.RepeatedFieldBuilderV3< 3102 com.google.privacy.dlp.v2.FieldTransformation, 3103 com.google.privacy.dlp.v2.FieldTransformation.Builder, 3104 com.google.privacy.dlp.v2.FieldTransformationOrBuilder>( 3105 fieldTransformations_, 3106 ((bitField0_ & 0x00000008) != 0), 3107 getParentForChildren(), 3108 isClean()); 3109 fieldTransformations_ = null; 3110 } 3111 return fieldTransformationsBuilder_; 3112 } 3113 3114 private com.google.privacy.dlp.v2.RecordSuppression recordSuppress_; 3115 private com.google.protobuf.SingleFieldBuilderV3< 3116 com.google.privacy.dlp.v2.RecordSuppression, 3117 com.google.privacy.dlp.v2.RecordSuppression.Builder, 3118 com.google.privacy.dlp.v2.RecordSuppressionOrBuilder> 3119 recordSuppressBuilder_; 3120 /** 3121 * 3122 * 3123 * <pre> 3124 * The specific suppression option these stats apply to. 3125 * </pre> 3126 * 3127 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 3128 * 3129 * @return Whether the recordSuppress field is set. 3130 */ hasRecordSuppress()3131 public boolean hasRecordSuppress() { 3132 return ((bitField0_ & 0x00000010) != 0); 3133 } 3134 /** 3135 * 3136 * 3137 * <pre> 3138 * The specific suppression option these stats apply to. 3139 * </pre> 3140 * 3141 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 3142 * 3143 * @return The recordSuppress. 3144 */ getRecordSuppress()3145 public com.google.privacy.dlp.v2.RecordSuppression getRecordSuppress() { 3146 if (recordSuppressBuilder_ == null) { 3147 return recordSuppress_ == null 3148 ? com.google.privacy.dlp.v2.RecordSuppression.getDefaultInstance() 3149 : recordSuppress_; 3150 } else { 3151 return recordSuppressBuilder_.getMessage(); 3152 } 3153 } 3154 /** 3155 * 3156 * 3157 * <pre> 3158 * The specific suppression option these stats apply to. 3159 * </pre> 3160 * 3161 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 3162 */ setRecordSuppress(com.google.privacy.dlp.v2.RecordSuppression value)3163 public Builder setRecordSuppress(com.google.privacy.dlp.v2.RecordSuppression value) { 3164 if (recordSuppressBuilder_ == null) { 3165 if (value == null) { 3166 throw new NullPointerException(); 3167 } 3168 recordSuppress_ = value; 3169 } else { 3170 recordSuppressBuilder_.setMessage(value); 3171 } 3172 bitField0_ |= 0x00000010; 3173 onChanged(); 3174 return this; 3175 } 3176 /** 3177 * 3178 * 3179 * <pre> 3180 * The specific suppression option these stats apply to. 3181 * </pre> 3182 * 3183 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 3184 */ setRecordSuppress( com.google.privacy.dlp.v2.RecordSuppression.Builder builderForValue)3185 public Builder setRecordSuppress( 3186 com.google.privacy.dlp.v2.RecordSuppression.Builder builderForValue) { 3187 if (recordSuppressBuilder_ == null) { 3188 recordSuppress_ = builderForValue.build(); 3189 } else { 3190 recordSuppressBuilder_.setMessage(builderForValue.build()); 3191 } 3192 bitField0_ |= 0x00000010; 3193 onChanged(); 3194 return this; 3195 } 3196 /** 3197 * 3198 * 3199 * <pre> 3200 * The specific suppression option these stats apply to. 3201 * </pre> 3202 * 3203 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 3204 */ mergeRecordSuppress(com.google.privacy.dlp.v2.RecordSuppression value)3205 public Builder mergeRecordSuppress(com.google.privacy.dlp.v2.RecordSuppression value) { 3206 if (recordSuppressBuilder_ == null) { 3207 if (((bitField0_ & 0x00000010) != 0) 3208 && recordSuppress_ != null 3209 && recordSuppress_ 3210 != com.google.privacy.dlp.v2.RecordSuppression.getDefaultInstance()) { 3211 getRecordSuppressBuilder().mergeFrom(value); 3212 } else { 3213 recordSuppress_ = value; 3214 } 3215 } else { 3216 recordSuppressBuilder_.mergeFrom(value); 3217 } 3218 bitField0_ |= 0x00000010; 3219 onChanged(); 3220 return this; 3221 } 3222 /** 3223 * 3224 * 3225 * <pre> 3226 * The specific suppression option these stats apply to. 3227 * </pre> 3228 * 3229 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 3230 */ clearRecordSuppress()3231 public Builder clearRecordSuppress() { 3232 bitField0_ = (bitField0_ & ~0x00000010); 3233 recordSuppress_ = null; 3234 if (recordSuppressBuilder_ != null) { 3235 recordSuppressBuilder_.dispose(); 3236 recordSuppressBuilder_ = null; 3237 } 3238 onChanged(); 3239 return this; 3240 } 3241 /** 3242 * 3243 * 3244 * <pre> 3245 * The specific suppression option these stats apply to. 3246 * </pre> 3247 * 3248 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 3249 */ getRecordSuppressBuilder()3250 public com.google.privacy.dlp.v2.RecordSuppression.Builder getRecordSuppressBuilder() { 3251 bitField0_ |= 0x00000010; 3252 onChanged(); 3253 return getRecordSuppressFieldBuilder().getBuilder(); 3254 } 3255 /** 3256 * 3257 * 3258 * <pre> 3259 * The specific suppression option these stats apply to. 3260 * </pre> 3261 * 3262 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 3263 */ getRecordSuppressOrBuilder()3264 public com.google.privacy.dlp.v2.RecordSuppressionOrBuilder getRecordSuppressOrBuilder() { 3265 if (recordSuppressBuilder_ != null) { 3266 return recordSuppressBuilder_.getMessageOrBuilder(); 3267 } else { 3268 return recordSuppress_ == null 3269 ? com.google.privacy.dlp.v2.RecordSuppression.getDefaultInstance() 3270 : recordSuppress_; 3271 } 3272 } 3273 /** 3274 * 3275 * 3276 * <pre> 3277 * The specific suppression option these stats apply to. 3278 * </pre> 3279 * 3280 * <code>.google.privacy.dlp.v2.RecordSuppression record_suppress = 6;</code> 3281 */ 3282 private com.google.protobuf.SingleFieldBuilderV3< 3283 com.google.privacy.dlp.v2.RecordSuppression, 3284 com.google.privacy.dlp.v2.RecordSuppression.Builder, 3285 com.google.privacy.dlp.v2.RecordSuppressionOrBuilder> getRecordSuppressFieldBuilder()3286 getRecordSuppressFieldBuilder() { 3287 if (recordSuppressBuilder_ == null) { 3288 recordSuppressBuilder_ = 3289 new com.google.protobuf.SingleFieldBuilderV3< 3290 com.google.privacy.dlp.v2.RecordSuppression, 3291 com.google.privacy.dlp.v2.RecordSuppression.Builder, 3292 com.google.privacy.dlp.v2.RecordSuppressionOrBuilder>( 3293 getRecordSuppress(), getParentForChildren(), isClean()); 3294 recordSuppress_ = null; 3295 } 3296 return recordSuppressBuilder_; 3297 } 3298 3299 private java.util.List<com.google.privacy.dlp.v2.TransformationSummary.SummaryResult> results_ = 3300 java.util.Collections.emptyList(); 3301 ensureResultsIsMutable()3302 private void ensureResultsIsMutable() { 3303 if (!((bitField0_ & 0x00000020) != 0)) { 3304 results_ = 3305 new java.util.ArrayList<com.google.privacy.dlp.v2.TransformationSummary.SummaryResult>( 3306 results_); 3307 bitField0_ |= 0x00000020; 3308 } 3309 } 3310 3311 private com.google.protobuf.RepeatedFieldBuilderV3< 3312 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult, 3313 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder, 3314 com.google.privacy.dlp.v2.TransformationSummary.SummaryResultOrBuilder> 3315 resultsBuilder_; 3316 3317 /** 3318 * 3319 * 3320 * <pre> 3321 * Collection of all transformations that took place or had an error. 3322 * </pre> 3323 * 3324 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3325 */ 3326 public java.util.List<com.google.privacy.dlp.v2.TransformationSummary.SummaryResult> getResultsList()3327 getResultsList() { 3328 if (resultsBuilder_ == null) { 3329 return java.util.Collections.unmodifiableList(results_); 3330 } else { 3331 return resultsBuilder_.getMessageList(); 3332 } 3333 } 3334 /** 3335 * 3336 * 3337 * <pre> 3338 * Collection of all transformations that took place or had an error. 3339 * </pre> 3340 * 3341 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3342 */ getResultsCount()3343 public int getResultsCount() { 3344 if (resultsBuilder_ == null) { 3345 return results_.size(); 3346 } else { 3347 return resultsBuilder_.getCount(); 3348 } 3349 } 3350 /** 3351 * 3352 * 3353 * <pre> 3354 * Collection of all transformations that took place or had an error. 3355 * </pre> 3356 * 3357 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3358 */ getResults(int index)3359 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult getResults(int index) { 3360 if (resultsBuilder_ == null) { 3361 return results_.get(index); 3362 } else { 3363 return resultsBuilder_.getMessage(index); 3364 } 3365 } 3366 /** 3367 * 3368 * 3369 * <pre> 3370 * Collection of all transformations that took place or had an error. 3371 * </pre> 3372 * 3373 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3374 */ setResults( int index, com.google.privacy.dlp.v2.TransformationSummary.SummaryResult value)3375 public Builder setResults( 3376 int index, com.google.privacy.dlp.v2.TransformationSummary.SummaryResult value) { 3377 if (resultsBuilder_ == null) { 3378 if (value == null) { 3379 throw new NullPointerException(); 3380 } 3381 ensureResultsIsMutable(); 3382 results_.set(index, value); 3383 onChanged(); 3384 } else { 3385 resultsBuilder_.setMessage(index, value); 3386 } 3387 return this; 3388 } 3389 /** 3390 * 3391 * 3392 * <pre> 3393 * Collection of all transformations that took place or had an error. 3394 * </pre> 3395 * 3396 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3397 */ setResults( int index, com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder builderForValue)3398 public Builder setResults( 3399 int index, 3400 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder builderForValue) { 3401 if (resultsBuilder_ == null) { 3402 ensureResultsIsMutable(); 3403 results_.set(index, builderForValue.build()); 3404 onChanged(); 3405 } else { 3406 resultsBuilder_.setMessage(index, builderForValue.build()); 3407 } 3408 return this; 3409 } 3410 /** 3411 * 3412 * 3413 * <pre> 3414 * Collection of all transformations that took place or had an error. 3415 * </pre> 3416 * 3417 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3418 */ addResults(com.google.privacy.dlp.v2.TransformationSummary.SummaryResult value)3419 public Builder addResults(com.google.privacy.dlp.v2.TransformationSummary.SummaryResult value) { 3420 if (resultsBuilder_ == null) { 3421 if (value == null) { 3422 throw new NullPointerException(); 3423 } 3424 ensureResultsIsMutable(); 3425 results_.add(value); 3426 onChanged(); 3427 } else { 3428 resultsBuilder_.addMessage(value); 3429 } 3430 return this; 3431 } 3432 /** 3433 * 3434 * 3435 * <pre> 3436 * Collection of all transformations that took place or had an error. 3437 * </pre> 3438 * 3439 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3440 */ addResults( int index, com.google.privacy.dlp.v2.TransformationSummary.SummaryResult value)3441 public Builder addResults( 3442 int index, com.google.privacy.dlp.v2.TransformationSummary.SummaryResult value) { 3443 if (resultsBuilder_ == null) { 3444 if (value == null) { 3445 throw new NullPointerException(); 3446 } 3447 ensureResultsIsMutable(); 3448 results_.add(index, value); 3449 onChanged(); 3450 } else { 3451 resultsBuilder_.addMessage(index, value); 3452 } 3453 return this; 3454 } 3455 /** 3456 * 3457 * 3458 * <pre> 3459 * Collection of all transformations that took place or had an error. 3460 * </pre> 3461 * 3462 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3463 */ addResults( com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder builderForValue)3464 public Builder addResults( 3465 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder builderForValue) { 3466 if (resultsBuilder_ == null) { 3467 ensureResultsIsMutable(); 3468 results_.add(builderForValue.build()); 3469 onChanged(); 3470 } else { 3471 resultsBuilder_.addMessage(builderForValue.build()); 3472 } 3473 return this; 3474 } 3475 /** 3476 * 3477 * 3478 * <pre> 3479 * Collection of all transformations that took place or had an error. 3480 * </pre> 3481 * 3482 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3483 */ addResults( int index, com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder builderForValue)3484 public Builder addResults( 3485 int index, 3486 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder builderForValue) { 3487 if (resultsBuilder_ == null) { 3488 ensureResultsIsMutable(); 3489 results_.add(index, builderForValue.build()); 3490 onChanged(); 3491 } else { 3492 resultsBuilder_.addMessage(index, builderForValue.build()); 3493 } 3494 return this; 3495 } 3496 /** 3497 * 3498 * 3499 * <pre> 3500 * Collection of all transformations that took place or had an error. 3501 * </pre> 3502 * 3503 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3504 */ addAllResults( java.lang.Iterable<? extends com.google.privacy.dlp.v2.TransformationSummary.SummaryResult> values)3505 public Builder addAllResults( 3506 java.lang.Iterable<? extends com.google.privacy.dlp.v2.TransformationSummary.SummaryResult> 3507 values) { 3508 if (resultsBuilder_ == null) { 3509 ensureResultsIsMutable(); 3510 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); 3511 onChanged(); 3512 } else { 3513 resultsBuilder_.addAllMessages(values); 3514 } 3515 return this; 3516 } 3517 /** 3518 * 3519 * 3520 * <pre> 3521 * Collection of all transformations that took place or had an error. 3522 * </pre> 3523 * 3524 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3525 */ clearResults()3526 public Builder clearResults() { 3527 if (resultsBuilder_ == null) { 3528 results_ = java.util.Collections.emptyList(); 3529 bitField0_ = (bitField0_ & ~0x00000020); 3530 onChanged(); 3531 } else { 3532 resultsBuilder_.clear(); 3533 } 3534 return this; 3535 } 3536 /** 3537 * 3538 * 3539 * <pre> 3540 * Collection of all transformations that took place or had an error. 3541 * </pre> 3542 * 3543 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3544 */ removeResults(int index)3545 public Builder removeResults(int index) { 3546 if (resultsBuilder_ == null) { 3547 ensureResultsIsMutable(); 3548 results_.remove(index); 3549 onChanged(); 3550 } else { 3551 resultsBuilder_.remove(index); 3552 } 3553 return this; 3554 } 3555 /** 3556 * 3557 * 3558 * <pre> 3559 * Collection of all transformations that took place or had an error. 3560 * </pre> 3561 * 3562 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3563 */ getResultsBuilder( int index)3564 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder getResultsBuilder( 3565 int index) { 3566 return getResultsFieldBuilder().getBuilder(index); 3567 } 3568 /** 3569 * 3570 * 3571 * <pre> 3572 * Collection of all transformations that took place or had an error. 3573 * </pre> 3574 * 3575 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3576 */ 3577 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResultOrBuilder getResultsOrBuilder(int index)3578 getResultsOrBuilder(int index) { 3579 if (resultsBuilder_ == null) { 3580 return results_.get(index); 3581 } else { 3582 return resultsBuilder_.getMessageOrBuilder(index); 3583 } 3584 } 3585 /** 3586 * 3587 * 3588 * <pre> 3589 * Collection of all transformations that took place or had an error. 3590 * </pre> 3591 * 3592 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3593 */ 3594 public java.util.List< 3595 ? extends com.google.privacy.dlp.v2.TransformationSummary.SummaryResultOrBuilder> getResultsOrBuilderList()3596 getResultsOrBuilderList() { 3597 if (resultsBuilder_ != null) { 3598 return resultsBuilder_.getMessageOrBuilderList(); 3599 } else { 3600 return java.util.Collections.unmodifiableList(results_); 3601 } 3602 } 3603 /** 3604 * 3605 * 3606 * <pre> 3607 * Collection of all transformations that took place or had an error. 3608 * </pre> 3609 * 3610 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3611 */ 3612 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder addResultsBuilder()3613 addResultsBuilder() { 3614 return getResultsFieldBuilder() 3615 .addBuilder( 3616 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.getDefaultInstance()); 3617 } 3618 /** 3619 * 3620 * 3621 * <pre> 3622 * Collection of all transformations that took place or had an error. 3623 * </pre> 3624 * 3625 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3626 */ addResultsBuilder( int index)3627 public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder addResultsBuilder( 3628 int index) { 3629 return getResultsFieldBuilder() 3630 .addBuilder( 3631 index, 3632 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.getDefaultInstance()); 3633 } 3634 /** 3635 * 3636 * 3637 * <pre> 3638 * Collection of all transformations that took place or had an error. 3639 * </pre> 3640 * 3641 * <code>repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;</code> 3642 */ 3643 public java.util.List<com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder> getResultsBuilderList()3644 getResultsBuilderList() { 3645 return getResultsFieldBuilder().getBuilderList(); 3646 } 3647 3648 private com.google.protobuf.RepeatedFieldBuilderV3< 3649 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult, 3650 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder, 3651 com.google.privacy.dlp.v2.TransformationSummary.SummaryResultOrBuilder> getResultsFieldBuilder()3652 getResultsFieldBuilder() { 3653 if (resultsBuilder_ == null) { 3654 resultsBuilder_ = 3655 new com.google.protobuf.RepeatedFieldBuilderV3< 3656 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult, 3657 com.google.privacy.dlp.v2.TransformationSummary.SummaryResult.Builder, 3658 com.google.privacy.dlp.v2.TransformationSummary.SummaryResultOrBuilder>( 3659 results_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); 3660 results_ = null; 3661 } 3662 return resultsBuilder_; 3663 } 3664 3665 private long transformedBytes_; 3666 /** 3667 * 3668 * 3669 * <pre> 3670 * Total size in bytes that were transformed in some way. 3671 * </pre> 3672 * 3673 * <code>int64 transformed_bytes = 7;</code> 3674 * 3675 * @return The transformedBytes. 3676 */ 3677 @java.lang.Override getTransformedBytes()3678 public long getTransformedBytes() { 3679 return transformedBytes_; 3680 } 3681 /** 3682 * 3683 * 3684 * <pre> 3685 * Total size in bytes that were transformed in some way. 3686 * </pre> 3687 * 3688 * <code>int64 transformed_bytes = 7;</code> 3689 * 3690 * @param value The transformedBytes to set. 3691 * @return This builder for chaining. 3692 */ setTransformedBytes(long value)3693 public Builder setTransformedBytes(long value) { 3694 3695 transformedBytes_ = value; 3696 bitField0_ |= 0x00000040; 3697 onChanged(); 3698 return this; 3699 } 3700 /** 3701 * 3702 * 3703 * <pre> 3704 * Total size in bytes that were transformed in some way. 3705 * </pre> 3706 * 3707 * <code>int64 transformed_bytes = 7;</code> 3708 * 3709 * @return This builder for chaining. 3710 */ clearTransformedBytes()3711 public Builder clearTransformedBytes() { 3712 bitField0_ = (bitField0_ & ~0x00000040); 3713 transformedBytes_ = 0L; 3714 onChanged(); 3715 return this; 3716 } 3717 3718 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3719 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3720 return super.setUnknownFields(unknownFields); 3721 } 3722 3723 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3724 public final Builder mergeUnknownFields( 3725 final com.google.protobuf.UnknownFieldSet unknownFields) { 3726 return super.mergeUnknownFields(unknownFields); 3727 } 3728 3729 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.TransformationSummary) 3730 } 3731 3732 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationSummary) 3733 private static final com.google.privacy.dlp.v2.TransformationSummary DEFAULT_INSTANCE; 3734 3735 static { 3736 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationSummary(); 3737 } 3738 getDefaultInstance()3739 public static com.google.privacy.dlp.v2.TransformationSummary getDefaultInstance() { 3740 return DEFAULT_INSTANCE; 3741 } 3742 3743 private static final com.google.protobuf.Parser<TransformationSummary> PARSER = 3744 new com.google.protobuf.AbstractParser<TransformationSummary>() { 3745 @java.lang.Override 3746 public TransformationSummary parsePartialFrom( 3747 com.google.protobuf.CodedInputStream input, 3748 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3749 throws com.google.protobuf.InvalidProtocolBufferException { 3750 Builder builder = newBuilder(); 3751 try { 3752 builder.mergeFrom(input, extensionRegistry); 3753 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3754 throw e.setUnfinishedMessage(builder.buildPartial()); 3755 } catch (com.google.protobuf.UninitializedMessageException e) { 3756 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3757 } catch (java.io.IOException e) { 3758 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3759 .setUnfinishedMessage(builder.buildPartial()); 3760 } 3761 return builder.buildPartial(); 3762 } 3763 }; 3764 parser()3765 public static com.google.protobuf.Parser<TransformationSummary> parser() { 3766 return PARSER; 3767 } 3768 3769 @java.lang.Override getParserForType()3770 public com.google.protobuf.Parser<TransformationSummary> getParserForType() { 3771 return PARSER; 3772 } 3773 3774 @java.lang.Override getDefaultInstanceForType()3775 public com.google.privacy.dlp.v2.TransformationSummary getDefaultInstanceForType() { 3776 return DEFAULT_INSTANCE; 3777 } 3778 } 3779