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 * A task to execute on the completion of a job. 26 * See https://cloud.google.com/dlp/docs/concepts-actions to learn more. 27 * </pre> 28 * 29 * Protobuf type {@code google.privacy.dlp.v2.Action} 30 */ 31 public final class Action extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action) 34 ActionOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use Action.newBuilder() to construct. Action(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private Action(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 Action()41 private Action() {} 42 43 @java.lang.Override 44 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)45 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 46 return new Action(); 47 } 48 49 @java.lang.Override getUnknownFields()50 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 51 return this.unknownFields; 52 } 53 getDescriptor()54 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 55 return com.google.privacy.dlp.v2.DlpProto 56 .internal_static_google_privacy_dlp_v2_Action_descriptor; 57 } 58 59 @java.lang.Override 60 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()61 internalGetFieldAccessorTable() { 62 return com.google.privacy.dlp.v2.DlpProto 63 .internal_static_google_privacy_dlp_v2_Action_fieldAccessorTable 64 .ensureFieldAccessorsInitialized( 65 com.google.privacy.dlp.v2.Action.class, com.google.privacy.dlp.v2.Action.Builder.class); 66 } 67 68 public interface SaveFindingsOrBuilder 69 extends 70 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.SaveFindings) 71 com.google.protobuf.MessageOrBuilder { 72 73 /** 74 * 75 * 76 * <pre> 77 * Location to store findings outside of DLP. 78 * </pre> 79 * 80 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 81 * 82 * @return Whether the outputConfig field is set. 83 */ hasOutputConfig()84 boolean hasOutputConfig(); 85 /** 86 * 87 * 88 * <pre> 89 * Location to store findings outside of DLP. 90 * </pre> 91 * 92 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 93 * 94 * @return The outputConfig. 95 */ getOutputConfig()96 com.google.privacy.dlp.v2.OutputStorageConfig getOutputConfig(); 97 /** 98 * 99 * 100 * <pre> 101 * Location to store findings outside of DLP. 102 * </pre> 103 * 104 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 105 */ getOutputConfigOrBuilder()106 com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder getOutputConfigOrBuilder(); 107 } 108 /** 109 * 110 * 111 * <pre> 112 * If set, the detailed findings will be persisted to the specified 113 * OutputStorageConfig. Only a single instance of this action can be 114 * specified. 115 * Compatible with: Inspect, Risk 116 * </pre> 117 * 118 * Protobuf type {@code google.privacy.dlp.v2.Action.SaveFindings} 119 */ 120 public static final class SaveFindings extends com.google.protobuf.GeneratedMessageV3 121 implements 122 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.SaveFindings) 123 SaveFindingsOrBuilder { 124 private static final long serialVersionUID = 0L; 125 // Use SaveFindings.newBuilder() to construct. SaveFindings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)126 private SaveFindings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 127 super(builder); 128 } 129 SaveFindings()130 private SaveFindings() {} 131 132 @java.lang.Override 133 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)134 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 135 return new SaveFindings(); 136 } 137 138 @java.lang.Override getUnknownFields()139 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 140 return this.unknownFields; 141 } 142 getDescriptor()143 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 144 return com.google.privacy.dlp.v2.DlpProto 145 .internal_static_google_privacy_dlp_v2_Action_SaveFindings_descriptor; 146 } 147 148 @java.lang.Override 149 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()150 internalGetFieldAccessorTable() { 151 return com.google.privacy.dlp.v2.DlpProto 152 .internal_static_google_privacy_dlp_v2_Action_SaveFindings_fieldAccessorTable 153 .ensureFieldAccessorsInitialized( 154 com.google.privacy.dlp.v2.Action.SaveFindings.class, 155 com.google.privacy.dlp.v2.Action.SaveFindings.Builder.class); 156 } 157 158 public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; 159 private com.google.privacy.dlp.v2.OutputStorageConfig outputConfig_; 160 /** 161 * 162 * 163 * <pre> 164 * Location to store findings outside of DLP. 165 * </pre> 166 * 167 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 168 * 169 * @return Whether the outputConfig field is set. 170 */ 171 @java.lang.Override hasOutputConfig()172 public boolean hasOutputConfig() { 173 return outputConfig_ != null; 174 } 175 /** 176 * 177 * 178 * <pre> 179 * Location to store findings outside of DLP. 180 * </pre> 181 * 182 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 183 * 184 * @return The outputConfig. 185 */ 186 @java.lang.Override getOutputConfig()187 public com.google.privacy.dlp.v2.OutputStorageConfig getOutputConfig() { 188 return outputConfig_ == null 189 ? com.google.privacy.dlp.v2.OutputStorageConfig.getDefaultInstance() 190 : outputConfig_; 191 } 192 /** 193 * 194 * 195 * <pre> 196 * Location to store findings outside of DLP. 197 * </pre> 198 * 199 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 200 */ 201 @java.lang.Override getOutputConfigOrBuilder()202 public com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder getOutputConfigOrBuilder() { 203 return outputConfig_ == null 204 ? com.google.privacy.dlp.v2.OutputStorageConfig.getDefaultInstance() 205 : outputConfig_; 206 } 207 208 private byte memoizedIsInitialized = -1; 209 210 @java.lang.Override isInitialized()211 public final boolean isInitialized() { 212 byte isInitialized = memoizedIsInitialized; 213 if (isInitialized == 1) return true; 214 if (isInitialized == 0) return false; 215 216 memoizedIsInitialized = 1; 217 return true; 218 } 219 220 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)221 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 222 if (outputConfig_ != null) { 223 output.writeMessage(1, getOutputConfig()); 224 } 225 getUnknownFields().writeTo(output); 226 } 227 228 @java.lang.Override getSerializedSize()229 public int getSerializedSize() { 230 int size = memoizedSize; 231 if (size != -1) return size; 232 233 size = 0; 234 if (outputConfig_ != null) { 235 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); 236 } 237 size += getUnknownFields().getSerializedSize(); 238 memoizedSize = size; 239 return size; 240 } 241 242 @java.lang.Override equals(final java.lang.Object obj)243 public boolean equals(final java.lang.Object obj) { 244 if (obj == this) { 245 return true; 246 } 247 if (!(obj instanceof com.google.privacy.dlp.v2.Action.SaveFindings)) { 248 return super.equals(obj); 249 } 250 com.google.privacy.dlp.v2.Action.SaveFindings other = 251 (com.google.privacy.dlp.v2.Action.SaveFindings) obj; 252 253 if (hasOutputConfig() != other.hasOutputConfig()) return false; 254 if (hasOutputConfig()) { 255 if (!getOutputConfig().equals(other.getOutputConfig())) return false; 256 } 257 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 258 return true; 259 } 260 261 @java.lang.Override hashCode()262 public int hashCode() { 263 if (memoizedHashCode != 0) { 264 return memoizedHashCode; 265 } 266 int hash = 41; 267 hash = (19 * hash) + getDescriptor().hashCode(); 268 if (hasOutputConfig()) { 269 hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; 270 hash = (53 * hash) + getOutputConfig().hashCode(); 271 } 272 hash = (29 * hash) + getUnknownFields().hashCode(); 273 memoizedHashCode = hash; 274 return hash; 275 } 276 parseFrom(java.nio.ByteBuffer data)277 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom(java.nio.ByteBuffer data) 278 throws com.google.protobuf.InvalidProtocolBufferException { 279 return PARSER.parseFrom(data); 280 } 281 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)282 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom( 283 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 284 throws com.google.protobuf.InvalidProtocolBufferException { 285 return PARSER.parseFrom(data, extensionRegistry); 286 } 287 parseFrom( com.google.protobuf.ByteString data)288 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom( 289 com.google.protobuf.ByteString data) 290 throws com.google.protobuf.InvalidProtocolBufferException { 291 return PARSER.parseFrom(data); 292 } 293 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)294 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom( 295 com.google.protobuf.ByteString data, 296 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 297 throws com.google.protobuf.InvalidProtocolBufferException { 298 return PARSER.parseFrom(data, extensionRegistry); 299 } 300 parseFrom(byte[] data)301 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom(byte[] data) 302 throws com.google.protobuf.InvalidProtocolBufferException { 303 return PARSER.parseFrom(data); 304 } 305 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)306 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom( 307 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 308 throws com.google.protobuf.InvalidProtocolBufferException { 309 return PARSER.parseFrom(data, extensionRegistry); 310 } 311 parseFrom(java.io.InputStream input)312 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom(java.io.InputStream input) 313 throws java.io.IOException { 314 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 315 } 316 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)317 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom( 318 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 319 throws java.io.IOException { 320 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 321 PARSER, input, extensionRegistry); 322 } 323 parseDelimitedFrom( java.io.InputStream input)324 public static com.google.privacy.dlp.v2.Action.SaveFindings parseDelimitedFrom( 325 java.io.InputStream input) throws java.io.IOException { 326 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 327 } 328 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)329 public static com.google.privacy.dlp.v2.Action.SaveFindings parseDelimitedFrom( 330 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 331 throws java.io.IOException { 332 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 333 PARSER, input, extensionRegistry); 334 } 335 parseFrom( com.google.protobuf.CodedInputStream input)336 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom( 337 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 338 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 339 } 340 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)341 public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom( 342 com.google.protobuf.CodedInputStream input, 343 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 344 throws java.io.IOException { 345 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 346 PARSER, input, extensionRegistry); 347 } 348 349 @java.lang.Override newBuilderForType()350 public Builder newBuilderForType() { 351 return newBuilder(); 352 } 353 newBuilder()354 public static Builder newBuilder() { 355 return DEFAULT_INSTANCE.toBuilder(); 356 } 357 newBuilder(com.google.privacy.dlp.v2.Action.SaveFindings prototype)358 public static Builder newBuilder(com.google.privacy.dlp.v2.Action.SaveFindings prototype) { 359 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 360 } 361 362 @java.lang.Override toBuilder()363 public Builder toBuilder() { 364 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 365 } 366 367 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)368 protected Builder newBuilderForType( 369 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 370 Builder builder = new Builder(parent); 371 return builder; 372 } 373 /** 374 * 375 * 376 * <pre> 377 * If set, the detailed findings will be persisted to the specified 378 * OutputStorageConfig. Only a single instance of this action can be 379 * specified. 380 * Compatible with: Inspect, Risk 381 * </pre> 382 * 383 * Protobuf type {@code google.privacy.dlp.v2.Action.SaveFindings} 384 */ 385 public static final class Builder 386 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 387 implements 388 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.SaveFindings) 389 com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder { getDescriptor()390 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 391 return com.google.privacy.dlp.v2.DlpProto 392 .internal_static_google_privacy_dlp_v2_Action_SaveFindings_descriptor; 393 } 394 395 @java.lang.Override 396 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()397 internalGetFieldAccessorTable() { 398 return com.google.privacy.dlp.v2.DlpProto 399 .internal_static_google_privacy_dlp_v2_Action_SaveFindings_fieldAccessorTable 400 .ensureFieldAccessorsInitialized( 401 com.google.privacy.dlp.v2.Action.SaveFindings.class, 402 com.google.privacy.dlp.v2.Action.SaveFindings.Builder.class); 403 } 404 405 // Construct using com.google.privacy.dlp.v2.Action.SaveFindings.newBuilder() Builder()406 private Builder() {} 407 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)408 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 409 super(parent); 410 } 411 412 @java.lang.Override clear()413 public Builder clear() { 414 super.clear(); 415 bitField0_ = 0; 416 outputConfig_ = null; 417 if (outputConfigBuilder_ != null) { 418 outputConfigBuilder_.dispose(); 419 outputConfigBuilder_ = null; 420 } 421 return this; 422 } 423 424 @java.lang.Override getDescriptorForType()425 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 426 return com.google.privacy.dlp.v2.DlpProto 427 .internal_static_google_privacy_dlp_v2_Action_SaveFindings_descriptor; 428 } 429 430 @java.lang.Override getDefaultInstanceForType()431 public com.google.privacy.dlp.v2.Action.SaveFindings getDefaultInstanceForType() { 432 return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); 433 } 434 435 @java.lang.Override build()436 public com.google.privacy.dlp.v2.Action.SaveFindings build() { 437 com.google.privacy.dlp.v2.Action.SaveFindings result = buildPartial(); 438 if (!result.isInitialized()) { 439 throw newUninitializedMessageException(result); 440 } 441 return result; 442 } 443 444 @java.lang.Override buildPartial()445 public com.google.privacy.dlp.v2.Action.SaveFindings buildPartial() { 446 com.google.privacy.dlp.v2.Action.SaveFindings result = 447 new com.google.privacy.dlp.v2.Action.SaveFindings(this); 448 if (bitField0_ != 0) { 449 buildPartial0(result); 450 } 451 onBuilt(); 452 return result; 453 } 454 buildPartial0(com.google.privacy.dlp.v2.Action.SaveFindings result)455 private void buildPartial0(com.google.privacy.dlp.v2.Action.SaveFindings result) { 456 int from_bitField0_ = bitField0_; 457 if (((from_bitField0_ & 0x00000001) != 0)) { 458 result.outputConfig_ = 459 outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); 460 } 461 } 462 463 @java.lang.Override clone()464 public Builder clone() { 465 return super.clone(); 466 } 467 468 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)469 public Builder setField( 470 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 471 return super.setField(field, value); 472 } 473 474 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)475 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 476 return super.clearField(field); 477 } 478 479 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)480 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 481 return super.clearOneof(oneof); 482 } 483 484 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)485 public Builder setRepeatedField( 486 com.google.protobuf.Descriptors.FieldDescriptor field, 487 int index, 488 java.lang.Object value) { 489 return super.setRepeatedField(field, index, value); 490 } 491 492 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)493 public Builder addRepeatedField( 494 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 495 return super.addRepeatedField(field, value); 496 } 497 498 @java.lang.Override mergeFrom(com.google.protobuf.Message other)499 public Builder mergeFrom(com.google.protobuf.Message other) { 500 if (other instanceof com.google.privacy.dlp.v2.Action.SaveFindings) { 501 return mergeFrom((com.google.privacy.dlp.v2.Action.SaveFindings) other); 502 } else { 503 super.mergeFrom(other); 504 return this; 505 } 506 } 507 mergeFrom(com.google.privacy.dlp.v2.Action.SaveFindings other)508 public Builder mergeFrom(com.google.privacy.dlp.v2.Action.SaveFindings other) { 509 if (other == com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance()) 510 return this; 511 if (other.hasOutputConfig()) { 512 mergeOutputConfig(other.getOutputConfig()); 513 } 514 this.mergeUnknownFields(other.getUnknownFields()); 515 onChanged(); 516 return this; 517 } 518 519 @java.lang.Override isInitialized()520 public final boolean isInitialized() { 521 return true; 522 } 523 524 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)525 public Builder mergeFrom( 526 com.google.protobuf.CodedInputStream input, 527 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 528 throws java.io.IOException { 529 if (extensionRegistry == null) { 530 throw new java.lang.NullPointerException(); 531 } 532 try { 533 boolean done = false; 534 while (!done) { 535 int tag = input.readTag(); 536 switch (tag) { 537 case 0: 538 done = true; 539 break; 540 case 10: 541 { 542 input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); 543 bitField0_ |= 0x00000001; 544 break; 545 } // case 10 546 default: 547 { 548 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 549 done = true; // was an endgroup tag 550 } 551 break; 552 } // default: 553 } // switch (tag) 554 } // while (!done) 555 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 556 throw e.unwrapIOException(); 557 } finally { 558 onChanged(); 559 } // finally 560 return this; 561 } 562 563 private int bitField0_; 564 565 private com.google.privacy.dlp.v2.OutputStorageConfig outputConfig_; 566 private com.google.protobuf.SingleFieldBuilderV3< 567 com.google.privacy.dlp.v2.OutputStorageConfig, 568 com.google.privacy.dlp.v2.OutputStorageConfig.Builder, 569 com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder> 570 outputConfigBuilder_; 571 /** 572 * 573 * 574 * <pre> 575 * Location to store findings outside of DLP. 576 * </pre> 577 * 578 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 579 * 580 * @return Whether the outputConfig field is set. 581 */ hasOutputConfig()582 public boolean hasOutputConfig() { 583 return ((bitField0_ & 0x00000001) != 0); 584 } 585 /** 586 * 587 * 588 * <pre> 589 * Location to store findings outside of DLP. 590 * </pre> 591 * 592 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 593 * 594 * @return The outputConfig. 595 */ getOutputConfig()596 public com.google.privacy.dlp.v2.OutputStorageConfig getOutputConfig() { 597 if (outputConfigBuilder_ == null) { 598 return outputConfig_ == null 599 ? com.google.privacy.dlp.v2.OutputStorageConfig.getDefaultInstance() 600 : outputConfig_; 601 } else { 602 return outputConfigBuilder_.getMessage(); 603 } 604 } 605 /** 606 * 607 * 608 * <pre> 609 * Location to store findings outside of DLP. 610 * </pre> 611 * 612 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 613 */ setOutputConfig(com.google.privacy.dlp.v2.OutputStorageConfig value)614 public Builder setOutputConfig(com.google.privacy.dlp.v2.OutputStorageConfig value) { 615 if (outputConfigBuilder_ == null) { 616 if (value == null) { 617 throw new NullPointerException(); 618 } 619 outputConfig_ = value; 620 } else { 621 outputConfigBuilder_.setMessage(value); 622 } 623 bitField0_ |= 0x00000001; 624 onChanged(); 625 return this; 626 } 627 /** 628 * 629 * 630 * <pre> 631 * Location to store findings outside of DLP. 632 * </pre> 633 * 634 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 635 */ setOutputConfig( com.google.privacy.dlp.v2.OutputStorageConfig.Builder builderForValue)636 public Builder setOutputConfig( 637 com.google.privacy.dlp.v2.OutputStorageConfig.Builder builderForValue) { 638 if (outputConfigBuilder_ == null) { 639 outputConfig_ = builderForValue.build(); 640 } else { 641 outputConfigBuilder_.setMessage(builderForValue.build()); 642 } 643 bitField0_ |= 0x00000001; 644 onChanged(); 645 return this; 646 } 647 /** 648 * 649 * 650 * <pre> 651 * Location to store findings outside of DLP. 652 * </pre> 653 * 654 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 655 */ mergeOutputConfig(com.google.privacy.dlp.v2.OutputStorageConfig value)656 public Builder mergeOutputConfig(com.google.privacy.dlp.v2.OutputStorageConfig value) { 657 if (outputConfigBuilder_ == null) { 658 if (((bitField0_ & 0x00000001) != 0) 659 && outputConfig_ != null 660 && outputConfig_ 661 != com.google.privacy.dlp.v2.OutputStorageConfig.getDefaultInstance()) { 662 getOutputConfigBuilder().mergeFrom(value); 663 } else { 664 outputConfig_ = value; 665 } 666 } else { 667 outputConfigBuilder_.mergeFrom(value); 668 } 669 bitField0_ |= 0x00000001; 670 onChanged(); 671 return this; 672 } 673 /** 674 * 675 * 676 * <pre> 677 * Location to store findings outside of DLP. 678 * </pre> 679 * 680 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 681 */ clearOutputConfig()682 public Builder clearOutputConfig() { 683 bitField0_ = (bitField0_ & ~0x00000001); 684 outputConfig_ = null; 685 if (outputConfigBuilder_ != null) { 686 outputConfigBuilder_.dispose(); 687 outputConfigBuilder_ = null; 688 } 689 onChanged(); 690 return this; 691 } 692 /** 693 * 694 * 695 * <pre> 696 * Location to store findings outside of DLP. 697 * </pre> 698 * 699 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 700 */ getOutputConfigBuilder()701 public com.google.privacy.dlp.v2.OutputStorageConfig.Builder getOutputConfigBuilder() { 702 bitField0_ |= 0x00000001; 703 onChanged(); 704 return getOutputConfigFieldBuilder().getBuilder(); 705 } 706 /** 707 * 708 * 709 * <pre> 710 * Location to store findings outside of DLP. 711 * </pre> 712 * 713 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 714 */ getOutputConfigOrBuilder()715 public com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder getOutputConfigOrBuilder() { 716 if (outputConfigBuilder_ != null) { 717 return outputConfigBuilder_.getMessageOrBuilder(); 718 } else { 719 return outputConfig_ == null 720 ? com.google.privacy.dlp.v2.OutputStorageConfig.getDefaultInstance() 721 : outputConfig_; 722 } 723 } 724 /** 725 * 726 * 727 * <pre> 728 * Location to store findings outside of DLP. 729 * </pre> 730 * 731 * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code> 732 */ 733 private com.google.protobuf.SingleFieldBuilderV3< 734 com.google.privacy.dlp.v2.OutputStorageConfig, 735 com.google.privacy.dlp.v2.OutputStorageConfig.Builder, 736 com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder> getOutputConfigFieldBuilder()737 getOutputConfigFieldBuilder() { 738 if (outputConfigBuilder_ == null) { 739 outputConfigBuilder_ = 740 new com.google.protobuf.SingleFieldBuilderV3< 741 com.google.privacy.dlp.v2.OutputStorageConfig, 742 com.google.privacy.dlp.v2.OutputStorageConfig.Builder, 743 com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder>( 744 getOutputConfig(), getParentForChildren(), isClean()); 745 outputConfig_ = null; 746 } 747 return outputConfigBuilder_; 748 } 749 750 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)751 public final Builder setUnknownFields( 752 final com.google.protobuf.UnknownFieldSet unknownFields) { 753 return super.setUnknownFields(unknownFields); 754 } 755 756 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)757 public final Builder mergeUnknownFields( 758 final com.google.protobuf.UnknownFieldSet unknownFields) { 759 return super.mergeUnknownFields(unknownFields); 760 } 761 762 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.SaveFindings) 763 } 764 765 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.SaveFindings) 766 private static final com.google.privacy.dlp.v2.Action.SaveFindings DEFAULT_INSTANCE; 767 768 static { 769 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.SaveFindings(); 770 } 771 getDefaultInstance()772 public static com.google.privacy.dlp.v2.Action.SaveFindings getDefaultInstance() { 773 return DEFAULT_INSTANCE; 774 } 775 776 private static final com.google.protobuf.Parser<SaveFindings> PARSER = 777 new com.google.protobuf.AbstractParser<SaveFindings>() { 778 @java.lang.Override 779 public SaveFindings parsePartialFrom( 780 com.google.protobuf.CodedInputStream input, 781 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 782 throws com.google.protobuf.InvalidProtocolBufferException { 783 Builder builder = newBuilder(); 784 try { 785 builder.mergeFrom(input, extensionRegistry); 786 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 787 throw e.setUnfinishedMessage(builder.buildPartial()); 788 } catch (com.google.protobuf.UninitializedMessageException e) { 789 throw e.asInvalidProtocolBufferException() 790 .setUnfinishedMessage(builder.buildPartial()); 791 } catch (java.io.IOException e) { 792 throw new com.google.protobuf.InvalidProtocolBufferException(e) 793 .setUnfinishedMessage(builder.buildPartial()); 794 } 795 return builder.buildPartial(); 796 } 797 }; 798 parser()799 public static com.google.protobuf.Parser<SaveFindings> parser() { 800 return PARSER; 801 } 802 803 @java.lang.Override getParserForType()804 public com.google.protobuf.Parser<SaveFindings> getParserForType() { 805 return PARSER; 806 } 807 808 @java.lang.Override getDefaultInstanceForType()809 public com.google.privacy.dlp.v2.Action.SaveFindings getDefaultInstanceForType() { 810 return DEFAULT_INSTANCE; 811 } 812 } 813 814 public interface PublishToPubSubOrBuilder 815 extends 816 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.PublishToPubSub) 817 com.google.protobuf.MessageOrBuilder { 818 819 /** 820 * 821 * 822 * <pre> 823 * Cloud Pub/Sub topic to send notifications to. The topic must have given 824 * publishing access rights to the DLP API service account executing 825 * the long running DlpJob sending the notifications. 826 * Format is projects/{project}/topics/{topic}. 827 * </pre> 828 * 829 * <code>string topic = 1;</code> 830 * 831 * @return The topic. 832 */ getTopic()833 java.lang.String getTopic(); 834 /** 835 * 836 * 837 * <pre> 838 * Cloud Pub/Sub topic to send notifications to. The topic must have given 839 * publishing access rights to the DLP API service account executing 840 * the long running DlpJob sending the notifications. 841 * Format is projects/{project}/topics/{topic}. 842 * </pre> 843 * 844 * <code>string topic = 1;</code> 845 * 846 * @return The bytes for topic. 847 */ getTopicBytes()848 com.google.protobuf.ByteString getTopicBytes(); 849 } 850 /** 851 * 852 * 853 * <pre> 854 * Publish a message into a given Pub/Sub topic when DlpJob has completed. The 855 * message contains a single field, `DlpJobName`, which is equal to the 856 * finished job's 857 * [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob). 858 * Compatible with: Inspect, Risk 859 * </pre> 860 * 861 * Protobuf type {@code google.privacy.dlp.v2.Action.PublishToPubSub} 862 */ 863 public static final class PublishToPubSub extends com.google.protobuf.GeneratedMessageV3 864 implements 865 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.PublishToPubSub) 866 PublishToPubSubOrBuilder { 867 private static final long serialVersionUID = 0L; 868 // Use PublishToPubSub.newBuilder() to construct. PublishToPubSub(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)869 private PublishToPubSub(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 870 super(builder); 871 } 872 PublishToPubSub()873 private PublishToPubSub() { 874 topic_ = ""; 875 } 876 877 @java.lang.Override 878 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)879 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 880 return new PublishToPubSub(); 881 } 882 883 @java.lang.Override getUnknownFields()884 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 885 return this.unknownFields; 886 } 887 getDescriptor()888 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 889 return com.google.privacy.dlp.v2.DlpProto 890 .internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_descriptor; 891 } 892 893 @java.lang.Override 894 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()895 internalGetFieldAccessorTable() { 896 return com.google.privacy.dlp.v2.DlpProto 897 .internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_fieldAccessorTable 898 .ensureFieldAccessorsInitialized( 899 com.google.privacy.dlp.v2.Action.PublishToPubSub.class, 900 com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder.class); 901 } 902 903 public static final int TOPIC_FIELD_NUMBER = 1; 904 905 @SuppressWarnings("serial") 906 private volatile java.lang.Object topic_ = ""; 907 /** 908 * 909 * 910 * <pre> 911 * Cloud Pub/Sub topic to send notifications to. The topic must have given 912 * publishing access rights to the DLP API service account executing 913 * the long running DlpJob sending the notifications. 914 * Format is projects/{project}/topics/{topic}. 915 * </pre> 916 * 917 * <code>string topic = 1;</code> 918 * 919 * @return The topic. 920 */ 921 @java.lang.Override getTopic()922 public java.lang.String getTopic() { 923 java.lang.Object ref = topic_; 924 if (ref instanceof java.lang.String) { 925 return (java.lang.String) ref; 926 } else { 927 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 928 java.lang.String s = bs.toStringUtf8(); 929 topic_ = s; 930 return s; 931 } 932 } 933 /** 934 * 935 * 936 * <pre> 937 * Cloud Pub/Sub topic to send notifications to. The topic must have given 938 * publishing access rights to the DLP API service account executing 939 * the long running DlpJob sending the notifications. 940 * Format is projects/{project}/topics/{topic}. 941 * </pre> 942 * 943 * <code>string topic = 1;</code> 944 * 945 * @return The bytes for topic. 946 */ 947 @java.lang.Override getTopicBytes()948 public com.google.protobuf.ByteString getTopicBytes() { 949 java.lang.Object ref = topic_; 950 if (ref instanceof java.lang.String) { 951 com.google.protobuf.ByteString b = 952 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 953 topic_ = b; 954 return b; 955 } else { 956 return (com.google.protobuf.ByteString) ref; 957 } 958 } 959 960 private byte memoizedIsInitialized = -1; 961 962 @java.lang.Override isInitialized()963 public final boolean isInitialized() { 964 byte isInitialized = memoizedIsInitialized; 965 if (isInitialized == 1) return true; 966 if (isInitialized == 0) return false; 967 968 memoizedIsInitialized = 1; 969 return true; 970 } 971 972 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)973 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 974 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { 975 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); 976 } 977 getUnknownFields().writeTo(output); 978 } 979 980 @java.lang.Override getSerializedSize()981 public int getSerializedSize() { 982 int size = memoizedSize; 983 if (size != -1) return size; 984 985 size = 0; 986 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { 987 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); 988 } 989 size += getUnknownFields().getSerializedSize(); 990 memoizedSize = size; 991 return size; 992 } 993 994 @java.lang.Override equals(final java.lang.Object obj)995 public boolean equals(final java.lang.Object obj) { 996 if (obj == this) { 997 return true; 998 } 999 if (!(obj instanceof com.google.privacy.dlp.v2.Action.PublishToPubSub)) { 1000 return super.equals(obj); 1001 } 1002 com.google.privacy.dlp.v2.Action.PublishToPubSub other = 1003 (com.google.privacy.dlp.v2.Action.PublishToPubSub) obj; 1004 1005 if (!getTopic().equals(other.getTopic())) return false; 1006 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1007 return true; 1008 } 1009 1010 @java.lang.Override hashCode()1011 public int hashCode() { 1012 if (memoizedHashCode != 0) { 1013 return memoizedHashCode; 1014 } 1015 int hash = 41; 1016 hash = (19 * hash) + getDescriptor().hashCode(); 1017 hash = (37 * hash) + TOPIC_FIELD_NUMBER; 1018 hash = (53 * hash) + getTopic().hashCode(); 1019 hash = (29 * hash) + getUnknownFields().hashCode(); 1020 memoizedHashCode = hash; 1021 return hash; 1022 } 1023 parseFrom( java.nio.ByteBuffer data)1024 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom( 1025 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 1026 return PARSER.parseFrom(data); 1027 } 1028 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1029 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom( 1030 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1031 throws com.google.protobuf.InvalidProtocolBufferException { 1032 return PARSER.parseFrom(data, extensionRegistry); 1033 } 1034 parseFrom( com.google.protobuf.ByteString data)1035 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom( 1036 com.google.protobuf.ByteString data) 1037 throws com.google.protobuf.InvalidProtocolBufferException { 1038 return PARSER.parseFrom(data); 1039 } 1040 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1041 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom( 1042 com.google.protobuf.ByteString data, 1043 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1044 throws com.google.protobuf.InvalidProtocolBufferException { 1045 return PARSER.parseFrom(data, extensionRegistry); 1046 } 1047 parseFrom(byte[] data)1048 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom(byte[] data) 1049 throws com.google.protobuf.InvalidProtocolBufferException { 1050 return PARSER.parseFrom(data); 1051 } 1052 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1053 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom( 1054 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1055 throws com.google.protobuf.InvalidProtocolBufferException { 1056 return PARSER.parseFrom(data, extensionRegistry); 1057 } 1058 parseFrom( java.io.InputStream input)1059 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom( 1060 java.io.InputStream input) throws java.io.IOException { 1061 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1062 } 1063 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1064 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom( 1065 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1066 throws java.io.IOException { 1067 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1068 PARSER, input, extensionRegistry); 1069 } 1070 parseDelimitedFrom( java.io.InputStream input)1071 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseDelimitedFrom( 1072 java.io.InputStream input) throws java.io.IOException { 1073 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1074 } 1075 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1076 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseDelimitedFrom( 1077 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1078 throws java.io.IOException { 1079 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1080 PARSER, input, extensionRegistry); 1081 } 1082 parseFrom( com.google.protobuf.CodedInputStream input)1083 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom( 1084 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1085 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1086 } 1087 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1088 public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom( 1089 com.google.protobuf.CodedInputStream input, 1090 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1091 throws java.io.IOException { 1092 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1093 PARSER, input, extensionRegistry); 1094 } 1095 1096 @java.lang.Override newBuilderForType()1097 public Builder newBuilderForType() { 1098 return newBuilder(); 1099 } 1100 newBuilder()1101 public static Builder newBuilder() { 1102 return DEFAULT_INSTANCE.toBuilder(); 1103 } 1104 newBuilder(com.google.privacy.dlp.v2.Action.PublishToPubSub prototype)1105 public static Builder newBuilder(com.google.privacy.dlp.v2.Action.PublishToPubSub prototype) { 1106 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1107 } 1108 1109 @java.lang.Override toBuilder()1110 public Builder toBuilder() { 1111 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1112 } 1113 1114 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1115 protected Builder newBuilderForType( 1116 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1117 Builder builder = new Builder(parent); 1118 return builder; 1119 } 1120 /** 1121 * 1122 * 1123 * <pre> 1124 * Publish a message into a given Pub/Sub topic when DlpJob has completed. The 1125 * message contains a single field, `DlpJobName`, which is equal to the 1126 * finished job's 1127 * [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob). 1128 * Compatible with: Inspect, Risk 1129 * </pre> 1130 * 1131 * Protobuf type {@code google.privacy.dlp.v2.Action.PublishToPubSub} 1132 */ 1133 public static final class Builder 1134 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1135 implements 1136 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.PublishToPubSub) 1137 com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder { getDescriptor()1138 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1139 return com.google.privacy.dlp.v2.DlpProto 1140 .internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_descriptor; 1141 } 1142 1143 @java.lang.Override 1144 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1145 internalGetFieldAccessorTable() { 1146 return com.google.privacy.dlp.v2.DlpProto 1147 .internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_fieldAccessorTable 1148 .ensureFieldAccessorsInitialized( 1149 com.google.privacy.dlp.v2.Action.PublishToPubSub.class, 1150 com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder.class); 1151 } 1152 1153 // Construct using com.google.privacy.dlp.v2.Action.PublishToPubSub.newBuilder() Builder()1154 private Builder() {} 1155 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1156 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1157 super(parent); 1158 } 1159 1160 @java.lang.Override clear()1161 public Builder clear() { 1162 super.clear(); 1163 bitField0_ = 0; 1164 topic_ = ""; 1165 return this; 1166 } 1167 1168 @java.lang.Override getDescriptorForType()1169 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1170 return com.google.privacy.dlp.v2.DlpProto 1171 .internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_descriptor; 1172 } 1173 1174 @java.lang.Override getDefaultInstanceForType()1175 public com.google.privacy.dlp.v2.Action.PublishToPubSub getDefaultInstanceForType() { 1176 return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance(); 1177 } 1178 1179 @java.lang.Override build()1180 public com.google.privacy.dlp.v2.Action.PublishToPubSub build() { 1181 com.google.privacy.dlp.v2.Action.PublishToPubSub result = buildPartial(); 1182 if (!result.isInitialized()) { 1183 throw newUninitializedMessageException(result); 1184 } 1185 return result; 1186 } 1187 1188 @java.lang.Override buildPartial()1189 public com.google.privacy.dlp.v2.Action.PublishToPubSub buildPartial() { 1190 com.google.privacy.dlp.v2.Action.PublishToPubSub result = 1191 new com.google.privacy.dlp.v2.Action.PublishToPubSub(this); 1192 if (bitField0_ != 0) { 1193 buildPartial0(result); 1194 } 1195 onBuilt(); 1196 return result; 1197 } 1198 buildPartial0(com.google.privacy.dlp.v2.Action.PublishToPubSub result)1199 private void buildPartial0(com.google.privacy.dlp.v2.Action.PublishToPubSub result) { 1200 int from_bitField0_ = bitField0_; 1201 if (((from_bitField0_ & 0x00000001) != 0)) { 1202 result.topic_ = topic_; 1203 } 1204 } 1205 1206 @java.lang.Override clone()1207 public Builder clone() { 1208 return super.clone(); 1209 } 1210 1211 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1212 public Builder setField( 1213 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1214 return super.setField(field, value); 1215 } 1216 1217 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1218 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1219 return super.clearField(field); 1220 } 1221 1222 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1223 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1224 return super.clearOneof(oneof); 1225 } 1226 1227 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1228 public Builder setRepeatedField( 1229 com.google.protobuf.Descriptors.FieldDescriptor field, 1230 int index, 1231 java.lang.Object value) { 1232 return super.setRepeatedField(field, index, value); 1233 } 1234 1235 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1236 public Builder addRepeatedField( 1237 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1238 return super.addRepeatedField(field, value); 1239 } 1240 1241 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1242 public Builder mergeFrom(com.google.protobuf.Message other) { 1243 if (other instanceof com.google.privacy.dlp.v2.Action.PublishToPubSub) { 1244 return mergeFrom((com.google.privacy.dlp.v2.Action.PublishToPubSub) other); 1245 } else { 1246 super.mergeFrom(other); 1247 return this; 1248 } 1249 } 1250 mergeFrom(com.google.privacy.dlp.v2.Action.PublishToPubSub other)1251 public Builder mergeFrom(com.google.privacy.dlp.v2.Action.PublishToPubSub other) { 1252 if (other == com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance()) 1253 return this; 1254 if (!other.getTopic().isEmpty()) { 1255 topic_ = other.topic_; 1256 bitField0_ |= 0x00000001; 1257 onChanged(); 1258 } 1259 this.mergeUnknownFields(other.getUnknownFields()); 1260 onChanged(); 1261 return this; 1262 } 1263 1264 @java.lang.Override isInitialized()1265 public final boolean isInitialized() { 1266 return true; 1267 } 1268 1269 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1270 public Builder mergeFrom( 1271 com.google.protobuf.CodedInputStream input, 1272 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1273 throws java.io.IOException { 1274 if (extensionRegistry == null) { 1275 throw new java.lang.NullPointerException(); 1276 } 1277 try { 1278 boolean done = false; 1279 while (!done) { 1280 int tag = input.readTag(); 1281 switch (tag) { 1282 case 0: 1283 done = true; 1284 break; 1285 case 10: 1286 { 1287 topic_ = input.readStringRequireUtf8(); 1288 bitField0_ |= 0x00000001; 1289 break; 1290 } // case 10 1291 default: 1292 { 1293 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1294 done = true; // was an endgroup tag 1295 } 1296 break; 1297 } // default: 1298 } // switch (tag) 1299 } // while (!done) 1300 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1301 throw e.unwrapIOException(); 1302 } finally { 1303 onChanged(); 1304 } // finally 1305 return this; 1306 } 1307 1308 private int bitField0_; 1309 1310 private java.lang.Object topic_ = ""; 1311 /** 1312 * 1313 * 1314 * <pre> 1315 * Cloud Pub/Sub topic to send notifications to. The topic must have given 1316 * publishing access rights to the DLP API service account executing 1317 * the long running DlpJob sending the notifications. 1318 * Format is projects/{project}/topics/{topic}. 1319 * </pre> 1320 * 1321 * <code>string topic = 1;</code> 1322 * 1323 * @return The topic. 1324 */ getTopic()1325 public java.lang.String getTopic() { 1326 java.lang.Object ref = topic_; 1327 if (!(ref instanceof java.lang.String)) { 1328 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1329 java.lang.String s = bs.toStringUtf8(); 1330 topic_ = s; 1331 return s; 1332 } else { 1333 return (java.lang.String) ref; 1334 } 1335 } 1336 /** 1337 * 1338 * 1339 * <pre> 1340 * Cloud Pub/Sub topic to send notifications to. The topic must have given 1341 * publishing access rights to the DLP API service account executing 1342 * the long running DlpJob sending the notifications. 1343 * Format is projects/{project}/topics/{topic}. 1344 * </pre> 1345 * 1346 * <code>string topic = 1;</code> 1347 * 1348 * @return The bytes for topic. 1349 */ getTopicBytes()1350 public com.google.protobuf.ByteString getTopicBytes() { 1351 java.lang.Object ref = topic_; 1352 if (ref instanceof String) { 1353 com.google.protobuf.ByteString b = 1354 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1355 topic_ = b; 1356 return b; 1357 } else { 1358 return (com.google.protobuf.ByteString) ref; 1359 } 1360 } 1361 /** 1362 * 1363 * 1364 * <pre> 1365 * Cloud Pub/Sub topic to send notifications to. The topic must have given 1366 * publishing access rights to the DLP API service account executing 1367 * the long running DlpJob sending the notifications. 1368 * Format is projects/{project}/topics/{topic}. 1369 * </pre> 1370 * 1371 * <code>string topic = 1;</code> 1372 * 1373 * @param value The topic to set. 1374 * @return This builder for chaining. 1375 */ setTopic(java.lang.String value)1376 public Builder setTopic(java.lang.String value) { 1377 if (value == null) { 1378 throw new NullPointerException(); 1379 } 1380 topic_ = value; 1381 bitField0_ |= 0x00000001; 1382 onChanged(); 1383 return this; 1384 } 1385 /** 1386 * 1387 * 1388 * <pre> 1389 * Cloud Pub/Sub topic to send notifications to. The topic must have given 1390 * publishing access rights to the DLP API service account executing 1391 * the long running DlpJob sending the notifications. 1392 * Format is projects/{project}/topics/{topic}. 1393 * </pre> 1394 * 1395 * <code>string topic = 1;</code> 1396 * 1397 * @return This builder for chaining. 1398 */ clearTopic()1399 public Builder clearTopic() { 1400 topic_ = getDefaultInstance().getTopic(); 1401 bitField0_ = (bitField0_ & ~0x00000001); 1402 onChanged(); 1403 return this; 1404 } 1405 /** 1406 * 1407 * 1408 * <pre> 1409 * Cloud Pub/Sub topic to send notifications to. The topic must have given 1410 * publishing access rights to the DLP API service account executing 1411 * the long running DlpJob sending the notifications. 1412 * Format is projects/{project}/topics/{topic}. 1413 * </pre> 1414 * 1415 * <code>string topic = 1;</code> 1416 * 1417 * @param value The bytes for topic to set. 1418 * @return This builder for chaining. 1419 */ setTopicBytes(com.google.protobuf.ByteString value)1420 public Builder setTopicBytes(com.google.protobuf.ByteString value) { 1421 if (value == null) { 1422 throw new NullPointerException(); 1423 } 1424 checkByteStringIsUtf8(value); 1425 topic_ = value; 1426 bitField0_ |= 0x00000001; 1427 onChanged(); 1428 return this; 1429 } 1430 1431 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1432 public final Builder setUnknownFields( 1433 final com.google.protobuf.UnknownFieldSet unknownFields) { 1434 return super.setUnknownFields(unknownFields); 1435 } 1436 1437 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1438 public final Builder mergeUnknownFields( 1439 final com.google.protobuf.UnknownFieldSet unknownFields) { 1440 return super.mergeUnknownFields(unknownFields); 1441 } 1442 1443 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.PublishToPubSub) 1444 } 1445 1446 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishToPubSub) 1447 private static final com.google.privacy.dlp.v2.Action.PublishToPubSub DEFAULT_INSTANCE; 1448 1449 static { 1450 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.PublishToPubSub(); 1451 } 1452 getDefaultInstance()1453 public static com.google.privacy.dlp.v2.Action.PublishToPubSub getDefaultInstance() { 1454 return DEFAULT_INSTANCE; 1455 } 1456 1457 private static final com.google.protobuf.Parser<PublishToPubSub> PARSER = 1458 new com.google.protobuf.AbstractParser<PublishToPubSub>() { 1459 @java.lang.Override 1460 public PublishToPubSub parsePartialFrom( 1461 com.google.protobuf.CodedInputStream input, 1462 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1463 throws com.google.protobuf.InvalidProtocolBufferException { 1464 Builder builder = newBuilder(); 1465 try { 1466 builder.mergeFrom(input, extensionRegistry); 1467 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1468 throw e.setUnfinishedMessage(builder.buildPartial()); 1469 } catch (com.google.protobuf.UninitializedMessageException e) { 1470 throw e.asInvalidProtocolBufferException() 1471 .setUnfinishedMessage(builder.buildPartial()); 1472 } catch (java.io.IOException e) { 1473 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1474 .setUnfinishedMessage(builder.buildPartial()); 1475 } 1476 return builder.buildPartial(); 1477 } 1478 }; 1479 parser()1480 public static com.google.protobuf.Parser<PublishToPubSub> parser() { 1481 return PARSER; 1482 } 1483 1484 @java.lang.Override getParserForType()1485 public com.google.protobuf.Parser<PublishToPubSub> getParserForType() { 1486 return PARSER; 1487 } 1488 1489 @java.lang.Override getDefaultInstanceForType()1490 public com.google.privacy.dlp.v2.Action.PublishToPubSub getDefaultInstanceForType() { 1491 return DEFAULT_INSTANCE; 1492 } 1493 } 1494 1495 public interface PublishSummaryToCsccOrBuilder 1496 extends 1497 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.PublishSummaryToCscc) 1498 com.google.protobuf.MessageOrBuilder {} 1499 /** 1500 * 1501 * 1502 * <pre> 1503 * Publish the result summary of a DlpJob to the Cloud Security 1504 * Command Center (CSCC Alpha). 1505 * This action is only available for projects which are parts of 1506 * an organization and whitelisted for the alpha Cloud Security Command 1507 * Center. 1508 * The action will publish the count of finding instances and their info 1509 * types. The summary of findings will be persisted in CSCC and are governed 1510 * by CSCC service-specific policy, see 1511 * https://cloud.google.com/terms/service-terms Only a single instance of this 1512 * action can be specified. Compatible with: Inspect 1513 * </pre> 1514 * 1515 * Protobuf type {@code google.privacy.dlp.v2.Action.PublishSummaryToCscc} 1516 */ 1517 public static final class PublishSummaryToCscc extends com.google.protobuf.GeneratedMessageV3 1518 implements 1519 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.PublishSummaryToCscc) 1520 PublishSummaryToCsccOrBuilder { 1521 private static final long serialVersionUID = 0L; 1522 // Use PublishSummaryToCscc.newBuilder() to construct. PublishSummaryToCscc(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1523 private PublishSummaryToCscc(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 1524 super(builder); 1525 } 1526 PublishSummaryToCscc()1527 private PublishSummaryToCscc() {} 1528 1529 @java.lang.Override 1530 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)1531 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 1532 return new PublishSummaryToCscc(); 1533 } 1534 1535 @java.lang.Override getUnknownFields()1536 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 1537 return this.unknownFields; 1538 } 1539 getDescriptor()1540 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1541 return com.google.privacy.dlp.v2.DlpProto 1542 .internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_descriptor; 1543 } 1544 1545 @java.lang.Override 1546 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1547 internalGetFieldAccessorTable() { 1548 return com.google.privacy.dlp.v2.DlpProto 1549 .internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_fieldAccessorTable 1550 .ensureFieldAccessorsInitialized( 1551 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.class, 1552 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder.class); 1553 } 1554 1555 private byte memoizedIsInitialized = -1; 1556 1557 @java.lang.Override isInitialized()1558 public final boolean isInitialized() { 1559 byte isInitialized = memoizedIsInitialized; 1560 if (isInitialized == 1) return true; 1561 if (isInitialized == 0) return false; 1562 1563 memoizedIsInitialized = 1; 1564 return true; 1565 } 1566 1567 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1568 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1569 getUnknownFields().writeTo(output); 1570 } 1571 1572 @java.lang.Override getSerializedSize()1573 public int getSerializedSize() { 1574 int size = memoizedSize; 1575 if (size != -1) return size; 1576 1577 size = 0; 1578 size += getUnknownFields().getSerializedSize(); 1579 memoizedSize = size; 1580 return size; 1581 } 1582 1583 @java.lang.Override equals(final java.lang.Object obj)1584 public boolean equals(final java.lang.Object obj) { 1585 if (obj == this) { 1586 return true; 1587 } 1588 if (!(obj instanceof com.google.privacy.dlp.v2.Action.PublishSummaryToCscc)) { 1589 return super.equals(obj); 1590 } 1591 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc other = 1592 (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) obj; 1593 1594 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1595 return true; 1596 } 1597 1598 @java.lang.Override hashCode()1599 public int hashCode() { 1600 if (memoizedHashCode != 0) { 1601 return memoizedHashCode; 1602 } 1603 int hash = 41; 1604 hash = (19 * hash) + getDescriptor().hashCode(); 1605 hash = (29 * hash) + getUnknownFields().hashCode(); 1606 memoizedHashCode = hash; 1607 return hash; 1608 } 1609 parseFrom( java.nio.ByteBuffer data)1610 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom( 1611 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 1612 return PARSER.parseFrom(data); 1613 } 1614 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1615 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom( 1616 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1617 throws com.google.protobuf.InvalidProtocolBufferException { 1618 return PARSER.parseFrom(data, extensionRegistry); 1619 } 1620 parseFrom( com.google.protobuf.ByteString data)1621 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom( 1622 com.google.protobuf.ByteString data) 1623 throws com.google.protobuf.InvalidProtocolBufferException { 1624 return PARSER.parseFrom(data); 1625 } 1626 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1627 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom( 1628 com.google.protobuf.ByteString data, 1629 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1630 throws com.google.protobuf.InvalidProtocolBufferException { 1631 return PARSER.parseFrom(data, extensionRegistry); 1632 } 1633 parseFrom(byte[] data)1634 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom(byte[] data) 1635 throws com.google.protobuf.InvalidProtocolBufferException { 1636 return PARSER.parseFrom(data); 1637 } 1638 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1639 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom( 1640 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1641 throws com.google.protobuf.InvalidProtocolBufferException { 1642 return PARSER.parseFrom(data, extensionRegistry); 1643 } 1644 parseFrom( java.io.InputStream input)1645 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom( 1646 java.io.InputStream input) throws java.io.IOException { 1647 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1648 } 1649 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1650 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom( 1651 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1652 throws java.io.IOException { 1653 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1654 PARSER, input, extensionRegistry); 1655 } 1656 parseDelimitedFrom( java.io.InputStream input)1657 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseDelimitedFrom( 1658 java.io.InputStream input) throws java.io.IOException { 1659 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1660 } 1661 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1662 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseDelimitedFrom( 1663 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1664 throws java.io.IOException { 1665 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1666 PARSER, input, extensionRegistry); 1667 } 1668 parseFrom( com.google.protobuf.CodedInputStream input)1669 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom( 1670 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1671 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1672 } 1673 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1674 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom( 1675 com.google.protobuf.CodedInputStream input, 1676 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1677 throws java.io.IOException { 1678 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1679 PARSER, input, extensionRegistry); 1680 } 1681 1682 @java.lang.Override newBuilderForType()1683 public Builder newBuilderForType() { 1684 return newBuilder(); 1685 } 1686 newBuilder()1687 public static Builder newBuilder() { 1688 return DEFAULT_INSTANCE.toBuilder(); 1689 } 1690 newBuilder( com.google.privacy.dlp.v2.Action.PublishSummaryToCscc prototype)1691 public static Builder newBuilder( 1692 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc prototype) { 1693 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1694 } 1695 1696 @java.lang.Override toBuilder()1697 public Builder toBuilder() { 1698 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1699 } 1700 1701 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1702 protected Builder newBuilderForType( 1703 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1704 Builder builder = new Builder(parent); 1705 return builder; 1706 } 1707 /** 1708 * 1709 * 1710 * <pre> 1711 * Publish the result summary of a DlpJob to the Cloud Security 1712 * Command Center (CSCC Alpha). 1713 * This action is only available for projects which are parts of 1714 * an organization and whitelisted for the alpha Cloud Security Command 1715 * Center. 1716 * The action will publish the count of finding instances and their info 1717 * types. The summary of findings will be persisted in CSCC and are governed 1718 * by CSCC service-specific policy, see 1719 * https://cloud.google.com/terms/service-terms Only a single instance of this 1720 * action can be specified. Compatible with: Inspect 1721 * </pre> 1722 * 1723 * Protobuf type {@code google.privacy.dlp.v2.Action.PublishSummaryToCscc} 1724 */ 1725 public static final class Builder 1726 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1727 implements 1728 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.PublishSummaryToCscc) 1729 com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder { getDescriptor()1730 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1731 return com.google.privacy.dlp.v2.DlpProto 1732 .internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_descriptor; 1733 } 1734 1735 @java.lang.Override 1736 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1737 internalGetFieldAccessorTable() { 1738 return com.google.privacy.dlp.v2.DlpProto 1739 .internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_fieldAccessorTable 1740 .ensureFieldAccessorsInitialized( 1741 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.class, 1742 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder.class); 1743 } 1744 1745 // Construct using com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.newBuilder() Builder()1746 private Builder() {} 1747 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1748 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1749 super(parent); 1750 } 1751 1752 @java.lang.Override clear()1753 public Builder clear() { 1754 super.clear(); 1755 return this; 1756 } 1757 1758 @java.lang.Override getDescriptorForType()1759 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1760 return com.google.privacy.dlp.v2.DlpProto 1761 .internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_descriptor; 1762 } 1763 1764 @java.lang.Override getDefaultInstanceForType()1765 public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getDefaultInstanceForType() { 1766 return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance(); 1767 } 1768 1769 @java.lang.Override build()1770 public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc build() { 1771 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc result = buildPartial(); 1772 if (!result.isInitialized()) { 1773 throw newUninitializedMessageException(result); 1774 } 1775 return result; 1776 } 1777 1778 @java.lang.Override buildPartial()1779 public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc buildPartial() { 1780 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc result = 1781 new com.google.privacy.dlp.v2.Action.PublishSummaryToCscc(this); 1782 onBuilt(); 1783 return result; 1784 } 1785 1786 @java.lang.Override clone()1787 public Builder clone() { 1788 return super.clone(); 1789 } 1790 1791 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1792 public Builder setField( 1793 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1794 return super.setField(field, value); 1795 } 1796 1797 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1798 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1799 return super.clearField(field); 1800 } 1801 1802 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1803 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1804 return super.clearOneof(oneof); 1805 } 1806 1807 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1808 public Builder setRepeatedField( 1809 com.google.protobuf.Descriptors.FieldDescriptor field, 1810 int index, 1811 java.lang.Object value) { 1812 return super.setRepeatedField(field, index, value); 1813 } 1814 1815 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1816 public Builder addRepeatedField( 1817 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1818 return super.addRepeatedField(field, value); 1819 } 1820 1821 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1822 public Builder mergeFrom(com.google.protobuf.Message other) { 1823 if (other instanceof com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) { 1824 return mergeFrom((com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) other); 1825 } else { 1826 super.mergeFrom(other); 1827 return this; 1828 } 1829 } 1830 mergeFrom(com.google.privacy.dlp.v2.Action.PublishSummaryToCscc other)1831 public Builder mergeFrom(com.google.privacy.dlp.v2.Action.PublishSummaryToCscc other) { 1832 if (other == com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance()) 1833 return this; 1834 this.mergeUnknownFields(other.getUnknownFields()); 1835 onChanged(); 1836 return this; 1837 } 1838 1839 @java.lang.Override isInitialized()1840 public final boolean isInitialized() { 1841 return true; 1842 } 1843 1844 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1845 public Builder mergeFrom( 1846 com.google.protobuf.CodedInputStream input, 1847 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1848 throws java.io.IOException { 1849 if (extensionRegistry == null) { 1850 throw new java.lang.NullPointerException(); 1851 } 1852 try { 1853 boolean done = false; 1854 while (!done) { 1855 int tag = input.readTag(); 1856 switch (tag) { 1857 case 0: 1858 done = true; 1859 break; 1860 default: 1861 { 1862 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1863 done = true; // was an endgroup tag 1864 } 1865 break; 1866 } // default: 1867 } // switch (tag) 1868 } // while (!done) 1869 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1870 throw e.unwrapIOException(); 1871 } finally { 1872 onChanged(); 1873 } // finally 1874 return this; 1875 } 1876 1877 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1878 public final Builder setUnknownFields( 1879 final com.google.protobuf.UnknownFieldSet unknownFields) { 1880 return super.setUnknownFields(unknownFields); 1881 } 1882 1883 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1884 public final Builder mergeUnknownFields( 1885 final com.google.protobuf.UnknownFieldSet unknownFields) { 1886 return super.mergeUnknownFields(unknownFields); 1887 } 1888 1889 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.PublishSummaryToCscc) 1890 } 1891 1892 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishSummaryToCscc) 1893 private static final com.google.privacy.dlp.v2.Action.PublishSummaryToCscc DEFAULT_INSTANCE; 1894 1895 static { 1896 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.PublishSummaryToCscc(); 1897 } 1898 getDefaultInstance()1899 public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getDefaultInstance() { 1900 return DEFAULT_INSTANCE; 1901 } 1902 1903 private static final com.google.protobuf.Parser<PublishSummaryToCscc> PARSER = 1904 new com.google.protobuf.AbstractParser<PublishSummaryToCscc>() { 1905 @java.lang.Override 1906 public PublishSummaryToCscc parsePartialFrom( 1907 com.google.protobuf.CodedInputStream input, 1908 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1909 throws com.google.protobuf.InvalidProtocolBufferException { 1910 Builder builder = newBuilder(); 1911 try { 1912 builder.mergeFrom(input, extensionRegistry); 1913 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1914 throw e.setUnfinishedMessage(builder.buildPartial()); 1915 } catch (com.google.protobuf.UninitializedMessageException e) { 1916 throw e.asInvalidProtocolBufferException() 1917 .setUnfinishedMessage(builder.buildPartial()); 1918 } catch (java.io.IOException e) { 1919 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1920 .setUnfinishedMessage(builder.buildPartial()); 1921 } 1922 return builder.buildPartial(); 1923 } 1924 }; 1925 parser()1926 public static com.google.protobuf.Parser<PublishSummaryToCscc> parser() { 1927 return PARSER; 1928 } 1929 1930 @java.lang.Override getParserForType()1931 public com.google.protobuf.Parser<PublishSummaryToCscc> getParserForType() { 1932 return PARSER; 1933 } 1934 1935 @java.lang.Override getDefaultInstanceForType()1936 public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getDefaultInstanceForType() { 1937 return DEFAULT_INSTANCE; 1938 } 1939 } 1940 1941 public interface PublishFindingsToCloudDataCatalogOrBuilder 1942 extends 1943 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) 1944 com.google.protobuf.MessageOrBuilder {} 1945 /** 1946 * 1947 * 1948 * <pre> 1949 * Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag 1950 * templates are applied to the resource that Cloud DLP scanned. Data 1951 * Catalog tag templates are stored in the same project and region where the 1952 * BigQuery table exists. For Cloud DLP to create and apply the tag template, 1953 * the Cloud DLP service agent must have the 1954 * `roles/datacatalog.tagTemplateOwner` permission on the project. The tag 1955 * template contains fields summarizing the results of the DlpJob. Any field 1956 * values previously written by another DlpJob are deleted. [InfoType naming 1957 * patterns][google.privacy.dlp.v2.InfoType] are strictly enforced when using 1958 * this feature. 1959 * Findings are persisted in Data Catalog storage and are governed by 1960 * service-specific policies for Data Catalog. For more information, see 1961 * [Service Specific Terms](https://cloud.google.com/terms/service-terms). 1962 * Only a single instance of this action can be specified. This action is 1963 * allowed only if all resources being scanned are BigQuery tables. 1964 * Compatible with: Inspect 1965 * </pre> 1966 * 1967 * Protobuf type {@code google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog} 1968 */ 1969 public static final class PublishFindingsToCloudDataCatalog 1970 extends com.google.protobuf.GeneratedMessageV3 1971 implements 1972 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) 1973 PublishFindingsToCloudDataCatalogOrBuilder { 1974 private static final long serialVersionUID = 0L; 1975 // Use PublishFindingsToCloudDataCatalog.newBuilder() to construct. PublishFindingsToCloudDataCatalog( com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1976 private PublishFindingsToCloudDataCatalog( 1977 com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 1978 super(builder); 1979 } 1980 PublishFindingsToCloudDataCatalog()1981 private PublishFindingsToCloudDataCatalog() {} 1982 1983 @java.lang.Override 1984 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)1985 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 1986 return new PublishFindingsToCloudDataCatalog(); 1987 } 1988 1989 @java.lang.Override getUnknownFields()1990 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 1991 return this.unknownFields; 1992 } 1993 getDescriptor()1994 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1995 return com.google.privacy.dlp.v2.DlpProto 1996 .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor; 1997 } 1998 1999 @java.lang.Override 2000 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2001 internalGetFieldAccessorTable() { 2002 return com.google.privacy.dlp.v2.DlpProto 2003 .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_fieldAccessorTable 2004 .ensureFieldAccessorsInitialized( 2005 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.class, 2006 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder.class); 2007 } 2008 2009 private byte memoizedIsInitialized = -1; 2010 2011 @java.lang.Override isInitialized()2012 public final boolean isInitialized() { 2013 byte isInitialized = memoizedIsInitialized; 2014 if (isInitialized == 1) return true; 2015 if (isInitialized == 0) return false; 2016 2017 memoizedIsInitialized = 1; 2018 return true; 2019 } 2020 2021 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)2022 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 2023 getUnknownFields().writeTo(output); 2024 } 2025 2026 @java.lang.Override getSerializedSize()2027 public int getSerializedSize() { 2028 int size = memoizedSize; 2029 if (size != -1) return size; 2030 2031 size = 0; 2032 size += getUnknownFields().getSerializedSize(); 2033 memoizedSize = size; 2034 return size; 2035 } 2036 2037 @java.lang.Override equals(final java.lang.Object obj)2038 public boolean equals(final java.lang.Object obj) { 2039 if (obj == this) { 2040 return true; 2041 } 2042 if (!(obj instanceof com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog)) { 2043 return super.equals(obj); 2044 } 2045 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog other = 2046 (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) obj; 2047 2048 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2049 return true; 2050 } 2051 2052 @java.lang.Override hashCode()2053 public int hashCode() { 2054 if (memoizedHashCode != 0) { 2055 return memoizedHashCode; 2056 } 2057 int hash = 41; 2058 hash = (19 * hash) + getDescriptor().hashCode(); 2059 hash = (29 * hash) + getUnknownFields().hashCode(); 2060 memoizedHashCode = hash; 2061 return hash; 2062 } 2063 parseFrom( java.nio.ByteBuffer data)2064 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2065 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 2066 return PARSER.parseFrom(data); 2067 } 2068 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2069 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2070 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2071 throws com.google.protobuf.InvalidProtocolBufferException { 2072 return PARSER.parseFrom(data, extensionRegistry); 2073 } 2074 parseFrom( com.google.protobuf.ByteString data)2075 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2076 com.google.protobuf.ByteString data) 2077 throws com.google.protobuf.InvalidProtocolBufferException { 2078 return PARSER.parseFrom(data); 2079 } 2080 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2081 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2082 com.google.protobuf.ByteString data, 2083 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2084 throws com.google.protobuf.InvalidProtocolBufferException { 2085 return PARSER.parseFrom(data, extensionRegistry); 2086 } 2087 parseFrom( byte[] data)2088 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2089 byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 2090 return PARSER.parseFrom(data); 2091 } 2092 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2093 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2094 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2095 throws com.google.protobuf.InvalidProtocolBufferException { 2096 return PARSER.parseFrom(data, extensionRegistry); 2097 } 2098 parseFrom( java.io.InputStream input)2099 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2100 java.io.InputStream input) throws java.io.IOException { 2101 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2102 } 2103 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2104 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2105 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2106 throws java.io.IOException { 2107 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2108 PARSER, input, extensionRegistry); 2109 } 2110 2111 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseDelimitedFrom(java.io.InputStream input)2112 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { 2113 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2114 } 2115 2116 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2117 parseDelimitedFrom( 2118 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2119 throws java.io.IOException { 2120 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2121 PARSER, input, extensionRegistry); 2122 } 2123 parseFrom( com.google.protobuf.CodedInputStream input)2124 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2125 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2126 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2127 } 2128 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2129 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( 2130 com.google.protobuf.CodedInputStream input, 2131 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2132 throws java.io.IOException { 2133 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2134 PARSER, input, extensionRegistry); 2135 } 2136 2137 @java.lang.Override newBuilderForType()2138 public Builder newBuilderForType() { 2139 return newBuilder(); 2140 } 2141 newBuilder()2142 public static Builder newBuilder() { 2143 return DEFAULT_INSTANCE.toBuilder(); 2144 } 2145 newBuilder( com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog prototype)2146 public static Builder newBuilder( 2147 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog prototype) { 2148 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2149 } 2150 2151 @java.lang.Override toBuilder()2152 public Builder toBuilder() { 2153 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2154 } 2155 2156 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2157 protected Builder newBuilderForType( 2158 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2159 Builder builder = new Builder(parent); 2160 return builder; 2161 } 2162 /** 2163 * 2164 * 2165 * <pre> 2166 * Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag 2167 * templates are applied to the resource that Cloud DLP scanned. Data 2168 * Catalog tag templates are stored in the same project and region where the 2169 * BigQuery table exists. For Cloud DLP to create and apply the tag template, 2170 * the Cloud DLP service agent must have the 2171 * `roles/datacatalog.tagTemplateOwner` permission on the project. The tag 2172 * template contains fields summarizing the results of the DlpJob. Any field 2173 * values previously written by another DlpJob are deleted. [InfoType naming 2174 * patterns][google.privacy.dlp.v2.InfoType] are strictly enforced when using 2175 * this feature. 2176 * Findings are persisted in Data Catalog storage and are governed by 2177 * service-specific policies for Data Catalog. For more information, see 2178 * [Service Specific Terms](https://cloud.google.com/terms/service-terms). 2179 * Only a single instance of this action can be specified. This action is 2180 * allowed only if all resources being scanned are BigQuery tables. 2181 * Compatible with: Inspect 2182 * </pre> 2183 * 2184 * Protobuf type {@code google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog} 2185 */ 2186 public static final class Builder 2187 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2188 implements 2189 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) 2190 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder { getDescriptor()2191 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2192 return com.google.privacy.dlp.v2.DlpProto 2193 .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor; 2194 } 2195 2196 @java.lang.Override 2197 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2198 internalGetFieldAccessorTable() { 2199 return com.google.privacy.dlp.v2.DlpProto 2200 .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_fieldAccessorTable 2201 .ensureFieldAccessorsInitialized( 2202 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.class, 2203 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder.class); 2204 } 2205 2206 // Construct using 2207 // com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.newBuilder() Builder()2208 private Builder() {} 2209 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2210 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2211 super(parent); 2212 } 2213 2214 @java.lang.Override clear()2215 public Builder clear() { 2216 super.clear(); 2217 return this; 2218 } 2219 2220 @java.lang.Override getDescriptorForType()2221 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2222 return com.google.privacy.dlp.v2.DlpProto 2223 .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor; 2224 } 2225 2226 @java.lang.Override 2227 public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog getDefaultInstanceForType()2228 getDefaultInstanceForType() { 2229 return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog 2230 .getDefaultInstance(); 2231 } 2232 2233 @java.lang.Override build()2234 public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog build() { 2235 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog result = buildPartial(); 2236 if (!result.isInitialized()) { 2237 throw newUninitializedMessageException(result); 2238 } 2239 return result; 2240 } 2241 2242 @java.lang.Override buildPartial()2243 public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog buildPartial() { 2244 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog result = 2245 new com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog(this); 2246 onBuilt(); 2247 return result; 2248 } 2249 2250 @java.lang.Override clone()2251 public Builder clone() { 2252 return super.clone(); 2253 } 2254 2255 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2256 public Builder setField( 2257 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2258 return super.setField(field, value); 2259 } 2260 2261 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2262 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2263 return super.clearField(field); 2264 } 2265 2266 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2267 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2268 return super.clearOneof(oneof); 2269 } 2270 2271 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2272 public Builder setRepeatedField( 2273 com.google.protobuf.Descriptors.FieldDescriptor field, 2274 int index, 2275 java.lang.Object value) { 2276 return super.setRepeatedField(field, index, value); 2277 } 2278 2279 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2280 public Builder addRepeatedField( 2281 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2282 return super.addRepeatedField(field, value); 2283 } 2284 2285 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2286 public Builder mergeFrom(com.google.protobuf.Message other) { 2287 if (other instanceof com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) { 2288 return mergeFrom( 2289 (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) other); 2290 } else { 2291 super.mergeFrom(other); 2292 return this; 2293 } 2294 } 2295 mergeFrom( com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog other)2296 public Builder mergeFrom( 2297 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog other) { 2298 if (other 2299 == com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog 2300 .getDefaultInstance()) return this; 2301 this.mergeUnknownFields(other.getUnknownFields()); 2302 onChanged(); 2303 return this; 2304 } 2305 2306 @java.lang.Override isInitialized()2307 public final boolean isInitialized() { 2308 return true; 2309 } 2310 2311 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2312 public Builder mergeFrom( 2313 com.google.protobuf.CodedInputStream input, 2314 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2315 throws java.io.IOException { 2316 if (extensionRegistry == null) { 2317 throw new java.lang.NullPointerException(); 2318 } 2319 try { 2320 boolean done = false; 2321 while (!done) { 2322 int tag = input.readTag(); 2323 switch (tag) { 2324 case 0: 2325 done = true; 2326 break; 2327 default: 2328 { 2329 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2330 done = true; // was an endgroup tag 2331 } 2332 break; 2333 } // default: 2334 } // switch (tag) 2335 } // while (!done) 2336 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2337 throw e.unwrapIOException(); 2338 } finally { 2339 onChanged(); 2340 } // finally 2341 return this; 2342 } 2343 2344 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2345 public final Builder setUnknownFields( 2346 final com.google.protobuf.UnknownFieldSet unknownFields) { 2347 return super.setUnknownFields(unknownFields); 2348 } 2349 2350 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2351 public final Builder mergeUnknownFields( 2352 final com.google.protobuf.UnknownFieldSet unknownFields) { 2353 return super.mergeUnknownFields(unknownFields); 2354 } 2355 2356 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) 2357 } 2358 2359 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) 2360 private static final com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog 2361 DEFAULT_INSTANCE; 2362 2363 static { 2364 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog(); 2365 } 2366 2367 public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog getDefaultInstance()2368 getDefaultInstance() { 2369 return DEFAULT_INSTANCE; 2370 } 2371 2372 private static final com.google.protobuf.Parser<PublishFindingsToCloudDataCatalog> PARSER = 2373 new com.google.protobuf.AbstractParser<PublishFindingsToCloudDataCatalog>() { 2374 @java.lang.Override 2375 public PublishFindingsToCloudDataCatalog parsePartialFrom( 2376 com.google.protobuf.CodedInputStream input, 2377 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2378 throws com.google.protobuf.InvalidProtocolBufferException { 2379 Builder builder = newBuilder(); 2380 try { 2381 builder.mergeFrom(input, extensionRegistry); 2382 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2383 throw e.setUnfinishedMessage(builder.buildPartial()); 2384 } catch (com.google.protobuf.UninitializedMessageException e) { 2385 throw e.asInvalidProtocolBufferException() 2386 .setUnfinishedMessage(builder.buildPartial()); 2387 } catch (java.io.IOException e) { 2388 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2389 .setUnfinishedMessage(builder.buildPartial()); 2390 } 2391 return builder.buildPartial(); 2392 } 2393 }; 2394 parser()2395 public static com.google.protobuf.Parser<PublishFindingsToCloudDataCatalog> parser() { 2396 return PARSER; 2397 } 2398 2399 @java.lang.Override getParserForType()2400 public com.google.protobuf.Parser<PublishFindingsToCloudDataCatalog> getParserForType() { 2401 return PARSER; 2402 } 2403 2404 @java.lang.Override 2405 public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog getDefaultInstanceForType()2406 getDefaultInstanceForType() { 2407 return DEFAULT_INSTANCE; 2408 } 2409 } 2410 2411 public interface DeidentifyOrBuilder 2412 extends 2413 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.Deidentify) 2414 com.google.protobuf.MessageOrBuilder { 2415 2416 /** 2417 * 2418 * 2419 * <pre> 2420 * User specified deidentify templates and configs for structured, 2421 * unstructured, and image files. 2422 * </pre> 2423 * 2424 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 2425 * 2426 * @return Whether the transformationConfig field is set. 2427 */ hasTransformationConfig()2428 boolean hasTransformationConfig(); 2429 /** 2430 * 2431 * 2432 * <pre> 2433 * User specified deidentify templates and configs for structured, 2434 * unstructured, and image files. 2435 * </pre> 2436 * 2437 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 2438 * 2439 * @return The transformationConfig. 2440 */ getTransformationConfig()2441 com.google.privacy.dlp.v2.TransformationConfig getTransformationConfig(); 2442 /** 2443 * 2444 * 2445 * <pre> 2446 * User specified deidentify templates and configs for structured, 2447 * unstructured, and image files. 2448 * </pre> 2449 * 2450 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 2451 */ getTransformationConfigOrBuilder()2452 com.google.privacy.dlp.v2.TransformationConfigOrBuilder getTransformationConfigOrBuilder(); 2453 2454 /** 2455 * 2456 * 2457 * <pre> 2458 * Config for storing transformation details. This is separate from the 2459 * de-identified content, and contains metadata about the successful 2460 * transformations and/or failures that occurred while de-identifying. This 2461 * needs to be set in order for users to access information about the status 2462 * of each transformation (see 2463 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 2464 * message for more information about what is noted). 2465 * </pre> 2466 * 2467 * <code> 2468 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 2469 * </code> 2470 * 2471 * @return Whether the transformationDetailsStorageConfig field is set. 2472 */ hasTransformationDetailsStorageConfig()2473 boolean hasTransformationDetailsStorageConfig(); 2474 /** 2475 * 2476 * 2477 * <pre> 2478 * Config for storing transformation details. This is separate from the 2479 * de-identified content, and contains metadata about the successful 2480 * transformations and/or failures that occurred while de-identifying. This 2481 * needs to be set in order for users to access information about the status 2482 * of each transformation (see 2483 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 2484 * message for more information about what is noted). 2485 * </pre> 2486 * 2487 * <code> 2488 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 2489 * </code> 2490 * 2491 * @return The transformationDetailsStorageConfig. 2492 */ 2493 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig getTransformationDetailsStorageConfig()2494 getTransformationDetailsStorageConfig(); 2495 /** 2496 * 2497 * 2498 * <pre> 2499 * Config for storing transformation details. This is separate from the 2500 * de-identified content, and contains metadata about the successful 2501 * transformations and/or failures that occurred while de-identifying. This 2502 * needs to be set in order for users to access information about the status 2503 * of each transformation (see 2504 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 2505 * message for more information about what is noted). 2506 * </pre> 2507 * 2508 * <code> 2509 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 2510 * </code> 2511 */ 2512 com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder getTransformationDetailsStorageConfigOrBuilder()2513 getTransformationDetailsStorageConfigOrBuilder(); 2514 2515 /** 2516 * 2517 * 2518 * <pre> 2519 * Required. User settable Cloud Storage bucket and folders to store de-identified 2520 * files. This field must be set for cloud storage deidentification. The 2521 * output Cloud Storage bucket must be different from the input bucket. 2522 * De-identified files will overwrite files in the output path. 2523 * Form of: gs://bucket/folder/ or gs://bucket 2524 * </pre> 2525 * 2526 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 2527 * 2528 * @return Whether the cloudStorageOutput field is set. 2529 */ hasCloudStorageOutput()2530 boolean hasCloudStorageOutput(); 2531 /** 2532 * 2533 * 2534 * <pre> 2535 * Required. User settable Cloud Storage bucket and folders to store de-identified 2536 * files. This field must be set for cloud storage deidentification. The 2537 * output Cloud Storage bucket must be different from the input bucket. 2538 * De-identified files will overwrite files in the output path. 2539 * Form of: gs://bucket/folder/ or gs://bucket 2540 * </pre> 2541 * 2542 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 2543 * 2544 * @return The cloudStorageOutput. 2545 */ getCloudStorageOutput()2546 java.lang.String getCloudStorageOutput(); 2547 /** 2548 * 2549 * 2550 * <pre> 2551 * Required. User settable Cloud Storage bucket and folders to store de-identified 2552 * files. This field must be set for cloud storage deidentification. The 2553 * output Cloud Storage bucket must be different from the input bucket. 2554 * De-identified files will overwrite files in the output path. 2555 * Form of: gs://bucket/folder/ or gs://bucket 2556 * </pre> 2557 * 2558 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 2559 * 2560 * @return The bytes for cloudStorageOutput. 2561 */ getCloudStorageOutputBytes()2562 com.google.protobuf.ByteString getCloudStorageOutputBytes(); 2563 2564 /** 2565 * 2566 * 2567 * <pre> 2568 * List of user-specified file type groups to transform. If specified, only 2569 * the files with these filetypes will be transformed. If empty, all 2570 * supported files will be transformed. Supported types may be automatically 2571 * added over time. If a file type is set in this field that isn't supported 2572 * by the Deidentify action then the job will fail and will not be 2573 * successfully created/started. Currently the only filetypes supported are: 2574 * IMAGES, TEXT_FILES, CSV, TSV. 2575 * </pre> 2576 * 2577 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 2578 * 2579 * @return A list containing the fileTypesToTransform. 2580 */ getFileTypesToTransformList()2581 java.util.List<com.google.privacy.dlp.v2.FileType> getFileTypesToTransformList(); 2582 /** 2583 * 2584 * 2585 * <pre> 2586 * List of user-specified file type groups to transform. If specified, only 2587 * the files with these filetypes will be transformed. If empty, all 2588 * supported files will be transformed. Supported types may be automatically 2589 * added over time. If a file type is set in this field that isn't supported 2590 * by the Deidentify action then the job will fail and will not be 2591 * successfully created/started. Currently the only filetypes supported are: 2592 * IMAGES, TEXT_FILES, CSV, TSV. 2593 * </pre> 2594 * 2595 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 2596 * 2597 * @return The count of fileTypesToTransform. 2598 */ getFileTypesToTransformCount()2599 int getFileTypesToTransformCount(); 2600 /** 2601 * 2602 * 2603 * <pre> 2604 * List of user-specified file type groups to transform. If specified, only 2605 * the files with these filetypes will be transformed. If empty, all 2606 * supported files will be transformed. Supported types may be automatically 2607 * added over time. If a file type is set in this field that isn't supported 2608 * by the Deidentify action then the job will fail and will not be 2609 * successfully created/started. Currently the only filetypes supported are: 2610 * IMAGES, TEXT_FILES, CSV, TSV. 2611 * </pre> 2612 * 2613 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 2614 * 2615 * @param index The index of the element to return. 2616 * @return The fileTypesToTransform at the given index. 2617 */ getFileTypesToTransform(int index)2618 com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index); 2619 /** 2620 * 2621 * 2622 * <pre> 2623 * List of user-specified file type groups to transform. If specified, only 2624 * the files with these filetypes will be transformed. If empty, all 2625 * supported files will be transformed. Supported types may be automatically 2626 * added over time. If a file type is set in this field that isn't supported 2627 * by the Deidentify action then the job will fail and will not be 2628 * successfully created/started. Currently the only filetypes supported are: 2629 * IMAGES, TEXT_FILES, CSV, TSV. 2630 * </pre> 2631 * 2632 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 2633 * 2634 * @return A list containing the enum numeric values on the wire for fileTypesToTransform. 2635 */ getFileTypesToTransformValueList()2636 java.util.List<java.lang.Integer> getFileTypesToTransformValueList(); 2637 /** 2638 * 2639 * 2640 * <pre> 2641 * List of user-specified file type groups to transform. If specified, only 2642 * the files with these filetypes will be transformed. If empty, all 2643 * supported files will be transformed. Supported types may be automatically 2644 * added over time. If a file type is set in this field that isn't supported 2645 * by the Deidentify action then the job will fail and will not be 2646 * successfully created/started. Currently the only filetypes supported are: 2647 * IMAGES, TEXT_FILES, CSV, TSV. 2648 * </pre> 2649 * 2650 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 2651 * 2652 * @param index The index of the value to return. 2653 * @return The enum numeric value on the wire of fileTypesToTransform at the given index. 2654 */ getFileTypesToTransformValue(int index)2655 int getFileTypesToTransformValue(int index); 2656 getOutputCase()2657 public com.google.privacy.dlp.v2.Action.Deidentify.OutputCase getOutputCase(); 2658 } 2659 /** 2660 * 2661 * 2662 * <pre> 2663 * Create a de-identified copy of the requested table or files. 2664 * A TransformationDetail will be created for each transformation. 2665 * If any rows in BigQuery are skipped during de-identification 2666 * (transformation errors or row size exceeds BigQuery insert API limits) they 2667 * are placed in the failure output table. If the original row exceeds 2668 * the BigQuery insert API limit it will be truncated when written to the 2669 * failure output table. The failure output table can be set in the 2670 * action.deidentify.output.big_query_output.deidentified_failure_output_table 2671 * field, if no table is set, a table will be automatically created in the 2672 * same project and dataset as the original table. 2673 * Compatible with: Inspect 2674 * </pre> 2675 * 2676 * Protobuf type {@code google.privacy.dlp.v2.Action.Deidentify} 2677 */ 2678 public static final class Deidentify extends com.google.protobuf.GeneratedMessageV3 2679 implements 2680 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.Deidentify) 2681 DeidentifyOrBuilder { 2682 private static final long serialVersionUID = 0L; 2683 // Use Deidentify.newBuilder() to construct. Deidentify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)2684 private Deidentify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 2685 super(builder); 2686 } 2687 Deidentify()2688 private Deidentify() { 2689 fileTypesToTransform_ = java.util.Collections.emptyList(); 2690 } 2691 2692 @java.lang.Override 2693 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)2694 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 2695 return new Deidentify(); 2696 } 2697 2698 @java.lang.Override getUnknownFields()2699 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 2700 return this.unknownFields; 2701 } 2702 getDescriptor()2703 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2704 return com.google.privacy.dlp.v2.DlpProto 2705 .internal_static_google_privacy_dlp_v2_Action_Deidentify_descriptor; 2706 } 2707 2708 @java.lang.Override 2709 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2710 internalGetFieldAccessorTable() { 2711 return com.google.privacy.dlp.v2.DlpProto 2712 .internal_static_google_privacy_dlp_v2_Action_Deidentify_fieldAccessorTable 2713 .ensureFieldAccessorsInitialized( 2714 com.google.privacy.dlp.v2.Action.Deidentify.class, 2715 com.google.privacy.dlp.v2.Action.Deidentify.Builder.class); 2716 } 2717 2718 private int outputCase_ = 0; 2719 private java.lang.Object output_; 2720 2721 public enum OutputCase 2722 implements 2723 com.google.protobuf.Internal.EnumLite, 2724 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 2725 CLOUD_STORAGE_OUTPUT(9), 2726 OUTPUT_NOT_SET(0); 2727 private final int value; 2728 OutputCase(int value)2729 private OutputCase(int value) { 2730 this.value = value; 2731 } 2732 /** 2733 * @param value The number of the enum to look for. 2734 * @return The enum associated with the given number. 2735 * @deprecated Use {@link #forNumber(int)} instead. 2736 */ 2737 @java.lang.Deprecated valueOf(int value)2738 public static OutputCase valueOf(int value) { 2739 return forNumber(value); 2740 } 2741 forNumber(int value)2742 public static OutputCase forNumber(int value) { 2743 switch (value) { 2744 case 9: 2745 return CLOUD_STORAGE_OUTPUT; 2746 case 0: 2747 return OUTPUT_NOT_SET; 2748 default: 2749 return null; 2750 } 2751 } 2752 getNumber()2753 public int getNumber() { 2754 return this.value; 2755 } 2756 }; 2757 getOutputCase()2758 public OutputCase getOutputCase() { 2759 return OutputCase.forNumber(outputCase_); 2760 } 2761 2762 public static final int TRANSFORMATION_CONFIG_FIELD_NUMBER = 7; 2763 private com.google.privacy.dlp.v2.TransformationConfig transformationConfig_; 2764 /** 2765 * 2766 * 2767 * <pre> 2768 * User specified deidentify templates and configs for structured, 2769 * unstructured, and image files. 2770 * </pre> 2771 * 2772 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 2773 * 2774 * @return Whether the transformationConfig field is set. 2775 */ 2776 @java.lang.Override hasTransformationConfig()2777 public boolean hasTransformationConfig() { 2778 return transformationConfig_ != null; 2779 } 2780 /** 2781 * 2782 * 2783 * <pre> 2784 * User specified deidentify templates and configs for structured, 2785 * unstructured, and image files. 2786 * </pre> 2787 * 2788 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 2789 * 2790 * @return The transformationConfig. 2791 */ 2792 @java.lang.Override getTransformationConfig()2793 public com.google.privacy.dlp.v2.TransformationConfig getTransformationConfig() { 2794 return transformationConfig_ == null 2795 ? com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance() 2796 : transformationConfig_; 2797 } 2798 /** 2799 * 2800 * 2801 * <pre> 2802 * User specified deidentify templates and configs for structured, 2803 * unstructured, and image files. 2804 * </pre> 2805 * 2806 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 2807 */ 2808 @java.lang.Override 2809 public com.google.privacy.dlp.v2.TransformationConfigOrBuilder getTransformationConfigOrBuilder()2810 getTransformationConfigOrBuilder() { 2811 return transformationConfig_ == null 2812 ? com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance() 2813 : transformationConfig_; 2814 } 2815 2816 public static final int TRANSFORMATION_DETAILS_STORAGE_CONFIG_FIELD_NUMBER = 3; 2817 private com.google.privacy.dlp.v2.TransformationDetailsStorageConfig 2818 transformationDetailsStorageConfig_; 2819 /** 2820 * 2821 * 2822 * <pre> 2823 * Config for storing transformation details. This is separate from the 2824 * de-identified content, and contains metadata about the successful 2825 * transformations and/or failures that occurred while de-identifying. This 2826 * needs to be set in order for users to access information about the status 2827 * of each transformation (see 2828 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 2829 * message for more information about what is noted). 2830 * </pre> 2831 * 2832 * <code> 2833 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 2834 * </code> 2835 * 2836 * @return Whether the transformationDetailsStorageConfig field is set. 2837 */ 2838 @java.lang.Override hasTransformationDetailsStorageConfig()2839 public boolean hasTransformationDetailsStorageConfig() { 2840 return transformationDetailsStorageConfig_ != null; 2841 } 2842 /** 2843 * 2844 * 2845 * <pre> 2846 * Config for storing transformation details. This is separate from the 2847 * de-identified content, and contains metadata about the successful 2848 * transformations and/or failures that occurred while de-identifying. This 2849 * needs to be set in order for users to access information about the status 2850 * of each transformation (see 2851 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 2852 * message for more information about what is noted). 2853 * </pre> 2854 * 2855 * <code> 2856 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 2857 * </code> 2858 * 2859 * @return The transformationDetailsStorageConfig. 2860 */ 2861 @java.lang.Override 2862 public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig getTransformationDetailsStorageConfig()2863 getTransformationDetailsStorageConfig() { 2864 return transformationDetailsStorageConfig_ == null 2865 ? com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.getDefaultInstance() 2866 : transformationDetailsStorageConfig_; 2867 } 2868 /** 2869 * 2870 * 2871 * <pre> 2872 * Config for storing transformation details. This is separate from the 2873 * de-identified content, and contains metadata about the successful 2874 * transformations and/or failures that occurred while de-identifying. This 2875 * needs to be set in order for users to access information about the status 2876 * of each transformation (see 2877 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 2878 * message for more information about what is noted). 2879 * </pre> 2880 * 2881 * <code> 2882 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 2883 * </code> 2884 */ 2885 @java.lang.Override 2886 public com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder getTransformationDetailsStorageConfigOrBuilder()2887 getTransformationDetailsStorageConfigOrBuilder() { 2888 return transformationDetailsStorageConfig_ == null 2889 ? com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.getDefaultInstance() 2890 : transformationDetailsStorageConfig_; 2891 } 2892 2893 public static final int CLOUD_STORAGE_OUTPUT_FIELD_NUMBER = 9; 2894 /** 2895 * 2896 * 2897 * <pre> 2898 * Required. User settable Cloud Storage bucket and folders to store de-identified 2899 * files. This field must be set for cloud storage deidentification. The 2900 * output Cloud Storage bucket must be different from the input bucket. 2901 * De-identified files will overwrite files in the output path. 2902 * Form of: gs://bucket/folder/ or gs://bucket 2903 * </pre> 2904 * 2905 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 2906 * 2907 * @return Whether the cloudStorageOutput field is set. 2908 */ hasCloudStorageOutput()2909 public boolean hasCloudStorageOutput() { 2910 return outputCase_ == 9; 2911 } 2912 /** 2913 * 2914 * 2915 * <pre> 2916 * Required. User settable Cloud Storage bucket and folders to store de-identified 2917 * files. This field must be set for cloud storage deidentification. The 2918 * output Cloud Storage bucket must be different from the input bucket. 2919 * De-identified files will overwrite files in the output path. 2920 * Form of: gs://bucket/folder/ or gs://bucket 2921 * </pre> 2922 * 2923 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 2924 * 2925 * @return The cloudStorageOutput. 2926 */ getCloudStorageOutput()2927 public java.lang.String getCloudStorageOutput() { 2928 java.lang.Object ref = ""; 2929 if (outputCase_ == 9) { 2930 ref = output_; 2931 } 2932 if (ref instanceof java.lang.String) { 2933 return (java.lang.String) ref; 2934 } else { 2935 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2936 java.lang.String s = bs.toStringUtf8(); 2937 if (outputCase_ == 9) { 2938 output_ = s; 2939 } 2940 return s; 2941 } 2942 } 2943 /** 2944 * 2945 * 2946 * <pre> 2947 * Required. User settable Cloud Storage bucket and folders to store de-identified 2948 * files. This field must be set for cloud storage deidentification. The 2949 * output Cloud Storage bucket must be different from the input bucket. 2950 * De-identified files will overwrite files in the output path. 2951 * Form of: gs://bucket/folder/ or gs://bucket 2952 * </pre> 2953 * 2954 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 2955 * 2956 * @return The bytes for cloudStorageOutput. 2957 */ getCloudStorageOutputBytes()2958 public com.google.protobuf.ByteString getCloudStorageOutputBytes() { 2959 java.lang.Object ref = ""; 2960 if (outputCase_ == 9) { 2961 ref = output_; 2962 } 2963 if (ref instanceof java.lang.String) { 2964 com.google.protobuf.ByteString b = 2965 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2966 if (outputCase_ == 9) { 2967 output_ = b; 2968 } 2969 return b; 2970 } else { 2971 return (com.google.protobuf.ByteString) ref; 2972 } 2973 } 2974 2975 public static final int FILE_TYPES_TO_TRANSFORM_FIELD_NUMBER = 8; 2976 2977 @SuppressWarnings("serial") 2978 private java.util.List<java.lang.Integer> fileTypesToTransform_; 2979 2980 private static final com.google.protobuf.Internal.ListAdapter.Converter< 2981 java.lang.Integer, com.google.privacy.dlp.v2.FileType> 2982 fileTypesToTransform_converter_ = 2983 new com.google.protobuf.Internal.ListAdapter.Converter< 2984 java.lang.Integer, com.google.privacy.dlp.v2.FileType>() { 2985 public com.google.privacy.dlp.v2.FileType convert(java.lang.Integer from) { 2986 com.google.privacy.dlp.v2.FileType result = 2987 com.google.privacy.dlp.v2.FileType.forNumber(from); 2988 return result == null ? com.google.privacy.dlp.v2.FileType.UNRECOGNIZED : result; 2989 } 2990 }; 2991 /** 2992 * 2993 * 2994 * <pre> 2995 * List of user-specified file type groups to transform. If specified, only 2996 * the files with these filetypes will be transformed. If empty, all 2997 * supported files will be transformed. Supported types may be automatically 2998 * added over time. If a file type is set in this field that isn't supported 2999 * by the Deidentify action then the job will fail and will not be 3000 * successfully created/started. Currently the only filetypes supported are: 3001 * IMAGES, TEXT_FILES, CSV, TSV. 3002 * </pre> 3003 * 3004 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 3005 * 3006 * @return A list containing the fileTypesToTransform. 3007 */ 3008 @java.lang.Override getFileTypesToTransformList()3009 public java.util.List<com.google.privacy.dlp.v2.FileType> getFileTypesToTransformList() { 3010 return new com.google.protobuf.Internal.ListAdapter< 3011 java.lang.Integer, com.google.privacy.dlp.v2.FileType>( 3012 fileTypesToTransform_, fileTypesToTransform_converter_); 3013 } 3014 /** 3015 * 3016 * 3017 * <pre> 3018 * List of user-specified file type groups to transform. If specified, only 3019 * the files with these filetypes will be transformed. If empty, all 3020 * supported files will be transformed. Supported types may be automatically 3021 * added over time. If a file type is set in this field that isn't supported 3022 * by the Deidentify action then the job will fail and will not be 3023 * successfully created/started. Currently the only filetypes supported are: 3024 * IMAGES, TEXT_FILES, CSV, TSV. 3025 * </pre> 3026 * 3027 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 3028 * 3029 * @return The count of fileTypesToTransform. 3030 */ 3031 @java.lang.Override getFileTypesToTransformCount()3032 public int getFileTypesToTransformCount() { 3033 return fileTypesToTransform_.size(); 3034 } 3035 /** 3036 * 3037 * 3038 * <pre> 3039 * List of user-specified file type groups to transform. If specified, only 3040 * the files with these filetypes will be transformed. If empty, all 3041 * supported files will be transformed. Supported types may be automatically 3042 * added over time. If a file type is set in this field that isn't supported 3043 * by the Deidentify action then the job will fail and will not be 3044 * successfully created/started. Currently the only filetypes supported are: 3045 * IMAGES, TEXT_FILES, CSV, TSV. 3046 * </pre> 3047 * 3048 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 3049 * 3050 * @param index The index of the element to return. 3051 * @return The fileTypesToTransform at the given index. 3052 */ 3053 @java.lang.Override getFileTypesToTransform(int index)3054 public com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index) { 3055 return fileTypesToTransform_converter_.convert(fileTypesToTransform_.get(index)); 3056 } 3057 /** 3058 * 3059 * 3060 * <pre> 3061 * List of user-specified file type groups to transform. If specified, only 3062 * the files with these filetypes will be transformed. If empty, all 3063 * supported files will be transformed. Supported types may be automatically 3064 * added over time. If a file type is set in this field that isn't supported 3065 * by the Deidentify action then the job will fail and will not be 3066 * successfully created/started. Currently the only filetypes supported are: 3067 * IMAGES, TEXT_FILES, CSV, TSV. 3068 * </pre> 3069 * 3070 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 3071 * 3072 * @return A list containing the enum numeric values on the wire for fileTypesToTransform. 3073 */ 3074 @java.lang.Override getFileTypesToTransformValueList()3075 public java.util.List<java.lang.Integer> getFileTypesToTransformValueList() { 3076 return fileTypesToTransform_; 3077 } 3078 /** 3079 * 3080 * 3081 * <pre> 3082 * List of user-specified file type groups to transform. If specified, only 3083 * the files with these filetypes will be transformed. If empty, all 3084 * supported files will be transformed. Supported types may be automatically 3085 * added over time. If a file type is set in this field that isn't supported 3086 * by the Deidentify action then the job will fail and will not be 3087 * successfully created/started. Currently the only filetypes supported are: 3088 * IMAGES, TEXT_FILES, CSV, TSV. 3089 * </pre> 3090 * 3091 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 3092 * 3093 * @param index The index of the value to return. 3094 * @return The enum numeric value on the wire of fileTypesToTransform at the given index. 3095 */ 3096 @java.lang.Override getFileTypesToTransformValue(int index)3097 public int getFileTypesToTransformValue(int index) { 3098 return fileTypesToTransform_.get(index); 3099 } 3100 3101 private int fileTypesToTransformMemoizedSerializedSize; 3102 3103 private byte memoizedIsInitialized = -1; 3104 3105 @java.lang.Override isInitialized()3106 public final boolean isInitialized() { 3107 byte isInitialized = memoizedIsInitialized; 3108 if (isInitialized == 1) return true; 3109 if (isInitialized == 0) return false; 3110 3111 memoizedIsInitialized = 1; 3112 return true; 3113 } 3114 3115 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)3116 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 3117 getSerializedSize(); 3118 if (transformationDetailsStorageConfig_ != null) { 3119 output.writeMessage(3, getTransformationDetailsStorageConfig()); 3120 } 3121 if (transformationConfig_ != null) { 3122 output.writeMessage(7, getTransformationConfig()); 3123 } 3124 if (getFileTypesToTransformList().size() > 0) { 3125 output.writeUInt32NoTag(66); 3126 output.writeUInt32NoTag(fileTypesToTransformMemoizedSerializedSize); 3127 } 3128 for (int i = 0; i < fileTypesToTransform_.size(); i++) { 3129 output.writeEnumNoTag(fileTypesToTransform_.get(i)); 3130 } 3131 if (outputCase_ == 9) { 3132 com.google.protobuf.GeneratedMessageV3.writeString(output, 9, output_); 3133 } 3134 getUnknownFields().writeTo(output); 3135 } 3136 3137 @java.lang.Override getSerializedSize()3138 public int getSerializedSize() { 3139 int size = memoizedSize; 3140 if (size != -1) return size; 3141 3142 size = 0; 3143 if (transformationDetailsStorageConfig_ != null) { 3144 size += 3145 com.google.protobuf.CodedOutputStream.computeMessageSize( 3146 3, getTransformationDetailsStorageConfig()); 3147 } 3148 if (transformationConfig_ != null) { 3149 size += 3150 com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTransformationConfig()); 3151 } 3152 { 3153 int dataSize = 0; 3154 for (int i = 0; i < fileTypesToTransform_.size(); i++) { 3155 dataSize += 3156 com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( 3157 fileTypesToTransform_.get(i)); 3158 } 3159 size += dataSize; 3160 if (!getFileTypesToTransformList().isEmpty()) { 3161 size += 1; 3162 size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); 3163 } 3164 fileTypesToTransformMemoizedSerializedSize = dataSize; 3165 } 3166 if (outputCase_ == 9) { 3167 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, output_); 3168 } 3169 size += getUnknownFields().getSerializedSize(); 3170 memoizedSize = size; 3171 return size; 3172 } 3173 3174 @java.lang.Override equals(final java.lang.Object obj)3175 public boolean equals(final java.lang.Object obj) { 3176 if (obj == this) { 3177 return true; 3178 } 3179 if (!(obj instanceof com.google.privacy.dlp.v2.Action.Deidentify)) { 3180 return super.equals(obj); 3181 } 3182 com.google.privacy.dlp.v2.Action.Deidentify other = 3183 (com.google.privacy.dlp.v2.Action.Deidentify) obj; 3184 3185 if (hasTransformationConfig() != other.hasTransformationConfig()) return false; 3186 if (hasTransformationConfig()) { 3187 if (!getTransformationConfig().equals(other.getTransformationConfig())) return false; 3188 } 3189 if (hasTransformationDetailsStorageConfig() != other.hasTransformationDetailsStorageConfig()) 3190 return false; 3191 if (hasTransformationDetailsStorageConfig()) { 3192 if (!getTransformationDetailsStorageConfig() 3193 .equals(other.getTransformationDetailsStorageConfig())) return false; 3194 } 3195 if (!fileTypesToTransform_.equals(other.fileTypesToTransform_)) return false; 3196 if (!getOutputCase().equals(other.getOutputCase())) return false; 3197 switch (outputCase_) { 3198 case 9: 3199 if (!getCloudStorageOutput().equals(other.getCloudStorageOutput())) return false; 3200 break; 3201 case 0: 3202 default: 3203 } 3204 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 3205 return true; 3206 } 3207 3208 @java.lang.Override hashCode()3209 public int hashCode() { 3210 if (memoizedHashCode != 0) { 3211 return memoizedHashCode; 3212 } 3213 int hash = 41; 3214 hash = (19 * hash) + getDescriptor().hashCode(); 3215 if (hasTransformationConfig()) { 3216 hash = (37 * hash) + TRANSFORMATION_CONFIG_FIELD_NUMBER; 3217 hash = (53 * hash) + getTransformationConfig().hashCode(); 3218 } 3219 if (hasTransformationDetailsStorageConfig()) { 3220 hash = (37 * hash) + TRANSFORMATION_DETAILS_STORAGE_CONFIG_FIELD_NUMBER; 3221 hash = (53 * hash) + getTransformationDetailsStorageConfig().hashCode(); 3222 } 3223 if (getFileTypesToTransformCount() > 0) { 3224 hash = (37 * hash) + FILE_TYPES_TO_TRANSFORM_FIELD_NUMBER; 3225 hash = (53 * hash) + fileTypesToTransform_.hashCode(); 3226 } 3227 switch (outputCase_) { 3228 case 9: 3229 hash = (37 * hash) + CLOUD_STORAGE_OUTPUT_FIELD_NUMBER; 3230 hash = (53 * hash) + getCloudStorageOutput().hashCode(); 3231 break; 3232 case 0: 3233 default: 3234 } 3235 hash = (29 * hash) + getUnknownFields().hashCode(); 3236 memoizedHashCode = hash; 3237 return hash; 3238 } 3239 parseFrom(java.nio.ByteBuffer data)3240 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(java.nio.ByteBuffer data) 3241 throws com.google.protobuf.InvalidProtocolBufferException { 3242 return PARSER.parseFrom(data); 3243 } 3244 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3245 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom( 3246 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3247 throws com.google.protobuf.InvalidProtocolBufferException { 3248 return PARSER.parseFrom(data, extensionRegistry); 3249 } 3250 parseFrom( com.google.protobuf.ByteString data)3251 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom( 3252 com.google.protobuf.ByteString data) 3253 throws com.google.protobuf.InvalidProtocolBufferException { 3254 return PARSER.parseFrom(data); 3255 } 3256 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3257 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom( 3258 com.google.protobuf.ByteString data, 3259 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3260 throws com.google.protobuf.InvalidProtocolBufferException { 3261 return PARSER.parseFrom(data, extensionRegistry); 3262 } 3263 parseFrom(byte[] data)3264 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(byte[] data) 3265 throws com.google.protobuf.InvalidProtocolBufferException { 3266 return PARSER.parseFrom(data); 3267 } 3268 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3269 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom( 3270 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3271 throws com.google.protobuf.InvalidProtocolBufferException { 3272 return PARSER.parseFrom(data, extensionRegistry); 3273 } 3274 parseFrom(java.io.InputStream input)3275 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(java.io.InputStream input) 3276 throws java.io.IOException { 3277 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3278 } 3279 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3280 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom( 3281 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3282 throws java.io.IOException { 3283 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3284 PARSER, input, extensionRegistry); 3285 } 3286 parseDelimitedFrom( java.io.InputStream input)3287 public static com.google.privacy.dlp.v2.Action.Deidentify parseDelimitedFrom( 3288 java.io.InputStream input) throws java.io.IOException { 3289 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 3290 } 3291 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3292 public static com.google.privacy.dlp.v2.Action.Deidentify parseDelimitedFrom( 3293 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3294 throws java.io.IOException { 3295 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 3296 PARSER, input, extensionRegistry); 3297 } 3298 parseFrom( com.google.protobuf.CodedInputStream input)3299 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom( 3300 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 3301 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3302 } 3303 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3304 public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom( 3305 com.google.protobuf.CodedInputStream input, 3306 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3307 throws java.io.IOException { 3308 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3309 PARSER, input, extensionRegistry); 3310 } 3311 3312 @java.lang.Override newBuilderForType()3313 public Builder newBuilderForType() { 3314 return newBuilder(); 3315 } 3316 newBuilder()3317 public static Builder newBuilder() { 3318 return DEFAULT_INSTANCE.toBuilder(); 3319 } 3320 newBuilder(com.google.privacy.dlp.v2.Action.Deidentify prototype)3321 public static Builder newBuilder(com.google.privacy.dlp.v2.Action.Deidentify prototype) { 3322 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 3323 } 3324 3325 @java.lang.Override toBuilder()3326 public Builder toBuilder() { 3327 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 3328 } 3329 3330 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3331 protected Builder newBuilderForType( 3332 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3333 Builder builder = new Builder(parent); 3334 return builder; 3335 } 3336 /** 3337 * 3338 * 3339 * <pre> 3340 * Create a de-identified copy of the requested table or files. 3341 * A TransformationDetail will be created for each transformation. 3342 * If any rows in BigQuery are skipped during de-identification 3343 * (transformation errors or row size exceeds BigQuery insert API limits) they 3344 * are placed in the failure output table. If the original row exceeds 3345 * the BigQuery insert API limit it will be truncated when written to the 3346 * failure output table. The failure output table can be set in the 3347 * action.deidentify.output.big_query_output.deidentified_failure_output_table 3348 * field, if no table is set, a table will be automatically created in the 3349 * same project and dataset as the original table. 3350 * Compatible with: Inspect 3351 * </pre> 3352 * 3353 * Protobuf type {@code google.privacy.dlp.v2.Action.Deidentify} 3354 */ 3355 public static final class Builder 3356 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 3357 implements 3358 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.Deidentify) 3359 com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder { getDescriptor()3360 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 3361 return com.google.privacy.dlp.v2.DlpProto 3362 .internal_static_google_privacy_dlp_v2_Action_Deidentify_descriptor; 3363 } 3364 3365 @java.lang.Override 3366 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()3367 internalGetFieldAccessorTable() { 3368 return com.google.privacy.dlp.v2.DlpProto 3369 .internal_static_google_privacy_dlp_v2_Action_Deidentify_fieldAccessorTable 3370 .ensureFieldAccessorsInitialized( 3371 com.google.privacy.dlp.v2.Action.Deidentify.class, 3372 com.google.privacy.dlp.v2.Action.Deidentify.Builder.class); 3373 } 3374 3375 // Construct using com.google.privacy.dlp.v2.Action.Deidentify.newBuilder() Builder()3376 private Builder() {} 3377 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3378 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3379 super(parent); 3380 } 3381 3382 @java.lang.Override clear()3383 public Builder clear() { 3384 super.clear(); 3385 bitField0_ = 0; 3386 transformationConfig_ = null; 3387 if (transformationConfigBuilder_ != null) { 3388 transformationConfigBuilder_.dispose(); 3389 transformationConfigBuilder_ = null; 3390 } 3391 transformationDetailsStorageConfig_ = null; 3392 if (transformationDetailsStorageConfigBuilder_ != null) { 3393 transformationDetailsStorageConfigBuilder_.dispose(); 3394 transformationDetailsStorageConfigBuilder_ = null; 3395 } 3396 fileTypesToTransform_ = java.util.Collections.emptyList(); 3397 bitField0_ = (bitField0_ & ~0x00000008); 3398 outputCase_ = 0; 3399 output_ = null; 3400 return this; 3401 } 3402 3403 @java.lang.Override getDescriptorForType()3404 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 3405 return com.google.privacy.dlp.v2.DlpProto 3406 .internal_static_google_privacy_dlp_v2_Action_Deidentify_descriptor; 3407 } 3408 3409 @java.lang.Override getDefaultInstanceForType()3410 public com.google.privacy.dlp.v2.Action.Deidentify getDefaultInstanceForType() { 3411 return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance(); 3412 } 3413 3414 @java.lang.Override build()3415 public com.google.privacy.dlp.v2.Action.Deidentify build() { 3416 com.google.privacy.dlp.v2.Action.Deidentify result = buildPartial(); 3417 if (!result.isInitialized()) { 3418 throw newUninitializedMessageException(result); 3419 } 3420 return result; 3421 } 3422 3423 @java.lang.Override buildPartial()3424 public com.google.privacy.dlp.v2.Action.Deidentify buildPartial() { 3425 com.google.privacy.dlp.v2.Action.Deidentify result = 3426 new com.google.privacy.dlp.v2.Action.Deidentify(this); 3427 buildPartialRepeatedFields(result); 3428 if (bitField0_ != 0) { 3429 buildPartial0(result); 3430 } 3431 buildPartialOneofs(result); 3432 onBuilt(); 3433 return result; 3434 } 3435 buildPartialRepeatedFields(com.google.privacy.dlp.v2.Action.Deidentify result)3436 private void buildPartialRepeatedFields(com.google.privacy.dlp.v2.Action.Deidentify result) { 3437 if (((bitField0_ & 0x00000008) != 0)) { 3438 fileTypesToTransform_ = java.util.Collections.unmodifiableList(fileTypesToTransform_); 3439 bitField0_ = (bitField0_ & ~0x00000008); 3440 } 3441 result.fileTypesToTransform_ = fileTypesToTransform_; 3442 } 3443 buildPartial0(com.google.privacy.dlp.v2.Action.Deidentify result)3444 private void buildPartial0(com.google.privacy.dlp.v2.Action.Deidentify result) { 3445 int from_bitField0_ = bitField0_; 3446 if (((from_bitField0_ & 0x00000001) != 0)) { 3447 result.transformationConfig_ = 3448 transformationConfigBuilder_ == null 3449 ? transformationConfig_ 3450 : transformationConfigBuilder_.build(); 3451 } 3452 if (((from_bitField0_ & 0x00000002) != 0)) { 3453 result.transformationDetailsStorageConfig_ = 3454 transformationDetailsStorageConfigBuilder_ == null 3455 ? transformationDetailsStorageConfig_ 3456 : transformationDetailsStorageConfigBuilder_.build(); 3457 } 3458 } 3459 buildPartialOneofs(com.google.privacy.dlp.v2.Action.Deidentify result)3460 private void buildPartialOneofs(com.google.privacy.dlp.v2.Action.Deidentify result) { 3461 result.outputCase_ = outputCase_; 3462 result.output_ = this.output_; 3463 } 3464 3465 @java.lang.Override clone()3466 public Builder clone() { 3467 return super.clone(); 3468 } 3469 3470 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3471 public Builder setField( 3472 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3473 return super.setField(field, value); 3474 } 3475 3476 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3477 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 3478 return super.clearField(field); 3479 } 3480 3481 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3482 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 3483 return super.clearOneof(oneof); 3484 } 3485 3486 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3487 public Builder setRepeatedField( 3488 com.google.protobuf.Descriptors.FieldDescriptor field, 3489 int index, 3490 java.lang.Object value) { 3491 return super.setRepeatedField(field, index, value); 3492 } 3493 3494 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3495 public Builder addRepeatedField( 3496 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3497 return super.addRepeatedField(field, value); 3498 } 3499 3500 @java.lang.Override mergeFrom(com.google.protobuf.Message other)3501 public Builder mergeFrom(com.google.protobuf.Message other) { 3502 if (other instanceof com.google.privacy.dlp.v2.Action.Deidentify) { 3503 return mergeFrom((com.google.privacy.dlp.v2.Action.Deidentify) other); 3504 } else { 3505 super.mergeFrom(other); 3506 return this; 3507 } 3508 } 3509 mergeFrom(com.google.privacy.dlp.v2.Action.Deidentify other)3510 public Builder mergeFrom(com.google.privacy.dlp.v2.Action.Deidentify other) { 3511 if (other == com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance()) return this; 3512 if (other.hasTransformationConfig()) { 3513 mergeTransformationConfig(other.getTransformationConfig()); 3514 } 3515 if (other.hasTransformationDetailsStorageConfig()) { 3516 mergeTransformationDetailsStorageConfig(other.getTransformationDetailsStorageConfig()); 3517 } 3518 if (!other.fileTypesToTransform_.isEmpty()) { 3519 if (fileTypesToTransform_.isEmpty()) { 3520 fileTypesToTransform_ = other.fileTypesToTransform_; 3521 bitField0_ = (bitField0_ & ~0x00000008); 3522 } else { 3523 ensureFileTypesToTransformIsMutable(); 3524 fileTypesToTransform_.addAll(other.fileTypesToTransform_); 3525 } 3526 onChanged(); 3527 } 3528 switch (other.getOutputCase()) { 3529 case CLOUD_STORAGE_OUTPUT: 3530 { 3531 outputCase_ = 9; 3532 output_ = other.output_; 3533 onChanged(); 3534 break; 3535 } 3536 case OUTPUT_NOT_SET: 3537 { 3538 break; 3539 } 3540 } 3541 this.mergeUnknownFields(other.getUnknownFields()); 3542 onChanged(); 3543 return this; 3544 } 3545 3546 @java.lang.Override isInitialized()3547 public final boolean isInitialized() { 3548 return true; 3549 } 3550 3551 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3552 public Builder mergeFrom( 3553 com.google.protobuf.CodedInputStream input, 3554 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3555 throws java.io.IOException { 3556 if (extensionRegistry == null) { 3557 throw new java.lang.NullPointerException(); 3558 } 3559 try { 3560 boolean done = false; 3561 while (!done) { 3562 int tag = input.readTag(); 3563 switch (tag) { 3564 case 0: 3565 done = true; 3566 break; 3567 case 26: 3568 { 3569 input.readMessage( 3570 getTransformationDetailsStorageConfigFieldBuilder().getBuilder(), 3571 extensionRegistry); 3572 bitField0_ |= 0x00000002; 3573 break; 3574 } // case 26 3575 case 58: 3576 { 3577 input.readMessage( 3578 getTransformationConfigFieldBuilder().getBuilder(), extensionRegistry); 3579 bitField0_ |= 0x00000001; 3580 break; 3581 } // case 58 3582 case 64: 3583 { 3584 int tmpRaw = input.readEnum(); 3585 ensureFileTypesToTransformIsMutable(); 3586 fileTypesToTransform_.add(tmpRaw); 3587 break; 3588 } // case 64 3589 case 66: 3590 { 3591 int length = input.readRawVarint32(); 3592 int oldLimit = input.pushLimit(length); 3593 while (input.getBytesUntilLimit() > 0) { 3594 int tmpRaw = input.readEnum(); 3595 ensureFileTypesToTransformIsMutable(); 3596 fileTypesToTransform_.add(tmpRaw); 3597 } 3598 input.popLimit(oldLimit); 3599 break; 3600 } // case 66 3601 case 74: 3602 { 3603 java.lang.String s = input.readStringRequireUtf8(); 3604 outputCase_ = 9; 3605 output_ = s; 3606 break; 3607 } // case 74 3608 default: 3609 { 3610 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 3611 done = true; // was an endgroup tag 3612 } 3613 break; 3614 } // default: 3615 } // switch (tag) 3616 } // while (!done) 3617 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3618 throw e.unwrapIOException(); 3619 } finally { 3620 onChanged(); 3621 } // finally 3622 return this; 3623 } 3624 3625 private int outputCase_ = 0; 3626 private java.lang.Object output_; 3627 getOutputCase()3628 public OutputCase getOutputCase() { 3629 return OutputCase.forNumber(outputCase_); 3630 } 3631 clearOutput()3632 public Builder clearOutput() { 3633 outputCase_ = 0; 3634 output_ = null; 3635 onChanged(); 3636 return this; 3637 } 3638 3639 private int bitField0_; 3640 3641 private com.google.privacy.dlp.v2.TransformationConfig transformationConfig_; 3642 private com.google.protobuf.SingleFieldBuilderV3< 3643 com.google.privacy.dlp.v2.TransformationConfig, 3644 com.google.privacy.dlp.v2.TransformationConfig.Builder, 3645 com.google.privacy.dlp.v2.TransformationConfigOrBuilder> 3646 transformationConfigBuilder_; 3647 /** 3648 * 3649 * 3650 * <pre> 3651 * User specified deidentify templates and configs for structured, 3652 * unstructured, and image files. 3653 * </pre> 3654 * 3655 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 3656 * 3657 * @return Whether the transformationConfig field is set. 3658 */ hasTransformationConfig()3659 public boolean hasTransformationConfig() { 3660 return ((bitField0_ & 0x00000001) != 0); 3661 } 3662 /** 3663 * 3664 * 3665 * <pre> 3666 * User specified deidentify templates and configs for structured, 3667 * unstructured, and image files. 3668 * </pre> 3669 * 3670 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 3671 * 3672 * @return The transformationConfig. 3673 */ getTransformationConfig()3674 public com.google.privacy.dlp.v2.TransformationConfig getTransformationConfig() { 3675 if (transformationConfigBuilder_ == null) { 3676 return transformationConfig_ == null 3677 ? com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance() 3678 : transformationConfig_; 3679 } else { 3680 return transformationConfigBuilder_.getMessage(); 3681 } 3682 } 3683 /** 3684 * 3685 * 3686 * <pre> 3687 * User specified deidentify templates and configs for structured, 3688 * unstructured, and image files. 3689 * </pre> 3690 * 3691 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 3692 */ setTransformationConfig(com.google.privacy.dlp.v2.TransformationConfig value)3693 public Builder setTransformationConfig(com.google.privacy.dlp.v2.TransformationConfig value) { 3694 if (transformationConfigBuilder_ == null) { 3695 if (value == null) { 3696 throw new NullPointerException(); 3697 } 3698 transformationConfig_ = value; 3699 } else { 3700 transformationConfigBuilder_.setMessage(value); 3701 } 3702 bitField0_ |= 0x00000001; 3703 onChanged(); 3704 return this; 3705 } 3706 /** 3707 * 3708 * 3709 * <pre> 3710 * User specified deidentify templates and configs for structured, 3711 * unstructured, and image files. 3712 * </pre> 3713 * 3714 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 3715 */ setTransformationConfig( com.google.privacy.dlp.v2.TransformationConfig.Builder builderForValue)3716 public Builder setTransformationConfig( 3717 com.google.privacy.dlp.v2.TransformationConfig.Builder builderForValue) { 3718 if (transformationConfigBuilder_ == null) { 3719 transformationConfig_ = builderForValue.build(); 3720 } else { 3721 transformationConfigBuilder_.setMessage(builderForValue.build()); 3722 } 3723 bitField0_ |= 0x00000001; 3724 onChanged(); 3725 return this; 3726 } 3727 /** 3728 * 3729 * 3730 * <pre> 3731 * User specified deidentify templates and configs for structured, 3732 * unstructured, and image files. 3733 * </pre> 3734 * 3735 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 3736 */ mergeTransformationConfig( com.google.privacy.dlp.v2.TransformationConfig value)3737 public Builder mergeTransformationConfig( 3738 com.google.privacy.dlp.v2.TransformationConfig value) { 3739 if (transformationConfigBuilder_ == null) { 3740 if (((bitField0_ & 0x00000001) != 0) 3741 && transformationConfig_ != null 3742 && transformationConfig_ 3743 != com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance()) { 3744 getTransformationConfigBuilder().mergeFrom(value); 3745 } else { 3746 transformationConfig_ = value; 3747 } 3748 } else { 3749 transformationConfigBuilder_.mergeFrom(value); 3750 } 3751 bitField0_ |= 0x00000001; 3752 onChanged(); 3753 return this; 3754 } 3755 /** 3756 * 3757 * 3758 * <pre> 3759 * User specified deidentify templates and configs for structured, 3760 * unstructured, and image files. 3761 * </pre> 3762 * 3763 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 3764 */ clearTransformationConfig()3765 public Builder clearTransformationConfig() { 3766 bitField0_ = (bitField0_ & ~0x00000001); 3767 transformationConfig_ = null; 3768 if (transformationConfigBuilder_ != null) { 3769 transformationConfigBuilder_.dispose(); 3770 transformationConfigBuilder_ = null; 3771 } 3772 onChanged(); 3773 return this; 3774 } 3775 /** 3776 * 3777 * 3778 * <pre> 3779 * User specified deidentify templates and configs for structured, 3780 * unstructured, and image files. 3781 * </pre> 3782 * 3783 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 3784 */ 3785 public com.google.privacy.dlp.v2.TransformationConfig.Builder getTransformationConfigBuilder()3786 getTransformationConfigBuilder() { 3787 bitField0_ |= 0x00000001; 3788 onChanged(); 3789 return getTransformationConfigFieldBuilder().getBuilder(); 3790 } 3791 /** 3792 * 3793 * 3794 * <pre> 3795 * User specified deidentify templates and configs for structured, 3796 * unstructured, and image files. 3797 * </pre> 3798 * 3799 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 3800 */ 3801 public com.google.privacy.dlp.v2.TransformationConfigOrBuilder getTransformationConfigOrBuilder()3802 getTransformationConfigOrBuilder() { 3803 if (transformationConfigBuilder_ != null) { 3804 return transformationConfigBuilder_.getMessageOrBuilder(); 3805 } else { 3806 return transformationConfig_ == null 3807 ? com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance() 3808 : transformationConfig_; 3809 } 3810 } 3811 /** 3812 * 3813 * 3814 * <pre> 3815 * User specified deidentify templates and configs for structured, 3816 * unstructured, and image files. 3817 * </pre> 3818 * 3819 * <code>.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;</code> 3820 */ 3821 private com.google.protobuf.SingleFieldBuilderV3< 3822 com.google.privacy.dlp.v2.TransformationConfig, 3823 com.google.privacy.dlp.v2.TransformationConfig.Builder, 3824 com.google.privacy.dlp.v2.TransformationConfigOrBuilder> getTransformationConfigFieldBuilder()3825 getTransformationConfigFieldBuilder() { 3826 if (transformationConfigBuilder_ == null) { 3827 transformationConfigBuilder_ = 3828 new com.google.protobuf.SingleFieldBuilderV3< 3829 com.google.privacy.dlp.v2.TransformationConfig, 3830 com.google.privacy.dlp.v2.TransformationConfig.Builder, 3831 com.google.privacy.dlp.v2.TransformationConfigOrBuilder>( 3832 getTransformationConfig(), getParentForChildren(), isClean()); 3833 transformationConfig_ = null; 3834 } 3835 return transformationConfigBuilder_; 3836 } 3837 3838 private com.google.privacy.dlp.v2.TransformationDetailsStorageConfig 3839 transformationDetailsStorageConfig_; 3840 private com.google.protobuf.SingleFieldBuilderV3< 3841 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig, 3842 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder, 3843 com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder> 3844 transformationDetailsStorageConfigBuilder_; 3845 /** 3846 * 3847 * 3848 * <pre> 3849 * Config for storing transformation details. This is separate from the 3850 * de-identified content, and contains metadata about the successful 3851 * transformations and/or failures that occurred while de-identifying. This 3852 * needs to be set in order for users to access information about the status 3853 * of each transformation (see 3854 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 3855 * message for more information about what is noted). 3856 * </pre> 3857 * 3858 * <code> 3859 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 3860 * </code> 3861 * 3862 * @return Whether the transformationDetailsStorageConfig field is set. 3863 */ hasTransformationDetailsStorageConfig()3864 public boolean hasTransformationDetailsStorageConfig() { 3865 return ((bitField0_ & 0x00000002) != 0); 3866 } 3867 /** 3868 * 3869 * 3870 * <pre> 3871 * Config for storing transformation details. This is separate from the 3872 * de-identified content, and contains metadata about the successful 3873 * transformations and/or failures that occurred while de-identifying. This 3874 * needs to be set in order for users to access information about the status 3875 * of each transformation (see 3876 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 3877 * message for more information about what is noted). 3878 * </pre> 3879 * 3880 * <code> 3881 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 3882 * </code> 3883 * 3884 * @return The transformationDetailsStorageConfig. 3885 */ 3886 public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig getTransformationDetailsStorageConfig()3887 getTransformationDetailsStorageConfig() { 3888 if (transformationDetailsStorageConfigBuilder_ == null) { 3889 return transformationDetailsStorageConfig_ == null 3890 ? com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.getDefaultInstance() 3891 : transformationDetailsStorageConfig_; 3892 } else { 3893 return transformationDetailsStorageConfigBuilder_.getMessage(); 3894 } 3895 } 3896 /** 3897 * 3898 * 3899 * <pre> 3900 * Config for storing transformation details. This is separate from the 3901 * de-identified content, and contains metadata about the successful 3902 * transformations and/or failures that occurred while de-identifying. This 3903 * needs to be set in order for users to access information about the status 3904 * of each transformation (see 3905 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 3906 * message for more information about what is noted). 3907 * </pre> 3908 * 3909 * <code> 3910 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 3911 * </code> 3912 */ setTransformationDetailsStorageConfig( com.google.privacy.dlp.v2.TransformationDetailsStorageConfig value)3913 public Builder setTransformationDetailsStorageConfig( 3914 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig value) { 3915 if (transformationDetailsStorageConfigBuilder_ == null) { 3916 if (value == null) { 3917 throw new NullPointerException(); 3918 } 3919 transformationDetailsStorageConfig_ = value; 3920 } else { 3921 transformationDetailsStorageConfigBuilder_.setMessage(value); 3922 } 3923 bitField0_ |= 0x00000002; 3924 onChanged(); 3925 return this; 3926 } 3927 /** 3928 * 3929 * 3930 * <pre> 3931 * Config for storing transformation details. This is separate from the 3932 * de-identified content, and contains metadata about the successful 3933 * transformations and/or failures that occurred while de-identifying. This 3934 * needs to be set in order for users to access information about the status 3935 * of each transformation (see 3936 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 3937 * message for more information about what is noted). 3938 * </pre> 3939 * 3940 * <code> 3941 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 3942 * </code> 3943 */ setTransformationDetailsStorageConfig( com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder builderForValue)3944 public Builder setTransformationDetailsStorageConfig( 3945 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder builderForValue) { 3946 if (transformationDetailsStorageConfigBuilder_ == null) { 3947 transformationDetailsStorageConfig_ = builderForValue.build(); 3948 } else { 3949 transformationDetailsStorageConfigBuilder_.setMessage(builderForValue.build()); 3950 } 3951 bitField0_ |= 0x00000002; 3952 onChanged(); 3953 return this; 3954 } 3955 /** 3956 * 3957 * 3958 * <pre> 3959 * Config for storing transformation details. This is separate from the 3960 * de-identified content, and contains metadata about the successful 3961 * transformations and/or failures that occurred while de-identifying. This 3962 * needs to be set in order for users to access information about the status 3963 * of each transformation (see 3964 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 3965 * message for more information about what is noted). 3966 * </pre> 3967 * 3968 * <code> 3969 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 3970 * </code> 3971 */ mergeTransformationDetailsStorageConfig( com.google.privacy.dlp.v2.TransformationDetailsStorageConfig value)3972 public Builder mergeTransformationDetailsStorageConfig( 3973 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig value) { 3974 if (transformationDetailsStorageConfigBuilder_ == null) { 3975 if (((bitField0_ & 0x00000002) != 0) 3976 && transformationDetailsStorageConfig_ != null 3977 && transformationDetailsStorageConfig_ 3978 != com.google.privacy.dlp.v2.TransformationDetailsStorageConfig 3979 .getDefaultInstance()) { 3980 getTransformationDetailsStorageConfigBuilder().mergeFrom(value); 3981 } else { 3982 transformationDetailsStorageConfig_ = value; 3983 } 3984 } else { 3985 transformationDetailsStorageConfigBuilder_.mergeFrom(value); 3986 } 3987 bitField0_ |= 0x00000002; 3988 onChanged(); 3989 return this; 3990 } 3991 /** 3992 * 3993 * 3994 * <pre> 3995 * Config for storing transformation details. This is separate from the 3996 * de-identified content, and contains metadata about the successful 3997 * transformations and/or failures that occurred while de-identifying. This 3998 * needs to be set in order for users to access information about the status 3999 * of each transformation (see 4000 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 4001 * message for more information about what is noted). 4002 * </pre> 4003 * 4004 * <code> 4005 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 4006 * </code> 4007 */ clearTransformationDetailsStorageConfig()4008 public Builder clearTransformationDetailsStorageConfig() { 4009 bitField0_ = (bitField0_ & ~0x00000002); 4010 transformationDetailsStorageConfig_ = null; 4011 if (transformationDetailsStorageConfigBuilder_ != null) { 4012 transformationDetailsStorageConfigBuilder_.dispose(); 4013 transformationDetailsStorageConfigBuilder_ = null; 4014 } 4015 onChanged(); 4016 return this; 4017 } 4018 /** 4019 * 4020 * 4021 * <pre> 4022 * Config for storing transformation details. This is separate from the 4023 * de-identified content, and contains metadata about the successful 4024 * transformations and/or failures that occurred while de-identifying. This 4025 * needs to be set in order for users to access information about the status 4026 * of each transformation (see 4027 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 4028 * message for more information about what is noted). 4029 * </pre> 4030 * 4031 * <code> 4032 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 4033 * </code> 4034 */ 4035 public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder getTransformationDetailsStorageConfigBuilder()4036 getTransformationDetailsStorageConfigBuilder() { 4037 bitField0_ |= 0x00000002; 4038 onChanged(); 4039 return getTransformationDetailsStorageConfigFieldBuilder().getBuilder(); 4040 } 4041 /** 4042 * 4043 * 4044 * <pre> 4045 * Config for storing transformation details. This is separate from the 4046 * de-identified content, and contains metadata about the successful 4047 * transformations and/or failures that occurred while de-identifying. This 4048 * needs to be set in order for users to access information about the status 4049 * of each transformation (see 4050 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 4051 * message for more information about what is noted). 4052 * </pre> 4053 * 4054 * <code> 4055 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 4056 * </code> 4057 */ 4058 public com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder getTransformationDetailsStorageConfigOrBuilder()4059 getTransformationDetailsStorageConfigOrBuilder() { 4060 if (transformationDetailsStorageConfigBuilder_ != null) { 4061 return transformationDetailsStorageConfigBuilder_.getMessageOrBuilder(); 4062 } else { 4063 return transformationDetailsStorageConfig_ == null 4064 ? com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.getDefaultInstance() 4065 : transformationDetailsStorageConfig_; 4066 } 4067 } 4068 /** 4069 * 4070 * 4071 * <pre> 4072 * Config for storing transformation details. This is separate from the 4073 * de-identified content, and contains metadata about the successful 4074 * transformations and/or failures that occurred while de-identifying. This 4075 * needs to be set in order for users to access information about the status 4076 * of each transformation (see 4077 * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] 4078 * message for more information about what is noted). 4079 * </pre> 4080 * 4081 * <code> 4082 * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; 4083 * </code> 4084 */ 4085 private com.google.protobuf.SingleFieldBuilderV3< 4086 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig, 4087 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder, 4088 com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder> getTransformationDetailsStorageConfigFieldBuilder()4089 getTransformationDetailsStorageConfigFieldBuilder() { 4090 if (transformationDetailsStorageConfigBuilder_ == null) { 4091 transformationDetailsStorageConfigBuilder_ = 4092 new com.google.protobuf.SingleFieldBuilderV3< 4093 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig, 4094 com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder, 4095 com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder>( 4096 getTransformationDetailsStorageConfig(), getParentForChildren(), isClean()); 4097 transformationDetailsStorageConfig_ = null; 4098 } 4099 return transformationDetailsStorageConfigBuilder_; 4100 } 4101 4102 /** 4103 * 4104 * 4105 * <pre> 4106 * Required. User settable Cloud Storage bucket and folders to store de-identified 4107 * files. This field must be set for cloud storage deidentification. The 4108 * output Cloud Storage bucket must be different from the input bucket. 4109 * De-identified files will overwrite files in the output path. 4110 * Form of: gs://bucket/folder/ or gs://bucket 4111 * </pre> 4112 * 4113 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 4114 * 4115 * @return Whether the cloudStorageOutput field is set. 4116 */ 4117 @java.lang.Override hasCloudStorageOutput()4118 public boolean hasCloudStorageOutput() { 4119 return outputCase_ == 9; 4120 } 4121 /** 4122 * 4123 * 4124 * <pre> 4125 * Required. User settable Cloud Storage bucket and folders to store de-identified 4126 * files. This field must be set for cloud storage deidentification. The 4127 * output Cloud Storage bucket must be different from the input bucket. 4128 * De-identified files will overwrite files in the output path. 4129 * Form of: gs://bucket/folder/ or gs://bucket 4130 * </pre> 4131 * 4132 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 4133 * 4134 * @return The cloudStorageOutput. 4135 */ 4136 @java.lang.Override getCloudStorageOutput()4137 public java.lang.String getCloudStorageOutput() { 4138 java.lang.Object ref = ""; 4139 if (outputCase_ == 9) { 4140 ref = output_; 4141 } 4142 if (!(ref instanceof java.lang.String)) { 4143 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4144 java.lang.String s = bs.toStringUtf8(); 4145 if (outputCase_ == 9) { 4146 output_ = s; 4147 } 4148 return s; 4149 } else { 4150 return (java.lang.String) ref; 4151 } 4152 } 4153 /** 4154 * 4155 * 4156 * <pre> 4157 * Required. User settable Cloud Storage bucket and folders to store de-identified 4158 * files. This field must be set for cloud storage deidentification. The 4159 * output Cloud Storage bucket must be different from the input bucket. 4160 * De-identified files will overwrite files in the output path. 4161 * Form of: gs://bucket/folder/ or gs://bucket 4162 * </pre> 4163 * 4164 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 4165 * 4166 * @return The bytes for cloudStorageOutput. 4167 */ 4168 @java.lang.Override getCloudStorageOutputBytes()4169 public com.google.protobuf.ByteString getCloudStorageOutputBytes() { 4170 java.lang.Object ref = ""; 4171 if (outputCase_ == 9) { 4172 ref = output_; 4173 } 4174 if (ref instanceof String) { 4175 com.google.protobuf.ByteString b = 4176 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4177 if (outputCase_ == 9) { 4178 output_ = b; 4179 } 4180 return b; 4181 } else { 4182 return (com.google.protobuf.ByteString) ref; 4183 } 4184 } 4185 /** 4186 * 4187 * 4188 * <pre> 4189 * Required. User settable Cloud Storage bucket and folders to store de-identified 4190 * files. This field must be set for cloud storage deidentification. The 4191 * output Cloud Storage bucket must be different from the input bucket. 4192 * De-identified files will overwrite files in the output path. 4193 * Form of: gs://bucket/folder/ or gs://bucket 4194 * </pre> 4195 * 4196 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 4197 * 4198 * @param value The cloudStorageOutput to set. 4199 * @return This builder for chaining. 4200 */ setCloudStorageOutput(java.lang.String value)4201 public Builder setCloudStorageOutput(java.lang.String value) { 4202 if (value == null) { 4203 throw new NullPointerException(); 4204 } 4205 outputCase_ = 9; 4206 output_ = value; 4207 onChanged(); 4208 return this; 4209 } 4210 /** 4211 * 4212 * 4213 * <pre> 4214 * Required. User settable Cloud Storage bucket and folders to store de-identified 4215 * files. This field must be set for cloud storage deidentification. The 4216 * output Cloud Storage bucket must be different from the input bucket. 4217 * De-identified files will overwrite files in the output path. 4218 * Form of: gs://bucket/folder/ or gs://bucket 4219 * </pre> 4220 * 4221 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 4222 * 4223 * @return This builder for chaining. 4224 */ clearCloudStorageOutput()4225 public Builder clearCloudStorageOutput() { 4226 if (outputCase_ == 9) { 4227 outputCase_ = 0; 4228 output_ = null; 4229 onChanged(); 4230 } 4231 return this; 4232 } 4233 /** 4234 * 4235 * 4236 * <pre> 4237 * Required. User settable Cloud Storage bucket and folders to store de-identified 4238 * files. This field must be set for cloud storage deidentification. The 4239 * output Cloud Storage bucket must be different from the input bucket. 4240 * De-identified files will overwrite files in the output path. 4241 * Form of: gs://bucket/folder/ or gs://bucket 4242 * </pre> 4243 * 4244 * <code>string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];</code> 4245 * 4246 * @param value The bytes for cloudStorageOutput to set. 4247 * @return This builder for chaining. 4248 */ setCloudStorageOutputBytes(com.google.protobuf.ByteString value)4249 public Builder setCloudStorageOutputBytes(com.google.protobuf.ByteString value) { 4250 if (value == null) { 4251 throw new NullPointerException(); 4252 } 4253 checkByteStringIsUtf8(value); 4254 outputCase_ = 9; 4255 output_ = value; 4256 onChanged(); 4257 return this; 4258 } 4259 4260 private java.util.List<java.lang.Integer> fileTypesToTransform_ = 4261 java.util.Collections.emptyList(); 4262 ensureFileTypesToTransformIsMutable()4263 private void ensureFileTypesToTransformIsMutable() { 4264 if (!((bitField0_ & 0x00000008) != 0)) { 4265 fileTypesToTransform_ = new java.util.ArrayList<java.lang.Integer>(fileTypesToTransform_); 4266 bitField0_ |= 0x00000008; 4267 } 4268 } 4269 /** 4270 * 4271 * 4272 * <pre> 4273 * List of user-specified file type groups to transform. If specified, only 4274 * the files with these filetypes will be transformed. If empty, all 4275 * supported files will be transformed. Supported types may be automatically 4276 * added over time. If a file type is set in this field that isn't supported 4277 * by the Deidentify action then the job will fail and will not be 4278 * successfully created/started. Currently the only filetypes supported are: 4279 * IMAGES, TEXT_FILES, CSV, TSV. 4280 * </pre> 4281 * 4282 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4283 * 4284 * @return A list containing the fileTypesToTransform. 4285 */ getFileTypesToTransformList()4286 public java.util.List<com.google.privacy.dlp.v2.FileType> getFileTypesToTransformList() { 4287 return new com.google.protobuf.Internal.ListAdapter< 4288 java.lang.Integer, com.google.privacy.dlp.v2.FileType>( 4289 fileTypesToTransform_, fileTypesToTransform_converter_); 4290 } 4291 /** 4292 * 4293 * 4294 * <pre> 4295 * List of user-specified file type groups to transform. If specified, only 4296 * the files with these filetypes will be transformed. If empty, all 4297 * supported files will be transformed. Supported types may be automatically 4298 * added over time. If a file type is set in this field that isn't supported 4299 * by the Deidentify action then the job will fail and will not be 4300 * successfully created/started. Currently the only filetypes supported are: 4301 * IMAGES, TEXT_FILES, CSV, TSV. 4302 * </pre> 4303 * 4304 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4305 * 4306 * @return The count of fileTypesToTransform. 4307 */ getFileTypesToTransformCount()4308 public int getFileTypesToTransformCount() { 4309 return fileTypesToTransform_.size(); 4310 } 4311 /** 4312 * 4313 * 4314 * <pre> 4315 * List of user-specified file type groups to transform. If specified, only 4316 * the files with these filetypes will be transformed. If empty, all 4317 * supported files will be transformed. Supported types may be automatically 4318 * added over time. If a file type is set in this field that isn't supported 4319 * by the Deidentify action then the job will fail and will not be 4320 * successfully created/started. Currently the only filetypes supported are: 4321 * IMAGES, TEXT_FILES, CSV, TSV. 4322 * </pre> 4323 * 4324 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4325 * 4326 * @param index The index of the element to return. 4327 * @return The fileTypesToTransform at the given index. 4328 */ getFileTypesToTransform(int index)4329 public com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index) { 4330 return fileTypesToTransform_converter_.convert(fileTypesToTransform_.get(index)); 4331 } 4332 /** 4333 * 4334 * 4335 * <pre> 4336 * List of user-specified file type groups to transform. If specified, only 4337 * the files with these filetypes will be transformed. If empty, all 4338 * supported files will be transformed. Supported types may be automatically 4339 * added over time. If a file type is set in this field that isn't supported 4340 * by the Deidentify action then the job will fail and will not be 4341 * successfully created/started. Currently the only filetypes supported are: 4342 * IMAGES, TEXT_FILES, CSV, TSV. 4343 * </pre> 4344 * 4345 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4346 * 4347 * @param index The index to set the value at. 4348 * @param value The fileTypesToTransform to set. 4349 * @return This builder for chaining. 4350 */ setFileTypesToTransform(int index, com.google.privacy.dlp.v2.FileType value)4351 public Builder setFileTypesToTransform(int index, com.google.privacy.dlp.v2.FileType value) { 4352 if (value == null) { 4353 throw new NullPointerException(); 4354 } 4355 ensureFileTypesToTransformIsMutable(); 4356 fileTypesToTransform_.set(index, value.getNumber()); 4357 onChanged(); 4358 return this; 4359 } 4360 /** 4361 * 4362 * 4363 * <pre> 4364 * List of user-specified file type groups to transform. If specified, only 4365 * the files with these filetypes will be transformed. If empty, all 4366 * supported files will be transformed. Supported types may be automatically 4367 * added over time. If a file type is set in this field that isn't supported 4368 * by the Deidentify action then the job will fail and will not be 4369 * successfully created/started. Currently the only filetypes supported are: 4370 * IMAGES, TEXT_FILES, CSV, TSV. 4371 * </pre> 4372 * 4373 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4374 * 4375 * @param value The fileTypesToTransform to add. 4376 * @return This builder for chaining. 4377 */ addFileTypesToTransform(com.google.privacy.dlp.v2.FileType value)4378 public Builder addFileTypesToTransform(com.google.privacy.dlp.v2.FileType value) { 4379 if (value == null) { 4380 throw new NullPointerException(); 4381 } 4382 ensureFileTypesToTransformIsMutable(); 4383 fileTypesToTransform_.add(value.getNumber()); 4384 onChanged(); 4385 return this; 4386 } 4387 /** 4388 * 4389 * 4390 * <pre> 4391 * List of user-specified file type groups to transform. If specified, only 4392 * the files with these filetypes will be transformed. If empty, all 4393 * supported files will be transformed. Supported types may be automatically 4394 * added over time. If a file type is set in this field that isn't supported 4395 * by the Deidentify action then the job will fail and will not be 4396 * successfully created/started. Currently the only filetypes supported are: 4397 * IMAGES, TEXT_FILES, CSV, TSV. 4398 * </pre> 4399 * 4400 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4401 * 4402 * @param values The fileTypesToTransform to add. 4403 * @return This builder for chaining. 4404 */ addAllFileTypesToTransform( java.lang.Iterable<? extends com.google.privacy.dlp.v2.FileType> values)4405 public Builder addAllFileTypesToTransform( 4406 java.lang.Iterable<? extends com.google.privacy.dlp.v2.FileType> values) { 4407 ensureFileTypesToTransformIsMutable(); 4408 for (com.google.privacy.dlp.v2.FileType value : values) { 4409 fileTypesToTransform_.add(value.getNumber()); 4410 } 4411 onChanged(); 4412 return this; 4413 } 4414 /** 4415 * 4416 * 4417 * <pre> 4418 * List of user-specified file type groups to transform. If specified, only 4419 * the files with these filetypes will be transformed. If empty, all 4420 * supported files will be transformed. Supported types may be automatically 4421 * added over time. If a file type is set in this field that isn't supported 4422 * by the Deidentify action then the job will fail and will not be 4423 * successfully created/started. Currently the only filetypes supported are: 4424 * IMAGES, TEXT_FILES, CSV, TSV. 4425 * </pre> 4426 * 4427 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4428 * 4429 * @return This builder for chaining. 4430 */ clearFileTypesToTransform()4431 public Builder clearFileTypesToTransform() { 4432 fileTypesToTransform_ = java.util.Collections.emptyList(); 4433 bitField0_ = (bitField0_ & ~0x00000008); 4434 onChanged(); 4435 return this; 4436 } 4437 /** 4438 * 4439 * 4440 * <pre> 4441 * List of user-specified file type groups to transform. If specified, only 4442 * the files with these filetypes will be transformed. If empty, all 4443 * supported files will be transformed. Supported types may be automatically 4444 * added over time. If a file type is set in this field that isn't supported 4445 * by the Deidentify action then the job will fail and will not be 4446 * successfully created/started. Currently the only filetypes supported are: 4447 * IMAGES, TEXT_FILES, CSV, TSV. 4448 * </pre> 4449 * 4450 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4451 * 4452 * @return A list containing the enum numeric values on the wire for fileTypesToTransform. 4453 */ getFileTypesToTransformValueList()4454 public java.util.List<java.lang.Integer> getFileTypesToTransformValueList() { 4455 return java.util.Collections.unmodifiableList(fileTypesToTransform_); 4456 } 4457 /** 4458 * 4459 * 4460 * <pre> 4461 * List of user-specified file type groups to transform. If specified, only 4462 * the files with these filetypes will be transformed. If empty, all 4463 * supported files will be transformed. Supported types may be automatically 4464 * added over time. If a file type is set in this field that isn't supported 4465 * by the Deidentify action then the job will fail and will not be 4466 * successfully created/started. Currently the only filetypes supported are: 4467 * IMAGES, TEXT_FILES, CSV, TSV. 4468 * </pre> 4469 * 4470 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4471 * 4472 * @param index The index of the value to return. 4473 * @return The enum numeric value on the wire of fileTypesToTransform at the given index. 4474 */ getFileTypesToTransformValue(int index)4475 public int getFileTypesToTransformValue(int index) { 4476 return fileTypesToTransform_.get(index); 4477 } 4478 /** 4479 * 4480 * 4481 * <pre> 4482 * List of user-specified file type groups to transform. If specified, only 4483 * the files with these filetypes will be transformed. If empty, all 4484 * supported files will be transformed. Supported types may be automatically 4485 * added over time. If a file type is set in this field that isn't supported 4486 * by the Deidentify action then the job will fail and will not be 4487 * successfully created/started. Currently the only filetypes supported are: 4488 * IMAGES, TEXT_FILES, CSV, TSV. 4489 * </pre> 4490 * 4491 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4492 * 4493 * @param index The index to set the value at. 4494 * @param value The enum numeric value on the wire for fileTypesToTransform to set. 4495 * @return This builder for chaining. 4496 */ setFileTypesToTransformValue(int index, int value)4497 public Builder setFileTypesToTransformValue(int index, int value) { 4498 ensureFileTypesToTransformIsMutable(); 4499 fileTypesToTransform_.set(index, value); 4500 onChanged(); 4501 return this; 4502 } 4503 /** 4504 * 4505 * 4506 * <pre> 4507 * List of user-specified file type groups to transform. If specified, only 4508 * the files with these filetypes will be transformed. If empty, all 4509 * supported files will be transformed. Supported types may be automatically 4510 * added over time. If a file type is set in this field that isn't supported 4511 * by the Deidentify action then the job will fail and will not be 4512 * successfully created/started. Currently the only filetypes supported are: 4513 * IMAGES, TEXT_FILES, CSV, TSV. 4514 * </pre> 4515 * 4516 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4517 * 4518 * @param value The enum numeric value on the wire for fileTypesToTransform to add. 4519 * @return This builder for chaining. 4520 */ addFileTypesToTransformValue(int value)4521 public Builder addFileTypesToTransformValue(int value) { 4522 ensureFileTypesToTransformIsMutable(); 4523 fileTypesToTransform_.add(value); 4524 onChanged(); 4525 return this; 4526 } 4527 /** 4528 * 4529 * 4530 * <pre> 4531 * List of user-specified file type groups to transform. If specified, only 4532 * the files with these filetypes will be transformed. If empty, all 4533 * supported files will be transformed. Supported types may be automatically 4534 * added over time. If a file type is set in this field that isn't supported 4535 * by the Deidentify action then the job will fail and will not be 4536 * successfully created/started. Currently the only filetypes supported are: 4537 * IMAGES, TEXT_FILES, CSV, TSV. 4538 * </pre> 4539 * 4540 * <code>repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;</code> 4541 * 4542 * @param values The enum numeric values on the wire for fileTypesToTransform to add. 4543 * @return This builder for chaining. 4544 */ addAllFileTypesToTransformValue(java.lang.Iterable<java.lang.Integer> values)4545 public Builder addAllFileTypesToTransformValue(java.lang.Iterable<java.lang.Integer> values) { 4546 ensureFileTypesToTransformIsMutable(); 4547 for (int value : values) { 4548 fileTypesToTransform_.add(value); 4549 } 4550 onChanged(); 4551 return this; 4552 } 4553 4554 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4555 public final Builder setUnknownFields( 4556 final com.google.protobuf.UnknownFieldSet unknownFields) { 4557 return super.setUnknownFields(unknownFields); 4558 } 4559 4560 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4561 public final Builder mergeUnknownFields( 4562 final com.google.protobuf.UnknownFieldSet unknownFields) { 4563 return super.mergeUnknownFields(unknownFields); 4564 } 4565 4566 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.Deidentify) 4567 } 4568 4569 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.Deidentify) 4570 private static final com.google.privacy.dlp.v2.Action.Deidentify DEFAULT_INSTANCE; 4571 4572 static { 4573 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.Deidentify(); 4574 } 4575 getDefaultInstance()4576 public static com.google.privacy.dlp.v2.Action.Deidentify getDefaultInstance() { 4577 return DEFAULT_INSTANCE; 4578 } 4579 4580 private static final com.google.protobuf.Parser<Deidentify> PARSER = 4581 new com.google.protobuf.AbstractParser<Deidentify>() { 4582 @java.lang.Override 4583 public Deidentify parsePartialFrom( 4584 com.google.protobuf.CodedInputStream input, 4585 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4586 throws com.google.protobuf.InvalidProtocolBufferException { 4587 Builder builder = newBuilder(); 4588 try { 4589 builder.mergeFrom(input, extensionRegistry); 4590 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4591 throw e.setUnfinishedMessage(builder.buildPartial()); 4592 } catch (com.google.protobuf.UninitializedMessageException e) { 4593 throw e.asInvalidProtocolBufferException() 4594 .setUnfinishedMessage(builder.buildPartial()); 4595 } catch (java.io.IOException e) { 4596 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4597 .setUnfinishedMessage(builder.buildPartial()); 4598 } 4599 return builder.buildPartial(); 4600 } 4601 }; 4602 parser()4603 public static com.google.protobuf.Parser<Deidentify> parser() { 4604 return PARSER; 4605 } 4606 4607 @java.lang.Override getParserForType()4608 public com.google.protobuf.Parser<Deidentify> getParserForType() { 4609 return PARSER; 4610 } 4611 4612 @java.lang.Override getDefaultInstanceForType()4613 public com.google.privacy.dlp.v2.Action.Deidentify getDefaultInstanceForType() { 4614 return DEFAULT_INSTANCE; 4615 } 4616 } 4617 4618 public interface JobNotificationEmailsOrBuilder 4619 extends 4620 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.JobNotificationEmails) 4621 com.google.protobuf.MessageOrBuilder {} 4622 /** 4623 * 4624 * 4625 * <pre> 4626 * Sends an email when the job completes. The email goes to IAM project owners 4627 * and technical [Essential 4628 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 4629 * </pre> 4630 * 4631 * Protobuf type {@code google.privacy.dlp.v2.Action.JobNotificationEmails} 4632 */ 4633 public static final class JobNotificationEmails extends com.google.protobuf.GeneratedMessageV3 4634 implements 4635 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.JobNotificationEmails) 4636 JobNotificationEmailsOrBuilder { 4637 private static final long serialVersionUID = 0L; 4638 // Use JobNotificationEmails.newBuilder() to construct. JobNotificationEmails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)4639 private JobNotificationEmails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 4640 super(builder); 4641 } 4642 JobNotificationEmails()4643 private JobNotificationEmails() {} 4644 4645 @java.lang.Override 4646 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)4647 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 4648 return new JobNotificationEmails(); 4649 } 4650 4651 @java.lang.Override getUnknownFields()4652 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 4653 return this.unknownFields; 4654 } 4655 getDescriptor()4656 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 4657 return com.google.privacy.dlp.v2.DlpProto 4658 .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor; 4659 } 4660 4661 @java.lang.Override 4662 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()4663 internalGetFieldAccessorTable() { 4664 return com.google.privacy.dlp.v2.DlpProto 4665 .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_fieldAccessorTable 4666 .ensureFieldAccessorsInitialized( 4667 com.google.privacy.dlp.v2.Action.JobNotificationEmails.class, 4668 com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder.class); 4669 } 4670 4671 private byte memoizedIsInitialized = -1; 4672 4673 @java.lang.Override isInitialized()4674 public final boolean isInitialized() { 4675 byte isInitialized = memoizedIsInitialized; 4676 if (isInitialized == 1) return true; 4677 if (isInitialized == 0) return false; 4678 4679 memoizedIsInitialized = 1; 4680 return true; 4681 } 4682 4683 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)4684 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 4685 getUnknownFields().writeTo(output); 4686 } 4687 4688 @java.lang.Override getSerializedSize()4689 public int getSerializedSize() { 4690 int size = memoizedSize; 4691 if (size != -1) return size; 4692 4693 size = 0; 4694 size += getUnknownFields().getSerializedSize(); 4695 memoizedSize = size; 4696 return size; 4697 } 4698 4699 @java.lang.Override equals(final java.lang.Object obj)4700 public boolean equals(final java.lang.Object obj) { 4701 if (obj == this) { 4702 return true; 4703 } 4704 if (!(obj instanceof com.google.privacy.dlp.v2.Action.JobNotificationEmails)) { 4705 return super.equals(obj); 4706 } 4707 com.google.privacy.dlp.v2.Action.JobNotificationEmails other = 4708 (com.google.privacy.dlp.v2.Action.JobNotificationEmails) obj; 4709 4710 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 4711 return true; 4712 } 4713 4714 @java.lang.Override hashCode()4715 public int hashCode() { 4716 if (memoizedHashCode != 0) { 4717 return memoizedHashCode; 4718 } 4719 int hash = 41; 4720 hash = (19 * hash) + getDescriptor().hashCode(); 4721 hash = (29 * hash) + getUnknownFields().hashCode(); 4722 memoizedHashCode = hash; 4723 return hash; 4724 } 4725 parseFrom( java.nio.ByteBuffer data)4726 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( 4727 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 4728 return PARSER.parseFrom(data); 4729 } 4730 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4731 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( 4732 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4733 throws com.google.protobuf.InvalidProtocolBufferException { 4734 return PARSER.parseFrom(data, extensionRegistry); 4735 } 4736 parseFrom( com.google.protobuf.ByteString data)4737 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( 4738 com.google.protobuf.ByteString data) 4739 throws com.google.protobuf.InvalidProtocolBufferException { 4740 return PARSER.parseFrom(data); 4741 } 4742 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4743 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( 4744 com.google.protobuf.ByteString data, 4745 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4746 throws com.google.protobuf.InvalidProtocolBufferException { 4747 return PARSER.parseFrom(data, extensionRegistry); 4748 } 4749 parseFrom(byte[] data)4750 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom(byte[] data) 4751 throws com.google.protobuf.InvalidProtocolBufferException { 4752 return PARSER.parseFrom(data); 4753 } 4754 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4755 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( 4756 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4757 throws com.google.protobuf.InvalidProtocolBufferException { 4758 return PARSER.parseFrom(data, extensionRegistry); 4759 } 4760 parseFrom( java.io.InputStream input)4761 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( 4762 java.io.InputStream input) throws java.io.IOException { 4763 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 4764 } 4765 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4766 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( 4767 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4768 throws java.io.IOException { 4769 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 4770 PARSER, input, extensionRegistry); 4771 } 4772 parseDelimitedFrom( java.io.InputStream input)4773 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseDelimitedFrom( 4774 java.io.InputStream input) throws java.io.IOException { 4775 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 4776 } 4777 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4778 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseDelimitedFrom( 4779 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4780 throws java.io.IOException { 4781 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 4782 PARSER, input, extensionRegistry); 4783 } 4784 parseFrom( com.google.protobuf.CodedInputStream input)4785 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( 4786 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 4787 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 4788 } 4789 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4790 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( 4791 com.google.protobuf.CodedInputStream input, 4792 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4793 throws java.io.IOException { 4794 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 4795 PARSER, input, extensionRegistry); 4796 } 4797 4798 @java.lang.Override newBuilderForType()4799 public Builder newBuilderForType() { 4800 return newBuilder(); 4801 } 4802 newBuilder()4803 public static Builder newBuilder() { 4804 return DEFAULT_INSTANCE.toBuilder(); 4805 } 4806 newBuilder( com.google.privacy.dlp.v2.Action.JobNotificationEmails prototype)4807 public static Builder newBuilder( 4808 com.google.privacy.dlp.v2.Action.JobNotificationEmails prototype) { 4809 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4810 } 4811 4812 @java.lang.Override toBuilder()4813 public Builder toBuilder() { 4814 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 4815 } 4816 4817 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4818 protected Builder newBuilderForType( 4819 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4820 Builder builder = new Builder(parent); 4821 return builder; 4822 } 4823 /** 4824 * 4825 * 4826 * <pre> 4827 * Sends an email when the job completes. The email goes to IAM project owners 4828 * and technical [Essential 4829 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 4830 * </pre> 4831 * 4832 * Protobuf type {@code google.privacy.dlp.v2.Action.JobNotificationEmails} 4833 */ 4834 public static final class Builder 4835 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 4836 implements 4837 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.JobNotificationEmails) 4838 com.google.privacy.dlp.v2.Action.JobNotificationEmailsOrBuilder { getDescriptor()4839 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 4840 return com.google.privacy.dlp.v2.DlpProto 4841 .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor; 4842 } 4843 4844 @java.lang.Override 4845 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()4846 internalGetFieldAccessorTable() { 4847 return com.google.privacy.dlp.v2.DlpProto 4848 .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_fieldAccessorTable 4849 .ensureFieldAccessorsInitialized( 4850 com.google.privacy.dlp.v2.Action.JobNotificationEmails.class, 4851 com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder.class); 4852 } 4853 4854 // Construct using com.google.privacy.dlp.v2.Action.JobNotificationEmails.newBuilder() Builder()4855 private Builder() {} 4856 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4857 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4858 super(parent); 4859 } 4860 4861 @java.lang.Override clear()4862 public Builder clear() { 4863 super.clear(); 4864 return this; 4865 } 4866 4867 @java.lang.Override getDescriptorForType()4868 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 4869 return com.google.privacy.dlp.v2.DlpProto 4870 .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor; 4871 } 4872 4873 @java.lang.Override getDefaultInstanceForType()4874 public com.google.privacy.dlp.v2.Action.JobNotificationEmails getDefaultInstanceForType() { 4875 return com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance(); 4876 } 4877 4878 @java.lang.Override build()4879 public com.google.privacy.dlp.v2.Action.JobNotificationEmails build() { 4880 com.google.privacy.dlp.v2.Action.JobNotificationEmails result = buildPartial(); 4881 if (!result.isInitialized()) { 4882 throw newUninitializedMessageException(result); 4883 } 4884 return result; 4885 } 4886 4887 @java.lang.Override buildPartial()4888 public com.google.privacy.dlp.v2.Action.JobNotificationEmails buildPartial() { 4889 com.google.privacy.dlp.v2.Action.JobNotificationEmails result = 4890 new com.google.privacy.dlp.v2.Action.JobNotificationEmails(this); 4891 onBuilt(); 4892 return result; 4893 } 4894 4895 @java.lang.Override clone()4896 public Builder clone() { 4897 return super.clone(); 4898 } 4899 4900 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4901 public Builder setField( 4902 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4903 return super.setField(field, value); 4904 } 4905 4906 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)4907 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 4908 return super.clearField(field); 4909 } 4910 4911 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)4912 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 4913 return super.clearOneof(oneof); 4914 } 4915 4916 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)4917 public Builder setRepeatedField( 4918 com.google.protobuf.Descriptors.FieldDescriptor field, 4919 int index, 4920 java.lang.Object value) { 4921 return super.setRepeatedField(field, index, value); 4922 } 4923 4924 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4925 public Builder addRepeatedField( 4926 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4927 return super.addRepeatedField(field, value); 4928 } 4929 4930 @java.lang.Override mergeFrom(com.google.protobuf.Message other)4931 public Builder mergeFrom(com.google.protobuf.Message other) { 4932 if (other instanceof com.google.privacy.dlp.v2.Action.JobNotificationEmails) { 4933 return mergeFrom((com.google.privacy.dlp.v2.Action.JobNotificationEmails) other); 4934 } else { 4935 super.mergeFrom(other); 4936 return this; 4937 } 4938 } 4939 mergeFrom(com.google.privacy.dlp.v2.Action.JobNotificationEmails other)4940 public Builder mergeFrom(com.google.privacy.dlp.v2.Action.JobNotificationEmails other) { 4941 if (other == com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance()) 4942 return this; 4943 this.mergeUnknownFields(other.getUnknownFields()); 4944 onChanged(); 4945 return this; 4946 } 4947 4948 @java.lang.Override isInitialized()4949 public final boolean isInitialized() { 4950 return true; 4951 } 4952 4953 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4954 public Builder mergeFrom( 4955 com.google.protobuf.CodedInputStream input, 4956 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4957 throws java.io.IOException { 4958 if (extensionRegistry == null) { 4959 throw new java.lang.NullPointerException(); 4960 } 4961 try { 4962 boolean done = false; 4963 while (!done) { 4964 int tag = input.readTag(); 4965 switch (tag) { 4966 case 0: 4967 done = true; 4968 break; 4969 default: 4970 { 4971 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 4972 done = true; // was an endgroup tag 4973 } 4974 break; 4975 } // default: 4976 } // switch (tag) 4977 } // while (!done) 4978 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4979 throw e.unwrapIOException(); 4980 } finally { 4981 onChanged(); 4982 } // finally 4983 return this; 4984 } 4985 4986 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4987 public final Builder setUnknownFields( 4988 final com.google.protobuf.UnknownFieldSet unknownFields) { 4989 return super.setUnknownFields(unknownFields); 4990 } 4991 4992 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4993 public final Builder mergeUnknownFields( 4994 final com.google.protobuf.UnknownFieldSet unknownFields) { 4995 return super.mergeUnknownFields(unknownFields); 4996 } 4997 4998 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.JobNotificationEmails) 4999 } 5000 5001 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.JobNotificationEmails) 5002 private static final com.google.privacy.dlp.v2.Action.JobNotificationEmails DEFAULT_INSTANCE; 5003 5004 static { 5005 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.JobNotificationEmails(); 5006 } 5007 getDefaultInstance()5008 public static com.google.privacy.dlp.v2.Action.JobNotificationEmails getDefaultInstance() { 5009 return DEFAULT_INSTANCE; 5010 } 5011 5012 private static final com.google.protobuf.Parser<JobNotificationEmails> PARSER = 5013 new com.google.protobuf.AbstractParser<JobNotificationEmails>() { 5014 @java.lang.Override 5015 public JobNotificationEmails parsePartialFrom( 5016 com.google.protobuf.CodedInputStream input, 5017 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5018 throws com.google.protobuf.InvalidProtocolBufferException { 5019 Builder builder = newBuilder(); 5020 try { 5021 builder.mergeFrom(input, extensionRegistry); 5022 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5023 throw e.setUnfinishedMessage(builder.buildPartial()); 5024 } catch (com.google.protobuf.UninitializedMessageException e) { 5025 throw e.asInvalidProtocolBufferException() 5026 .setUnfinishedMessage(builder.buildPartial()); 5027 } catch (java.io.IOException e) { 5028 throw new com.google.protobuf.InvalidProtocolBufferException(e) 5029 .setUnfinishedMessage(builder.buildPartial()); 5030 } 5031 return builder.buildPartial(); 5032 } 5033 }; 5034 parser()5035 public static com.google.protobuf.Parser<JobNotificationEmails> parser() { 5036 return PARSER; 5037 } 5038 5039 @java.lang.Override getParserForType()5040 public com.google.protobuf.Parser<JobNotificationEmails> getParserForType() { 5041 return PARSER; 5042 } 5043 5044 @java.lang.Override getDefaultInstanceForType()5045 public com.google.privacy.dlp.v2.Action.JobNotificationEmails getDefaultInstanceForType() { 5046 return DEFAULT_INSTANCE; 5047 } 5048 } 5049 5050 public interface PublishToStackdriverOrBuilder 5051 extends 5052 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.PublishToStackdriver) 5053 com.google.protobuf.MessageOrBuilder {} 5054 /** 5055 * 5056 * 5057 * <pre> 5058 * Enable Stackdriver metric dlp.googleapis.com/finding_count. This 5059 * will publish a metric to stack driver on each infotype requested and 5060 * how many findings were found for it. CustomDetectors will be bucketed 5061 * as 'Custom' under the Stackdriver label 'info_type'. 5062 * </pre> 5063 * 5064 * Protobuf type {@code google.privacy.dlp.v2.Action.PublishToStackdriver} 5065 */ 5066 public static final class PublishToStackdriver extends com.google.protobuf.GeneratedMessageV3 5067 implements 5068 // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.PublishToStackdriver) 5069 PublishToStackdriverOrBuilder { 5070 private static final long serialVersionUID = 0L; 5071 // Use PublishToStackdriver.newBuilder() to construct. PublishToStackdriver(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)5072 private PublishToStackdriver(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 5073 super(builder); 5074 } 5075 PublishToStackdriver()5076 private PublishToStackdriver() {} 5077 5078 @java.lang.Override 5079 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)5080 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 5081 return new PublishToStackdriver(); 5082 } 5083 5084 @java.lang.Override getUnknownFields()5085 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 5086 return this.unknownFields; 5087 } 5088 getDescriptor()5089 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 5090 return com.google.privacy.dlp.v2.DlpProto 5091 .internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_descriptor; 5092 } 5093 5094 @java.lang.Override 5095 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()5096 internalGetFieldAccessorTable() { 5097 return com.google.privacy.dlp.v2.DlpProto 5098 .internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_fieldAccessorTable 5099 .ensureFieldAccessorsInitialized( 5100 com.google.privacy.dlp.v2.Action.PublishToStackdriver.class, 5101 com.google.privacy.dlp.v2.Action.PublishToStackdriver.Builder.class); 5102 } 5103 5104 private byte memoizedIsInitialized = -1; 5105 5106 @java.lang.Override isInitialized()5107 public final boolean isInitialized() { 5108 byte isInitialized = memoizedIsInitialized; 5109 if (isInitialized == 1) return true; 5110 if (isInitialized == 0) return false; 5111 5112 memoizedIsInitialized = 1; 5113 return true; 5114 } 5115 5116 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)5117 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 5118 getUnknownFields().writeTo(output); 5119 } 5120 5121 @java.lang.Override getSerializedSize()5122 public int getSerializedSize() { 5123 int size = memoizedSize; 5124 if (size != -1) return size; 5125 5126 size = 0; 5127 size += getUnknownFields().getSerializedSize(); 5128 memoizedSize = size; 5129 return size; 5130 } 5131 5132 @java.lang.Override equals(final java.lang.Object obj)5133 public boolean equals(final java.lang.Object obj) { 5134 if (obj == this) { 5135 return true; 5136 } 5137 if (!(obj instanceof com.google.privacy.dlp.v2.Action.PublishToStackdriver)) { 5138 return super.equals(obj); 5139 } 5140 com.google.privacy.dlp.v2.Action.PublishToStackdriver other = 5141 (com.google.privacy.dlp.v2.Action.PublishToStackdriver) obj; 5142 5143 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 5144 return true; 5145 } 5146 5147 @java.lang.Override hashCode()5148 public int hashCode() { 5149 if (memoizedHashCode != 0) { 5150 return memoizedHashCode; 5151 } 5152 int hash = 41; 5153 hash = (19 * hash) + getDescriptor().hashCode(); 5154 hash = (29 * hash) + getUnknownFields().hashCode(); 5155 memoizedHashCode = hash; 5156 return hash; 5157 } 5158 parseFrom( java.nio.ByteBuffer data)5159 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom( 5160 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 5161 return PARSER.parseFrom(data); 5162 } 5163 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5164 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom( 5165 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5166 throws com.google.protobuf.InvalidProtocolBufferException { 5167 return PARSER.parseFrom(data, extensionRegistry); 5168 } 5169 parseFrom( com.google.protobuf.ByteString data)5170 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom( 5171 com.google.protobuf.ByteString data) 5172 throws com.google.protobuf.InvalidProtocolBufferException { 5173 return PARSER.parseFrom(data); 5174 } 5175 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5176 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom( 5177 com.google.protobuf.ByteString data, 5178 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5179 throws com.google.protobuf.InvalidProtocolBufferException { 5180 return PARSER.parseFrom(data, extensionRegistry); 5181 } 5182 parseFrom(byte[] data)5183 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom(byte[] data) 5184 throws com.google.protobuf.InvalidProtocolBufferException { 5185 return PARSER.parseFrom(data); 5186 } 5187 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5188 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom( 5189 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5190 throws com.google.protobuf.InvalidProtocolBufferException { 5191 return PARSER.parseFrom(data, extensionRegistry); 5192 } 5193 parseFrom( java.io.InputStream input)5194 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom( 5195 java.io.InputStream input) throws java.io.IOException { 5196 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 5197 } 5198 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5199 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom( 5200 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5201 throws java.io.IOException { 5202 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 5203 PARSER, input, extensionRegistry); 5204 } 5205 parseDelimitedFrom( java.io.InputStream input)5206 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseDelimitedFrom( 5207 java.io.InputStream input) throws java.io.IOException { 5208 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 5209 } 5210 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5211 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseDelimitedFrom( 5212 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5213 throws java.io.IOException { 5214 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 5215 PARSER, input, extensionRegistry); 5216 } 5217 parseFrom( com.google.protobuf.CodedInputStream input)5218 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom( 5219 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 5220 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 5221 } 5222 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5223 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver parseFrom( 5224 com.google.protobuf.CodedInputStream input, 5225 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5226 throws java.io.IOException { 5227 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 5228 PARSER, input, extensionRegistry); 5229 } 5230 5231 @java.lang.Override newBuilderForType()5232 public Builder newBuilderForType() { 5233 return newBuilder(); 5234 } 5235 newBuilder()5236 public static Builder newBuilder() { 5237 return DEFAULT_INSTANCE.toBuilder(); 5238 } 5239 newBuilder( com.google.privacy.dlp.v2.Action.PublishToStackdriver prototype)5240 public static Builder newBuilder( 5241 com.google.privacy.dlp.v2.Action.PublishToStackdriver prototype) { 5242 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 5243 } 5244 5245 @java.lang.Override toBuilder()5246 public Builder toBuilder() { 5247 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 5248 } 5249 5250 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5251 protected Builder newBuilderForType( 5252 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5253 Builder builder = new Builder(parent); 5254 return builder; 5255 } 5256 /** 5257 * 5258 * 5259 * <pre> 5260 * Enable Stackdriver metric dlp.googleapis.com/finding_count. This 5261 * will publish a metric to stack driver on each infotype requested and 5262 * how many findings were found for it. CustomDetectors will be bucketed 5263 * as 'Custom' under the Stackdriver label 'info_type'. 5264 * </pre> 5265 * 5266 * Protobuf type {@code google.privacy.dlp.v2.Action.PublishToStackdriver} 5267 */ 5268 public static final class Builder 5269 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 5270 implements 5271 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.PublishToStackdriver) 5272 com.google.privacy.dlp.v2.Action.PublishToStackdriverOrBuilder { getDescriptor()5273 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 5274 return com.google.privacy.dlp.v2.DlpProto 5275 .internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_descriptor; 5276 } 5277 5278 @java.lang.Override 5279 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()5280 internalGetFieldAccessorTable() { 5281 return com.google.privacy.dlp.v2.DlpProto 5282 .internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_fieldAccessorTable 5283 .ensureFieldAccessorsInitialized( 5284 com.google.privacy.dlp.v2.Action.PublishToStackdriver.class, 5285 com.google.privacy.dlp.v2.Action.PublishToStackdriver.Builder.class); 5286 } 5287 5288 // Construct using com.google.privacy.dlp.v2.Action.PublishToStackdriver.newBuilder() Builder()5289 private Builder() {} 5290 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5291 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5292 super(parent); 5293 } 5294 5295 @java.lang.Override clear()5296 public Builder clear() { 5297 super.clear(); 5298 return this; 5299 } 5300 5301 @java.lang.Override getDescriptorForType()5302 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 5303 return com.google.privacy.dlp.v2.DlpProto 5304 .internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_descriptor; 5305 } 5306 5307 @java.lang.Override getDefaultInstanceForType()5308 public com.google.privacy.dlp.v2.Action.PublishToStackdriver getDefaultInstanceForType() { 5309 return com.google.privacy.dlp.v2.Action.PublishToStackdriver.getDefaultInstance(); 5310 } 5311 5312 @java.lang.Override build()5313 public com.google.privacy.dlp.v2.Action.PublishToStackdriver build() { 5314 com.google.privacy.dlp.v2.Action.PublishToStackdriver result = buildPartial(); 5315 if (!result.isInitialized()) { 5316 throw newUninitializedMessageException(result); 5317 } 5318 return result; 5319 } 5320 5321 @java.lang.Override buildPartial()5322 public com.google.privacy.dlp.v2.Action.PublishToStackdriver buildPartial() { 5323 com.google.privacy.dlp.v2.Action.PublishToStackdriver result = 5324 new com.google.privacy.dlp.v2.Action.PublishToStackdriver(this); 5325 onBuilt(); 5326 return result; 5327 } 5328 5329 @java.lang.Override clone()5330 public Builder clone() { 5331 return super.clone(); 5332 } 5333 5334 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5335 public Builder setField( 5336 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 5337 return super.setField(field, value); 5338 } 5339 5340 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)5341 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 5342 return super.clearField(field); 5343 } 5344 5345 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)5346 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 5347 return super.clearOneof(oneof); 5348 } 5349 5350 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)5351 public Builder setRepeatedField( 5352 com.google.protobuf.Descriptors.FieldDescriptor field, 5353 int index, 5354 java.lang.Object value) { 5355 return super.setRepeatedField(field, index, value); 5356 } 5357 5358 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5359 public Builder addRepeatedField( 5360 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 5361 return super.addRepeatedField(field, value); 5362 } 5363 5364 @java.lang.Override mergeFrom(com.google.protobuf.Message other)5365 public Builder mergeFrom(com.google.protobuf.Message other) { 5366 if (other instanceof com.google.privacy.dlp.v2.Action.PublishToStackdriver) { 5367 return mergeFrom((com.google.privacy.dlp.v2.Action.PublishToStackdriver) other); 5368 } else { 5369 super.mergeFrom(other); 5370 return this; 5371 } 5372 } 5373 mergeFrom(com.google.privacy.dlp.v2.Action.PublishToStackdriver other)5374 public Builder mergeFrom(com.google.privacy.dlp.v2.Action.PublishToStackdriver other) { 5375 if (other == com.google.privacy.dlp.v2.Action.PublishToStackdriver.getDefaultInstance()) 5376 return this; 5377 this.mergeUnknownFields(other.getUnknownFields()); 5378 onChanged(); 5379 return this; 5380 } 5381 5382 @java.lang.Override isInitialized()5383 public final boolean isInitialized() { 5384 return true; 5385 } 5386 5387 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5388 public Builder mergeFrom( 5389 com.google.protobuf.CodedInputStream input, 5390 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5391 throws java.io.IOException { 5392 if (extensionRegistry == null) { 5393 throw new java.lang.NullPointerException(); 5394 } 5395 try { 5396 boolean done = false; 5397 while (!done) { 5398 int tag = input.readTag(); 5399 switch (tag) { 5400 case 0: 5401 done = true; 5402 break; 5403 default: 5404 { 5405 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 5406 done = true; // was an endgroup tag 5407 } 5408 break; 5409 } // default: 5410 } // switch (tag) 5411 } // while (!done) 5412 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5413 throw e.unwrapIOException(); 5414 } finally { 5415 onChanged(); 5416 } // finally 5417 return this; 5418 } 5419 5420 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5421 public final Builder setUnknownFields( 5422 final com.google.protobuf.UnknownFieldSet unknownFields) { 5423 return super.setUnknownFields(unknownFields); 5424 } 5425 5426 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5427 public final Builder mergeUnknownFields( 5428 final com.google.protobuf.UnknownFieldSet unknownFields) { 5429 return super.mergeUnknownFields(unknownFields); 5430 } 5431 5432 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.PublishToStackdriver) 5433 } 5434 5435 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishToStackdriver) 5436 private static final com.google.privacy.dlp.v2.Action.PublishToStackdriver DEFAULT_INSTANCE; 5437 5438 static { 5439 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.PublishToStackdriver(); 5440 } 5441 getDefaultInstance()5442 public static com.google.privacy.dlp.v2.Action.PublishToStackdriver getDefaultInstance() { 5443 return DEFAULT_INSTANCE; 5444 } 5445 5446 private static final com.google.protobuf.Parser<PublishToStackdriver> PARSER = 5447 new com.google.protobuf.AbstractParser<PublishToStackdriver>() { 5448 @java.lang.Override 5449 public PublishToStackdriver parsePartialFrom( 5450 com.google.protobuf.CodedInputStream input, 5451 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5452 throws com.google.protobuf.InvalidProtocolBufferException { 5453 Builder builder = newBuilder(); 5454 try { 5455 builder.mergeFrom(input, extensionRegistry); 5456 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5457 throw e.setUnfinishedMessage(builder.buildPartial()); 5458 } catch (com.google.protobuf.UninitializedMessageException e) { 5459 throw e.asInvalidProtocolBufferException() 5460 .setUnfinishedMessage(builder.buildPartial()); 5461 } catch (java.io.IOException e) { 5462 throw new com.google.protobuf.InvalidProtocolBufferException(e) 5463 .setUnfinishedMessage(builder.buildPartial()); 5464 } 5465 return builder.buildPartial(); 5466 } 5467 }; 5468 parser()5469 public static com.google.protobuf.Parser<PublishToStackdriver> parser() { 5470 return PARSER; 5471 } 5472 5473 @java.lang.Override getParserForType()5474 public com.google.protobuf.Parser<PublishToStackdriver> getParserForType() { 5475 return PARSER; 5476 } 5477 5478 @java.lang.Override getDefaultInstanceForType()5479 public com.google.privacy.dlp.v2.Action.PublishToStackdriver getDefaultInstanceForType() { 5480 return DEFAULT_INSTANCE; 5481 } 5482 } 5483 5484 private int actionCase_ = 0; 5485 private java.lang.Object action_; 5486 5487 public enum ActionCase 5488 implements 5489 com.google.protobuf.Internal.EnumLite, 5490 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 5491 SAVE_FINDINGS(1), 5492 PUB_SUB(2), 5493 PUBLISH_SUMMARY_TO_CSCC(3), 5494 PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG(5), 5495 DEIDENTIFY(7), 5496 JOB_NOTIFICATION_EMAILS(8), 5497 PUBLISH_TO_STACKDRIVER(9), 5498 ACTION_NOT_SET(0); 5499 private final int value; 5500 ActionCase(int value)5501 private ActionCase(int value) { 5502 this.value = value; 5503 } 5504 /** 5505 * @param value The number of the enum to look for. 5506 * @return The enum associated with the given number. 5507 * @deprecated Use {@link #forNumber(int)} instead. 5508 */ 5509 @java.lang.Deprecated valueOf(int value)5510 public static ActionCase valueOf(int value) { 5511 return forNumber(value); 5512 } 5513 forNumber(int value)5514 public static ActionCase forNumber(int value) { 5515 switch (value) { 5516 case 1: 5517 return SAVE_FINDINGS; 5518 case 2: 5519 return PUB_SUB; 5520 case 3: 5521 return PUBLISH_SUMMARY_TO_CSCC; 5522 case 5: 5523 return PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG; 5524 case 7: 5525 return DEIDENTIFY; 5526 case 8: 5527 return JOB_NOTIFICATION_EMAILS; 5528 case 9: 5529 return PUBLISH_TO_STACKDRIVER; 5530 case 0: 5531 return ACTION_NOT_SET; 5532 default: 5533 return null; 5534 } 5535 } 5536 getNumber()5537 public int getNumber() { 5538 return this.value; 5539 } 5540 }; 5541 getActionCase()5542 public ActionCase getActionCase() { 5543 return ActionCase.forNumber(actionCase_); 5544 } 5545 5546 public static final int SAVE_FINDINGS_FIELD_NUMBER = 1; 5547 /** 5548 * 5549 * 5550 * <pre> 5551 * Save resulting findings in a provided location. 5552 * </pre> 5553 * 5554 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 5555 * 5556 * @return Whether the saveFindings field is set. 5557 */ 5558 @java.lang.Override hasSaveFindings()5559 public boolean hasSaveFindings() { 5560 return actionCase_ == 1; 5561 } 5562 /** 5563 * 5564 * 5565 * <pre> 5566 * Save resulting findings in a provided location. 5567 * </pre> 5568 * 5569 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 5570 * 5571 * @return The saveFindings. 5572 */ 5573 @java.lang.Override getSaveFindings()5574 public com.google.privacy.dlp.v2.Action.SaveFindings getSaveFindings() { 5575 if (actionCase_ == 1) { 5576 return (com.google.privacy.dlp.v2.Action.SaveFindings) action_; 5577 } 5578 return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); 5579 } 5580 /** 5581 * 5582 * 5583 * <pre> 5584 * Save resulting findings in a provided location. 5585 * </pre> 5586 * 5587 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 5588 */ 5589 @java.lang.Override getSaveFindingsOrBuilder()5590 public com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder getSaveFindingsOrBuilder() { 5591 if (actionCase_ == 1) { 5592 return (com.google.privacy.dlp.v2.Action.SaveFindings) action_; 5593 } 5594 return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); 5595 } 5596 5597 public static final int PUB_SUB_FIELD_NUMBER = 2; 5598 /** 5599 * 5600 * 5601 * <pre> 5602 * Publish a notification to a Pub/Sub topic. 5603 * </pre> 5604 * 5605 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 5606 * 5607 * @return Whether the pubSub field is set. 5608 */ 5609 @java.lang.Override hasPubSub()5610 public boolean hasPubSub() { 5611 return actionCase_ == 2; 5612 } 5613 /** 5614 * 5615 * 5616 * <pre> 5617 * Publish a notification to a Pub/Sub topic. 5618 * </pre> 5619 * 5620 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 5621 * 5622 * @return The pubSub. 5623 */ 5624 @java.lang.Override getPubSub()5625 public com.google.privacy.dlp.v2.Action.PublishToPubSub getPubSub() { 5626 if (actionCase_ == 2) { 5627 return (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_; 5628 } 5629 return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance(); 5630 } 5631 /** 5632 * 5633 * 5634 * <pre> 5635 * Publish a notification to a Pub/Sub topic. 5636 * </pre> 5637 * 5638 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 5639 */ 5640 @java.lang.Override getPubSubOrBuilder()5641 public com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder getPubSubOrBuilder() { 5642 if (actionCase_ == 2) { 5643 return (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_; 5644 } 5645 return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance(); 5646 } 5647 5648 public static final int PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER = 3; 5649 /** 5650 * 5651 * 5652 * <pre> 5653 * Publish summary to Cloud Security Command Center (Alpha). 5654 * </pre> 5655 * 5656 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 5657 * 5658 * @return Whether the publishSummaryToCscc field is set. 5659 */ 5660 @java.lang.Override hasPublishSummaryToCscc()5661 public boolean hasPublishSummaryToCscc() { 5662 return actionCase_ == 3; 5663 } 5664 /** 5665 * 5666 * 5667 * <pre> 5668 * Publish summary to Cloud Security Command Center (Alpha). 5669 * </pre> 5670 * 5671 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 5672 * 5673 * @return The publishSummaryToCscc. 5674 */ 5675 @java.lang.Override getPublishSummaryToCscc()5676 public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getPublishSummaryToCscc() { 5677 if (actionCase_ == 3) { 5678 return (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_; 5679 } 5680 return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance(); 5681 } 5682 /** 5683 * 5684 * 5685 * <pre> 5686 * Publish summary to Cloud Security Command Center (Alpha). 5687 * </pre> 5688 * 5689 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 5690 */ 5691 @java.lang.Override 5692 public com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder getPublishSummaryToCsccOrBuilder()5693 getPublishSummaryToCsccOrBuilder() { 5694 if (actionCase_ == 3) { 5695 return (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_; 5696 } 5697 return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance(); 5698 } 5699 5700 public static final int PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER = 5; 5701 /** 5702 * 5703 * 5704 * <pre> 5705 * Publish findings to Cloud Datahub. 5706 * </pre> 5707 * 5708 * <code> 5709 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 5710 * </code> 5711 * 5712 * @return Whether the publishFindingsToCloudDataCatalog field is set. 5713 */ 5714 @java.lang.Override hasPublishFindingsToCloudDataCatalog()5715 public boolean hasPublishFindingsToCloudDataCatalog() { 5716 return actionCase_ == 5; 5717 } 5718 /** 5719 * 5720 * 5721 * <pre> 5722 * Publish findings to Cloud Datahub. 5723 * </pre> 5724 * 5725 * <code> 5726 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 5727 * </code> 5728 * 5729 * @return The publishFindingsToCloudDataCatalog. 5730 */ 5731 @java.lang.Override 5732 public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog getPublishFindingsToCloudDataCatalog()5733 getPublishFindingsToCloudDataCatalog() { 5734 if (actionCase_ == 5) { 5735 return (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_; 5736 } 5737 return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.getDefaultInstance(); 5738 } 5739 /** 5740 * 5741 * 5742 * <pre> 5743 * Publish findings to Cloud Datahub. 5744 * </pre> 5745 * 5746 * <code> 5747 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 5748 * </code> 5749 */ 5750 @java.lang.Override 5751 public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder getPublishFindingsToCloudDataCatalogOrBuilder()5752 getPublishFindingsToCloudDataCatalogOrBuilder() { 5753 if (actionCase_ == 5) { 5754 return (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_; 5755 } 5756 return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.getDefaultInstance(); 5757 } 5758 5759 public static final int DEIDENTIFY_FIELD_NUMBER = 7; 5760 /** 5761 * 5762 * 5763 * <pre> 5764 * Create a de-identified copy of the input data. 5765 * </pre> 5766 * 5767 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 5768 * 5769 * @return Whether the deidentify field is set. 5770 */ 5771 @java.lang.Override hasDeidentify()5772 public boolean hasDeidentify() { 5773 return actionCase_ == 7; 5774 } 5775 /** 5776 * 5777 * 5778 * <pre> 5779 * Create a de-identified copy of the input data. 5780 * </pre> 5781 * 5782 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 5783 * 5784 * @return The deidentify. 5785 */ 5786 @java.lang.Override getDeidentify()5787 public com.google.privacy.dlp.v2.Action.Deidentify getDeidentify() { 5788 if (actionCase_ == 7) { 5789 return (com.google.privacy.dlp.v2.Action.Deidentify) action_; 5790 } 5791 return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance(); 5792 } 5793 /** 5794 * 5795 * 5796 * <pre> 5797 * Create a de-identified copy of the input data. 5798 * </pre> 5799 * 5800 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 5801 */ 5802 @java.lang.Override getDeidentifyOrBuilder()5803 public com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder getDeidentifyOrBuilder() { 5804 if (actionCase_ == 7) { 5805 return (com.google.privacy.dlp.v2.Action.Deidentify) action_; 5806 } 5807 return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance(); 5808 } 5809 5810 public static final int JOB_NOTIFICATION_EMAILS_FIELD_NUMBER = 8; 5811 /** 5812 * 5813 * 5814 * <pre> 5815 * Sends an email when the job completes. The email goes to IAM project 5816 * owners and technical [Essential 5817 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 5818 * </pre> 5819 * 5820 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 5821 * 5822 * @return Whether the jobNotificationEmails field is set. 5823 */ 5824 @java.lang.Override hasJobNotificationEmails()5825 public boolean hasJobNotificationEmails() { 5826 return actionCase_ == 8; 5827 } 5828 /** 5829 * 5830 * 5831 * <pre> 5832 * Sends an email when the job completes. The email goes to IAM project 5833 * owners and technical [Essential 5834 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 5835 * </pre> 5836 * 5837 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 5838 * 5839 * @return The jobNotificationEmails. 5840 */ 5841 @java.lang.Override getJobNotificationEmails()5842 public com.google.privacy.dlp.v2.Action.JobNotificationEmails getJobNotificationEmails() { 5843 if (actionCase_ == 8) { 5844 return (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_; 5845 } 5846 return com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance(); 5847 } 5848 /** 5849 * 5850 * 5851 * <pre> 5852 * Sends an email when the job completes. The email goes to IAM project 5853 * owners and technical [Essential 5854 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 5855 * </pre> 5856 * 5857 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 5858 */ 5859 @java.lang.Override 5860 public com.google.privacy.dlp.v2.Action.JobNotificationEmailsOrBuilder getJobNotificationEmailsOrBuilder()5861 getJobNotificationEmailsOrBuilder() { 5862 if (actionCase_ == 8) { 5863 return (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_; 5864 } 5865 return com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance(); 5866 } 5867 5868 public static final int PUBLISH_TO_STACKDRIVER_FIELD_NUMBER = 9; 5869 /** 5870 * 5871 * 5872 * <pre> 5873 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 5874 * </pre> 5875 * 5876 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 5877 * 5878 * @return Whether the publishToStackdriver field is set. 5879 */ 5880 @java.lang.Override hasPublishToStackdriver()5881 public boolean hasPublishToStackdriver() { 5882 return actionCase_ == 9; 5883 } 5884 /** 5885 * 5886 * 5887 * <pre> 5888 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 5889 * </pre> 5890 * 5891 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 5892 * 5893 * @return The publishToStackdriver. 5894 */ 5895 @java.lang.Override getPublishToStackdriver()5896 public com.google.privacy.dlp.v2.Action.PublishToStackdriver getPublishToStackdriver() { 5897 if (actionCase_ == 9) { 5898 return (com.google.privacy.dlp.v2.Action.PublishToStackdriver) action_; 5899 } 5900 return com.google.privacy.dlp.v2.Action.PublishToStackdriver.getDefaultInstance(); 5901 } 5902 /** 5903 * 5904 * 5905 * <pre> 5906 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 5907 * </pre> 5908 * 5909 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 5910 */ 5911 @java.lang.Override 5912 public com.google.privacy.dlp.v2.Action.PublishToStackdriverOrBuilder getPublishToStackdriverOrBuilder()5913 getPublishToStackdriverOrBuilder() { 5914 if (actionCase_ == 9) { 5915 return (com.google.privacy.dlp.v2.Action.PublishToStackdriver) action_; 5916 } 5917 return com.google.privacy.dlp.v2.Action.PublishToStackdriver.getDefaultInstance(); 5918 } 5919 5920 private byte memoizedIsInitialized = -1; 5921 5922 @java.lang.Override isInitialized()5923 public final boolean isInitialized() { 5924 byte isInitialized = memoizedIsInitialized; 5925 if (isInitialized == 1) return true; 5926 if (isInitialized == 0) return false; 5927 5928 memoizedIsInitialized = 1; 5929 return true; 5930 } 5931 5932 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)5933 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 5934 if (actionCase_ == 1) { 5935 output.writeMessage(1, (com.google.privacy.dlp.v2.Action.SaveFindings) action_); 5936 } 5937 if (actionCase_ == 2) { 5938 output.writeMessage(2, (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_); 5939 } 5940 if (actionCase_ == 3) { 5941 output.writeMessage(3, (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_); 5942 } 5943 if (actionCase_ == 5) { 5944 output.writeMessage( 5945 5, (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_); 5946 } 5947 if (actionCase_ == 7) { 5948 output.writeMessage(7, (com.google.privacy.dlp.v2.Action.Deidentify) action_); 5949 } 5950 if (actionCase_ == 8) { 5951 output.writeMessage(8, (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_); 5952 } 5953 if (actionCase_ == 9) { 5954 output.writeMessage(9, (com.google.privacy.dlp.v2.Action.PublishToStackdriver) action_); 5955 } 5956 getUnknownFields().writeTo(output); 5957 } 5958 5959 @java.lang.Override getSerializedSize()5960 public int getSerializedSize() { 5961 int size = memoizedSize; 5962 if (size != -1) return size; 5963 5964 size = 0; 5965 if (actionCase_ == 1) { 5966 size += 5967 com.google.protobuf.CodedOutputStream.computeMessageSize( 5968 1, (com.google.privacy.dlp.v2.Action.SaveFindings) action_); 5969 } 5970 if (actionCase_ == 2) { 5971 size += 5972 com.google.protobuf.CodedOutputStream.computeMessageSize( 5973 2, (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_); 5974 } 5975 if (actionCase_ == 3) { 5976 size += 5977 com.google.protobuf.CodedOutputStream.computeMessageSize( 5978 3, (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_); 5979 } 5980 if (actionCase_ == 5) { 5981 size += 5982 com.google.protobuf.CodedOutputStream.computeMessageSize( 5983 5, (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_); 5984 } 5985 if (actionCase_ == 7) { 5986 size += 5987 com.google.protobuf.CodedOutputStream.computeMessageSize( 5988 7, (com.google.privacy.dlp.v2.Action.Deidentify) action_); 5989 } 5990 if (actionCase_ == 8) { 5991 size += 5992 com.google.protobuf.CodedOutputStream.computeMessageSize( 5993 8, (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_); 5994 } 5995 if (actionCase_ == 9) { 5996 size += 5997 com.google.protobuf.CodedOutputStream.computeMessageSize( 5998 9, (com.google.privacy.dlp.v2.Action.PublishToStackdriver) action_); 5999 } 6000 size += getUnknownFields().getSerializedSize(); 6001 memoizedSize = size; 6002 return size; 6003 } 6004 6005 @java.lang.Override equals(final java.lang.Object obj)6006 public boolean equals(final java.lang.Object obj) { 6007 if (obj == this) { 6008 return true; 6009 } 6010 if (!(obj instanceof com.google.privacy.dlp.v2.Action)) { 6011 return super.equals(obj); 6012 } 6013 com.google.privacy.dlp.v2.Action other = (com.google.privacy.dlp.v2.Action) obj; 6014 6015 if (!getActionCase().equals(other.getActionCase())) return false; 6016 switch (actionCase_) { 6017 case 1: 6018 if (!getSaveFindings().equals(other.getSaveFindings())) return false; 6019 break; 6020 case 2: 6021 if (!getPubSub().equals(other.getPubSub())) return false; 6022 break; 6023 case 3: 6024 if (!getPublishSummaryToCscc().equals(other.getPublishSummaryToCscc())) return false; 6025 break; 6026 case 5: 6027 if (!getPublishFindingsToCloudDataCatalog() 6028 .equals(other.getPublishFindingsToCloudDataCatalog())) return false; 6029 break; 6030 case 7: 6031 if (!getDeidentify().equals(other.getDeidentify())) return false; 6032 break; 6033 case 8: 6034 if (!getJobNotificationEmails().equals(other.getJobNotificationEmails())) return false; 6035 break; 6036 case 9: 6037 if (!getPublishToStackdriver().equals(other.getPublishToStackdriver())) return false; 6038 break; 6039 case 0: 6040 default: 6041 } 6042 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 6043 return true; 6044 } 6045 6046 @java.lang.Override hashCode()6047 public int hashCode() { 6048 if (memoizedHashCode != 0) { 6049 return memoizedHashCode; 6050 } 6051 int hash = 41; 6052 hash = (19 * hash) + getDescriptor().hashCode(); 6053 switch (actionCase_) { 6054 case 1: 6055 hash = (37 * hash) + SAVE_FINDINGS_FIELD_NUMBER; 6056 hash = (53 * hash) + getSaveFindings().hashCode(); 6057 break; 6058 case 2: 6059 hash = (37 * hash) + PUB_SUB_FIELD_NUMBER; 6060 hash = (53 * hash) + getPubSub().hashCode(); 6061 break; 6062 case 3: 6063 hash = (37 * hash) + PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER; 6064 hash = (53 * hash) + getPublishSummaryToCscc().hashCode(); 6065 break; 6066 case 5: 6067 hash = (37 * hash) + PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER; 6068 hash = (53 * hash) + getPublishFindingsToCloudDataCatalog().hashCode(); 6069 break; 6070 case 7: 6071 hash = (37 * hash) + DEIDENTIFY_FIELD_NUMBER; 6072 hash = (53 * hash) + getDeidentify().hashCode(); 6073 break; 6074 case 8: 6075 hash = (37 * hash) + JOB_NOTIFICATION_EMAILS_FIELD_NUMBER; 6076 hash = (53 * hash) + getJobNotificationEmails().hashCode(); 6077 break; 6078 case 9: 6079 hash = (37 * hash) + PUBLISH_TO_STACKDRIVER_FIELD_NUMBER; 6080 hash = (53 * hash) + getPublishToStackdriver().hashCode(); 6081 break; 6082 case 0: 6083 default: 6084 } 6085 hash = (29 * hash) + getUnknownFields().hashCode(); 6086 memoizedHashCode = hash; 6087 return hash; 6088 } 6089 parseFrom(java.nio.ByteBuffer data)6090 public static com.google.privacy.dlp.v2.Action parseFrom(java.nio.ByteBuffer data) 6091 throws com.google.protobuf.InvalidProtocolBufferException { 6092 return PARSER.parseFrom(data); 6093 } 6094 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6095 public static com.google.privacy.dlp.v2.Action parseFrom( 6096 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6097 throws com.google.protobuf.InvalidProtocolBufferException { 6098 return PARSER.parseFrom(data, extensionRegistry); 6099 } 6100 parseFrom(com.google.protobuf.ByteString data)6101 public static com.google.privacy.dlp.v2.Action parseFrom(com.google.protobuf.ByteString data) 6102 throws com.google.protobuf.InvalidProtocolBufferException { 6103 return PARSER.parseFrom(data); 6104 } 6105 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6106 public static com.google.privacy.dlp.v2.Action parseFrom( 6107 com.google.protobuf.ByteString data, 6108 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6109 throws com.google.protobuf.InvalidProtocolBufferException { 6110 return PARSER.parseFrom(data, extensionRegistry); 6111 } 6112 parseFrom(byte[] data)6113 public static com.google.privacy.dlp.v2.Action parseFrom(byte[] data) 6114 throws com.google.protobuf.InvalidProtocolBufferException { 6115 return PARSER.parseFrom(data); 6116 } 6117 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6118 public static com.google.privacy.dlp.v2.Action parseFrom( 6119 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6120 throws com.google.protobuf.InvalidProtocolBufferException { 6121 return PARSER.parseFrom(data, extensionRegistry); 6122 } 6123 parseFrom(java.io.InputStream input)6124 public static com.google.privacy.dlp.v2.Action parseFrom(java.io.InputStream input) 6125 throws java.io.IOException { 6126 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 6127 } 6128 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6129 public static com.google.privacy.dlp.v2.Action parseFrom( 6130 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6131 throws java.io.IOException { 6132 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 6133 PARSER, input, extensionRegistry); 6134 } 6135 parseDelimitedFrom(java.io.InputStream input)6136 public static com.google.privacy.dlp.v2.Action parseDelimitedFrom(java.io.InputStream input) 6137 throws java.io.IOException { 6138 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 6139 } 6140 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6141 public static com.google.privacy.dlp.v2.Action parseDelimitedFrom( 6142 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6143 throws java.io.IOException { 6144 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 6145 PARSER, input, extensionRegistry); 6146 } 6147 parseFrom( com.google.protobuf.CodedInputStream input)6148 public static com.google.privacy.dlp.v2.Action parseFrom( 6149 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 6150 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 6151 } 6152 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6153 public static com.google.privacy.dlp.v2.Action parseFrom( 6154 com.google.protobuf.CodedInputStream input, 6155 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6156 throws java.io.IOException { 6157 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 6158 PARSER, input, extensionRegistry); 6159 } 6160 6161 @java.lang.Override newBuilderForType()6162 public Builder newBuilderForType() { 6163 return newBuilder(); 6164 } 6165 newBuilder()6166 public static Builder newBuilder() { 6167 return DEFAULT_INSTANCE.toBuilder(); 6168 } 6169 newBuilder(com.google.privacy.dlp.v2.Action prototype)6170 public static Builder newBuilder(com.google.privacy.dlp.v2.Action prototype) { 6171 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 6172 } 6173 6174 @java.lang.Override toBuilder()6175 public Builder toBuilder() { 6176 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 6177 } 6178 6179 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)6180 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 6181 Builder builder = new Builder(parent); 6182 return builder; 6183 } 6184 /** 6185 * 6186 * 6187 * <pre> 6188 * A task to execute on the completion of a job. 6189 * See https://cloud.google.com/dlp/docs/concepts-actions to learn more. 6190 * </pre> 6191 * 6192 * Protobuf type {@code google.privacy.dlp.v2.Action} 6193 */ 6194 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 6195 implements 6196 // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action) 6197 com.google.privacy.dlp.v2.ActionOrBuilder { getDescriptor()6198 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 6199 return com.google.privacy.dlp.v2.DlpProto 6200 .internal_static_google_privacy_dlp_v2_Action_descriptor; 6201 } 6202 6203 @java.lang.Override 6204 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()6205 internalGetFieldAccessorTable() { 6206 return com.google.privacy.dlp.v2.DlpProto 6207 .internal_static_google_privacy_dlp_v2_Action_fieldAccessorTable 6208 .ensureFieldAccessorsInitialized( 6209 com.google.privacy.dlp.v2.Action.class, 6210 com.google.privacy.dlp.v2.Action.Builder.class); 6211 } 6212 6213 // Construct using com.google.privacy.dlp.v2.Action.newBuilder() Builder()6214 private Builder() {} 6215 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)6216 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 6217 super(parent); 6218 } 6219 6220 @java.lang.Override clear()6221 public Builder clear() { 6222 super.clear(); 6223 bitField0_ = 0; 6224 if (saveFindingsBuilder_ != null) { 6225 saveFindingsBuilder_.clear(); 6226 } 6227 if (pubSubBuilder_ != null) { 6228 pubSubBuilder_.clear(); 6229 } 6230 if (publishSummaryToCsccBuilder_ != null) { 6231 publishSummaryToCsccBuilder_.clear(); 6232 } 6233 if (publishFindingsToCloudDataCatalogBuilder_ != null) { 6234 publishFindingsToCloudDataCatalogBuilder_.clear(); 6235 } 6236 if (deidentifyBuilder_ != null) { 6237 deidentifyBuilder_.clear(); 6238 } 6239 if (jobNotificationEmailsBuilder_ != null) { 6240 jobNotificationEmailsBuilder_.clear(); 6241 } 6242 if (publishToStackdriverBuilder_ != null) { 6243 publishToStackdriverBuilder_.clear(); 6244 } 6245 actionCase_ = 0; 6246 action_ = null; 6247 return this; 6248 } 6249 6250 @java.lang.Override getDescriptorForType()6251 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 6252 return com.google.privacy.dlp.v2.DlpProto 6253 .internal_static_google_privacy_dlp_v2_Action_descriptor; 6254 } 6255 6256 @java.lang.Override getDefaultInstanceForType()6257 public com.google.privacy.dlp.v2.Action getDefaultInstanceForType() { 6258 return com.google.privacy.dlp.v2.Action.getDefaultInstance(); 6259 } 6260 6261 @java.lang.Override build()6262 public com.google.privacy.dlp.v2.Action build() { 6263 com.google.privacy.dlp.v2.Action result = buildPartial(); 6264 if (!result.isInitialized()) { 6265 throw newUninitializedMessageException(result); 6266 } 6267 return result; 6268 } 6269 6270 @java.lang.Override buildPartial()6271 public com.google.privacy.dlp.v2.Action buildPartial() { 6272 com.google.privacy.dlp.v2.Action result = new com.google.privacy.dlp.v2.Action(this); 6273 if (bitField0_ != 0) { 6274 buildPartial0(result); 6275 } 6276 buildPartialOneofs(result); 6277 onBuilt(); 6278 return result; 6279 } 6280 buildPartial0(com.google.privacy.dlp.v2.Action result)6281 private void buildPartial0(com.google.privacy.dlp.v2.Action result) { 6282 int from_bitField0_ = bitField0_; 6283 } 6284 buildPartialOneofs(com.google.privacy.dlp.v2.Action result)6285 private void buildPartialOneofs(com.google.privacy.dlp.v2.Action result) { 6286 result.actionCase_ = actionCase_; 6287 result.action_ = this.action_; 6288 if (actionCase_ == 1 && saveFindingsBuilder_ != null) { 6289 result.action_ = saveFindingsBuilder_.build(); 6290 } 6291 if (actionCase_ == 2 && pubSubBuilder_ != null) { 6292 result.action_ = pubSubBuilder_.build(); 6293 } 6294 if (actionCase_ == 3 && publishSummaryToCsccBuilder_ != null) { 6295 result.action_ = publishSummaryToCsccBuilder_.build(); 6296 } 6297 if (actionCase_ == 5 && publishFindingsToCloudDataCatalogBuilder_ != null) { 6298 result.action_ = publishFindingsToCloudDataCatalogBuilder_.build(); 6299 } 6300 if (actionCase_ == 7 && deidentifyBuilder_ != null) { 6301 result.action_ = deidentifyBuilder_.build(); 6302 } 6303 if (actionCase_ == 8 && jobNotificationEmailsBuilder_ != null) { 6304 result.action_ = jobNotificationEmailsBuilder_.build(); 6305 } 6306 if (actionCase_ == 9 && publishToStackdriverBuilder_ != null) { 6307 result.action_ = publishToStackdriverBuilder_.build(); 6308 } 6309 } 6310 6311 @java.lang.Override clone()6312 public Builder clone() { 6313 return super.clone(); 6314 } 6315 6316 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)6317 public Builder setField( 6318 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 6319 return super.setField(field, value); 6320 } 6321 6322 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)6323 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 6324 return super.clearField(field); 6325 } 6326 6327 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)6328 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 6329 return super.clearOneof(oneof); 6330 } 6331 6332 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)6333 public Builder setRepeatedField( 6334 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 6335 return super.setRepeatedField(field, index, value); 6336 } 6337 6338 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)6339 public Builder addRepeatedField( 6340 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 6341 return super.addRepeatedField(field, value); 6342 } 6343 6344 @java.lang.Override mergeFrom(com.google.protobuf.Message other)6345 public Builder mergeFrom(com.google.protobuf.Message other) { 6346 if (other instanceof com.google.privacy.dlp.v2.Action) { 6347 return mergeFrom((com.google.privacy.dlp.v2.Action) other); 6348 } else { 6349 super.mergeFrom(other); 6350 return this; 6351 } 6352 } 6353 mergeFrom(com.google.privacy.dlp.v2.Action other)6354 public Builder mergeFrom(com.google.privacy.dlp.v2.Action other) { 6355 if (other == com.google.privacy.dlp.v2.Action.getDefaultInstance()) return this; 6356 switch (other.getActionCase()) { 6357 case SAVE_FINDINGS: 6358 { 6359 mergeSaveFindings(other.getSaveFindings()); 6360 break; 6361 } 6362 case PUB_SUB: 6363 { 6364 mergePubSub(other.getPubSub()); 6365 break; 6366 } 6367 case PUBLISH_SUMMARY_TO_CSCC: 6368 { 6369 mergePublishSummaryToCscc(other.getPublishSummaryToCscc()); 6370 break; 6371 } 6372 case PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG: 6373 { 6374 mergePublishFindingsToCloudDataCatalog(other.getPublishFindingsToCloudDataCatalog()); 6375 break; 6376 } 6377 case DEIDENTIFY: 6378 { 6379 mergeDeidentify(other.getDeidentify()); 6380 break; 6381 } 6382 case JOB_NOTIFICATION_EMAILS: 6383 { 6384 mergeJobNotificationEmails(other.getJobNotificationEmails()); 6385 break; 6386 } 6387 case PUBLISH_TO_STACKDRIVER: 6388 { 6389 mergePublishToStackdriver(other.getPublishToStackdriver()); 6390 break; 6391 } 6392 case ACTION_NOT_SET: 6393 { 6394 break; 6395 } 6396 } 6397 this.mergeUnknownFields(other.getUnknownFields()); 6398 onChanged(); 6399 return this; 6400 } 6401 6402 @java.lang.Override isInitialized()6403 public final boolean isInitialized() { 6404 return true; 6405 } 6406 6407 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6408 public Builder mergeFrom( 6409 com.google.protobuf.CodedInputStream input, 6410 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6411 throws java.io.IOException { 6412 if (extensionRegistry == null) { 6413 throw new java.lang.NullPointerException(); 6414 } 6415 try { 6416 boolean done = false; 6417 while (!done) { 6418 int tag = input.readTag(); 6419 switch (tag) { 6420 case 0: 6421 done = true; 6422 break; 6423 case 10: 6424 { 6425 input.readMessage(getSaveFindingsFieldBuilder().getBuilder(), extensionRegistry); 6426 actionCase_ = 1; 6427 break; 6428 } // case 10 6429 case 18: 6430 { 6431 input.readMessage(getPubSubFieldBuilder().getBuilder(), extensionRegistry); 6432 actionCase_ = 2; 6433 break; 6434 } // case 18 6435 case 26: 6436 { 6437 input.readMessage( 6438 getPublishSummaryToCsccFieldBuilder().getBuilder(), extensionRegistry); 6439 actionCase_ = 3; 6440 break; 6441 } // case 26 6442 case 42: 6443 { 6444 input.readMessage( 6445 getPublishFindingsToCloudDataCatalogFieldBuilder().getBuilder(), 6446 extensionRegistry); 6447 actionCase_ = 5; 6448 break; 6449 } // case 42 6450 case 58: 6451 { 6452 input.readMessage(getDeidentifyFieldBuilder().getBuilder(), extensionRegistry); 6453 actionCase_ = 7; 6454 break; 6455 } // case 58 6456 case 66: 6457 { 6458 input.readMessage( 6459 getJobNotificationEmailsFieldBuilder().getBuilder(), extensionRegistry); 6460 actionCase_ = 8; 6461 break; 6462 } // case 66 6463 case 74: 6464 { 6465 input.readMessage( 6466 getPublishToStackdriverFieldBuilder().getBuilder(), extensionRegistry); 6467 actionCase_ = 9; 6468 break; 6469 } // case 74 6470 default: 6471 { 6472 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 6473 done = true; // was an endgroup tag 6474 } 6475 break; 6476 } // default: 6477 } // switch (tag) 6478 } // while (!done) 6479 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6480 throw e.unwrapIOException(); 6481 } finally { 6482 onChanged(); 6483 } // finally 6484 return this; 6485 } 6486 6487 private int actionCase_ = 0; 6488 private java.lang.Object action_; 6489 getActionCase()6490 public ActionCase getActionCase() { 6491 return ActionCase.forNumber(actionCase_); 6492 } 6493 clearAction()6494 public Builder clearAction() { 6495 actionCase_ = 0; 6496 action_ = null; 6497 onChanged(); 6498 return this; 6499 } 6500 6501 private int bitField0_; 6502 6503 private com.google.protobuf.SingleFieldBuilderV3< 6504 com.google.privacy.dlp.v2.Action.SaveFindings, 6505 com.google.privacy.dlp.v2.Action.SaveFindings.Builder, 6506 com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder> 6507 saveFindingsBuilder_; 6508 /** 6509 * 6510 * 6511 * <pre> 6512 * Save resulting findings in a provided location. 6513 * </pre> 6514 * 6515 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 6516 * 6517 * @return Whether the saveFindings field is set. 6518 */ 6519 @java.lang.Override hasSaveFindings()6520 public boolean hasSaveFindings() { 6521 return actionCase_ == 1; 6522 } 6523 /** 6524 * 6525 * 6526 * <pre> 6527 * Save resulting findings in a provided location. 6528 * </pre> 6529 * 6530 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 6531 * 6532 * @return The saveFindings. 6533 */ 6534 @java.lang.Override getSaveFindings()6535 public com.google.privacy.dlp.v2.Action.SaveFindings getSaveFindings() { 6536 if (saveFindingsBuilder_ == null) { 6537 if (actionCase_ == 1) { 6538 return (com.google.privacy.dlp.v2.Action.SaveFindings) action_; 6539 } 6540 return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); 6541 } else { 6542 if (actionCase_ == 1) { 6543 return saveFindingsBuilder_.getMessage(); 6544 } 6545 return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); 6546 } 6547 } 6548 /** 6549 * 6550 * 6551 * <pre> 6552 * Save resulting findings in a provided location. 6553 * </pre> 6554 * 6555 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 6556 */ setSaveFindings(com.google.privacy.dlp.v2.Action.SaveFindings value)6557 public Builder setSaveFindings(com.google.privacy.dlp.v2.Action.SaveFindings value) { 6558 if (saveFindingsBuilder_ == null) { 6559 if (value == null) { 6560 throw new NullPointerException(); 6561 } 6562 action_ = value; 6563 onChanged(); 6564 } else { 6565 saveFindingsBuilder_.setMessage(value); 6566 } 6567 actionCase_ = 1; 6568 return this; 6569 } 6570 /** 6571 * 6572 * 6573 * <pre> 6574 * Save resulting findings in a provided location. 6575 * </pre> 6576 * 6577 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 6578 */ setSaveFindings( com.google.privacy.dlp.v2.Action.SaveFindings.Builder builderForValue)6579 public Builder setSaveFindings( 6580 com.google.privacy.dlp.v2.Action.SaveFindings.Builder builderForValue) { 6581 if (saveFindingsBuilder_ == null) { 6582 action_ = builderForValue.build(); 6583 onChanged(); 6584 } else { 6585 saveFindingsBuilder_.setMessage(builderForValue.build()); 6586 } 6587 actionCase_ = 1; 6588 return this; 6589 } 6590 /** 6591 * 6592 * 6593 * <pre> 6594 * Save resulting findings in a provided location. 6595 * </pre> 6596 * 6597 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 6598 */ mergeSaveFindings(com.google.privacy.dlp.v2.Action.SaveFindings value)6599 public Builder mergeSaveFindings(com.google.privacy.dlp.v2.Action.SaveFindings value) { 6600 if (saveFindingsBuilder_ == null) { 6601 if (actionCase_ == 1 6602 && action_ != com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance()) { 6603 action_ = 6604 com.google.privacy.dlp.v2.Action.SaveFindings.newBuilder( 6605 (com.google.privacy.dlp.v2.Action.SaveFindings) action_) 6606 .mergeFrom(value) 6607 .buildPartial(); 6608 } else { 6609 action_ = value; 6610 } 6611 onChanged(); 6612 } else { 6613 if (actionCase_ == 1) { 6614 saveFindingsBuilder_.mergeFrom(value); 6615 } else { 6616 saveFindingsBuilder_.setMessage(value); 6617 } 6618 } 6619 actionCase_ = 1; 6620 return this; 6621 } 6622 /** 6623 * 6624 * 6625 * <pre> 6626 * Save resulting findings in a provided location. 6627 * </pre> 6628 * 6629 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 6630 */ clearSaveFindings()6631 public Builder clearSaveFindings() { 6632 if (saveFindingsBuilder_ == null) { 6633 if (actionCase_ == 1) { 6634 actionCase_ = 0; 6635 action_ = null; 6636 onChanged(); 6637 } 6638 } else { 6639 if (actionCase_ == 1) { 6640 actionCase_ = 0; 6641 action_ = null; 6642 } 6643 saveFindingsBuilder_.clear(); 6644 } 6645 return this; 6646 } 6647 /** 6648 * 6649 * 6650 * <pre> 6651 * Save resulting findings in a provided location. 6652 * </pre> 6653 * 6654 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 6655 */ getSaveFindingsBuilder()6656 public com.google.privacy.dlp.v2.Action.SaveFindings.Builder getSaveFindingsBuilder() { 6657 return getSaveFindingsFieldBuilder().getBuilder(); 6658 } 6659 /** 6660 * 6661 * 6662 * <pre> 6663 * Save resulting findings in a provided location. 6664 * </pre> 6665 * 6666 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 6667 */ 6668 @java.lang.Override getSaveFindingsOrBuilder()6669 public com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder getSaveFindingsOrBuilder() { 6670 if ((actionCase_ == 1) && (saveFindingsBuilder_ != null)) { 6671 return saveFindingsBuilder_.getMessageOrBuilder(); 6672 } else { 6673 if (actionCase_ == 1) { 6674 return (com.google.privacy.dlp.v2.Action.SaveFindings) action_; 6675 } 6676 return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); 6677 } 6678 } 6679 /** 6680 * 6681 * 6682 * <pre> 6683 * Save resulting findings in a provided location. 6684 * </pre> 6685 * 6686 * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code> 6687 */ 6688 private com.google.protobuf.SingleFieldBuilderV3< 6689 com.google.privacy.dlp.v2.Action.SaveFindings, 6690 com.google.privacy.dlp.v2.Action.SaveFindings.Builder, 6691 com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder> getSaveFindingsFieldBuilder()6692 getSaveFindingsFieldBuilder() { 6693 if (saveFindingsBuilder_ == null) { 6694 if (!(actionCase_ == 1)) { 6695 action_ = com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); 6696 } 6697 saveFindingsBuilder_ = 6698 new com.google.protobuf.SingleFieldBuilderV3< 6699 com.google.privacy.dlp.v2.Action.SaveFindings, 6700 com.google.privacy.dlp.v2.Action.SaveFindings.Builder, 6701 com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder>( 6702 (com.google.privacy.dlp.v2.Action.SaveFindings) action_, 6703 getParentForChildren(), 6704 isClean()); 6705 action_ = null; 6706 } 6707 actionCase_ = 1; 6708 onChanged(); 6709 return saveFindingsBuilder_; 6710 } 6711 6712 private com.google.protobuf.SingleFieldBuilderV3< 6713 com.google.privacy.dlp.v2.Action.PublishToPubSub, 6714 com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder, 6715 com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder> 6716 pubSubBuilder_; 6717 /** 6718 * 6719 * 6720 * <pre> 6721 * Publish a notification to a Pub/Sub topic. 6722 * </pre> 6723 * 6724 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 6725 * 6726 * @return Whether the pubSub field is set. 6727 */ 6728 @java.lang.Override hasPubSub()6729 public boolean hasPubSub() { 6730 return actionCase_ == 2; 6731 } 6732 /** 6733 * 6734 * 6735 * <pre> 6736 * Publish a notification to a Pub/Sub topic. 6737 * </pre> 6738 * 6739 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 6740 * 6741 * @return The pubSub. 6742 */ 6743 @java.lang.Override getPubSub()6744 public com.google.privacy.dlp.v2.Action.PublishToPubSub getPubSub() { 6745 if (pubSubBuilder_ == null) { 6746 if (actionCase_ == 2) { 6747 return (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_; 6748 } 6749 return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance(); 6750 } else { 6751 if (actionCase_ == 2) { 6752 return pubSubBuilder_.getMessage(); 6753 } 6754 return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance(); 6755 } 6756 } 6757 /** 6758 * 6759 * 6760 * <pre> 6761 * Publish a notification to a Pub/Sub topic. 6762 * </pre> 6763 * 6764 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 6765 */ setPubSub(com.google.privacy.dlp.v2.Action.PublishToPubSub value)6766 public Builder setPubSub(com.google.privacy.dlp.v2.Action.PublishToPubSub value) { 6767 if (pubSubBuilder_ == null) { 6768 if (value == null) { 6769 throw new NullPointerException(); 6770 } 6771 action_ = value; 6772 onChanged(); 6773 } else { 6774 pubSubBuilder_.setMessage(value); 6775 } 6776 actionCase_ = 2; 6777 return this; 6778 } 6779 /** 6780 * 6781 * 6782 * <pre> 6783 * Publish a notification to a Pub/Sub topic. 6784 * </pre> 6785 * 6786 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 6787 */ setPubSub( com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder builderForValue)6788 public Builder setPubSub( 6789 com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder builderForValue) { 6790 if (pubSubBuilder_ == null) { 6791 action_ = builderForValue.build(); 6792 onChanged(); 6793 } else { 6794 pubSubBuilder_.setMessage(builderForValue.build()); 6795 } 6796 actionCase_ = 2; 6797 return this; 6798 } 6799 /** 6800 * 6801 * 6802 * <pre> 6803 * Publish a notification to a Pub/Sub topic. 6804 * </pre> 6805 * 6806 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 6807 */ mergePubSub(com.google.privacy.dlp.v2.Action.PublishToPubSub value)6808 public Builder mergePubSub(com.google.privacy.dlp.v2.Action.PublishToPubSub value) { 6809 if (pubSubBuilder_ == null) { 6810 if (actionCase_ == 2 6811 && action_ != com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance()) { 6812 action_ = 6813 com.google.privacy.dlp.v2.Action.PublishToPubSub.newBuilder( 6814 (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_) 6815 .mergeFrom(value) 6816 .buildPartial(); 6817 } else { 6818 action_ = value; 6819 } 6820 onChanged(); 6821 } else { 6822 if (actionCase_ == 2) { 6823 pubSubBuilder_.mergeFrom(value); 6824 } else { 6825 pubSubBuilder_.setMessage(value); 6826 } 6827 } 6828 actionCase_ = 2; 6829 return this; 6830 } 6831 /** 6832 * 6833 * 6834 * <pre> 6835 * Publish a notification to a Pub/Sub topic. 6836 * </pre> 6837 * 6838 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 6839 */ clearPubSub()6840 public Builder clearPubSub() { 6841 if (pubSubBuilder_ == null) { 6842 if (actionCase_ == 2) { 6843 actionCase_ = 0; 6844 action_ = null; 6845 onChanged(); 6846 } 6847 } else { 6848 if (actionCase_ == 2) { 6849 actionCase_ = 0; 6850 action_ = null; 6851 } 6852 pubSubBuilder_.clear(); 6853 } 6854 return this; 6855 } 6856 /** 6857 * 6858 * 6859 * <pre> 6860 * Publish a notification to a Pub/Sub topic. 6861 * </pre> 6862 * 6863 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 6864 */ getPubSubBuilder()6865 public com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder getPubSubBuilder() { 6866 return getPubSubFieldBuilder().getBuilder(); 6867 } 6868 /** 6869 * 6870 * 6871 * <pre> 6872 * Publish a notification to a Pub/Sub topic. 6873 * </pre> 6874 * 6875 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 6876 */ 6877 @java.lang.Override getPubSubOrBuilder()6878 public com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder getPubSubOrBuilder() { 6879 if ((actionCase_ == 2) && (pubSubBuilder_ != null)) { 6880 return pubSubBuilder_.getMessageOrBuilder(); 6881 } else { 6882 if (actionCase_ == 2) { 6883 return (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_; 6884 } 6885 return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance(); 6886 } 6887 } 6888 /** 6889 * 6890 * 6891 * <pre> 6892 * Publish a notification to a Pub/Sub topic. 6893 * </pre> 6894 * 6895 * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code> 6896 */ 6897 private com.google.protobuf.SingleFieldBuilderV3< 6898 com.google.privacy.dlp.v2.Action.PublishToPubSub, 6899 com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder, 6900 com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder> getPubSubFieldBuilder()6901 getPubSubFieldBuilder() { 6902 if (pubSubBuilder_ == null) { 6903 if (!(actionCase_ == 2)) { 6904 action_ = com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance(); 6905 } 6906 pubSubBuilder_ = 6907 new com.google.protobuf.SingleFieldBuilderV3< 6908 com.google.privacy.dlp.v2.Action.PublishToPubSub, 6909 com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder, 6910 com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder>( 6911 (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_, 6912 getParentForChildren(), 6913 isClean()); 6914 action_ = null; 6915 } 6916 actionCase_ = 2; 6917 onChanged(); 6918 return pubSubBuilder_; 6919 } 6920 6921 private com.google.protobuf.SingleFieldBuilderV3< 6922 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc, 6923 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder, 6924 com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder> 6925 publishSummaryToCsccBuilder_; 6926 /** 6927 * 6928 * 6929 * <pre> 6930 * Publish summary to Cloud Security Command Center (Alpha). 6931 * </pre> 6932 * 6933 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 6934 * 6935 * @return Whether the publishSummaryToCscc field is set. 6936 */ 6937 @java.lang.Override hasPublishSummaryToCscc()6938 public boolean hasPublishSummaryToCscc() { 6939 return actionCase_ == 3; 6940 } 6941 /** 6942 * 6943 * 6944 * <pre> 6945 * Publish summary to Cloud Security Command Center (Alpha). 6946 * </pre> 6947 * 6948 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 6949 * 6950 * @return The publishSummaryToCscc. 6951 */ 6952 @java.lang.Override getPublishSummaryToCscc()6953 public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getPublishSummaryToCscc() { 6954 if (publishSummaryToCsccBuilder_ == null) { 6955 if (actionCase_ == 3) { 6956 return (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_; 6957 } 6958 return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance(); 6959 } else { 6960 if (actionCase_ == 3) { 6961 return publishSummaryToCsccBuilder_.getMessage(); 6962 } 6963 return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance(); 6964 } 6965 } 6966 /** 6967 * 6968 * 6969 * <pre> 6970 * Publish summary to Cloud Security Command Center (Alpha). 6971 * </pre> 6972 * 6973 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 6974 */ setPublishSummaryToCscc( com.google.privacy.dlp.v2.Action.PublishSummaryToCscc value)6975 public Builder setPublishSummaryToCscc( 6976 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc value) { 6977 if (publishSummaryToCsccBuilder_ == null) { 6978 if (value == null) { 6979 throw new NullPointerException(); 6980 } 6981 action_ = value; 6982 onChanged(); 6983 } else { 6984 publishSummaryToCsccBuilder_.setMessage(value); 6985 } 6986 actionCase_ = 3; 6987 return this; 6988 } 6989 /** 6990 * 6991 * 6992 * <pre> 6993 * Publish summary to Cloud Security Command Center (Alpha). 6994 * </pre> 6995 * 6996 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 6997 */ setPublishSummaryToCscc( com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder builderForValue)6998 public Builder setPublishSummaryToCscc( 6999 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder builderForValue) { 7000 if (publishSummaryToCsccBuilder_ == null) { 7001 action_ = builderForValue.build(); 7002 onChanged(); 7003 } else { 7004 publishSummaryToCsccBuilder_.setMessage(builderForValue.build()); 7005 } 7006 actionCase_ = 3; 7007 return this; 7008 } 7009 /** 7010 * 7011 * 7012 * <pre> 7013 * Publish summary to Cloud Security Command Center (Alpha). 7014 * </pre> 7015 * 7016 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 7017 */ mergePublishSummaryToCscc( com.google.privacy.dlp.v2.Action.PublishSummaryToCscc value)7018 public Builder mergePublishSummaryToCscc( 7019 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc value) { 7020 if (publishSummaryToCsccBuilder_ == null) { 7021 if (actionCase_ == 3 7022 && action_ 7023 != com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance()) { 7024 action_ = 7025 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.newBuilder( 7026 (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_) 7027 .mergeFrom(value) 7028 .buildPartial(); 7029 } else { 7030 action_ = value; 7031 } 7032 onChanged(); 7033 } else { 7034 if (actionCase_ == 3) { 7035 publishSummaryToCsccBuilder_.mergeFrom(value); 7036 } else { 7037 publishSummaryToCsccBuilder_.setMessage(value); 7038 } 7039 } 7040 actionCase_ = 3; 7041 return this; 7042 } 7043 /** 7044 * 7045 * 7046 * <pre> 7047 * Publish summary to Cloud Security Command Center (Alpha). 7048 * </pre> 7049 * 7050 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 7051 */ clearPublishSummaryToCscc()7052 public Builder clearPublishSummaryToCscc() { 7053 if (publishSummaryToCsccBuilder_ == null) { 7054 if (actionCase_ == 3) { 7055 actionCase_ = 0; 7056 action_ = null; 7057 onChanged(); 7058 } 7059 } else { 7060 if (actionCase_ == 3) { 7061 actionCase_ = 0; 7062 action_ = null; 7063 } 7064 publishSummaryToCsccBuilder_.clear(); 7065 } 7066 return this; 7067 } 7068 /** 7069 * 7070 * 7071 * <pre> 7072 * Publish summary to Cloud Security Command Center (Alpha). 7073 * </pre> 7074 * 7075 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 7076 */ 7077 public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder getPublishSummaryToCsccBuilder()7078 getPublishSummaryToCsccBuilder() { 7079 return getPublishSummaryToCsccFieldBuilder().getBuilder(); 7080 } 7081 /** 7082 * 7083 * 7084 * <pre> 7085 * Publish summary to Cloud Security Command Center (Alpha). 7086 * </pre> 7087 * 7088 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 7089 */ 7090 @java.lang.Override 7091 public com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder getPublishSummaryToCsccOrBuilder()7092 getPublishSummaryToCsccOrBuilder() { 7093 if ((actionCase_ == 3) && (publishSummaryToCsccBuilder_ != null)) { 7094 return publishSummaryToCsccBuilder_.getMessageOrBuilder(); 7095 } else { 7096 if (actionCase_ == 3) { 7097 return (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_; 7098 } 7099 return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance(); 7100 } 7101 } 7102 /** 7103 * 7104 * 7105 * <pre> 7106 * Publish summary to Cloud Security Command Center (Alpha). 7107 * </pre> 7108 * 7109 * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code> 7110 */ 7111 private com.google.protobuf.SingleFieldBuilderV3< 7112 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc, 7113 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder, 7114 com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder> getPublishSummaryToCsccFieldBuilder()7115 getPublishSummaryToCsccFieldBuilder() { 7116 if (publishSummaryToCsccBuilder_ == null) { 7117 if (!(actionCase_ == 3)) { 7118 action_ = com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance(); 7119 } 7120 publishSummaryToCsccBuilder_ = 7121 new com.google.protobuf.SingleFieldBuilderV3< 7122 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc, 7123 com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder, 7124 com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder>( 7125 (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_, 7126 getParentForChildren(), 7127 isClean()); 7128 action_ = null; 7129 } 7130 actionCase_ = 3; 7131 onChanged(); 7132 return publishSummaryToCsccBuilder_; 7133 } 7134 7135 private com.google.protobuf.SingleFieldBuilderV3< 7136 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog, 7137 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder, 7138 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder> 7139 publishFindingsToCloudDataCatalogBuilder_; 7140 /** 7141 * 7142 * 7143 * <pre> 7144 * Publish findings to Cloud Datahub. 7145 * </pre> 7146 * 7147 * <code> 7148 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 7149 * </code> 7150 * 7151 * @return Whether the publishFindingsToCloudDataCatalog field is set. 7152 */ 7153 @java.lang.Override hasPublishFindingsToCloudDataCatalog()7154 public boolean hasPublishFindingsToCloudDataCatalog() { 7155 return actionCase_ == 5; 7156 } 7157 /** 7158 * 7159 * 7160 * <pre> 7161 * Publish findings to Cloud Datahub. 7162 * </pre> 7163 * 7164 * <code> 7165 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 7166 * </code> 7167 * 7168 * @return The publishFindingsToCloudDataCatalog. 7169 */ 7170 @java.lang.Override 7171 public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog getPublishFindingsToCloudDataCatalog()7172 getPublishFindingsToCloudDataCatalog() { 7173 if (publishFindingsToCloudDataCatalogBuilder_ == null) { 7174 if (actionCase_ == 5) { 7175 return (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_; 7176 } 7177 return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog 7178 .getDefaultInstance(); 7179 } else { 7180 if (actionCase_ == 5) { 7181 return publishFindingsToCloudDataCatalogBuilder_.getMessage(); 7182 } 7183 return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog 7184 .getDefaultInstance(); 7185 } 7186 } 7187 /** 7188 * 7189 * 7190 * <pre> 7191 * Publish findings to Cloud Datahub. 7192 * </pre> 7193 * 7194 * <code> 7195 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 7196 * </code> 7197 */ setPublishFindingsToCloudDataCatalog( com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog value)7198 public Builder setPublishFindingsToCloudDataCatalog( 7199 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog value) { 7200 if (publishFindingsToCloudDataCatalogBuilder_ == null) { 7201 if (value == null) { 7202 throw new NullPointerException(); 7203 } 7204 action_ = value; 7205 onChanged(); 7206 } else { 7207 publishFindingsToCloudDataCatalogBuilder_.setMessage(value); 7208 } 7209 actionCase_ = 5; 7210 return this; 7211 } 7212 /** 7213 * 7214 * 7215 * <pre> 7216 * Publish findings to Cloud Datahub. 7217 * </pre> 7218 * 7219 * <code> 7220 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 7221 * </code> 7222 */ setPublishFindingsToCloudDataCatalog( com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder builderForValue)7223 public Builder setPublishFindingsToCloudDataCatalog( 7224 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder 7225 builderForValue) { 7226 if (publishFindingsToCloudDataCatalogBuilder_ == null) { 7227 action_ = builderForValue.build(); 7228 onChanged(); 7229 } else { 7230 publishFindingsToCloudDataCatalogBuilder_.setMessage(builderForValue.build()); 7231 } 7232 actionCase_ = 5; 7233 return this; 7234 } 7235 /** 7236 * 7237 * 7238 * <pre> 7239 * Publish findings to Cloud Datahub. 7240 * </pre> 7241 * 7242 * <code> 7243 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 7244 * </code> 7245 */ mergePublishFindingsToCloudDataCatalog( com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog value)7246 public Builder mergePublishFindingsToCloudDataCatalog( 7247 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog value) { 7248 if (publishFindingsToCloudDataCatalogBuilder_ == null) { 7249 if (actionCase_ == 5 7250 && action_ 7251 != com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog 7252 .getDefaultInstance()) { 7253 action_ = 7254 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.newBuilder( 7255 (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_) 7256 .mergeFrom(value) 7257 .buildPartial(); 7258 } else { 7259 action_ = value; 7260 } 7261 onChanged(); 7262 } else { 7263 if (actionCase_ == 5) { 7264 publishFindingsToCloudDataCatalogBuilder_.mergeFrom(value); 7265 } else { 7266 publishFindingsToCloudDataCatalogBuilder_.setMessage(value); 7267 } 7268 } 7269 actionCase_ = 5; 7270 return this; 7271 } 7272 /** 7273 * 7274 * 7275 * <pre> 7276 * Publish findings to Cloud Datahub. 7277 * </pre> 7278 * 7279 * <code> 7280 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 7281 * </code> 7282 */ clearPublishFindingsToCloudDataCatalog()7283 public Builder clearPublishFindingsToCloudDataCatalog() { 7284 if (publishFindingsToCloudDataCatalogBuilder_ == null) { 7285 if (actionCase_ == 5) { 7286 actionCase_ = 0; 7287 action_ = null; 7288 onChanged(); 7289 } 7290 } else { 7291 if (actionCase_ == 5) { 7292 actionCase_ = 0; 7293 action_ = null; 7294 } 7295 publishFindingsToCloudDataCatalogBuilder_.clear(); 7296 } 7297 return this; 7298 } 7299 /** 7300 * 7301 * 7302 * <pre> 7303 * Publish findings to Cloud Datahub. 7304 * </pre> 7305 * 7306 * <code> 7307 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 7308 * </code> 7309 */ 7310 public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder getPublishFindingsToCloudDataCatalogBuilder()7311 getPublishFindingsToCloudDataCatalogBuilder() { 7312 return getPublishFindingsToCloudDataCatalogFieldBuilder().getBuilder(); 7313 } 7314 /** 7315 * 7316 * 7317 * <pre> 7318 * Publish findings to Cloud Datahub. 7319 * </pre> 7320 * 7321 * <code> 7322 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 7323 * </code> 7324 */ 7325 @java.lang.Override 7326 public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder getPublishFindingsToCloudDataCatalogOrBuilder()7327 getPublishFindingsToCloudDataCatalogOrBuilder() { 7328 if ((actionCase_ == 5) && (publishFindingsToCloudDataCatalogBuilder_ != null)) { 7329 return publishFindingsToCloudDataCatalogBuilder_.getMessageOrBuilder(); 7330 } else { 7331 if (actionCase_ == 5) { 7332 return (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_; 7333 } 7334 return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog 7335 .getDefaultInstance(); 7336 } 7337 } 7338 /** 7339 * 7340 * 7341 * <pre> 7342 * Publish findings to Cloud Datahub. 7343 * </pre> 7344 * 7345 * <code> 7346 * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; 7347 * </code> 7348 */ 7349 private com.google.protobuf.SingleFieldBuilderV3< 7350 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog, 7351 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder, 7352 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder> getPublishFindingsToCloudDataCatalogFieldBuilder()7353 getPublishFindingsToCloudDataCatalogFieldBuilder() { 7354 if (publishFindingsToCloudDataCatalogBuilder_ == null) { 7355 if (!(actionCase_ == 5)) { 7356 action_ = 7357 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog 7358 .getDefaultInstance(); 7359 } 7360 publishFindingsToCloudDataCatalogBuilder_ = 7361 new com.google.protobuf.SingleFieldBuilderV3< 7362 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog, 7363 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder, 7364 com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder>( 7365 (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_, 7366 getParentForChildren(), 7367 isClean()); 7368 action_ = null; 7369 } 7370 actionCase_ = 5; 7371 onChanged(); 7372 return publishFindingsToCloudDataCatalogBuilder_; 7373 } 7374 7375 private com.google.protobuf.SingleFieldBuilderV3< 7376 com.google.privacy.dlp.v2.Action.Deidentify, 7377 com.google.privacy.dlp.v2.Action.Deidentify.Builder, 7378 com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder> 7379 deidentifyBuilder_; 7380 /** 7381 * 7382 * 7383 * <pre> 7384 * Create a de-identified copy of the input data. 7385 * </pre> 7386 * 7387 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 7388 * 7389 * @return Whether the deidentify field is set. 7390 */ 7391 @java.lang.Override hasDeidentify()7392 public boolean hasDeidentify() { 7393 return actionCase_ == 7; 7394 } 7395 /** 7396 * 7397 * 7398 * <pre> 7399 * Create a de-identified copy of the input data. 7400 * </pre> 7401 * 7402 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 7403 * 7404 * @return The deidentify. 7405 */ 7406 @java.lang.Override getDeidentify()7407 public com.google.privacy.dlp.v2.Action.Deidentify getDeidentify() { 7408 if (deidentifyBuilder_ == null) { 7409 if (actionCase_ == 7) { 7410 return (com.google.privacy.dlp.v2.Action.Deidentify) action_; 7411 } 7412 return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance(); 7413 } else { 7414 if (actionCase_ == 7) { 7415 return deidentifyBuilder_.getMessage(); 7416 } 7417 return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance(); 7418 } 7419 } 7420 /** 7421 * 7422 * 7423 * <pre> 7424 * Create a de-identified copy of the input data. 7425 * </pre> 7426 * 7427 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 7428 */ setDeidentify(com.google.privacy.dlp.v2.Action.Deidentify value)7429 public Builder setDeidentify(com.google.privacy.dlp.v2.Action.Deidentify value) { 7430 if (deidentifyBuilder_ == null) { 7431 if (value == null) { 7432 throw new NullPointerException(); 7433 } 7434 action_ = value; 7435 onChanged(); 7436 } else { 7437 deidentifyBuilder_.setMessage(value); 7438 } 7439 actionCase_ = 7; 7440 return this; 7441 } 7442 /** 7443 * 7444 * 7445 * <pre> 7446 * Create a de-identified copy of the input data. 7447 * </pre> 7448 * 7449 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 7450 */ setDeidentify( com.google.privacy.dlp.v2.Action.Deidentify.Builder builderForValue)7451 public Builder setDeidentify( 7452 com.google.privacy.dlp.v2.Action.Deidentify.Builder builderForValue) { 7453 if (deidentifyBuilder_ == null) { 7454 action_ = builderForValue.build(); 7455 onChanged(); 7456 } else { 7457 deidentifyBuilder_.setMessage(builderForValue.build()); 7458 } 7459 actionCase_ = 7; 7460 return this; 7461 } 7462 /** 7463 * 7464 * 7465 * <pre> 7466 * Create a de-identified copy of the input data. 7467 * </pre> 7468 * 7469 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 7470 */ mergeDeidentify(com.google.privacy.dlp.v2.Action.Deidentify value)7471 public Builder mergeDeidentify(com.google.privacy.dlp.v2.Action.Deidentify value) { 7472 if (deidentifyBuilder_ == null) { 7473 if (actionCase_ == 7 7474 && action_ != com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance()) { 7475 action_ = 7476 com.google.privacy.dlp.v2.Action.Deidentify.newBuilder( 7477 (com.google.privacy.dlp.v2.Action.Deidentify) action_) 7478 .mergeFrom(value) 7479 .buildPartial(); 7480 } else { 7481 action_ = value; 7482 } 7483 onChanged(); 7484 } else { 7485 if (actionCase_ == 7) { 7486 deidentifyBuilder_.mergeFrom(value); 7487 } else { 7488 deidentifyBuilder_.setMessage(value); 7489 } 7490 } 7491 actionCase_ = 7; 7492 return this; 7493 } 7494 /** 7495 * 7496 * 7497 * <pre> 7498 * Create a de-identified copy of the input data. 7499 * </pre> 7500 * 7501 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 7502 */ clearDeidentify()7503 public Builder clearDeidentify() { 7504 if (deidentifyBuilder_ == null) { 7505 if (actionCase_ == 7) { 7506 actionCase_ = 0; 7507 action_ = null; 7508 onChanged(); 7509 } 7510 } else { 7511 if (actionCase_ == 7) { 7512 actionCase_ = 0; 7513 action_ = null; 7514 } 7515 deidentifyBuilder_.clear(); 7516 } 7517 return this; 7518 } 7519 /** 7520 * 7521 * 7522 * <pre> 7523 * Create a de-identified copy of the input data. 7524 * </pre> 7525 * 7526 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 7527 */ getDeidentifyBuilder()7528 public com.google.privacy.dlp.v2.Action.Deidentify.Builder getDeidentifyBuilder() { 7529 return getDeidentifyFieldBuilder().getBuilder(); 7530 } 7531 /** 7532 * 7533 * 7534 * <pre> 7535 * Create a de-identified copy of the input data. 7536 * </pre> 7537 * 7538 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 7539 */ 7540 @java.lang.Override getDeidentifyOrBuilder()7541 public com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder getDeidentifyOrBuilder() { 7542 if ((actionCase_ == 7) && (deidentifyBuilder_ != null)) { 7543 return deidentifyBuilder_.getMessageOrBuilder(); 7544 } else { 7545 if (actionCase_ == 7) { 7546 return (com.google.privacy.dlp.v2.Action.Deidentify) action_; 7547 } 7548 return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance(); 7549 } 7550 } 7551 /** 7552 * 7553 * 7554 * <pre> 7555 * Create a de-identified copy of the input data. 7556 * </pre> 7557 * 7558 * <code>.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;</code> 7559 */ 7560 private com.google.protobuf.SingleFieldBuilderV3< 7561 com.google.privacy.dlp.v2.Action.Deidentify, 7562 com.google.privacy.dlp.v2.Action.Deidentify.Builder, 7563 com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder> getDeidentifyFieldBuilder()7564 getDeidentifyFieldBuilder() { 7565 if (deidentifyBuilder_ == null) { 7566 if (!(actionCase_ == 7)) { 7567 action_ = com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance(); 7568 } 7569 deidentifyBuilder_ = 7570 new com.google.protobuf.SingleFieldBuilderV3< 7571 com.google.privacy.dlp.v2.Action.Deidentify, 7572 com.google.privacy.dlp.v2.Action.Deidentify.Builder, 7573 com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder>( 7574 (com.google.privacy.dlp.v2.Action.Deidentify) action_, 7575 getParentForChildren(), 7576 isClean()); 7577 action_ = null; 7578 } 7579 actionCase_ = 7; 7580 onChanged(); 7581 return deidentifyBuilder_; 7582 } 7583 7584 private com.google.protobuf.SingleFieldBuilderV3< 7585 com.google.privacy.dlp.v2.Action.JobNotificationEmails, 7586 com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder, 7587 com.google.privacy.dlp.v2.Action.JobNotificationEmailsOrBuilder> 7588 jobNotificationEmailsBuilder_; 7589 /** 7590 * 7591 * 7592 * <pre> 7593 * Sends an email when the job completes. The email goes to IAM project 7594 * owners and technical [Essential 7595 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 7596 * </pre> 7597 * 7598 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 7599 * 7600 * @return Whether the jobNotificationEmails field is set. 7601 */ 7602 @java.lang.Override hasJobNotificationEmails()7603 public boolean hasJobNotificationEmails() { 7604 return actionCase_ == 8; 7605 } 7606 /** 7607 * 7608 * 7609 * <pre> 7610 * Sends an email when the job completes. The email goes to IAM project 7611 * owners and technical [Essential 7612 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 7613 * </pre> 7614 * 7615 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 7616 * 7617 * @return The jobNotificationEmails. 7618 */ 7619 @java.lang.Override getJobNotificationEmails()7620 public com.google.privacy.dlp.v2.Action.JobNotificationEmails getJobNotificationEmails() { 7621 if (jobNotificationEmailsBuilder_ == null) { 7622 if (actionCase_ == 8) { 7623 return (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_; 7624 } 7625 return com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance(); 7626 } else { 7627 if (actionCase_ == 8) { 7628 return jobNotificationEmailsBuilder_.getMessage(); 7629 } 7630 return com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance(); 7631 } 7632 } 7633 /** 7634 * 7635 * 7636 * <pre> 7637 * Sends an email when the job completes. The email goes to IAM project 7638 * owners and technical [Essential 7639 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 7640 * </pre> 7641 * 7642 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 7643 */ setJobNotificationEmails( com.google.privacy.dlp.v2.Action.JobNotificationEmails value)7644 public Builder setJobNotificationEmails( 7645 com.google.privacy.dlp.v2.Action.JobNotificationEmails value) { 7646 if (jobNotificationEmailsBuilder_ == null) { 7647 if (value == null) { 7648 throw new NullPointerException(); 7649 } 7650 action_ = value; 7651 onChanged(); 7652 } else { 7653 jobNotificationEmailsBuilder_.setMessage(value); 7654 } 7655 actionCase_ = 8; 7656 return this; 7657 } 7658 /** 7659 * 7660 * 7661 * <pre> 7662 * Sends an email when the job completes. The email goes to IAM project 7663 * owners and technical [Essential 7664 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 7665 * </pre> 7666 * 7667 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 7668 */ setJobNotificationEmails( com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder builderForValue)7669 public Builder setJobNotificationEmails( 7670 com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder builderForValue) { 7671 if (jobNotificationEmailsBuilder_ == null) { 7672 action_ = builderForValue.build(); 7673 onChanged(); 7674 } else { 7675 jobNotificationEmailsBuilder_.setMessage(builderForValue.build()); 7676 } 7677 actionCase_ = 8; 7678 return this; 7679 } 7680 /** 7681 * 7682 * 7683 * <pre> 7684 * Sends an email when the job completes. The email goes to IAM project 7685 * owners and technical [Essential 7686 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 7687 * </pre> 7688 * 7689 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 7690 */ mergeJobNotificationEmails( com.google.privacy.dlp.v2.Action.JobNotificationEmails value)7691 public Builder mergeJobNotificationEmails( 7692 com.google.privacy.dlp.v2.Action.JobNotificationEmails value) { 7693 if (jobNotificationEmailsBuilder_ == null) { 7694 if (actionCase_ == 8 7695 && action_ 7696 != com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance()) { 7697 action_ = 7698 com.google.privacy.dlp.v2.Action.JobNotificationEmails.newBuilder( 7699 (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_) 7700 .mergeFrom(value) 7701 .buildPartial(); 7702 } else { 7703 action_ = value; 7704 } 7705 onChanged(); 7706 } else { 7707 if (actionCase_ == 8) { 7708 jobNotificationEmailsBuilder_.mergeFrom(value); 7709 } else { 7710 jobNotificationEmailsBuilder_.setMessage(value); 7711 } 7712 } 7713 actionCase_ = 8; 7714 return this; 7715 } 7716 /** 7717 * 7718 * 7719 * <pre> 7720 * Sends an email when the job completes. The email goes to IAM project 7721 * owners and technical [Essential 7722 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 7723 * </pre> 7724 * 7725 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 7726 */ clearJobNotificationEmails()7727 public Builder clearJobNotificationEmails() { 7728 if (jobNotificationEmailsBuilder_ == null) { 7729 if (actionCase_ == 8) { 7730 actionCase_ = 0; 7731 action_ = null; 7732 onChanged(); 7733 } 7734 } else { 7735 if (actionCase_ == 8) { 7736 actionCase_ = 0; 7737 action_ = null; 7738 } 7739 jobNotificationEmailsBuilder_.clear(); 7740 } 7741 return this; 7742 } 7743 /** 7744 * 7745 * 7746 * <pre> 7747 * Sends an email when the job completes. The email goes to IAM project 7748 * owners and technical [Essential 7749 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 7750 * </pre> 7751 * 7752 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 7753 */ 7754 public com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder getJobNotificationEmailsBuilder()7755 getJobNotificationEmailsBuilder() { 7756 return getJobNotificationEmailsFieldBuilder().getBuilder(); 7757 } 7758 /** 7759 * 7760 * 7761 * <pre> 7762 * Sends an email when the job completes. The email goes to IAM project 7763 * owners and technical [Essential 7764 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 7765 * </pre> 7766 * 7767 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 7768 */ 7769 @java.lang.Override 7770 public com.google.privacy.dlp.v2.Action.JobNotificationEmailsOrBuilder getJobNotificationEmailsOrBuilder()7771 getJobNotificationEmailsOrBuilder() { 7772 if ((actionCase_ == 8) && (jobNotificationEmailsBuilder_ != null)) { 7773 return jobNotificationEmailsBuilder_.getMessageOrBuilder(); 7774 } else { 7775 if (actionCase_ == 8) { 7776 return (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_; 7777 } 7778 return com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance(); 7779 } 7780 } 7781 /** 7782 * 7783 * 7784 * <pre> 7785 * Sends an email when the job completes. The email goes to IAM project 7786 * owners and technical [Essential 7787 * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). 7788 * </pre> 7789 * 7790 * <code>.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;</code> 7791 */ 7792 private com.google.protobuf.SingleFieldBuilderV3< 7793 com.google.privacy.dlp.v2.Action.JobNotificationEmails, 7794 com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder, 7795 com.google.privacy.dlp.v2.Action.JobNotificationEmailsOrBuilder> getJobNotificationEmailsFieldBuilder()7796 getJobNotificationEmailsFieldBuilder() { 7797 if (jobNotificationEmailsBuilder_ == null) { 7798 if (!(actionCase_ == 8)) { 7799 action_ = com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance(); 7800 } 7801 jobNotificationEmailsBuilder_ = 7802 new com.google.protobuf.SingleFieldBuilderV3< 7803 com.google.privacy.dlp.v2.Action.JobNotificationEmails, 7804 com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder, 7805 com.google.privacy.dlp.v2.Action.JobNotificationEmailsOrBuilder>( 7806 (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_, 7807 getParentForChildren(), 7808 isClean()); 7809 action_ = null; 7810 } 7811 actionCase_ = 8; 7812 onChanged(); 7813 return jobNotificationEmailsBuilder_; 7814 } 7815 7816 private com.google.protobuf.SingleFieldBuilderV3< 7817 com.google.privacy.dlp.v2.Action.PublishToStackdriver, 7818 com.google.privacy.dlp.v2.Action.PublishToStackdriver.Builder, 7819 com.google.privacy.dlp.v2.Action.PublishToStackdriverOrBuilder> 7820 publishToStackdriverBuilder_; 7821 /** 7822 * 7823 * 7824 * <pre> 7825 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 7826 * </pre> 7827 * 7828 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 7829 * 7830 * @return Whether the publishToStackdriver field is set. 7831 */ 7832 @java.lang.Override hasPublishToStackdriver()7833 public boolean hasPublishToStackdriver() { 7834 return actionCase_ == 9; 7835 } 7836 /** 7837 * 7838 * 7839 * <pre> 7840 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 7841 * </pre> 7842 * 7843 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 7844 * 7845 * @return The publishToStackdriver. 7846 */ 7847 @java.lang.Override getPublishToStackdriver()7848 public com.google.privacy.dlp.v2.Action.PublishToStackdriver getPublishToStackdriver() { 7849 if (publishToStackdriverBuilder_ == null) { 7850 if (actionCase_ == 9) { 7851 return (com.google.privacy.dlp.v2.Action.PublishToStackdriver) action_; 7852 } 7853 return com.google.privacy.dlp.v2.Action.PublishToStackdriver.getDefaultInstance(); 7854 } else { 7855 if (actionCase_ == 9) { 7856 return publishToStackdriverBuilder_.getMessage(); 7857 } 7858 return com.google.privacy.dlp.v2.Action.PublishToStackdriver.getDefaultInstance(); 7859 } 7860 } 7861 /** 7862 * 7863 * 7864 * <pre> 7865 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 7866 * </pre> 7867 * 7868 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 7869 */ setPublishToStackdriver( com.google.privacy.dlp.v2.Action.PublishToStackdriver value)7870 public Builder setPublishToStackdriver( 7871 com.google.privacy.dlp.v2.Action.PublishToStackdriver value) { 7872 if (publishToStackdriverBuilder_ == null) { 7873 if (value == null) { 7874 throw new NullPointerException(); 7875 } 7876 action_ = value; 7877 onChanged(); 7878 } else { 7879 publishToStackdriverBuilder_.setMessage(value); 7880 } 7881 actionCase_ = 9; 7882 return this; 7883 } 7884 /** 7885 * 7886 * 7887 * <pre> 7888 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 7889 * </pre> 7890 * 7891 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 7892 */ setPublishToStackdriver( com.google.privacy.dlp.v2.Action.PublishToStackdriver.Builder builderForValue)7893 public Builder setPublishToStackdriver( 7894 com.google.privacy.dlp.v2.Action.PublishToStackdriver.Builder builderForValue) { 7895 if (publishToStackdriverBuilder_ == null) { 7896 action_ = builderForValue.build(); 7897 onChanged(); 7898 } else { 7899 publishToStackdriverBuilder_.setMessage(builderForValue.build()); 7900 } 7901 actionCase_ = 9; 7902 return this; 7903 } 7904 /** 7905 * 7906 * 7907 * <pre> 7908 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 7909 * </pre> 7910 * 7911 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 7912 */ mergePublishToStackdriver( com.google.privacy.dlp.v2.Action.PublishToStackdriver value)7913 public Builder mergePublishToStackdriver( 7914 com.google.privacy.dlp.v2.Action.PublishToStackdriver value) { 7915 if (publishToStackdriverBuilder_ == null) { 7916 if (actionCase_ == 9 7917 && action_ 7918 != com.google.privacy.dlp.v2.Action.PublishToStackdriver.getDefaultInstance()) { 7919 action_ = 7920 com.google.privacy.dlp.v2.Action.PublishToStackdriver.newBuilder( 7921 (com.google.privacy.dlp.v2.Action.PublishToStackdriver) action_) 7922 .mergeFrom(value) 7923 .buildPartial(); 7924 } else { 7925 action_ = value; 7926 } 7927 onChanged(); 7928 } else { 7929 if (actionCase_ == 9) { 7930 publishToStackdriverBuilder_.mergeFrom(value); 7931 } else { 7932 publishToStackdriverBuilder_.setMessage(value); 7933 } 7934 } 7935 actionCase_ = 9; 7936 return this; 7937 } 7938 /** 7939 * 7940 * 7941 * <pre> 7942 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 7943 * </pre> 7944 * 7945 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 7946 */ clearPublishToStackdriver()7947 public Builder clearPublishToStackdriver() { 7948 if (publishToStackdriverBuilder_ == null) { 7949 if (actionCase_ == 9) { 7950 actionCase_ = 0; 7951 action_ = null; 7952 onChanged(); 7953 } 7954 } else { 7955 if (actionCase_ == 9) { 7956 actionCase_ = 0; 7957 action_ = null; 7958 } 7959 publishToStackdriverBuilder_.clear(); 7960 } 7961 return this; 7962 } 7963 /** 7964 * 7965 * 7966 * <pre> 7967 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 7968 * </pre> 7969 * 7970 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 7971 */ 7972 public com.google.privacy.dlp.v2.Action.PublishToStackdriver.Builder getPublishToStackdriverBuilder()7973 getPublishToStackdriverBuilder() { 7974 return getPublishToStackdriverFieldBuilder().getBuilder(); 7975 } 7976 /** 7977 * 7978 * 7979 * <pre> 7980 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 7981 * </pre> 7982 * 7983 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 7984 */ 7985 @java.lang.Override 7986 public com.google.privacy.dlp.v2.Action.PublishToStackdriverOrBuilder getPublishToStackdriverOrBuilder()7987 getPublishToStackdriverOrBuilder() { 7988 if ((actionCase_ == 9) && (publishToStackdriverBuilder_ != null)) { 7989 return publishToStackdriverBuilder_.getMessageOrBuilder(); 7990 } else { 7991 if (actionCase_ == 9) { 7992 return (com.google.privacy.dlp.v2.Action.PublishToStackdriver) action_; 7993 } 7994 return com.google.privacy.dlp.v2.Action.PublishToStackdriver.getDefaultInstance(); 7995 } 7996 } 7997 /** 7998 * 7999 * 8000 * <pre> 8001 * Enable Stackdriver metric dlp.googleapis.com/finding_count. 8002 * </pre> 8003 * 8004 * <code>.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;</code> 8005 */ 8006 private com.google.protobuf.SingleFieldBuilderV3< 8007 com.google.privacy.dlp.v2.Action.PublishToStackdriver, 8008 com.google.privacy.dlp.v2.Action.PublishToStackdriver.Builder, 8009 com.google.privacy.dlp.v2.Action.PublishToStackdriverOrBuilder> getPublishToStackdriverFieldBuilder()8010 getPublishToStackdriverFieldBuilder() { 8011 if (publishToStackdriverBuilder_ == null) { 8012 if (!(actionCase_ == 9)) { 8013 action_ = com.google.privacy.dlp.v2.Action.PublishToStackdriver.getDefaultInstance(); 8014 } 8015 publishToStackdriverBuilder_ = 8016 new com.google.protobuf.SingleFieldBuilderV3< 8017 com.google.privacy.dlp.v2.Action.PublishToStackdriver, 8018 com.google.privacy.dlp.v2.Action.PublishToStackdriver.Builder, 8019 com.google.privacy.dlp.v2.Action.PublishToStackdriverOrBuilder>( 8020 (com.google.privacy.dlp.v2.Action.PublishToStackdriver) action_, 8021 getParentForChildren(), 8022 isClean()); 8023 action_ = null; 8024 } 8025 actionCase_ = 9; 8026 onChanged(); 8027 return publishToStackdriverBuilder_; 8028 } 8029 8030 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)8031 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 8032 return super.setUnknownFields(unknownFields); 8033 } 8034 8035 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)8036 public final Builder mergeUnknownFields( 8037 final com.google.protobuf.UnknownFieldSet unknownFields) { 8038 return super.mergeUnknownFields(unknownFields); 8039 } 8040 8041 // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action) 8042 } 8043 8044 // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action) 8045 private static final com.google.privacy.dlp.v2.Action DEFAULT_INSTANCE; 8046 8047 static { 8048 DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action(); 8049 } 8050 getDefaultInstance()8051 public static com.google.privacy.dlp.v2.Action getDefaultInstance() { 8052 return DEFAULT_INSTANCE; 8053 } 8054 8055 private static final com.google.protobuf.Parser<Action> PARSER = 8056 new com.google.protobuf.AbstractParser<Action>() { 8057 @java.lang.Override 8058 public Action parsePartialFrom( 8059 com.google.protobuf.CodedInputStream input, 8060 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8061 throws com.google.protobuf.InvalidProtocolBufferException { 8062 Builder builder = newBuilder(); 8063 try { 8064 builder.mergeFrom(input, extensionRegistry); 8065 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8066 throw e.setUnfinishedMessage(builder.buildPartial()); 8067 } catch (com.google.protobuf.UninitializedMessageException e) { 8068 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 8069 } catch (java.io.IOException e) { 8070 throw new com.google.protobuf.InvalidProtocolBufferException(e) 8071 .setUnfinishedMessage(builder.buildPartial()); 8072 } 8073 return builder.buildPartial(); 8074 } 8075 }; 8076 parser()8077 public static com.google.protobuf.Parser<Action> parser() { 8078 return PARSER; 8079 } 8080 8081 @java.lang.Override getParserForType()8082 public com.google.protobuf.Parser<Action> getParserForType() { 8083 return PARSER; 8084 } 8085 8086 @java.lang.Override getDefaultInstanceForType()8087 public com.google.privacy.dlp.v2.Action getDefaultInstanceForType() { 8088 return DEFAULT_INSTANCE; 8089 } 8090 } 8091