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 * Overview of the modifications that occurred. 26 * </pre> 27 * 28 * Protobuf type {@code google.privacy.dlp.v2.TransformationOverview} 29 */ 30 public final class TransformationOverview extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationOverview) 33 TransformationOverviewOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use TransformationOverview.newBuilder() to construct. TransformationOverview(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private TransformationOverview(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 TransformationOverview()40 private TransformationOverview() { 41 transformationSummaries_ = java.util.Collections.emptyList(); 42 } 43 44 @java.lang.Override 45 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)46 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 47 return new TransformationOverview(); 48 } 49 50 @java.lang.Override getUnknownFields()51 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 52 return this.unknownFields; 53 } 54 getDescriptor()55 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 56 return com.google.privacy.dlp.v2.DlpProto 57 .internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor; 58 } 59 60 @java.lang.Override 61 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()62 internalGetFieldAccessorTable() { 63 return com.google.privacy.dlp.v2.DlpProto 64 .internal_static_google_privacy_dlp_v2_TransformationOverview_fieldAccessorTable 65 .ensureFieldAccessorsInitialized( 66 com.google.privacy.dlp.v2.TransformationOverview.class, 67 com.google.privacy.dlp.v2.TransformationOverview.Builder.class); 68 } 69 70 public static final int TRANSFORMED_BYTES_FIELD_NUMBER = 2; 71 private long transformedBytes_ = 0L; 72 /** 73 * 74 * 75 * <pre> 76 * Total size in bytes that were transformed in some way. 77 * </pre> 78 * 79 * <code>int64 transformed_bytes = 2;</code> 80 * 81 * @return The transformedBytes. 82 */ 83 @java.lang.Override getTransformedBytes()84 public long getTransformedBytes() { 85 return transformedBytes_; 86 } 87 88 public static final int TRANSFORMATION_SUMMARIES_FIELD_NUMBER = 3; 89 90 @SuppressWarnings("serial") 91 private java.util.List<com.google.privacy.dlp.v2.TransformationSummary> transformationSummaries_; 92 /** 93 * 94 * 95 * <pre> 96 * Transformations applied to the dataset. 97 * </pre> 98 * 99 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 100 * </code> 101 */ 102 @java.lang.Override 103 public java.util.List<com.google.privacy.dlp.v2.TransformationSummary> getTransformationSummariesList()104 getTransformationSummariesList() { 105 return transformationSummaries_; 106 } 107 /** 108 * 109 * 110 * <pre> 111 * Transformations applied to the dataset. 112 * </pre> 113 * 114 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 115 * </code> 116 */ 117 @java.lang.Override 118 public java.util.List<? extends com.google.privacy.dlp.v2.TransformationSummaryOrBuilder> getTransformationSummariesOrBuilderList()119 getTransformationSummariesOrBuilderList() { 120 return transformationSummaries_; 121 } 122 /** 123 * 124 * 125 * <pre> 126 * Transformations applied to the dataset. 127 * </pre> 128 * 129 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 130 * </code> 131 */ 132 @java.lang.Override getTransformationSummariesCount()133 public int getTransformationSummariesCount() { 134 return transformationSummaries_.size(); 135 } 136 /** 137 * 138 * 139 * <pre> 140 * Transformations applied to the dataset. 141 * </pre> 142 * 143 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 144 * </code> 145 */ 146 @java.lang.Override getTransformationSummaries(int index)147 public com.google.privacy.dlp.v2.TransformationSummary getTransformationSummaries(int index) { 148 return transformationSummaries_.get(index); 149 } 150 /** 151 * 152 * 153 * <pre> 154 * Transformations applied to the dataset. 155 * </pre> 156 * 157 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 158 * </code> 159 */ 160 @java.lang.Override 161 public com.google.privacy.dlp.v2.TransformationSummaryOrBuilder getTransformationSummariesOrBuilder(int index)162 getTransformationSummariesOrBuilder(int index) { 163 return transformationSummaries_.get(index); 164 } 165 166 private byte memoizedIsInitialized = -1; 167 168 @java.lang.Override isInitialized()169 public final boolean isInitialized() { 170 byte isInitialized = memoizedIsInitialized; 171 if (isInitialized == 1) return true; 172 if (isInitialized == 0) return false; 173 174 memoizedIsInitialized = 1; 175 return true; 176 } 177 178 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)179 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 180 if (transformedBytes_ != 0L) { 181 output.writeInt64(2, transformedBytes_); 182 } 183 for (int i = 0; i < transformationSummaries_.size(); i++) { 184 output.writeMessage(3, transformationSummaries_.get(i)); 185 } 186 getUnknownFields().writeTo(output); 187 } 188 189 @java.lang.Override getSerializedSize()190 public int getSerializedSize() { 191 int size = memoizedSize; 192 if (size != -1) return size; 193 194 size = 0; 195 if (transformedBytes_ != 0L) { 196 size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, transformedBytes_); 197 } 198 for (int i = 0; i < transformationSummaries_.size(); i++) { 199 size += 200 com.google.protobuf.CodedOutputStream.computeMessageSize( 201 3, transformationSummaries_.get(i)); 202 } 203 size += getUnknownFields().getSerializedSize(); 204 memoizedSize = size; 205 return size; 206 } 207 208 @java.lang.Override equals(final java.lang.Object obj)209 public boolean equals(final java.lang.Object obj) { 210 if (obj == this) { 211 return true; 212 } 213 if (!(obj instanceof com.google.privacy.dlp.v2.TransformationOverview)) { 214 return super.equals(obj); 215 } 216 com.google.privacy.dlp.v2.TransformationOverview other = 217 (com.google.privacy.dlp.v2.TransformationOverview) obj; 218 219 if (getTransformedBytes() != other.getTransformedBytes()) return false; 220 if (!getTransformationSummariesList().equals(other.getTransformationSummariesList())) 221 return false; 222 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 223 return true; 224 } 225 226 @java.lang.Override hashCode()227 public int hashCode() { 228 if (memoizedHashCode != 0) { 229 return memoizedHashCode; 230 } 231 int hash = 41; 232 hash = (19 * hash) + getDescriptor().hashCode(); 233 hash = (37 * hash) + TRANSFORMED_BYTES_FIELD_NUMBER; 234 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTransformedBytes()); 235 if (getTransformationSummariesCount() > 0) { 236 hash = (37 * hash) + TRANSFORMATION_SUMMARIES_FIELD_NUMBER; 237 hash = (53 * hash) + getTransformationSummariesList().hashCode(); 238 } 239 hash = (29 * hash) + getUnknownFields().hashCode(); 240 memoizedHashCode = hash; 241 return hash; 242 } 243 parseFrom(java.nio.ByteBuffer data)244 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom(java.nio.ByteBuffer data) 245 throws com.google.protobuf.InvalidProtocolBufferException { 246 return PARSER.parseFrom(data); 247 } 248 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)249 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom( 250 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 251 throws com.google.protobuf.InvalidProtocolBufferException { 252 return PARSER.parseFrom(data, extensionRegistry); 253 } 254 parseFrom( com.google.protobuf.ByteString data)255 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom( 256 com.google.protobuf.ByteString data) 257 throws com.google.protobuf.InvalidProtocolBufferException { 258 return PARSER.parseFrom(data); 259 } 260 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)261 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom( 262 com.google.protobuf.ByteString data, 263 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 264 throws com.google.protobuf.InvalidProtocolBufferException { 265 return PARSER.parseFrom(data, extensionRegistry); 266 } 267 parseFrom(byte[] data)268 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom(byte[] data) 269 throws com.google.protobuf.InvalidProtocolBufferException { 270 return PARSER.parseFrom(data); 271 } 272 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)273 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom( 274 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 275 throws com.google.protobuf.InvalidProtocolBufferException { 276 return PARSER.parseFrom(data, extensionRegistry); 277 } 278 parseFrom( java.io.InputStream input)279 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom( 280 java.io.InputStream input) throws java.io.IOException { 281 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 282 } 283 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)284 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom( 285 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 286 throws java.io.IOException { 287 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 288 PARSER, input, extensionRegistry); 289 } 290 parseDelimitedFrom( java.io.InputStream input)291 public static com.google.privacy.dlp.v2.TransformationOverview parseDelimitedFrom( 292 java.io.InputStream input) throws java.io.IOException { 293 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 294 } 295 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)296 public static com.google.privacy.dlp.v2.TransformationOverview parseDelimitedFrom( 297 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 298 throws java.io.IOException { 299 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 300 PARSER, input, extensionRegistry); 301 } 302 parseFrom( com.google.protobuf.CodedInputStream input)303 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom( 304 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 305 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 306 } 307 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)308 public static com.google.privacy.dlp.v2.TransformationOverview parseFrom( 309 com.google.protobuf.CodedInputStream input, 310 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 311 throws java.io.IOException { 312 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 313 PARSER, input, extensionRegistry); 314 } 315 316 @java.lang.Override newBuilderForType()317 public Builder newBuilderForType() { 318 return newBuilder(); 319 } 320 newBuilder()321 public static Builder newBuilder() { 322 return DEFAULT_INSTANCE.toBuilder(); 323 } 324 newBuilder(com.google.privacy.dlp.v2.TransformationOverview prototype)325 public static Builder newBuilder(com.google.privacy.dlp.v2.TransformationOverview prototype) { 326 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 327 } 328 329 @java.lang.Override toBuilder()330 public Builder toBuilder() { 331 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 332 } 333 334 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)335 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 336 Builder builder = new Builder(parent); 337 return builder; 338 } 339 /** 340 * 341 * 342 * <pre> 343 * Overview of the modifications that occurred. 344 * </pre> 345 * 346 * Protobuf type {@code google.privacy.dlp.v2.TransformationOverview} 347 */ 348 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 349 implements 350 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationOverview) 351 com.google.privacy.dlp.v2.TransformationOverviewOrBuilder { getDescriptor()352 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 353 return com.google.privacy.dlp.v2.DlpProto 354 .internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor; 355 } 356 357 @java.lang.Override 358 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()359 internalGetFieldAccessorTable() { 360 return com.google.privacy.dlp.v2.DlpProto 361 .internal_static_google_privacy_dlp_v2_TransformationOverview_fieldAccessorTable 362 .ensureFieldAccessorsInitialized( 363 com.google.privacy.dlp.v2.TransformationOverview.class, 364 com.google.privacy.dlp.v2.TransformationOverview.Builder.class); 365 } 366 367 // Construct using com.google.privacy.dlp.v2.TransformationOverview.newBuilder() Builder()368 private Builder() {} 369 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)370 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 371 super(parent); 372 } 373 374 @java.lang.Override clear()375 public Builder clear() { 376 super.clear(); 377 bitField0_ = 0; 378 transformedBytes_ = 0L; 379 if (transformationSummariesBuilder_ == null) { 380 transformationSummaries_ = java.util.Collections.emptyList(); 381 } else { 382 transformationSummaries_ = null; 383 transformationSummariesBuilder_.clear(); 384 } 385 bitField0_ = (bitField0_ & ~0x00000002); 386 return this; 387 } 388 389 @java.lang.Override getDescriptorForType()390 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 391 return com.google.privacy.dlp.v2.DlpProto 392 .internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor; 393 } 394 395 @java.lang.Override getDefaultInstanceForType()396 public com.google.privacy.dlp.v2.TransformationOverview getDefaultInstanceForType() { 397 return com.google.privacy.dlp.v2.TransformationOverview.getDefaultInstance(); 398 } 399 400 @java.lang.Override build()401 public com.google.privacy.dlp.v2.TransformationOverview build() { 402 com.google.privacy.dlp.v2.TransformationOverview result = buildPartial(); 403 if (!result.isInitialized()) { 404 throw newUninitializedMessageException(result); 405 } 406 return result; 407 } 408 409 @java.lang.Override buildPartial()410 public com.google.privacy.dlp.v2.TransformationOverview buildPartial() { 411 com.google.privacy.dlp.v2.TransformationOverview result = 412 new com.google.privacy.dlp.v2.TransformationOverview(this); 413 buildPartialRepeatedFields(result); 414 if (bitField0_ != 0) { 415 buildPartial0(result); 416 } 417 onBuilt(); 418 return result; 419 } 420 buildPartialRepeatedFields( com.google.privacy.dlp.v2.TransformationOverview result)421 private void buildPartialRepeatedFields( 422 com.google.privacy.dlp.v2.TransformationOverview result) { 423 if (transformationSummariesBuilder_ == null) { 424 if (((bitField0_ & 0x00000002) != 0)) { 425 transformationSummaries_ = 426 java.util.Collections.unmodifiableList(transformationSummaries_); 427 bitField0_ = (bitField0_ & ~0x00000002); 428 } 429 result.transformationSummaries_ = transformationSummaries_; 430 } else { 431 result.transformationSummaries_ = transformationSummariesBuilder_.build(); 432 } 433 } 434 buildPartial0(com.google.privacy.dlp.v2.TransformationOverview result)435 private void buildPartial0(com.google.privacy.dlp.v2.TransformationOverview result) { 436 int from_bitField0_ = bitField0_; 437 if (((from_bitField0_ & 0x00000001) != 0)) { 438 result.transformedBytes_ = transformedBytes_; 439 } 440 } 441 442 @java.lang.Override clone()443 public Builder clone() { 444 return super.clone(); 445 } 446 447 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)448 public Builder setField( 449 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 450 return super.setField(field, value); 451 } 452 453 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)454 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 455 return super.clearField(field); 456 } 457 458 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)459 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 460 return super.clearOneof(oneof); 461 } 462 463 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)464 public Builder setRepeatedField( 465 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 466 return super.setRepeatedField(field, index, value); 467 } 468 469 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)470 public Builder addRepeatedField( 471 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 472 return super.addRepeatedField(field, value); 473 } 474 475 @java.lang.Override mergeFrom(com.google.protobuf.Message other)476 public Builder mergeFrom(com.google.protobuf.Message other) { 477 if (other instanceof com.google.privacy.dlp.v2.TransformationOverview) { 478 return mergeFrom((com.google.privacy.dlp.v2.TransformationOverview) other); 479 } else { 480 super.mergeFrom(other); 481 return this; 482 } 483 } 484 mergeFrom(com.google.privacy.dlp.v2.TransformationOverview other)485 public Builder mergeFrom(com.google.privacy.dlp.v2.TransformationOverview other) { 486 if (other == com.google.privacy.dlp.v2.TransformationOverview.getDefaultInstance()) 487 return this; 488 if (other.getTransformedBytes() != 0L) { 489 setTransformedBytes(other.getTransformedBytes()); 490 } 491 if (transformationSummariesBuilder_ == null) { 492 if (!other.transformationSummaries_.isEmpty()) { 493 if (transformationSummaries_.isEmpty()) { 494 transformationSummaries_ = other.transformationSummaries_; 495 bitField0_ = (bitField0_ & ~0x00000002); 496 } else { 497 ensureTransformationSummariesIsMutable(); 498 transformationSummaries_.addAll(other.transformationSummaries_); 499 } 500 onChanged(); 501 } 502 } else { 503 if (!other.transformationSummaries_.isEmpty()) { 504 if (transformationSummariesBuilder_.isEmpty()) { 505 transformationSummariesBuilder_.dispose(); 506 transformationSummariesBuilder_ = null; 507 transformationSummaries_ = other.transformationSummaries_; 508 bitField0_ = (bitField0_ & ~0x00000002); 509 transformationSummariesBuilder_ = 510 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 511 ? getTransformationSummariesFieldBuilder() 512 : null; 513 } else { 514 transformationSummariesBuilder_.addAllMessages(other.transformationSummaries_); 515 } 516 } 517 } 518 this.mergeUnknownFields(other.getUnknownFields()); 519 onChanged(); 520 return this; 521 } 522 523 @java.lang.Override isInitialized()524 public final boolean isInitialized() { 525 return true; 526 } 527 528 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)529 public Builder mergeFrom( 530 com.google.protobuf.CodedInputStream input, 531 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 532 throws java.io.IOException { 533 if (extensionRegistry == null) { 534 throw new java.lang.NullPointerException(); 535 } 536 try { 537 boolean done = false; 538 while (!done) { 539 int tag = input.readTag(); 540 switch (tag) { 541 case 0: 542 done = true; 543 break; 544 case 16: 545 { 546 transformedBytes_ = input.readInt64(); 547 bitField0_ |= 0x00000001; 548 break; 549 } // case 16 550 case 26: 551 { 552 com.google.privacy.dlp.v2.TransformationSummary m = 553 input.readMessage( 554 com.google.privacy.dlp.v2.TransformationSummary.parser(), 555 extensionRegistry); 556 if (transformationSummariesBuilder_ == null) { 557 ensureTransformationSummariesIsMutable(); 558 transformationSummaries_.add(m); 559 } else { 560 transformationSummariesBuilder_.addMessage(m); 561 } 562 break; 563 } // case 26 564 default: 565 { 566 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 567 done = true; // was an endgroup tag 568 } 569 break; 570 } // default: 571 } // switch (tag) 572 } // while (!done) 573 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 574 throw e.unwrapIOException(); 575 } finally { 576 onChanged(); 577 } // finally 578 return this; 579 } 580 581 private int bitField0_; 582 583 private long transformedBytes_; 584 /** 585 * 586 * 587 * <pre> 588 * Total size in bytes that were transformed in some way. 589 * </pre> 590 * 591 * <code>int64 transformed_bytes = 2;</code> 592 * 593 * @return The transformedBytes. 594 */ 595 @java.lang.Override getTransformedBytes()596 public long getTransformedBytes() { 597 return transformedBytes_; 598 } 599 /** 600 * 601 * 602 * <pre> 603 * Total size in bytes that were transformed in some way. 604 * </pre> 605 * 606 * <code>int64 transformed_bytes = 2;</code> 607 * 608 * @param value The transformedBytes to set. 609 * @return This builder for chaining. 610 */ setTransformedBytes(long value)611 public Builder setTransformedBytes(long value) { 612 613 transformedBytes_ = value; 614 bitField0_ |= 0x00000001; 615 onChanged(); 616 return this; 617 } 618 /** 619 * 620 * 621 * <pre> 622 * Total size in bytes that were transformed in some way. 623 * </pre> 624 * 625 * <code>int64 transformed_bytes = 2;</code> 626 * 627 * @return This builder for chaining. 628 */ clearTransformedBytes()629 public Builder clearTransformedBytes() { 630 bitField0_ = (bitField0_ & ~0x00000001); 631 transformedBytes_ = 0L; 632 onChanged(); 633 return this; 634 } 635 636 private java.util.List<com.google.privacy.dlp.v2.TransformationSummary> 637 transformationSummaries_ = java.util.Collections.emptyList(); 638 ensureTransformationSummariesIsMutable()639 private void ensureTransformationSummariesIsMutable() { 640 if (!((bitField0_ & 0x00000002) != 0)) { 641 transformationSummaries_ = 642 new java.util.ArrayList<com.google.privacy.dlp.v2.TransformationSummary>( 643 transformationSummaries_); 644 bitField0_ |= 0x00000002; 645 } 646 } 647 648 private com.google.protobuf.RepeatedFieldBuilderV3< 649 com.google.privacy.dlp.v2.TransformationSummary, 650 com.google.privacy.dlp.v2.TransformationSummary.Builder, 651 com.google.privacy.dlp.v2.TransformationSummaryOrBuilder> 652 transformationSummariesBuilder_; 653 654 /** 655 * 656 * 657 * <pre> 658 * Transformations applied to the dataset. 659 * </pre> 660 * 661 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 662 * </code> 663 */ 664 public java.util.List<com.google.privacy.dlp.v2.TransformationSummary> getTransformationSummariesList()665 getTransformationSummariesList() { 666 if (transformationSummariesBuilder_ == null) { 667 return java.util.Collections.unmodifiableList(transformationSummaries_); 668 } else { 669 return transformationSummariesBuilder_.getMessageList(); 670 } 671 } 672 /** 673 * 674 * 675 * <pre> 676 * Transformations applied to the dataset. 677 * </pre> 678 * 679 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 680 * </code> 681 */ getTransformationSummariesCount()682 public int getTransformationSummariesCount() { 683 if (transformationSummariesBuilder_ == null) { 684 return transformationSummaries_.size(); 685 } else { 686 return transformationSummariesBuilder_.getCount(); 687 } 688 } 689 /** 690 * 691 * 692 * <pre> 693 * Transformations applied to the dataset. 694 * </pre> 695 * 696 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 697 * </code> 698 */ getTransformationSummaries(int index)699 public com.google.privacy.dlp.v2.TransformationSummary getTransformationSummaries(int index) { 700 if (transformationSummariesBuilder_ == null) { 701 return transformationSummaries_.get(index); 702 } else { 703 return transformationSummariesBuilder_.getMessage(index); 704 } 705 } 706 /** 707 * 708 * 709 * <pre> 710 * Transformations applied to the dataset. 711 * </pre> 712 * 713 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 714 * </code> 715 */ setTransformationSummaries( int index, com.google.privacy.dlp.v2.TransformationSummary value)716 public Builder setTransformationSummaries( 717 int index, com.google.privacy.dlp.v2.TransformationSummary value) { 718 if (transformationSummariesBuilder_ == null) { 719 if (value == null) { 720 throw new NullPointerException(); 721 } 722 ensureTransformationSummariesIsMutable(); 723 transformationSummaries_.set(index, value); 724 onChanged(); 725 } else { 726 transformationSummariesBuilder_.setMessage(index, value); 727 } 728 return this; 729 } 730 /** 731 * 732 * 733 * <pre> 734 * Transformations applied to the dataset. 735 * </pre> 736 * 737 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 738 * </code> 739 */ setTransformationSummaries( int index, com.google.privacy.dlp.v2.TransformationSummary.Builder builderForValue)740 public Builder setTransformationSummaries( 741 int index, com.google.privacy.dlp.v2.TransformationSummary.Builder builderForValue) { 742 if (transformationSummariesBuilder_ == null) { 743 ensureTransformationSummariesIsMutable(); 744 transformationSummaries_.set(index, builderForValue.build()); 745 onChanged(); 746 } else { 747 transformationSummariesBuilder_.setMessage(index, builderForValue.build()); 748 } 749 return this; 750 } 751 /** 752 * 753 * 754 * <pre> 755 * Transformations applied to the dataset. 756 * </pre> 757 * 758 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 759 * </code> 760 */ addTransformationSummaries( com.google.privacy.dlp.v2.TransformationSummary value)761 public Builder addTransformationSummaries( 762 com.google.privacy.dlp.v2.TransformationSummary value) { 763 if (transformationSummariesBuilder_ == null) { 764 if (value == null) { 765 throw new NullPointerException(); 766 } 767 ensureTransformationSummariesIsMutable(); 768 transformationSummaries_.add(value); 769 onChanged(); 770 } else { 771 transformationSummariesBuilder_.addMessage(value); 772 } 773 return this; 774 } 775 /** 776 * 777 * 778 * <pre> 779 * Transformations applied to the dataset. 780 * </pre> 781 * 782 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 783 * </code> 784 */ addTransformationSummaries( int index, com.google.privacy.dlp.v2.TransformationSummary value)785 public Builder addTransformationSummaries( 786 int index, com.google.privacy.dlp.v2.TransformationSummary value) { 787 if (transformationSummariesBuilder_ == null) { 788 if (value == null) { 789 throw new NullPointerException(); 790 } 791 ensureTransformationSummariesIsMutable(); 792 transformationSummaries_.add(index, value); 793 onChanged(); 794 } else { 795 transformationSummariesBuilder_.addMessage(index, value); 796 } 797 return this; 798 } 799 /** 800 * 801 * 802 * <pre> 803 * Transformations applied to the dataset. 804 * </pre> 805 * 806 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 807 * </code> 808 */ addTransformationSummaries( com.google.privacy.dlp.v2.TransformationSummary.Builder builderForValue)809 public Builder addTransformationSummaries( 810 com.google.privacy.dlp.v2.TransformationSummary.Builder builderForValue) { 811 if (transformationSummariesBuilder_ == null) { 812 ensureTransformationSummariesIsMutable(); 813 transformationSummaries_.add(builderForValue.build()); 814 onChanged(); 815 } else { 816 transformationSummariesBuilder_.addMessage(builderForValue.build()); 817 } 818 return this; 819 } 820 /** 821 * 822 * 823 * <pre> 824 * Transformations applied to the dataset. 825 * </pre> 826 * 827 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 828 * </code> 829 */ addTransformationSummaries( int index, com.google.privacy.dlp.v2.TransformationSummary.Builder builderForValue)830 public Builder addTransformationSummaries( 831 int index, com.google.privacy.dlp.v2.TransformationSummary.Builder builderForValue) { 832 if (transformationSummariesBuilder_ == null) { 833 ensureTransformationSummariesIsMutable(); 834 transformationSummaries_.add(index, builderForValue.build()); 835 onChanged(); 836 } else { 837 transformationSummariesBuilder_.addMessage(index, builderForValue.build()); 838 } 839 return this; 840 } 841 /** 842 * 843 * 844 * <pre> 845 * Transformations applied to the dataset. 846 * </pre> 847 * 848 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 849 * </code> 850 */ addAllTransformationSummaries( java.lang.Iterable<? extends com.google.privacy.dlp.v2.TransformationSummary> values)851 public Builder addAllTransformationSummaries( 852 java.lang.Iterable<? extends com.google.privacy.dlp.v2.TransformationSummary> values) { 853 if (transformationSummariesBuilder_ == null) { 854 ensureTransformationSummariesIsMutable(); 855 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transformationSummaries_); 856 onChanged(); 857 } else { 858 transformationSummariesBuilder_.addAllMessages(values); 859 } 860 return this; 861 } 862 /** 863 * 864 * 865 * <pre> 866 * Transformations applied to the dataset. 867 * </pre> 868 * 869 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 870 * </code> 871 */ clearTransformationSummaries()872 public Builder clearTransformationSummaries() { 873 if (transformationSummariesBuilder_ == null) { 874 transformationSummaries_ = java.util.Collections.emptyList(); 875 bitField0_ = (bitField0_ & ~0x00000002); 876 onChanged(); 877 } else { 878 transformationSummariesBuilder_.clear(); 879 } 880 return this; 881 } 882 /** 883 * 884 * 885 * <pre> 886 * Transformations applied to the dataset. 887 * </pre> 888 * 889 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 890 * </code> 891 */ removeTransformationSummaries(int index)892 public Builder removeTransformationSummaries(int index) { 893 if (transformationSummariesBuilder_ == null) { 894 ensureTransformationSummariesIsMutable(); 895 transformationSummaries_.remove(index); 896 onChanged(); 897 } else { 898 transformationSummariesBuilder_.remove(index); 899 } 900 return this; 901 } 902 /** 903 * 904 * 905 * <pre> 906 * Transformations applied to the dataset. 907 * </pre> 908 * 909 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 910 * </code> 911 */ 912 public com.google.privacy.dlp.v2.TransformationSummary.Builder getTransformationSummariesBuilder(int index)913 getTransformationSummariesBuilder(int index) { 914 return getTransformationSummariesFieldBuilder().getBuilder(index); 915 } 916 /** 917 * 918 * 919 * <pre> 920 * Transformations applied to the dataset. 921 * </pre> 922 * 923 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 924 * </code> 925 */ 926 public com.google.privacy.dlp.v2.TransformationSummaryOrBuilder getTransformationSummariesOrBuilder(int index)927 getTransformationSummariesOrBuilder(int index) { 928 if (transformationSummariesBuilder_ == null) { 929 return transformationSummaries_.get(index); 930 } else { 931 return transformationSummariesBuilder_.getMessageOrBuilder(index); 932 } 933 } 934 /** 935 * 936 * 937 * <pre> 938 * Transformations applied to the dataset. 939 * </pre> 940 * 941 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 942 * </code> 943 */ 944 public java.util.List<? extends com.google.privacy.dlp.v2.TransformationSummaryOrBuilder> getTransformationSummariesOrBuilderList()945 getTransformationSummariesOrBuilderList() { 946 if (transformationSummariesBuilder_ != null) { 947 return transformationSummariesBuilder_.getMessageOrBuilderList(); 948 } else { 949 return java.util.Collections.unmodifiableList(transformationSummaries_); 950 } 951 } 952 /** 953 * 954 * 955 * <pre> 956 * Transformations applied to the dataset. 957 * </pre> 958 * 959 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 960 * </code> 961 */ 962 public com.google.privacy.dlp.v2.TransformationSummary.Builder addTransformationSummariesBuilder()963 addTransformationSummariesBuilder() { 964 return getTransformationSummariesFieldBuilder() 965 .addBuilder(com.google.privacy.dlp.v2.TransformationSummary.getDefaultInstance()); 966 } 967 /** 968 * 969 * 970 * <pre> 971 * Transformations applied to the dataset. 972 * </pre> 973 * 974 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 975 * </code> 976 */ 977 public com.google.privacy.dlp.v2.TransformationSummary.Builder addTransformationSummariesBuilder(int index)978 addTransformationSummariesBuilder(int index) { 979 return getTransformationSummariesFieldBuilder() 980 .addBuilder(index, com.google.privacy.dlp.v2.TransformationSummary.getDefaultInstance()); 981 } 982 /** 983 * 984 * 985 * <pre> 986 * Transformations applied to the dataset. 987 * </pre> 988 * 989 * <code>repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; 990 * </code> 991 */ 992 public java.util.List<com.google.privacy.dlp.v2.TransformationSummary.Builder> getTransformationSummariesBuilderList()993 getTransformationSummariesBuilderList() { 994 return getTransformationSummariesFieldBuilder().getBuilderList(); 995 } 996 997 private com.google.protobuf.RepeatedFieldBuilderV3< 998 com.google.privacy.dlp.v2.TransformationSummary, 999 com.google.privacy.dlp.v2.TransformationSummary.Builder, 1000 com.google.privacy.dlp.v2.TransformationSummaryOrBuilder> getTransformationSummariesFieldBuilder()1001 getTransformationSummariesFieldBuilder() { 1002 if (transformationSummariesBuilder_ == null) { 1003 transformationSummariesBuilder_ = 1004 new com.google.protobuf.RepeatedFieldBuilderV3< 1005 com.google.privacy.dlp.v2.TransformationSummary, 1006 com.google.privacy.dlp.v2.TransformationSummary.Builder, 1007 com.google.privacy.dlp.v2.TransformationSummaryOrBuilder>( 1008 transformationSummaries_, 1009 ((bitField0_ & 0x00000002) != 0), 1010 getParentForChildren(), 1011 isClean()); 1012 transformationSummaries_ = null; 1013 } 1014 return transformationSummariesBuilder_; 1015 } 1016 1017 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1018 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1019 return super.setUnknownFields(unknownFields); 1020 } 1021 1022 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1023 public final Builder mergeUnknownFields( 1024 final com.google.protobuf.UnknownFieldSet unknownFields) { 1025 return super.mergeUnknownFields(unknownFields); 1026 } 1027 1028 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.TransformationOverview) 1029 } 1030 1031 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationOverview) 1032 private static final com.google.privacy.dlp.v2.TransformationOverview DEFAULT_INSTANCE; 1033 1034 static { 1035 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationOverview(); 1036 } 1037 getDefaultInstance()1038 public static com.google.privacy.dlp.v2.TransformationOverview getDefaultInstance() { 1039 return DEFAULT_INSTANCE; 1040 } 1041 1042 private static final com.google.protobuf.Parser<TransformationOverview> PARSER = 1043 new com.google.protobuf.AbstractParser<TransformationOverview>() { 1044 @java.lang.Override 1045 public TransformationOverview parsePartialFrom( 1046 com.google.protobuf.CodedInputStream input, 1047 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1048 throws com.google.protobuf.InvalidProtocolBufferException { 1049 Builder builder = newBuilder(); 1050 try { 1051 builder.mergeFrom(input, extensionRegistry); 1052 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1053 throw e.setUnfinishedMessage(builder.buildPartial()); 1054 } catch (com.google.protobuf.UninitializedMessageException e) { 1055 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1056 } catch (java.io.IOException e) { 1057 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1058 .setUnfinishedMessage(builder.buildPartial()); 1059 } 1060 return builder.buildPartial(); 1061 } 1062 }; 1063 parser()1064 public static com.google.protobuf.Parser<TransformationOverview> parser() { 1065 return PARSER; 1066 } 1067 1068 @java.lang.Override getParserForType()1069 public com.google.protobuf.Parser<TransformationOverview> getParserForType() { 1070 return PARSER; 1071 } 1072 1073 @java.lang.Override getDefaultInstanceForType()1074 public com.google.privacy.dlp.v2.TransformationOverview getDefaultInstanceForType() { 1075 return DEFAULT_INSTANCE; 1076 } 1077 } 1078