All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.privacy.dlp.v2.DataProfileAction Maven / Gradle / Ivy

There is a newer version: 3.53.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/privacy/dlp/v2/dlp.proto

// Protobuf Java Version: 3.25.4
package com.google.privacy.dlp.v2;

/**
 *
 *
 * 
 * A task to execute when a data profile has been generated.
 * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction} */ public final class DataProfileAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction) DataProfileActionOrBuilder { private static final long serialVersionUID = 0L; // Use DataProfileAction.newBuilder() to construct. private DataProfileAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataProfileAction() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataProfileAction(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.class, com.google.privacy.dlp.v2.DataProfileAction.Builder.class); } /** * * *
   * Types of event that can trigger an action.
   * 
* * Protobuf enum {@code google.privacy.dlp.v2.DataProfileAction.EventType} */ public enum EventType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unused.
     * 
* * EVENT_TYPE_UNSPECIFIED = 0; */ EVENT_TYPE_UNSPECIFIED(0), /** * * *
     * New profile (not a re-profile).
     * 
* * NEW_PROFILE = 1; */ NEW_PROFILE(1), /** * * *
     * One of the following profile metrics changed: Data risk score,
     * Sensitivity score, Resource visibility, Encryption type, Predicted
     * infoTypes, Other infoTypes
     * 
* * CHANGED_PROFILE = 2; */ CHANGED_PROFILE(2), /** * * *
     * Table data risk score or sensitivity score increased.
     * 
* * SCORE_INCREASED = 3; */ SCORE_INCREASED(3), /** * * *
     * A user (non-internal) error occurred.
     * 
* * ERROR_CHANGED = 4; */ ERROR_CHANGED(4), UNRECOGNIZED(-1), ; /** * * *
     * Unused.
     * 
* * EVENT_TYPE_UNSPECIFIED = 0; */ public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * New profile (not a re-profile).
     * 
* * NEW_PROFILE = 1; */ public static final int NEW_PROFILE_VALUE = 1; /** * * *
     * One of the following profile metrics changed: Data risk score,
     * Sensitivity score, Resource visibility, Encryption type, Predicted
     * infoTypes, Other infoTypes
     * 
* * CHANGED_PROFILE = 2; */ public static final int CHANGED_PROFILE_VALUE = 2; /** * * *
     * Table data risk score or sensitivity score increased.
     * 
* * SCORE_INCREASED = 3; */ public static final int SCORE_INCREASED_VALUE = 3; /** * * *
     * A user (non-internal) error occurred.
     * 
* * ERROR_CHANGED = 4; */ public static final int ERROR_CHANGED_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EventType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static EventType forNumber(int value) { switch (value) { case 0: return EVENT_TYPE_UNSPECIFIED; case 1: return NEW_PROFILE; case 2: return CHANGED_PROFILE; case 3: return SCORE_INCREASED; case 4: return ERROR_CHANGED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public EventType findValueByNumber(int number) { return EventType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.privacy.dlp.v2.DataProfileAction.getDescriptor().getEnumTypes().get(0); } private static final EventType[] VALUES = values(); public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private EventType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.DataProfileAction.EventType) } public interface ExportOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DataProfileAction.Export) com.google.protobuf.MessageOrBuilder { /** * * *
     * Store all table and column profiles in an existing table or a new table
     * in an existing dataset. Each re-generation will result in new rows in
     * BigQuery. Data is inserted using [streaming
     * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
     * and so data may be in the buffer for a period of time after the profile
     * has finished. The Pub/Sub notification is sent before the streaming
     * buffer is guaranteed to be written, so data may not be instantly
     * visible to queries by the time your topic receives the Pub/Sub
     * notification.
     * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; * * @return Whether the profileTable field is set. */ boolean hasProfileTable(); /** * * *
     * Store all table and column profiles in an existing table or a new table
     * in an existing dataset. Each re-generation will result in new rows in
     * BigQuery. Data is inserted using [streaming
     * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
     * and so data may be in the buffer for a period of time after the profile
     * has finished. The Pub/Sub notification is sent before the streaming
     * buffer is guaranteed to be written, so data may not be instantly
     * visible to queries by the time your topic receives the Pub/Sub
     * notification.
     * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; * * @return The profileTable. */ com.google.privacy.dlp.v2.BigQueryTable getProfileTable(); /** * * *
     * Store all table and column profiles in an existing table or a new table
     * in an existing dataset. Each re-generation will result in new rows in
     * BigQuery. Data is inserted using [streaming
     * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
     * and so data may be in the buffer for a period of time after the profile
     * has finished. The Pub/Sub notification is sent before the streaming
     * buffer is guaranteed to be written, so data may not be instantly
     * visible to queries by the time your topic receives the Pub/Sub
     * notification.
     * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; */ com.google.privacy.dlp.v2.BigQueryTableOrBuilder getProfileTableOrBuilder(); } /** * * *
   * If set, the detailed data profiles will be persisted to the location
   * of your choice whenever updated.
   * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.Export} */ public static final class Export extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction.Export) ExportOrBuilder { private static final long serialVersionUID = 0L; // Use Export.newBuilder() to construct. private Export(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Export() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Export(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_Export_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_Export_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.Export.class, com.google.privacy.dlp.v2.DataProfileAction.Export.Builder.class); } private int bitField0_; public static final int PROFILE_TABLE_FIELD_NUMBER = 1; private com.google.privacy.dlp.v2.BigQueryTable profileTable_; /** * * *
     * Store all table and column profiles in an existing table or a new table
     * in an existing dataset. Each re-generation will result in new rows in
     * BigQuery. Data is inserted using [streaming
     * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
     * and so data may be in the buffer for a period of time after the profile
     * has finished. The Pub/Sub notification is sent before the streaming
     * buffer is guaranteed to be written, so data may not be instantly
     * visible to queries by the time your topic receives the Pub/Sub
     * notification.
     * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; * * @return Whether the profileTable field is set. */ @java.lang.Override public boolean hasProfileTable() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Store all table and column profiles in an existing table or a new table
     * in an existing dataset. Each re-generation will result in new rows in
     * BigQuery. Data is inserted using [streaming
     * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
     * and so data may be in the buffer for a period of time after the profile
     * has finished. The Pub/Sub notification is sent before the streaming
     * buffer is guaranteed to be written, so data may not be instantly
     * visible to queries by the time your topic receives the Pub/Sub
     * notification.
     * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; * * @return The profileTable. */ @java.lang.Override public com.google.privacy.dlp.v2.BigQueryTable getProfileTable() { return profileTable_ == null ? com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance() : profileTable_; } /** * * *
     * Store all table and column profiles in an existing table or a new table
     * in an existing dataset. Each re-generation will result in new rows in
     * BigQuery. Data is inserted using [streaming
     * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
     * and so data may be in the buffer for a period of time after the profile
     * has finished. The Pub/Sub notification is sent before the streaming
     * buffer is guaranteed to be written, so data may not be instantly
     * visible to queries by the time your topic receives the Pub/Sub
     * notification.
     * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; */ @java.lang.Override public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getProfileTableOrBuilder() { return profileTable_ == null ? com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance() : profileTable_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getProfileTable()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfileTable()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.privacy.dlp.v2.DataProfileAction.Export)) { return super.equals(obj); } com.google.privacy.dlp.v2.DataProfileAction.Export other = (com.google.privacy.dlp.v2.DataProfileAction.Export) obj; if (hasProfileTable() != other.hasProfileTable()) return false; if (hasProfileTable()) { if (!getProfileTable().equals(other.getProfileTable())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProfileTable()) { hash = (37 * hash) + PROFILE_TABLE_FIELD_NUMBER; hash = (53 * hash) + getProfileTable().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.privacy.dlp.v2.DataProfileAction.Export prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * If set, the detailed data profiles will be persisted to the location
     * of your choice whenever updated.
     * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.Export} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DataProfileAction.Export) com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_Export_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_Export_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.Export.class, com.google.privacy.dlp.v2.DataProfileAction.Export.Builder.class); } // Construct using com.google.privacy.dlp.v2.DataProfileAction.Export.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProfileTableFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; profileTable_ = null; if (profileTableBuilder_ != null) { profileTableBuilder_.dispose(); profileTableBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_Export_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.Export getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.Export build() { com.google.privacy.dlp.v2.DataProfileAction.Export result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.Export buildPartial() { com.google.privacy.dlp.v2.DataProfileAction.Export result = new com.google.privacy.dlp.v2.DataProfileAction.Export(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.privacy.dlp.v2.DataProfileAction.Export result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.profileTable_ = profileTableBuilder_ == null ? profileTable_ : profileTableBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DataProfileAction.Export) { return mergeFrom((com.google.privacy.dlp.v2.DataProfileAction.Export) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.privacy.dlp.v2.DataProfileAction.Export other) { if (other == com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance()) return this; if (other.hasProfileTable()) { mergeProfileTable(other.getProfileTable()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getProfileTableFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.privacy.dlp.v2.BigQueryTable profileTable_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.BigQueryTable, com.google.privacy.dlp.v2.BigQueryTable.Builder, com.google.privacy.dlp.v2.BigQueryTableOrBuilder> profileTableBuilder_; /** * * *
       * Store all table and column profiles in an existing table or a new table
       * in an existing dataset. Each re-generation will result in new rows in
       * BigQuery. Data is inserted using [streaming
       * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
       * and so data may be in the buffer for a period of time after the profile
       * has finished. The Pub/Sub notification is sent before the streaming
       * buffer is guaranteed to be written, so data may not be instantly
       * visible to queries by the time your topic receives the Pub/Sub
       * notification.
       * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; * * @return Whether the profileTable field is set. */ public boolean hasProfileTable() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Store all table and column profiles in an existing table or a new table
       * in an existing dataset. Each re-generation will result in new rows in
       * BigQuery. Data is inserted using [streaming
       * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
       * and so data may be in the buffer for a period of time after the profile
       * has finished. The Pub/Sub notification is sent before the streaming
       * buffer is guaranteed to be written, so data may not be instantly
       * visible to queries by the time your topic receives the Pub/Sub
       * notification.
       * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; * * @return The profileTable. */ public com.google.privacy.dlp.v2.BigQueryTable getProfileTable() { if (profileTableBuilder_ == null) { return profileTable_ == null ? com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance() : profileTable_; } else { return profileTableBuilder_.getMessage(); } } /** * * *
       * Store all table and column profiles in an existing table or a new table
       * in an existing dataset. Each re-generation will result in new rows in
       * BigQuery. Data is inserted using [streaming
       * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
       * and so data may be in the buffer for a period of time after the profile
       * has finished. The Pub/Sub notification is sent before the streaming
       * buffer is guaranteed to be written, so data may not be instantly
       * visible to queries by the time your topic receives the Pub/Sub
       * notification.
       * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; */ public Builder setProfileTable(com.google.privacy.dlp.v2.BigQueryTable value) { if (profileTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } profileTable_ = value; } else { profileTableBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Store all table and column profiles in an existing table or a new table
       * in an existing dataset. Each re-generation will result in new rows in
       * BigQuery. Data is inserted using [streaming
       * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
       * and so data may be in the buffer for a period of time after the profile
       * has finished. The Pub/Sub notification is sent before the streaming
       * buffer is guaranteed to be written, so data may not be instantly
       * visible to queries by the time your topic receives the Pub/Sub
       * notification.
       * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; */ public Builder setProfileTable( com.google.privacy.dlp.v2.BigQueryTable.Builder builderForValue) { if (profileTableBuilder_ == null) { profileTable_ = builderForValue.build(); } else { profileTableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Store all table and column profiles in an existing table or a new table
       * in an existing dataset. Each re-generation will result in new rows in
       * BigQuery. Data is inserted using [streaming
       * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
       * and so data may be in the buffer for a period of time after the profile
       * has finished. The Pub/Sub notification is sent before the streaming
       * buffer is guaranteed to be written, so data may not be instantly
       * visible to queries by the time your topic receives the Pub/Sub
       * notification.
       * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; */ public Builder mergeProfileTable(com.google.privacy.dlp.v2.BigQueryTable value) { if (profileTableBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && profileTable_ != null && profileTable_ != com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance()) { getProfileTableBuilder().mergeFrom(value); } else { profileTable_ = value; } } else { profileTableBuilder_.mergeFrom(value); } if (profileTable_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * Store all table and column profiles in an existing table or a new table
       * in an existing dataset. Each re-generation will result in new rows in
       * BigQuery. Data is inserted using [streaming
       * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
       * and so data may be in the buffer for a period of time after the profile
       * has finished. The Pub/Sub notification is sent before the streaming
       * buffer is guaranteed to be written, so data may not be instantly
       * visible to queries by the time your topic receives the Pub/Sub
       * notification.
       * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; */ public Builder clearProfileTable() { bitField0_ = (bitField0_ & ~0x00000001); profileTable_ = null; if (profileTableBuilder_ != null) { profileTableBuilder_.dispose(); profileTableBuilder_ = null; } onChanged(); return this; } /** * * *
       * Store all table and column profiles in an existing table or a new table
       * in an existing dataset. Each re-generation will result in new rows in
       * BigQuery. Data is inserted using [streaming
       * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
       * and so data may be in the buffer for a period of time after the profile
       * has finished. The Pub/Sub notification is sent before the streaming
       * buffer is guaranteed to be written, so data may not be instantly
       * visible to queries by the time your topic receives the Pub/Sub
       * notification.
       * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; */ public com.google.privacy.dlp.v2.BigQueryTable.Builder getProfileTableBuilder() { bitField0_ |= 0x00000001; onChanged(); return getProfileTableFieldBuilder().getBuilder(); } /** * * *
       * Store all table and column profiles in an existing table or a new table
       * in an existing dataset. Each re-generation will result in new rows in
       * BigQuery. Data is inserted using [streaming
       * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
       * and so data may be in the buffer for a period of time after the profile
       * has finished. The Pub/Sub notification is sent before the streaming
       * buffer is guaranteed to be written, so data may not be instantly
       * visible to queries by the time your topic receives the Pub/Sub
       * notification.
       * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; */ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getProfileTableOrBuilder() { if (profileTableBuilder_ != null) { return profileTableBuilder_.getMessageOrBuilder(); } else { return profileTable_ == null ? com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance() : profileTable_; } } /** * * *
       * Store all table and column profiles in an existing table or a new table
       * in an existing dataset. Each re-generation will result in new rows in
       * BigQuery. Data is inserted using [streaming
       * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
       * and so data may be in the buffer for a period of time after the profile
       * has finished. The Pub/Sub notification is sent before the streaming
       * buffer is guaranteed to be written, so data may not be instantly
       * visible to queries by the time your topic receives the Pub/Sub
       * notification.
       * 
* * .google.privacy.dlp.v2.BigQueryTable profile_table = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.BigQueryTable, com.google.privacy.dlp.v2.BigQueryTable.Builder, com.google.privacy.dlp.v2.BigQueryTableOrBuilder> getProfileTableFieldBuilder() { if (profileTableBuilder_ == null) { profileTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.BigQueryTable, com.google.privacy.dlp.v2.BigQueryTable.Builder, com.google.privacy.dlp.v2.BigQueryTableOrBuilder>( getProfileTable(), getParentForChildren(), isClean()); profileTable_ = null; } return profileTableBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileAction.Export) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction.Export) private static final com.google.privacy.dlp.v2.DataProfileAction.Export DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction.Export(); } public static com.google.privacy.dlp.v2.DataProfileAction.Export getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Export parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.Export getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PubSubNotificationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DataProfileAction.PubSubNotification) com.google.protobuf.MessageOrBuilder { /** * * *
     * Cloud Pub/Sub topic to send notifications to.
     * Format is projects/{project}/topics/{topic}.
     * 
* * string topic = 1; * * @return The topic. */ java.lang.String getTopic(); /** * * *
     * Cloud Pub/Sub topic to send notifications to.
     * Format is projects/{project}/topics/{topic}.
     * 
* * string topic = 1; * * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * * *
     * The type of event that triggers a Pub/Sub. At most one
     * `PubSubNotification` per EventType is permitted.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; * * @return The enum numeric value on the wire for event. */ int getEventValue(); /** * * *
     * The type of event that triggers a Pub/Sub. At most one
     * `PubSubNotification` per EventType is permitted.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; * * @return The event. */ com.google.privacy.dlp.v2.DataProfileAction.EventType getEvent(); /** * * *
     * Conditions (e.g., data risk or sensitivity level) for triggering a
     * Pub/Sub.
     * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; * * @return Whether the pubsubCondition field is set. */ boolean hasPubsubCondition(); /** * * *
     * Conditions (e.g., data risk or sensitivity level) for triggering a
     * Pub/Sub.
     * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; * * @return The pubsubCondition. */ com.google.privacy.dlp.v2.DataProfilePubSubCondition getPubsubCondition(); /** * * *
     * Conditions (e.g., data risk or sensitivity level) for triggering a
     * Pub/Sub.
     * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; */ com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder getPubsubConditionOrBuilder(); /** * * *
     * How much data to include in the Pub/Sub message. If the user wishes to
     * limit the size of the message, they can use resource_name and fetch the
     * profile fields they wish to. Per table profile (not per column).
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; * * * @return The enum numeric value on the wire for detailOfMessage. */ int getDetailOfMessageValue(); /** * * *
     * How much data to include in the Pub/Sub message. If the user wishes to
     * limit the size of the message, they can use resource_name and fetch the
     * profile fields they wish to. Per table profile (not per column).
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; * * * @return The detailOfMessage. */ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel getDetailOfMessage(); } /** * * *
   * Send a Pub/Sub message into the given Pub/Sub topic to connect other
   * systems to data profile generation. The message payload data will
   * be the byte serialization of `DataProfilePubSubMessage`.
   * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.PubSubNotification} */ public static final class PubSubNotification extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction.PubSubNotification) PubSubNotificationOrBuilder { private static final long serialVersionUID = 0L; // Use PubSubNotification.newBuilder() to construct. private PubSubNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PubSubNotification() { topic_ = ""; event_ = 0; detailOfMessage_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PubSubNotification(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.class, com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder.class); } /** * * *
     * The levels of detail that can be included in the Pub/Sub message.
     * 
* * Protobuf enum {@code google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel} */ public enum DetailLevel implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Unused.
       * 
* * DETAIL_LEVEL_UNSPECIFIED = 0; */ DETAIL_LEVEL_UNSPECIFIED(0), /** * * *
       * The full table data profile.
       * 
* * TABLE_PROFILE = 1; */ TABLE_PROFILE(1), /** * * *
       * The name of the profiled resource.
       * 
* * RESOURCE_NAME = 2; */ RESOURCE_NAME(2), /** * * *
       * The full file store data profile.
       * 
* * FILE_STORE_PROFILE = 3; */ FILE_STORE_PROFILE(3), UNRECOGNIZED(-1), ; /** * * *
       * Unused.
       * 
* * DETAIL_LEVEL_UNSPECIFIED = 0; */ public static final int DETAIL_LEVEL_UNSPECIFIED_VALUE = 0; /** * * *
       * The full table data profile.
       * 
* * TABLE_PROFILE = 1; */ public static final int TABLE_PROFILE_VALUE = 1; /** * * *
       * The name of the profiled resource.
       * 
* * RESOURCE_NAME = 2; */ public static final int RESOURCE_NAME_VALUE = 2; /** * * *
       * The full file store data profile.
       * 
* * FILE_STORE_PROFILE = 3; */ public static final int FILE_STORE_PROFILE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DetailLevel valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static DetailLevel forNumber(int value) { switch (value) { case 0: return DETAIL_LEVEL_UNSPECIFIED; case 1: return TABLE_PROFILE; case 2: return RESOURCE_NAME; case 3: return FILE_STORE_PROFILE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DetailLevel findValueByNumber(int number) { return DetailLevel.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDescriptor() .getEnumTypes() .get(0); } private static final DetailLevel[] VALUES = values(); public static DetailLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private DetailLevel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel) } private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** * * *
     * Cloud Pub/Sub topic to send notifications to.
     * Format is projects/{project}/topics/{topic}.
     * 
* * string topic = 1; * * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** * * *
     * Cloud Pub/Sub topic to send notifications to.
     * Format is projects/{project}/topics/{topic}.
     * 
* * string topic = 1; * * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EVENT_FIELD_NUMBER = 2; private int event_ = 0; /** * * *
     * The type of event that triggers a Pub/Sub. At most one
     * `PubSubNotification` per EventType is permitted.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; * * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return event_; } /** * * *
     * The type of event that triggers a Pub/Sub. At most one
     * `PubSubNotification` per EventType is permitted.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; * * @return The event. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.EventType getEvent() { com.google.privacy.dlp.v2.DataProfileAction.EventType result = com.google.privacy.dlp.v2.DataProfileAction.EventType.forNumber(event_); return result == null ? com.google.privacy.dlp.v2.DataProfileAction.EventType.UNRECOGNIZED : result; } public static final int PUBSUB_CONDITION_FIELD_NUMBER = 3; private com.google.privacy.dlp.v2.DataProfilePubSubCondition pubsubCondition_; /** * * *
     * Conditions (e.g., data risk or sensitivity level) for triggering a
     * Pub/Sub.
     * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; * * @return Whether the pubsubCondition field is set. */ @java.lang.Override public boolean hasPubsubCondition() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Conditions (e.g., data risk or sensitivity level) for triggering a
     * Pub/Sub.
     * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; * * @return The pubsubCondition. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfilePubSubCondition getPubsubCondition() { return pubsubCondition_ == null ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.getDefaultInstance() : pubsubCondition_; } /** * * *
     * Conditions (e.g., data risk or sensitivity level) for triggering a
     * Pub/Sub.
     * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder getPubsubConditionOrBuilder() { return pubsubCondition_ == null ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.getDefaultInstance() : pubsubCondition_; } public static final int DETAIL_OF_MESSAGE_FIELD_NUMBER = 4; private int detailOfMessage_ = 0; /** * * *
     * How much data to include in the Pub/Sub message. If the user wishes to
     * limit the size of the message, they can use resource_name and fetch the
     * profile fields they wish to. Per table profile (not per column).
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; * * * @return The enum numeric value on the wire for detailOfMessage. */ @java.lang.Override public int getDetailOfMessageValue() { return detailOfMessage_; } /** * * *
     * How much data to include in the Pub/Sub message. If the user wishes to
     * limit the size of the message, they can use resource_name and fetch the
     * profile fields they wish to. Per table profile (not per column).
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; * * * @return The detailOfMessage. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel getDetailOfMessage() { com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel result = com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel.forNumber( detailOfMessage_); return result == null ? com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } if (event_ != com.google.privacy.dlp.v2.DataProfileAction.EventType.EVENT_TYPE_UNSPECIFIED .getNumber()) { output.writeEnum(2, event_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getPubsubCondition()); } if (detailOfMessage_ != com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel .DETAIL_LEVEL_UNSPECIFIED .getNumber()) { output.writeEnum(4, detailOfMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (event_ != com.google.privacy.dlp.v2.DataProfileAction.EventType.EVENT_TYPE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, event_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPubsubCondition()); } if (detailOfMessage_ != com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel .DETAIL_LEVEL_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, detailOfMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification)) { return super.equals(obj); } com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification other = (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) obj; if (!getTopic().equals(other.getTopic())) return false; if (event_ != other.event_) return false; if (hasPubsubCondition() != other.hasPubsubCondition()) return false; if (hasPubsubCondition()) { if (!getPubsubCondition().equals(other.getPubsubCondition())) return false; } if (detailOfMessage_ != other.detailOfMessage_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + event_; if (hasPubsubCondition()) { hash = (37 * hash) + PUBSUB_CONDITION_FIELD_NUMBER; hash = (53 * hash) + getPubsubCondition().hashCode(); } hash = (37 * hash) + DETAIL_OF_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + detailOfMessage_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Send a Pub/Sub message into the given Pub/Sub topic to connect other
     * systems to data profile generation. The message payload data will
     * be the byte serialization of `DataProfilePubSubMessage`.
     * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.PubSubNotification} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DataProfileAction.PubSubNotification) com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.class, com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder.class); } // Construct using com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPubsubConditionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; topic_ = ""; event_ = 0; pubsubCondition_ = null; if (pubsubConditionBuilder_ != null) { pubsubConditionBuilder_.dispose(); pubsubConditionBuilder_ = null; } detailOfMessage_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification build() { com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification buildPartial() { com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification result = new com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.topic_ = topic_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.event_ = event_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.pubsubCondition_ = pubsubConditionBuilder_ == null ? pubsubCondition_ : pubsubConditionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.detailOfMessage_ = detailOfMessage_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) { return mergeFrom((com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification other) { if (other == com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; onChanged(); } if (other.event_ != 0) { setEventValue(other.getEventValue()); } if (other.hasPubsubCondition()) { mergePubsubCondition(other.getPubsubCondition()); } if (other.detailOfMessage_ != 0) { setDetailOfMessageValue(other.getDetailOfMessageValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { topic_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { event_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getPubsubConditionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { detailOfMessage_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object topic_ = ""; /** * * *
       * Cloud Pub/Sub topic to send notifications to.
       * Format is projects/{project}/topics/{topic}.
       * 
* * string topic = 1; * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Cloud Pub/Sub topic to send notifications to.
       * Format is projects/{project}/topics/{topic}.
       * 
* * string topic = 1; * * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Cloud Pub/Sub topic to send notifications to.
       * Format is projects/{project}/topics/{topic}.
       * 
* * string topic = 1; * * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Cloud Pub/Sub topic to send notifications to.
       * Format is projects/{project}/topics/{topic}.
       * 
* * string topic = 1; * * @return This builder for chaining. */ public Builder clearTopic() { topic_ = getDefaultInstance().getTopic(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Cloud Pub/Sub topic to send notifications to.
       * Format is projects/{project}/topics/{topic}.
       * 
* * string topic = 1; * * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int event_ = 0; /** * * *
       * The type of event that triggers a Pub/Sub. At most one
       * `PubSubNotification` per EventType is permitted.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; * * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return event_; } /** * * *
       * The type of event that triggers a Pub/Sub. At most one
       * `PubSubNotification` per EventType is permitted.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; * * @param value The enum numeric value on the wire for event to set. * @return This builder for chaining. */ public Builder setEventValue(int value) { event_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The type of event that triggers a Pub/Sub. At most one
       * `PubSubNotification` per EventType is permitted.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; * * @return The event. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.EventType getEvent() { com.google.privacy.dlp.v2.DataProfileAction.EventType result = com.google.privacy.dlp.v2.DataProfileAction.EventType.forNumber(event_); return result == null ? com.google.privacy.dlp.v2.DataProfileAction.EventType.UNRECOGNIZED : result; } /** * * *
       * The type of event that triggers a Pub/Sub. At most one
       * `PubSubNotification` per EventType is permitted.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; * * @param value The event to set. * @return This builder for chaining. */ public Builder setEvent(com.google.privacy.dlp.v2.DataProfileAction.EventType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; event_ = value.getNumber(); onChanged(); return this; } /** * * *
       * The type of event that triggers a Pub/Sub. At most one
       * `PubSubNotification` per EventType is permitted.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; * * @return This builder for chaining. */ public Builder clearEvent() { bitField0_ = (bitField0_ & ~0x00000002); event_ = 0; onChanged(); return this; } private com.google.privacy.dlp.v2.DataProfilePubSubCondition pubsubCondition_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfilePubSubCondition, com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder, com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder> pubsubConditionBuilder_; /** * * *
       * Conditions (e.g., data risk or sensitivity level) for triggering a
       * Pub/Sub.
       * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; * * @return Whether the pubsubCondition field is set. */ public boolean hasPubsubCondition() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
       * Conditions (e.g., data risk or sensitivity level) for triggering a
       * Pub/Sub.
       * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; * * @return The pubsubCondition. */ public com.google.privacy.dlp.v2.DataProfilePubSubCondition getPubsubCondition() { if (pubsubConditionBuilder_ == null) { return pubsubCondition_ == null ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.getDefaultInstance() : pubsubCondition_; } else { return pubsubConditionBuilder_.getMessage(); } } /** * * *
       * Conditions (e.g., data risk or sensitivity level) for triggering a
       * Pub/Sub.
       * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; */ public Builder setPubsubCondition( com.google.privacy.dlp.v2.DataProfilePubSubCondition value) { if (pubsubConditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pubsubCondition_ = value; } else { pubsubConditionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Conditions (e.g., data risk or sensitivity level) for triggering a
       * Pub/Sub.
       * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; */ public Builder setPubsubCondition( com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder builderForValue) { if (pubsubConditionBuilder_ == null) { pubsubCondition_ = builderForValue.build(); } else { pubsubConditionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Conditions (e.g., data risk or sensitivity level) for triggering a
       * Pub/Sub.
       * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; */ public Builder mergePubsubCondition( com.google.privacy.dlp.v2.DataProfilePubSubCondition value) { if (pubsubConditionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && pubsubCondition_ != null && pubsubCondition_ != com.google.privacy.dlp.v2.DataProfilePubSubCondition.getDefaultInstance()) { getPubsubConditionBuilder().mergeFrom(value); } else { pubsubCondition_ = value; } } else { pubsubConditionBuilder_.mergeFrom(value); } if (pubsubCondition_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
       * Conditions (e.g., data risk or sensitivity level) for triggering a
       * Pub/Sub.
       * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; */ public Builder clearPubsubCondition() { bitField0_ = (bitField0_ & ~0x00000004); pubsubCondition_ = null; if (pubsubConditionBuilder_ != null) { pubsubConditionBuilder_.dispose(); pubsubConditionBuilder_ = null; } onChanged(); return this; } /** * * *
       * Conditions (e.g., data risk or sensitivity level) for triggering a
       * Pub/Sub.
       * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; */ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder getPubsubConditionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPubsubConditionFieldBuilder().getBuilder(); } /** * * *
       * Conditions (e.g., data risk or sensitivity level) for triggering a
       * Pub/Sub.
       * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; */ public com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder getPubsubConditionOrBuilder() { if (pubsubConditionBuilder_ != null) { return pubsubConditionBuilder_.getMessageOrBuilder(); } else { return pubsubCondition_ == null ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.getDefaultInstance() : pubsubCondition_; } } /** * * *
       * Conditions (e.g., data risk or sensitivity level) for triggering a
       * Pub/Sub.
       * 
* * .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfilePubSubCondition, com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder, com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder> getPubsubConditionFieldBuilder() { if (pubsubConditionBuilder_ == null) { pubsubConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfilePubSubCondition, com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder, com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder>( getPubsubCondition(), getParentForChildren(), isClean()); pubsubCondition_ = null; } return pubsubConditionBuilder_; } private int detailOfMessage_ = 0; /** * * *
       * How much data to include in the Pub/Sub message. If the user wishes to
       * limit the size of the message, they can use resource_name and fetch the
       * profile fields they wish to. Per table profile (not per column).
       * 
* * * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; * * * @return The enum numeric value on the wire for detailOfMessage. */ @java.lang.Override public int getDetailOfMessageValue() { return detailOfMessage_; } /** * * *
       * How much data to include in the Pub/Sub message. If the user wishes to
       * limit the size of the message, they can use resource_name and fetch the
       * profile fields they wish to. Per table profile (not per column).
       * 
* * * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; * * * @param value The enum numeric value on the wire for detailOfMessage to set. * @return This builder for chaining. */ public Builder setDetailOfMessageValue(int value) { detailOfMessage_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * How much data to include in the Pub/Sub message. If the user wishes to
       * limit the size of the message, they can use resource_name and fetch the
       * profile fields they wish to. Per table profile (not per column).
       * 
* * * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; * * * @return The detailOfMessage. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel getDetailOfMessage() { com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel result = com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel.forNumber( detailOfMessage_); return result == null ? com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel .UNRECOGNIZED : result; } /** * * *
       * How much data to include in the Pub/Sub message. If the user wishes to
       * limit the size of the message, they can use resource_name and fetch the
       * profile fields they wish to. Per table profile (not per column).
       * 
* * * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; * * * @param value The detailOfMessage to set. * @return This builder for chaining. */ public Builder setDetailOfMessage( com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; detailOfMessage_ = value.getNumber(); onChanged(); return this; } /** * * *
       * How much data to include in the Pub/Sub message. If the user wishes to
       * limit the size of the message, they can use resource_name and fetch the
       * profile fields they wish to. Per table profile (not per column).
       * 
* * * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; * * * @return This builder for chaining. */ public Builder clearDetailOfMessage() { bitField0_ = (bitField0_ & ~0x00000008); detailOfMessage_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileAction.PubSubNotification) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction.PubSubNotification) private static final com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification(); } public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PubSubNotification parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PublishToChronicleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) com.google.protobuf.MessageOrBuilder {} /** * * *
   * Message expressing intention to publish to Google Security Operations.
   * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.PublishToChronicle} */ public static final class PublishToChronicle extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) PublishToChronicleOrBuilder { private static final long serialVersionUID = 0L; // Use PublishToChronicle.newBuilder() to construct. private PublishToChronicle(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PublishToChronicle() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishToChronicle(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToChronicle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToChronicle_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.class, com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle)) { return super.equals(obj); } com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle other = (com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Message expressing intention to publish to Google Security Operations.
     * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.PublishToChronicle} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToChronicle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToChronicle_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.class, com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.Builder.class); } // Construct using com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToChronicle_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle build() { com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle buildPartial() { com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle result = new com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) { return mergeFrom((com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle other) { if (other == com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) private static final com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle(); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PublishToChronicle parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PublishToSecurityCommandCenterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) com.google.protobuf.MessageOrBuilder {} /** * * *
   * If set, a summary finding will be created/updated in SCC for each profile.
   * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter} */ public static final class PublishToSecurityCommandCenter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) PublishToSecurityCommandCenterOrBuilder { private static final long serialVersionUID = 0L; // Use PublishToSecurityCommandCenter.newBuilder() to construct. private PublishToSecurityCommandCenter( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PublishToSecurityCommandCenter() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishToSecurityCommandCenter(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToSecurityCommandCenter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToSecurityCommandCenter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.class, com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.Builder .class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter)) { return super.equals(obj); } com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter other = (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * If set, a summary finding will be created/updated in SCC for each profile.
     * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToSecurityCommandCenter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToSecurityCommandCenter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.class, com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.Builder .class); } // Construct using // com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_PublishToSecurityCommandCenter_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter .getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter build() { com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter buildPartial() { com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter result = new com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) { return mergeFrom( (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter other) { if (other == com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter .getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) private static final com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter(); } public static com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PublishToSecurityCommandCenter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DataProfileAction.TagResources) com.google.protobuf.MessageOrBuilder { /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ java.util.List getTagConditionsList(); /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition getTagConditions( int index); /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ int getTagConditionsCount(); /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ java.util.List< ? extends com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder> getTagConditionsOrBuilderList(); /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder getTagConditionsOrBuilder(int index); /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return A list containing the profileGenerationsToTag. */ java.util.List getProfileGenerationsToTagList(); /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return The count of profileGenerationsToTag. */ int getProfileGenerationsToTagCount(); /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param index The index of the element to return. * @return The profileGenerationsToTag at the given index. */ com.google.privacy.dlp.v2.ProfileGeneration getProfileGenerationsToTag(int index); /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return A list containing the enum numeric values on the wire for profileGenerationsToTag. */ java.util.List getProfileGenerationsToTagValueList(); /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileGenerationsToTag at the given index. */ int getProfileGenerationsToTagValue(int index); /** * * *
     * Whether applying a tag to a resource should lower the risk of the profile
     * for that resource. For example, in conjunction with an [IAM deny
     * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny
     * all principals a permission if a tag value is present, mitigating the
     * risk of the resource. This also lowers the data risk of resources at the
     * lower levels of the resource hierarchy. For example, reducing the data
     * risk of a table data profile also reduces the data risk of the
     * constituent column data profiles.
     * 
* * bool lower_data_risk_to_low = 3; * * @return The lowerDataRiskToLow. */ boolean getLowerDataRiskToLow(); } /** * * *
   * If set, attaches the [tags]
   * (https://cloud.google.com/resource-manager/docs/tags/tags-overview)
   * provided to profiled resources. Tags support [access
   * control](https://cloud.google.com/iam/docs/tags-access-control). You can
   * conditionally grant or deny access to a resource based on whether the
   * resource has a specific tag.
   * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.TagResources} */ public static final class TagResources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction.TagResources) TagResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use TagResources.newBuilder() to construct. private TagResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TagResources() { tagConditions_ = java.util.Collections.emptyList(); profileGenerationsToTag_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TagResources(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.TagResources.class, com.google.privacy.dlp.v2.DataProfileAction.TagResources.Builder.class); } public interface TagConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition) com.google.protobuf.MessageOrBuilder { /** * * *
       * The tag value to attach to resources.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; * * @return Whether the tag field is set. */ boolean hasTag(); /** * * *
       * The tag value to attach to resources.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; * * @return The tag. */ com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue getTag(); /** * * *
       * The tag value to attach to resources.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; */ com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValueOrBuilder getTagOrBuilder(); /** * * *
       * Conditions attaching the tag to a resource on its profile having this
       * sensitivity score.
       * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; * * @return Whether the sensitivityScore field is set. */ boolean hasSensitivityScore(); /** * * *
       * Conditions attaching the tag to a resource on its profile having this
       * sensitivity score.
       * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; * * @return The sensitivityScore. */ com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore(); /** * * *
       * Conditions attaching the tag to a resource on its profile having this
       * sensitivity score.
       * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; */ com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder(); com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.TypeCase getTypeCase(); } /** * * *
     * The tag to attach to profiles matching the condition. At most one
     * `TagCondition` can be specified per sensitivity level.
     * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition} */ public static final class TagCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition) TagConditionOrBuilder { private static final long serialVersionUID = 0L; // Use TagCondition.newBuilder() to construct. private TagCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TagCondition() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TagCondition(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.class, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder .class); } private int bitField0_; private int typeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SENSITIVITY_SCORE(2), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 2: return SENSITIVITY_SCORE; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber(typeCase_); } public static final int TAG_FIELD_NUMBER = 1; private com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag_; /** * * *
       * The tag value to attach to resources.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; * * @return Whether the tag field is set. */ @java.lang.Override public boolean hasTag() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * The tag value to attach to resources.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; * * @return The tag. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue getTag() { return tag_ == null ? com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.getDefaultInstance() : tag_; } /** * * *
       * The tag value to attach to resources.
       * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValueOrBuilder getTagOrBuilder() { return tag_ == null ? com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.getDefaultInstance() : tag_; } public static final int SENSITIVITY_SCORE_FIELD_NUMBER = 2; /** * * *
       * Conditions attaching the tag to a resource on its profile having this
       * sensitivity score.
       * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; * * @return Whether the sensitivityScore field is set. */ @java.lang.Override public boolean hasSensitivityScore() { return typeCase_ == 2; } /** * * *
       * Conditions attaching the tag to a resource on its profile having this
       * sensitivity score.
       * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; * * @return The sensitivityScore. */ @java.lang.Override public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() { if (typeCase_ == 2) { return (com.google.privacy.dlp.v2.SensitivityScore) type_; } return com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance(); } /** * * *
       * Conditions attaching the tag to a resource on its profile having this
       * sensitivity score.
       * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; */ @java.lang.Override public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() { if (typeCase_ == 2) { return (com.google.privacy.dlp.v2.SensitivityScore) type_; } return com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTag()); } if (typeCase_ == 2) { output.writeMessage(2, (com.google.privacy.dlp.v2.SensitivityScore) type_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTag()); } if (typeCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.privacy.dlp.v2.SensitivityScore) type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition)) { return super.equals(obj); } com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition other = (com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition) obj; if (hasTag() != other.hasTag()) return false; if (hasTag()) { if (!getTag().equals(other.getTag())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 2: if (!getSensitivityScore().equals(other.getSensitivityScore())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTag()) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); } switch (typeCase_) { case 2: hash = (37 * hash) + SENSITIVITY_SCORE_FIELD_NUMBER; hash = (53 * hash) + getSensitivityScore().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
       * The tag to attach to profiles matching the condition. At most one
       * `TagCondition` can be specified per sensitivity level.
       * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition) com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.class, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder .class); } // Construct using // com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTagFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tag_ = null; if (tagBuilder_ != null) { tagBuilder_.dispose(); tagBuilder_ = null; } if (sensitivityScoreBuilder_ != null) { sensitivityScoreBuilder_.clear(); } typeCase_ = 0; type_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagCondition_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition .getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition build() { com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition buildPartial() { com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition result = new com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tag_ = tagBuilder_ == null ? tag_ : tagBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition result) { result.typeCase_ = typeCase_; result.type_ = this.type_; if (typeCase_ == 2 && sensitivityScoreBuilder_ != null) { result.type_ = sensitivityScoreBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition) { return mergeFrom( (com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition other) { if (other == com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition .getDefaultInstance()) return this; if (other.hasTag()) { mergeTag(other.getTag()); } switch (other.getTypeCase()) { case SENSITIVITY_SCORE: { mergeSensitivityScore(other.getSensitivityScore()); break; } case TYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getTagFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSensitivityScoreFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 2; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber(typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private int bitField0_; private com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.Builder, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValueOrBuilder> tagBuilder_; /** * * *
         * The tag value to attach to resources.
         * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; * * @return Whether the tag field is set. */ public boolean hasTag() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
         * The tag value to attach to resources.
         * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; * * @return The tag. */ public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue getTag() { if (tagBuilder_ == null) { return tag_ == null ? com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue .getDefaultInstance() : tag_; } else { return tagBuilder_.getMessage(); } } /** * * *
         * The tag value to attach to resources.
         * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; */ public Builder setTag( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue value) { if (tagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tag_ = value; } else { tagBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * The tag value to attach to resources.
         * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; */ public Builder setTag( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.Builder builderForValue) { if (tagBuilder_ == null) { tag_ = builderForValue.build(); } else { tagBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * The tag value to attach to resources.
         * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; */ public Builder mergeTag( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue value) { if (tagBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tag_ != null && tag_ != com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue .getDefaultInstance()) { getTagBuilder().mergeFrom(value); } else { tag_ = value; } } else { tagBuilder_.mergeFrom(value); } if (tag_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
         * The tag value to attach to resources.
         * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000001); tag_ = null; if (tagBuilder_ != null) { tagBuilder_.dispose(); tagBuilder_ = null; } onChanged(); return this; } /** * * *
         * The tag value to attach to resources.
         * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; */ public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.Builder getTagBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTagFieldBuilder().getBuilder(); } /** * * *
         * The tag value to attach to resources.
         * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; */ public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValueOrBuilder getTagOrBuilder() { if (tagBuilder_ != null) { return tagBuilder_.getMessageOrBuilder(); } else { return tag_ == null ? com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue .getDefaultInstance() : tag_; } } /** * * *
         * The tag value to attach to resources.
         * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.Builder, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValueOrBuilder> getTagFieldBuilder() { if (tagBuilder_ == null) { tagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.Builder, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValueOrBuilder>( getTag(), getParentForChildren(), isClean()); tag_ = null; } return tagBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.SensitivityScore, com.google.privacy.dlp.v2.SensitivityScore.Builder, com.google.privacy.dlp.v2.SensitivityScoreOrBuilder> sensitivityScoreBuilder_; /** * * *
         * Conditions attaching the tag to a resource on its profile having this
         * sensitivity score.
         * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; * * @return Whether the sensitivityScore field is set. */ @java.lang.Override public boolean hasSensitivityScore() { return typeCase_ == 2; } /** * * *
         * Conditions attaching the tag to a resource on its profile having this
         * sensitivity score.
         * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; * * @return The sensitivityScore. */ @java.lang.Override public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() { if (sensitivityScoreBuilder_ == null) { if (typeCase_ == 2) { return (com.google.privacy.dlp.v2.SensitivityScore) type_; } return com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance(); } else { if (typeCase_ == 2) { return sensitivityScoreBuilder_.getMessage(); } return com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance(); } } /** * * *
         * Conditions attaching the tag to a resource on its profile having this
         * sensitivity score.
         * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; */ public Builder setSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { if (sensitivityScoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { sensitivityScoreBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * * *
         * Conditions attaching the tag to a resource on its profile having this
         * sensitivity score.
         * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; */ public Builder setSensitivityScore( com.google.privacy.dlp.v2.SensitivityScore.Builder builderForValue) { if (sensitivityScoreBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { sensitivityScoreBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** * * *
         * Conditions attaching the tag to a resource on its profile having this
         * sensitivity score.
         * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; */ public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { if (sensitivityScoreBuilder_ == null) { if (typeCase_ == 2 && type_ != com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance()) { type_ = com.google.privacy.dlp.v2.SensitivityScore.newBuilder( (com.google.privacy.dlp.v2.SensitivityScore) type_) .mergeFrom(value) .buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { sensitivityScoreBuilder_.mergeFrom(value); } else { sensitivityScoreBuilder_.setMessage(value); } } typeCase_ = 2; return this; } /** * * *
         * Conditions attaching the tag to a resource on its profile having this
         * sensitivity score.
         * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; */ public Builder clearSensitivityScore() { if (sensitivityScoreBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } sensitivityScoreBuilder_.clear(); } return this; } /** * * *
         * Conditions attaching the tag to a resource on its profile having this
         * sensitivity score.
         * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; */ public com.google.privacy.dlp.v2.SensitivityScore.Builder getSensitivityScoreBuilder() { return getSensitivityScoreFieldBuilder().getBuilder(); } /** * * *
         * Conditions attaching the tag to a resource on its profile having this
         * sensitivity score.
         * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; */ @java.lang.Override public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() { if ((typeCase_ == 2) && (sensitivityScoreBuilder_ != null)) { return sensitivityScoreBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (com.google.privacy.dlp.v2.SensitivityScore) type_; } return com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance(); } } /** * * *
         * Conditions attaching the tag to a resource on its profile having this
         * sensitivity score.
         * 
* * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.SensitivityScore, com.google.privacy.dlp.v2.SensitivityScore.Builder, com.google.privacy.dlp.v2.SensitivityScoreOrBuilder> getSensitivityScoreFieldBuilder() { if (sensitivityScoreBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance(); } sensitivityScoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.SensitivityScore, com.google.privacy.dlp.v2.SensitivityScore.Builder, com.google.privacy.dlp.v2.SensitivityScoreOrBuilder>( (com.google.privacy.dlp.v2.SensitivityScore) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged(); return sensitivityScoreBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition) private static final com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition(); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TagCondition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue) com.google.protobuf.MessageOrBuilder { /** * * *
       * The namespaced name for the tag value to attach to resources. Must be
       * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       * example, "123456/environment/prod".
       * 
* * string namespaced_value = 1; * * @return Whether the namespacedValue field is set. */ boolean hasNamespacedValue(); /** * * *
       * The namespaced name for the tag value to attach to resources. Must be
       * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       * example, "123456/environment/prod".
       * 
* * string namespaced_value = 1; * * @return The namespacedValue. */ java.lang.String getNamespacedValue(); /** * * *
       * The namespaced name for the tag value to attach to resources. Must be
       * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       * example, "123456/environment/prod".
       * 
* * string namespaced_value = 1; * * @return The bytes for namespacedValue. */ com.google.protobuf.ByteString getNamespacedValueBytes(); com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.FormatCase getFormatCase(); } /** * * *
     * A value of a tag.
     * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue} */ public static final class TagValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue) TagValueOrBuilder { private static final long serialVersionUID = 0L; // Use TagValue.newBuilder() to construct. private TagValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TagValue() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TagValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.class, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.Builder.class); } private int formatCase_ = 0; @SuppressWarnings("serial") private java.lang.Object format_; public enum FormatCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAMESPACED_VALUE(1), FORMAT_NOT_SET(0); private final int value; private FormatCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FormatCase valueOf(int value) { return forNumber(value); } public static FormatCase forNumber(int value) { switch (value) { case 1: return NAMESPACED_VALUE; case 0: return FORMAT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FormatCase getFormatCase() { return FormatCase.forNumber(formatCase_); } public static final int NAMESPACED_VALUE_FIELD_NUMBER = 1; /** * * *
       * The namespaced name for the tag value to attach to resources. Must be
       * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       * example, "123456/environment/prod".
       * 
* * string namespaced_value = 1; * * @return Whether the namespacedValue field is set. */ public boolean hasNamespacedValue() { return formatCase_ == 1; } /** * * *
       * The namespaced name for the tag value to attach to resources. Must be
       * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       * example, "123456/environment/prod".
       * 
* * string namespaced_value = 1; * * @return The namespacedValue. */ public java.lang.String getNamespacedValue() { java.lang.Object ref = ""; if (formatCase_ == 1) { ref = format_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (formatCase_ == 1) { format_ = s; } return s; } } /** * * *
       * The namespaced name for the tag value to attach to resources. Must be
       * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       * example, "123456/environment/prod".
       * 
* * string namespaced_value = 1; * * @return The bytes for namespacedValue. */ public com.google.protobuf.ByteString getNamespacedValueBytes() { java.lang.Object ref = ""; if (formatCase_ == 1) { ref = format_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (formatCase_ == 1) { format_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (formatCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, format_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (formatCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, format_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue)) { return super.equals(obj); } com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue other = (com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue) obj; if (!getFormatCase().equals(other.getFormatCase())) return false; switch (formatCase_) { case 1: if (!getNamespacedValue().equals(other.getNamespacedValue())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (formatCase_) { case 1: hash = (37 * hash) + NAMESPACED_VALUE_FIELD_NUMBER; hash = (53 * hash) + getNamespacedValue().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
       * A value of a tag.
       * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue) com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.class, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.Builder.class); } // Construct using // com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; formatCase_ = 0; format_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_TagValue_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue .getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue build() { com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue buildPartial() { com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue result = new com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue result) { result.formatCase_ = formatCase_; result.format_ = this.format_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue) { return mergeFrom( (com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue other) { if (other == com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue .getDefaultInstance()) return this; switch (other.getFormatCase()) { case NAMESPACED_VALUE: { formatCase_ = 1; format_ = other.format_; onChanged(); break; } case FORMAT_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); formatCase_ = 1; format_ = s; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int formatCase_ = 0; private java.lang.Object format_; public FormatCase getFormatCase() { return FormatCase.forNumber(formatCase_); } public Builder clearFormat() { formatCase_ = 0; format_ = null; onChanged(); return this; } private int bitField0_; /** * * *
         * The namespaced name for the tag value to attach to resources. Must be
         * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
         * example, "123456/environment/prod".
         * 
* * string namespaced_value = 1; * * @return Whether the namespacedValue field is set. */ @java.lang.Override public boolean hasNamespacedValue() { return formatCase_ == 1; } /** * * *
         * The namespaced name for the tag value to attach to resources. Must be
         * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
         * example, "123456/environment/prod".
         * 
* * string namespaced_value = 1; * * @return The namespacedValue. */ @java.lang.Override public java.lang.String getNamespacedValue() { java.lang.Object ref = ""; if (formatCase_ == 1) { ref = format_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (formatCase_ == 1) { format_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
         * The namespaced name for the tag value to attach to resources. Must be
         * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
         * example, "123456/environment/prod".
         * 
* * string namespaced_value = 1; * * @return The bytes for namespacedValue. */ @java.lang.Override public com.google.protobuf.ByteString getNamespacedValueBytes() { java.lang.Object ref = ""; if (formatCase_ == 1) { ref = format_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (formatCase_ == 1) { format_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * The namespaced name for the tag value to attach to resources. Must be
         * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
         * example, "123456/environment/prod".
         * 
* * string namespaced_value = 1; * * @param value The namespacedValue to set. * @return This builder for chaining. */ public Builder setNamespacedValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } formatCase_ = 1; format_ = value; onChanged(); return this; } /** * * *
         * The namespaced name for the tag value to attach to resources. Must be
         * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
         * example, "123456/environment/prod".
         * 
* * string namespaced_value = 1; * * @return This builder for chaining. */ public Builder clearNamespacedValue() { if (formatCase_ == 1) { formatCase_ = 0; format_ = null; onChanged(); } return this; } /** * * *
         * The namespaced name for the tag value to attach to resources. Must be
         * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
         * example, "123456/environment/prod".
         * 
* * string namespaced_value = 1; * * @param value The bytes for namespacedValue to set. * @return This builder for chaining. */ public Builder setNamespacedValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); formatCase_ = 1; format_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue) private static final com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue(); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TagValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int TAG_CONDITIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List tagConditions_; /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ @java.lang.Override public java.util.List getTagConditionsList() { return tagConditions_; } /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ @java.lang.Override public java.util.List< ? extends com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder> getTagConditionsOrBuilderList() { return tagConditions_; } /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ @java.lang.Override public int getTagConditionsCount() { return tagConditions_.size(); } /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition getTagConditions( int index) { return tagConditions_.get(index); } /** * * *
     * The tags to associate with different conditions.
     * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder getTagConditionsOrBuilder(int index) { return tagConditions_.get(index); } public static final int PROFILE_GENERATIONS_TO_TAG_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List profileGenerationsToTag_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.privacy.dlp.v2.ProfileGeneration> profileGenerationsToTag_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.privacy.dlp.v2.ProfileGeneration>() { public com.google.privacy.dlp.v2.ProfileGeneration convert(java.lang.Integer from) { com.google.privacy.dlp.v2.ProfileGeneration result = com.google.privacy.dlp.v2.ProfileGeneration.forNumber(from); return result == null ? com.google.privacy.dlp.v2.ProfileGeneration.UNRECOGNIZED : result; } }; /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return A list containing the profileGenerationsToTag. */ @java.lang.Override public java.util.List getProfileGenerationsToTagList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.privacy.dlp.v2.ProfileGeneration>( profileGenerationsToTag_, profileGenerationsToTag_converter_); } /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return The count of profileGenerationsToTag. */ @java.lang.Override public int getProfileGenerationsToTagCount() { return profileGenerationsToTag_.size(); } /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param index The index of the element to return. * @return The profileGenerationsToTag at the given index. */ @java.lang.Override public com.google.privacy.dlp.v2.ProfileGeneration getProfileGenerationsToTag(int index) { return profileGenerationsToTag_converter_.convert(profileGenerationsToTag_.get(index)); } /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return A list containing the enum numeric values on the wire for profileGenerationsToTag. */ @java.lang.Override public java.util.List getProfileGenerationsToTagValueList() { return profileGenerationsToTag_; } /** * * *
     * The profile generations for which the tag should be attached to
     * resources. If you attach a tag to only new profiles, then if the
     * sensitivity score of a profile subsequently changes, its tag doesn't
     * change. By default, this field includes only new profiles. To include
     * both new and updated profiles for tagging, this field should explicitly
     * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
     * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileGenerationsToTag at the given index. */ @java.lang.Override public int getProfileGenerationsToTagValue(int index) { return profileGenerationsToTag_.get(index); } private int profileGenerationsToTagMemoizedSerializedSize; public static final int LOWER_DATA_RISK_TO_LOW_FIELD_NUMBER = 3; private boolean lowerDataRiskToLow_ = false; /** * * *
     * Whether applying a tag to a resource should lower the risk of the profile
     * for that resource. For example, in conjunction with an [IAM deny
     * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny
     * all principals a permission if a tag value is present, mitigating the
     * risk of the resource. This also lowers the data risk of resources at the
     * lower levels of the resource hierarchy. For example, reducing the data
     * risk of a table data profile also reduces the data risk of the
     * constituent column data profiles.
     * 
* * bool lower_data_risk_to_low = 3; * * @return The lowerDataRiskToLow. */ @java.lang.Override public boolean getLowerDataRiskToLow() { return lowerDataRiskToLow_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < tagConditions_.size(); i++) { output.writeMessage(1, tagConditions_.get(i)); } if (getProfileGenerationsToTagList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(profileGenerationsToTagMemoizedSerializedSize); } for (int i = 0; i < profileGenerationsToTag_.size(); i++) { output.writeEnumNoTag(profileGenerationsToTag_.get(i)); } if (lowerDataRiskToLow_ != false) { output.writeBool(3, lowerDataRiskToLow_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < tagConditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tagConditions_.get(i)); } { int dataSize = 0; for (int i = 0; i < profileGenerationsToTag_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( profileGenerationsToTag_.get(i)); } size += dataSize; if (!getProfileGenerationsToTagList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); } profileGenerationsToTagMemoizedSerializedSize = dataSize; } if (lowerDataRiskToLow_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, lowerDataRiskToLow_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.privacy.dlp.v2.DataProfileAction.TagResources)) { return super.equals(obj); } com.google.privacy.dlp.v2.DataProfileAction.TagResources other = (com.google.privacy.dlp.v2.DataProfileAction.TagResources) obj; if (!getTagConditionsList().equals(other.getTagConditionsList())) return false; if (!profileGenerationsToTag_.equals(other.profileGenerationsToTag_)) return false; if (getLowerDataRiskToLow() != other.getLowerDataRiskToLow()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTagConditionsCount() > 0) { hash = (37 * hash) + TAG_CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getTagConditionsList().hashCode(); } if (getProfileGenerationsToTagCount() > 0) { hash = (37 * hash) + PROFILE_GENERATIONS_TO_TAG_FIELD_NUMBER; hash = (53 * hash) + profileGenerationsToTag_.hashCode(); } hash = (37 * hash) + LOWER_DATA_RISK_TO_LOW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLowerDataRiskToLow()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.privacy.dlp.v2.DataProfileAction.TagResources prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * If set, attaches the [tags]
     * (https://cloud.google.com/resource-manager/docs/tags/tags-overview)
     * provided to profiled resources. Tags support [access
     * control](https://cloud.google.com/iam/docs/tags-access-control). You can
     * conditionally grant or deny access to a resource based on whether the
     * resource has a specific tag.
     * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.TagResources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DataProfileAction.TagResources) com.google.privacy.dlp.v2.DataProfileAction.TagResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.TagResources.class, com.google.privacy.dlp.v2.DataProfileAction.TagResources.Builder.class); } // Construct using com.google.privacy.dlp.v2.DataProfileAction.TagResources.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tagConditionsBuilder_ == null) { tagConditions_ = java.util.Collections.emptyList(); } else { tagConditions_ = null; tagConditionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); profileGenerationsToTag_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); lowerDataRiskToLow_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_TagResources_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DataProfileAction.TagResources.getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources build() { com.google.privacy.dlp.v2.DataProfileAction.TagResources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources buildPartial() { com.google.privacy.dlp.v2.DataProfileAction.TagResources result = new com.google.privacy.dlp.v2.DataProfileAction.TagResources(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.privacy.dlp.v2.DataProfileAction.TagResources result) { if (tagConditionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tagConditions_ = java.util.Collections.unmodifiableList(tagConditions_); bitField0_ = (bitField0_ & ~0x00000001); } result.tagConditions_ = tagConditions_; } else { result.tagConditions_ = tagConditionsBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { profileGenerationsToTag_ = java.util.Collections.unmodifiableList(profileGenerationsToTag_); bitField0_ = (bitField0_ & ~0x00000002); } result.profileGenerationsToTag_ = profileGenerationsToTag_; } private void buildPartial0(com.google.privacy.dlp.v2.DataProfileAction.TagResources result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { result.lowerDataRiskToLow_ = lowerDataRiskToLow_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DataProfileAction.TagResources) { return mergeFrom((com.google.privacy.dlp.v2.DataProfileAction.TagResources) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.privacy.dlp.v2.DataProfileAction.TagResources other) { if (other == com.google.privacy.dlp.v2.DataProfileAction.TagResources.getDefaultInstance()) return this; if (tagConditionsBuilder_ == null) { if (!other.tagConditions_.isEmpty()) { if (tagConditions_.isEmpty()) { tagConditions_ = other.tagConditions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTagConditionsIsMutable(); tagConditions_.addAll(other.tagConditions_); } onChanged(); } } else { if (!other.tagConditions_.isEmpty()) { if (tagConditionsBuilder_.isEmpty()) { tagConditionsBuilder_.dispose(); tagConditionsBuilder_ = null; tagConditions_ = other.tagConditions_; bitField0_ = (bitField0_ & ~0x00000001); tagConditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTagConditionsFieldBuilder() : null; } else { tagConditionsBuilder_.addAllMessages(other.tagConditions_); } } } if (!other.profileGenerationsToTag_.isEmpty()) { if (profileGenerationsToTag_.isEmpty()) { profileGenerationsToTag_ = other.profileGenerationsToTag_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureProfileGenerationsToTagIsMutable(); profileGenerationsToTag_.addAll(other.profileGenerationsToTag_); } onChanged(); } if (other.getLowerDataRiskToLow() != false) { setLowerDataRiskToLow(other.getLowerDataRiskToLow()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition m = input.readMessage( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition .parser(), extensionRegistry); if (tagConditionsBuilder_ == null) { ensureTagConditionsIsMutable(); tagConditions_.add(m); } else { tagConditionsBuilder_.addMessage(m); } break; } // case 10 case 16: { int tmpRaw = input.readEnum(); ensureProfileGenerationsToTagIsMutable(); profileGenerationsToTag_.add(tmpRaw); break; } // case 16 case 18: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureProfileGenerationsToTagIsMutable(); profileGenerationsToTag_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 18 case 24: { lowerDataRiskToLow_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List tagConditions_ = java.util.Collections.emptyList(); private void ensureTagConditionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tagConditions_ = new java.util.ArrayList< com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition>( tagConditions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder> tagConditionsBuilder_; /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public java.util.List getTagConditionsList() { if (tagConditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(tagConditions_); } else { return tagConditionsBuilder_.getMessageList(); } } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public int getTagConditionsCount() { if (tagConditionsBuilder_ == null) { return tagConditions_.size(); } else { return tagConditionsBuilder_.getCount(); } } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition getTagConditions( int index) { if (tagConditionsBuilder_ == null) { return tagConditions_.get(index); } else { return tagConditionsBuilder_.getMessage(index); } } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public Builder setTagConditions( int index, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition value) { if (tagConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagConditionsIsMutable(); tagConditions_.set(index, value); onChanged(); } else { tagConditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public Builder setTagConditions( int index, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder builderForValue) { if (tagConditionsBuilder_ == null) { ensureTagConditionsIsMutable(); tagConditions_.set(index, builderForValue.build()); onChanged(); } else { tagConditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public Builder addTagConditions( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition value) { if (tagConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagConditionsIsMutable(); tagConditions_.add(value); onChanged(); } else { tagConditionsBuilder_.addMessage(value); } return this; } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public Builder addTagConditions( int index, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition value) { if (tagConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagConditionsIsMutable(); tagConditions_.add(index, value); onChanged(); } else { tagConditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public Builder addTagConditions( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder builderForValue) { if (tagConditionsBuilder_ == null) { ensureTagConditionsIsMutable(); tagConditions_.add(builderForValue.build()); onChanged(); } else { tagConditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public Builder addTagConditions( int index, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder builderForValue) { if (tagConditionsBuilder_ == null) { ensureTagConditionsIsMutable(); tagConditions_.add(index, builderForValue.build()); onChanged(); } else { tagConditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public Builder addAllTagConditions( java.lang.Iterable< ? extends com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition> values) { if (tagConditionsBuilder_ == null) { ensureTagConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagConditions_); onChanged(); } else { tagConditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public Builder clearTagConditions() { if (tagConditionsBuilder_ == null) { tagConditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tagConditionsBuilder_.clear(); } return this; } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public Builder removeTagConditions(int index) { if (tagConditionsBuilder_ == null) { ensureTagConditionsIsMutable(); tagConditions_.remove(index); onChanged(); } else { tagConditionsBuilder_.remove(index); } return this; } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder getTagConditionsBuilder(int index) { return getTagConditionsFieldBuilder().getBuilder(index); } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder getTagConditionsOrBuilder(int index) { if (tagConditionsBuilder_ == null) { return tagConditions_.get(index); } else { return tagConditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public java.util.List< ? extends com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder> getTagConditionsOrBuilderList() { if (tagConditionsBuilder_ != null) { return tagConditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tagConditions_); } } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder addTagConditionsBuilder() { return getTagConditionsFieldBuilder() .addBuilder( com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition .getDefaultInstance()); } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder addTagConditionsBuilder(int index) { return getTagConditionsFieldBuilder() .addBuilder( index, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition .getDefaultInstance()); } /** * * *
       * The tags to associate with different conditions.
       * 
* * * repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; * */ public java.util.List< com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder> getTagConditionsBuilderList() { return getTagConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder> getTagConditionsFieldBuilder() { if (tagConditionsBuilder_ == null) { tagConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition.Builder, com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder>( tagConditions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tagConditions_ = null; } return tagConditionsBuilder_; } private java.util.List profileGenerationsToTag_ = java.util.Collections.emptyList(); private void ensureProfileGenerationsToTagIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { profileGenerationsToTag_ = new java.util.ArrayList(profileGenerationsToTag_); bitField0_ |= 0x00000002; } } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return A list containing the profileGenerationsToTag. */ public java.util.List getProfileGenerationsToTagList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.privacy.dlp.v2.ProfileGeneration>( profileGenerationsToTag_, profileGenerationsToTag_converter_); } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return The count of profileGenerationsToTag. */ public int getProfileGenerationsToTagCount() { return profileGenerationsToTag_.size(); } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param index The index of the element to return. * @return The profileGenerationsToTag at the given index. */ public com.google.privacy.dlp.v2.ProfileGeneration getProfileGenerationsToTag(int index) { return profileGenerationsToTag_converter_.convert(profileGenerationsToTag_.get(index)); } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param index The index to set the value at. * @param value The profileGenerationsToTag to set. * @return This builder for chaining. */ public Builder setProfileGenerationsToTag( int index, com.google.privacy.dlp.v2.ProfileGeneration value) { if (value == null) { throw new NullPointerException(); } ensureProfileGenerationsToTagIsMutable(); profileGenerationsToTag_.set(index, value.getNumber()); onChanged(); return this; } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param value The profileGenerationsToTag to add. * @return This builder for chaining. */ public Builder addProfileGenerationsToTag(com.google.privacy.dlp.v2.ProfileGeneration value) { if (value == null) { throw new NullPointerException(); } ensureProfileGenerationsToTagIsMutable(); profileGenerationsToTag_.add(value.getNumber()); onChanged(); return this; } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param values The profileGenerationsToTag to add. * @return This builder for chaining. */ public Builder addAllProfileGenerationsToTag( java.lang.Iterable values) { ensureProfileGenerationsToTagIsMutable(); for (com.google.privacy.dlp.v2.ProfileGeneration value : values) { profileGenerationsToTag_.add(value.getNumber()); } onChanged(); return this; } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return This builder for chaining. */ public Builder clearProfileGenerationsToTag() { profileGenerationsToTag_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @return A list containing the enum numeric values on the wire for profileGenerationsToTag. */ public java.util.List getProfileGenerationsToTagValueList() { return java.util.Collections.unmodifiableList(profileGenerationsToTag_); } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of profileGenerationsToTag at the given index. */ public int getProfileGenerationsToTagValue(int index) { return profileGenerationsToTag_.get(index); } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param index The index to set the value at. * @param value The enum numeric value on the wire for profileGenerationsToTag to set. * @return This builder for chaining. */ public Builder setProfileGenerationsToTagValue(int index, int value) { ensureProfileGenerationsToTagIsMutable(); profileGenerationsToTag_.set(index, value); onChanged(); return this; } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param value The enum numeric value on the wire for profileGenerationsToTag to add. * @return This builder for chaining. */ public Builder addProfileGenerationsToTagValue(int value) { ensureProfileGenerationsToTagIsMutable(); profileGenerationsToTag_.add(value); onChanged(); return this; } /** * * *
       * The profile generations for which the tag should be attached to
       * resources. If you attach a tag to only new profiles, then if the
       * sensitivity score of a profile subsequently changes, its tag doesn't
       * change. By default, this field includes only new profiles. To include
       * both new and updated profiles for tagging, this field should explicitly
       * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
       * 
* * repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; * * * @param values The enum numeric values on the wire for profileGenerationsToTag to add. * @return This builder for chaining. */ public Builder addAllProfileGenerationsToTagValue( java.lang.Iterable values) { ensureProfileGenerationsToTagIsMutable(); for (int value : values) { profileGenerationsToTag_.add(value); } onChanged(); return this; } private boolean lowerDataRiskToLow_; /** * * *
       * Whether applying a tag to a resource should lower the risk of the profile
       * for that resource. For example, in conjunction with an [IAM deny
       * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny
       * all principals a permission if a tag value is present, mitigating the
       * risk of the resource. This also lowers the data risk of resources at the
       * lower levels of the resource hierarchy. For example, reducing the data
       * risk of a table data profile also reduces the data risk of the
       * constituent column data profiles.
       * 
* * bool lower_data_risk_to_low = 3; * * @return The lowerDataRiskToLow. */ @java.lang.Override public boolean getLowerDataRiskToLow() { return lowerDataRiskToLow_; } /** * * *
       * Whether applying a tag to a resource should lower the risk of the profile
       * for that resource. For example, in conjunction with an [IAM deny
       * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny
       * all principals a permission if a tag value is present, mitigating the
       * risk of the resource. This also lowers the data risk of resources at the
       * lower levels of the resource hierarchy. For example, reducing the data
       * risk of a table data profile also reduces the data risk of the
       * constituent column data profiles.
       * 
* * bool lower_data_risk_to_low = 3; * * @param value The lowerDataRiskToLow to set. * @return This builder for chaining. */ public Builder setLowerDataRiskToLow(boolean value) { lowerDataRiskToLow_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Whether applying a tag to a resource should lower the risk of the profile
       * for that resource. For example, in conjunction with an [IAM deny
       * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny
       * all principals a permission if a tag value is present, mitigating the
       * risk of the resource. This also lowers the data risk of resources at the
       * lower levels of the resource hierarchy. For example, reducing the data
       * risk of a table data profile also reduces the data risk of the
       * constituent column data profiles.
       * 
* * bool lower_data_risk_to_low = 3; * * @return This builder for chaining. */ public Builder clearLowerDataRiskToLow() { bitField0_ = (bitField0_ & ~0x00000004); lowerDataRiskToLow_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileAction.TagResources) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction.TagResources) private static final com.google.privacy.dlp.v2.DataProfileAction.TagResources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction.TagResources(); } public static com.google.privacy.dlp.v2.DataProfileAction.TagResources getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TagResources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int actionCase_ = 0; @SuppressWarnings("serial") private java.lang.Object action_; public enum ActionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPORT_DATA(1), PUB_SUB_NOTIFICATION(2), PUBLISH_TO_CHRONICLE(3), PUBLISH_TO_SCC(4), TAG_RESOURCES(8), ACTION_NOT_SET(0); private final int value; private ActionCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ActionCase valueOf(int value) { return forNumber(value); } public static ActionCase forNumber(int value) { switch (value) { case 1: return EXPORT_DATA; case 2: return PUB_SUB_NOTIFICATION; case 3: return PUBLISH_TO_CHRONICLE; case 4: return PUBLISH_TO_SCC; case 8: return TAG_RESOURCES; case 0: return ACTION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ActionCase getActionCase() { return ActionCase.forNumber(actionCase_); } public static final int EXPORT_DATA_FIELD_NUMBER = 1; /** * * *
   * Export data profiles into a provided location.
   * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; * * @return Whether the exportData field is set. */ @java.lang.Override public boolean hasExportData() { return actionCase_ == 1; } /** * * *
   * Export data profiles into a provided location.
   * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; * * @return The exportData. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.Export getExportData() { if (actionCase_ == 1) { return (com.google.privacy.dlp.v2.DataProfileAction.Export) action_; } return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance(); } /** * * *
   * Export data profiles into a provided location.
   * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder getExportDataOrBuilder() { if (actionCase_ == 1) { return (com.google.privacy.dlp.v2.DataProfileAction.Export) action_; } return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance(); } public static final int PUB_SUB_NOTIFICATION_FIELD_NUMBER = 2; /** * * *
   * Publish a message into the Pub/Sub topic.
   * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * * * @return Whether the pubSubNotification field is set. */ @java.lang.Override public boolean hasPubSubNotification() { return actionCase_ == 2; } /** * * *
   * Publish a message into the Pub/Sub topic.
   * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * * * @return The pubSubNotification. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification getPubSubNotification() { if (actionCase_ == 2) { return (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance(); } /** * * *
   * Publish a message into the Pub/Sub topic.
   * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder getPubSubNotificationOrBuilder() { if (actionCase_ == 2) { return (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance(); } public static final int PUBLISH_TO_CHRONICLE_FIELD_NUMBER = 3; /** * * *
   * Publishes generated data profiles to Google Security Operations.
   * For more information, see [Use Sensitive Data Protection data in
   * context-aware
   * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
   * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * * * @return Whether the publishToChronicle field is set. */ @java.lang.Override public boolean hasPublishToChronicle() { return actionCase_ == 3; } /** * * *
   * Publishes generated data profiles to Google Security Operations.
   * For more information, see [Use Sensitive Data Protection data in
   * context-aware
   * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
   * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * * * @return The publishToChronicle. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle getPublishToChronicle() { if (actionCase_ == 3) { return (com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.getDefaultInstance(); } /** * * *
   * Publishes generated data profiles to Google Security Operations.
   * For more information, see [Use Sensitive Data Protection data in
   * context-aware
   * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
   * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleOrBuilder getPublishToChronicleOrBuilder() { if (actionCase_ == 3) { return (com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.getDefaultInstance(); } public static final int PUBLISH_TO_SCC_FIELD_NUMBER = 4; /** * * *
   * Publishes findings to SCC for each data profile.
   * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * * * @return Whether the publishToScc field is set. */ @java.lang.Override public boolean hasPublishToScc() { return actionCase_ == 4; } /** * * *
   * Publishes findings to SCC for each data profile.
   * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * * * @return The publishToScc. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter getPublishToScc() { if (actionCase_ == 4) { return (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter .getDefaultInstance(); } /** * * *
   * Publishes findings to SCC for each data profile.
   * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterOrBuilder getPublishToSccOrBuilder() { if (actionCase_ == 4) { return (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter .getDefaultInstance(); } public static final int TAG_RESOURCES_FIELD_NUMBER = 8; /** * * *
   * Tags the profiled resources with the specified tag values.
   * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; * * @return Whether the tagResources field is set. */ @java.lang.Override public boolean hasTagResources() { return actionCase_ == 8; } /** * * *
   * Tags the profiled resources with the specified tag values.
   * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; * * @return The tagResources. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources getTagResources() { if (actionCase_ == 8) { return (com.google.privacy.dlp.v2.DataProfileAction.TagResources) action_; } return com.google.privacy.dlp.v2.DataProfileAction.TagResources.getDefaultInstance(); } /** * * *
   * Tags the profiled resources with the specified tag values.
   * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResourcesOrBuilder getTagResourcesOrBuilder() { if (actionCase_ == 8) { return (com.google.privacy.dlp.v2.DataProfileAction.TagResources) action_; } return com.google.privacy.dlp.v2.DataProfileAction.TagResources.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (actionCase_ == 1) { output.writeMessage(1, (com.google.privacy.dlp.v2.DataProfileAction.Export) action_); } if (actionCase_ == 2) { output.writeMessage( 2, (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_); } if (actionCase_ == 3) { output.writeMessage( 3, (com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) action_); } if (actionCase_ == 4) { output.writeMessage( 4, (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) action_); } if (actionCase_ == 8) { output.writeMessage(8, (com.google.privacy.dlp.v2.DataProfileAction.TagResources) action_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (actionCase_ == 1) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.privacy.dlp.v2.DataProfileAction.Export) action_); } if (actionCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_); } if (actionCase_ == 3) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) action_); } if (actionCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) action_); } if (actionCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, (com.google.privacy.dlp.v2.DataProfileAction.TagResources) action_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.privacy.dlp.v2.DataProfileAction)) { return super.equals(obj); } com.google.privacy.dlp.v2.DataProfileAction other = (com.google.privacy.dlp.v2.DataProfileAction) obj; if (!getActionCase().equals(other.getActionCase())) return false; switch (actionCase_) { case 1: if (!getExportData().equals(other.getExportData())) return false; break; case 2: if (!getPubSubNotification().equals(other.getPubSubNotification())) return false; break; case 3: if (!getPublishToChronicle().equals(other.getPublishToChronicle())) return false; break; case 4: if (!getPublishToScc().equals(other.getPublishToScc())) return false; break; case 8: if (!getTagResources().equals(other.getTagResources())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (actionCase_) { case 1: hash = (37 * hash) + EXPORT_DATA_FIELD_NUMBER; hash = (53 * hash) + getExportData().hashCode(); break; case 2: hash = (37 * hash) + PUB_SUB_NOTIFICATION_FIELD_NUMBER; hash = (53 * hash) + getPubSubNotification().hashCode(); break; case 3: hash = (37 * hash) + PUBLISH_TO_CHRONICLE_FIELD_NUMBER; hash = (53 * hash) + getPublishToChronicle().hashCode(); break; case 4: hash = (37 * hash) + PUBLISH_TO_SCC_FIELD_NUMBER; hash = (53 * hash) + getPublishToScc().hashCode(); break; case 8: hash = (37 * hash) + TAG_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getTagResources().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DataProfileAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.privacy.dlp.v2.DataProfileAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * A task to execute when a data profile has been generated.
   * 
* * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DataProfileAction) com.google.privacy.dlp.v2.DataProfileActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DataProfileAction.class, com.google.privacy.dlp.v2.DataProfileAction.Builder.class); } // Construct using com.google.privacy.dlp.v2.DataProfileAction.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (exportDataBuilder_ != null) { exportDataBuilder_.clear(); } if (pubSubNotificationBuilder_ != null) { pubSubNotificationBuilder_.clear(); } if (publishToChronicleBuilder_ != null) { publishToChronicleBuilder_.clear(); } if (publishToSccBuilder_ != null) { publishToSccBuilder_.clear(); } if (tagResourcesBuilder_ != null) { tagResourcesBuilder_.clear(); } actionCase_ = 0; action_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DataProfileAction.getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction build() { com.google.privacy.dlp.v2.DataProfileAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction buildPartial() { com.google.privacy.dlp.v2.DataProfileAction result = new com.google.privacy.dlp.v2.DataProfileAction(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.privacy.dlp.v2.DataProfileAction result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.google.privacy.dlp.v2.DataProfileAction result) { result.actionCase_ = actionCase_; result.action_ = this.action_; if (actionCase_ == 1 && exportDataBuilder_ != null) { result.action_ = exportDataBuilder_.build(); } if (actionCase_ == 2 && pubSubNotificationBuilder_ != null) { result.action_ = pubSubNotificationBuilder_.build(); } if (actionCase_ == 3 && publishToChronicleBuilder_ != null) { result.action_ = publishToChronicleBuilder_.build(); } if (actionCase_ == 4 && publishToSccBuilder_ != null) { result.action_ = publishToSccBuilder_.build(); } if (actionCase_ == 8 && tagResourcesBuilder_ != null) { result.action_ = tagResourcesBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DataProfileAction) { return mergeFrom((com.google.privacy.dlp.v2.DataProfileAction) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.privacy.dlp.v2.DataProfileAction other) { if (other == com.google.privacy.dlp.v2.DataProfileAction.getDefaultInstance()) return this; switch (other.getActionCase()) { case EXPORT_DATA: { mergeExportData(other.getExportData()); break; } case PUB_SUB_NOTIFICATION: { mergePubSubNotification(other.getPubSubNotification()); break; } case PUBLISH_TO_CHRONICLE: { mergePublishToChronicle(other.getPublishToChronicle()); break; } case PUBLISH_TO_SCC: { mergePublishToScc(other.getPublishToScc()); break; } case TAG_RESOURCES: { mergeTagResources(other.getTagResources()); break; } case ACTION_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getExportDataFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 1; break; } // case 10 case 18: { input.readMessage( getPubSubNotificationFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 2; break; } // case 18 case 26: { input.readMessage( getPublishToChronicleFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 3; break; } // case 26 case 34: { input.readMessage(getPublishToSccFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 4; break; } // case 34 case 66: { input.readMessage(getTagResourcesFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 8; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int actionCase_ = 0; private java.lang.Object action_; public ActionCase getActionCase() { return ActionCase.forNumber(actionCase_); } public Builder clearAction() { actionCase_ = 0; action_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.Export, com.google.privacy.dlp.v2.DataProfileAction.Export.Builder, com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder> exportDataBuilder_; /** * * *
     * Export data profiles into a provided location.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; * * @return Whether the exportData field is set. */ @java.lang.Override public boolean hasExportData() { return actionCase_ == 1; } /** * * *
     * Export data profiles into a provided location.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; * * @return The exportData. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.Export getExportData() { if (exportDataBuilder_ == null) { if (actionCase_ == 1) { return (com.google.privacy.dlp.v2.DataProfileAction.Export) action_; } return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance(); } else { if (actionCase_ == 1) { return exportDataBuilder_.getMessage(); } return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance(); } } /** * * *
     * Export data profiles into a provided location.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; */ public Builder setExportData(com.google.privacy.dlp.v2.DataProfileAction.Export value) { if (exportDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { exportDataBuilder_.setMessage(value); } actionCase_ = 1; return this; } /** * * *
     * Export data profiles into a provided location.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; */ public Builder setExportData( com.google.privacy.dlp.v2.DataProfileAction.Export.Builder builderForValue) { if (exportDataBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { exportDataBuilder_.setMessage(builderForValue.build()); } actionCase_ = 1; return this; } /** * * *
     * Export data profiles into a provided location.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; */ public Builder mergeExportData(com.google.privacy.dlp.v2.DataProfileAction.Export value) { if (exportDataBuilder_ == null) { if (actionCase_ == 1 && action_ != com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance()) { action_ = com.google.privacy.dlp.v2.DataProfileAction.Export.newBuilder( (com.google.privacy.dlp.v2.DataProfileAction.Export) action_) .mergeFrom(value) .buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 1) { exportDataBuilder_.mergeFrom(value); } else { exportDataBuilder_.setMessage(value); } } actionCase_ = 1; return this; } /** * * *
     * Export data profiles into a provided location.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; */ public Builder clearExportData() { if (exportDataBuilder_ == null) { if (actionCase_ == 1) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 1) { actionCase_ = 0; action_ = null; } exportDataBuilder_.clear(); } return this; } /** * * *
     * Export data profiles into a provided location.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; */ public com.google.privacy.dlp.v2.DataProfileAction.Export.Builder getExportDataBuilder() { return getExportDataFieldBuilder().getBuilder(); } /** * * *
     * Export data profiles into a provided location.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder getExportDataOrBuilder() { if ((actionCase_ == 1) && (exportDataBuilder_ != null)) { return exportDataBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 1) { return (com.google.privacy.dlp.v2.DataProfileAction.Export) action_; } return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance(); } } /** * * *
     * Export data profiles into a provided location.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.Export, com.google.privacy.dlp.v2.DataProfileAction.Export.Builder, com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder> getExportDataFieldBuilder() { if (exportDataBuilder_ == null) { if (!(actionCase_ == 1)) { action_ = com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance(); } exportDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.Export, com.google.privacy.dlp.v2.DataProfileAction.Export.Builder, com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder>( (com.google.privacy.dlp.v2.DataProfileAction.Export) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 1; onChanged(); return exportDataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification, com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder, com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder> pubSubNotificationBuilder_; /** * * *
     * Publish a message into the Pub/Sub topic.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * * * @return Whether the pubSubNotification field is set. */ @java.lang.Override public boolean hasPubSubNotification() { return actionCase_ == 2; } /** * * *
     * Publish a message into the Pub/Sub topic.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * * * @return The pubSubNotification. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification getPubSubNotification() { if (pubSubNotificationBuilder_ == null) { if (actionCase_ == 2) { return (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance(); } else { if (actionCase_ == 2) { return pubSubNotificationBuilder_.getMessage(); } return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance(); } } /** * * *
     * Publish a message into the Pub/Sub topic.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * */ public Builder setPubSubNotification( com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification value) { if (pubSubNotificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { pubSubNotificationBuilder_.setMessage(value); } actionCase_ = 2; return this; } /** * * *
     * Publish a message into the Pub/Sub topic.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * */ public Builder setPubSubNotification( com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder builderForValue) { if (pubSubNotificationBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { pubSubNotificationBuilder_.setMessage(builderForValue.build()); } actionCase_ = 2; return this; } /** * * *
     * Publish a message into the Pub/Sub topic.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * */ public Builder mergePubSubNotification( com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification value) { if (pubSubNotificationBuilder_ == null) { if (actionCase_ == 2 && action_ != com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification .getDefaultInstance()) { action_ = com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.newBuilder( (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_) .mergeFrom(value) .buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 2) { pubSubNotificationBuilder_.mergeFrom(value); } else { pubSubNotificationBuilder_.setMessage(value); } } actionCase_ = 2; return this; } /** * * *
     * Publish a message into the Pub/Sub topic.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * */ public Builder clearPubSubNotification() { if (pubSubNotificationBuilder_ == null) { if (actionCase_ == 2) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 2) { actionCase_ = 0; action_ = null; } pubSubNotificationBuilder_.clear(); } return this; } /** * * *
     * Publish a message into the Pub/Sub topic.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * */ public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder getPubSubNotificationBuilder() { return getPubSubNotificationFieldBuilder().getBuilder(); } /** * * *
     * Publish a message into the Pub/Sub topic.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder getPubSubNotificationOrBuilder() { if ((actionCase_ == 2) && (pubSubNotificationBuilder_ != null)) { return pubSubNotificationBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 2) { return (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance(); } } /** * * *
     * Publish a message into the Pub/Sub topic.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification, com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder, com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder> getPubSubNotificationFieldBuilder() { if (pubSubNotificationBuilder_ == null) { if (!(actionCase_ == 2)) { action_ = com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance(); } pubSubNotificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification, com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder, com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder>( (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 2; onChanged(); return pubSubNotificationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle, com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.Builder, com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleOrBuilder> publishToChronicleBuilder_; /** * * *
     * Publishes generated data profiles to Google Security Operations.
     * For more information, see [Use Sensitive Data Protection data in
     * context-aware
     * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * * * @return Whether the publishToChronicle field is set. */ @java.lang.Override public boolean hasPublishToChronicle() { return actionCase_ == 3; } /** * * *
     * Publishes generated data profiles to Google Security Operations.
     * For more information, see [Use Sensitive Data Protection data in
     * context-aware
     * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * * * @return The publishToChronicle. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle getPublishToChronicle() { if (publishToChronicleBuilder_ == null) { if (actionCase_ == 3) { return (com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.getDefaultInstance(); } else { if (actionCase_ == 3) { return publishToChronicleBuilder_.getMessage(); } return com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.getDefaultInstance(); } } /** * * *
     * Publishes generated data profiles to Google Security Operations.
     * For more information, see [Use Sensitive Data Protection data in
     * context-aware
     * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * */ public Builder setPublishToChronicle( com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle value) { if (publishToChronicleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { publishToChronicleBuilder_.setMessage(value); } actionCase_ = 3; return this; } /** * * *
     * Publishes generated data profiles to Google Security Operations.
     * For more information, see [Use Sensitive Data Protection data in
     * context-aware
     * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * */ public Builder setPublishToChronicle( com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.Builder builderForValue) { if (publishToChronicleBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { publishToChronicleBuilder_.setMessage(builderForValue.build()); } actionCase_ = 3; return this; } /** * * *
     * Publishes generated data profiles to Google Security Operations.
     * For more information, see [Use Sensitive Data Protection data in
     * context-aware
     * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * */ public Builder mergePublishToChronicle( com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle value) { if (publishToChronicleBuilder_ == null) { if (actionCase_ == 3 && action_ != com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle .getDefaultInstance()) { action_ = com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.newBuilder( (com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) action_) .mergeFrom(value) .buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 3) { publishToChronicleBuilder_.mergeFrom(value); } else { publishToChronicleBuilder_.setMessage(value); } } actionCase_ = 3; return this; } /** * * *
     * Publishes generated data profiles to Google Security Operations.
     * For more information, see [Use Sensitive Data Protection data in
     * context-aware
     * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * */ public Builder clearPublishToChronicle() { if (publishToChronicleBuilder_ == null) { if (actionCase_ == 3) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 3) { actionCase_ = 0; action_ = null; } publishToChronicleBuilder_.clear(); } return this; } /** * * *
     * Publishes generated data profiles to Google Security Operations.
     * For more information, see [Use Sensitive Data Protection data in
     * context-aware
     * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * */ public com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.Builder getPublishToChronicleBuilder() { return getPublishToChronicleFieldBuilder().getBuilder(); } /** * * *
     * Publishes generated data profiles to Google Security Operations.
     * For more information, see [Use Sensitive Data Protection data in
     * context-aware
     * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleOrBuilder getPublishToChronicleOrBuilder() { if ((actionCase_ == 3) && (publishToChronicleBuilder_ != null)) { return publishToChronicleBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 3) { return (com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.getDefaultInstance(); } } /** * * *
     * Publishes generated data profiles to Google Security Operations.
     * For more information, see [Use Sensitive Data Protection data in
     * context-aware
     * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
     * 
* * .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle, com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.Builder, com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleOrBuilder> getPublishToChronicleFieldBuilder() { if (publishToChronicleBuilder_ == null) { if (!(actionCase_ == 3)) { action_ = com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.getDefaultInstance(); } publishToChronicleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle, com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle.Builder, com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleOrBuilder>( (com.google.privacy.dlp.v2.DataProfileAction.PublishToChronicle) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 3; onChanged(); return publishToChronicleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter, com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.Builder, com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterOrBuilder> publishToSccBuilder_; /** * * *
     * Publishes findings to SCC for each data profile.
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * * * @return Whether the publishToScc field is set. */ @java.lang.Override public boolean hasPublishToScc() { return actionCase_ == 4; } /** * * *
     * Publishes findings to SCC for each data profile.
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * * * @return The publishToScc. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter getPublishToScc() { if (publishToSccBuilder_ == null) { if (actionCase_ == 4) { return (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter .getDefaultInstance(); } else { if (actionCase_ == 4) { return publishToSccBuilder_.getMessage(); } return com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter .getDefaultInstance(); } } /** * * *
     * Publishes findings to SCC for each data profile.
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * */ public Builder setPublishToScc( com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter value) { if (publishToSccBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { publishToSccBuilder_.setMessage(value); } actionCase_ = 4; return this; } /** * * *
     * Publishes findings to SCC for each data profile.
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * */ public Builder setPublishToScc( com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.Builder builderForValue) { if (publishToSccBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { publishToSccBuilder_.setMessage(builderForValue.build()); } actionCase_ = 4; return this; } /** * * *
     * Publishes findings to SCC for each data profile.
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * */ public Builder mergePublishToScc( com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter value) { if (publishToSccBuilder_ == null) { if (actionCase_ == 4 && action_ != com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter .getDefaultInstance()) { action_ = com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.newBuilder( (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) action_) .mergeFrom(value) .buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 4) { publishToSccBuilder_.mergeFrom(value); } else { publishToSccBuilder_.setMessage(value); } } actionCase_ = 4; return this; } /** * * *
     * Publishes findings to SCC for each data profile.
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * */ public Builder clearPublishToScc() { if (publishToSccBuilder_ == null) { if (actionCase_ == 4) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 4) { actionCase_ = 0; action_ = null; } publishToSccBuilder_.clear(); } return this; } /** * * *
     * Publishes findings to SCC for each data profile.
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * */ public com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.Builder getPublishToSccBuilder() { return getPublishToSccFieldBuilder().getBuilder(); } /** * * *
     * Publishes findings to SCC for each data profile.
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterOrBuilder getPublishToSccOrBuilder() { if ((actionCase_ == 4) && (publishToSccBuilder_ != null)) { return publishToSccBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 4) { return (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) action_; } return com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter .getDefaultInstance(); } } /** * * *
     * Publishes findings to SCC for each data profile.
     * 
* * * .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter, com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.Builder, com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterOrBuilder> getPublishToSccFieldBuilder() { if (publishToSccBuilder_ == null) { if (!(actionCase_ == 4)) { action_ = com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter .getDefaultInstance(); } publishToSccBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter, com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.Builder, com.google.privacy.dlp.v2.DataProfileAction .PublishToSecurityCommandCenterOrBuilder>( (com.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 4; onChanged(); return publishToSccBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.TagResources, com.google.privacy.dlp.v2.DataProfileAction.TagResources.Builder, com.google.privacy.dlp.v2.DataProfileAction.TagResourcesOrBuilder> tagResourcesBuilder_; /** * * *
     * Tags the profiled resources with the specified tag values.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; * * @return Whether the tagResources field is set. */ @java.lang.Override public boolean hasTagResources() { return actionCase_ == 8; } /** * * *
     * Tags the profiled resources with the specified tag values.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; * * @return The tagResources. */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResources getTagResources() { if (tagResourcesBuilder_ == null) { if (actionCase_ == 8) { return (com.google.privacy.dlp.v2.DataProfileAction.TagResources) action_; } return com.google.privacy.dlp.v2.DataProfileAction.TagResources.getDefaultInstance(); } else { if (actionCase_ == 8) { return tagResourcesBuilder_.getMessage(); } return com.google.privacy.dlp.v2.DataProfileAction.TagResources.getDefaultInstance(); } } /** * * *
     * Tags the profiled resources with the specified tag values.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; */ public Builder setTagResources(com.google.privacy.dlp.v2.DataProfileAction.TagResources value) { if (tagResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { tagResourcesBuilder_.setMessage(value); } actionCase_ = 8; return this; } /** * * *
     * Tags the profiled resources with the specified tag values.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; */ public Builder setTagResources( com.google.privacy.dlp.v2.DataProfileAction.TagResources.Builder builderForValue) { if (tagResourcesBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { tagResourcesBuilder_.setMessage(builderForValue.build()); } actionCase_ = 8; return this; } /** * * *
     * Tags the profiled resources with the specified tag values.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; */ public Builder mergeTagResources( com.google.privacy.dlp.v2.DataProfileAction.TagResources value) { if (tagResourcesBuilder_ == null) { if (actionCase_ == 8 && action_ != com.google.privacy.dlp.v2.DataProfileAction.TagResources.getDefaultInstance()) { action_ = com.google.privacy.dlp.v2.DataProfileAction.TagResources.newBuilder( (com.google.privacy.dlp.v2.DataProfileAction.TagResources) action_) .mergeFrom(value) .buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 8) { tagResourcesBuilder_.mergeFrom(value); } else { tagResourcesBuilder_.setMessage(value); } } actionCase_ = 8; return this; } /** * * *
     * Tags the profiled resources with the specified tag values.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; */ public Builder clearTagResources() { if (tagResourcesBuilder_ == null) { if (actionCase_ == 8) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 8) { actionCase_ = 0; action_ = null; } tagResourcesBuilder_.clear(); } return this; } /** * * *
     * Tags the profiled resources with the specified tag values.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; */ public com.google.privacy.dlp.v2.DataProfileAction.TagResources.Builder getTagResourcesBuilder() { return getTagResourcesFieldBuilder().getBuilder(); } /** * * *
     * Tags the profiled resources with the specified tag values.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; */ @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction.TagResourcesOrBuilder getTagResourcesOrBuilder() { if ((actionCase_ == 8) && (tagResourcesBuilder_ != null)) { return tagResourcesBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 8) { return (com.google.privacy.dlp.v2.DataProfileAction.TagResources) action_; } return com.google.privacy.dlp.v2.DataProfileAction.TagResources.getDefaultInstance(); } } /** * * *
     * Tags the profiled resources with the specified tag values.
     * 
* * .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.TagResources, com.google.privacy.dlp.v2.DataProfileAction.TagResources.Builder, com.google.privacy.dlp.v2.DataProfileAction.TagResourcesOrBuilder> getTagResourcesFieldBuilder() { if (tagResourcesBuilder_ == null) { if (!(actionCase_ == 8)) { action_ = com.google.privacy.dlp.v2.DataProfileAction.TagResources.getDefaultInstance(); } tagResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileAction.TagResources, com.google.privacy.dlp.v2.DataProfileAction.TagResources.Builder, com.google.privacy.dlp.v2.DataProfileAction.TagResourcesOrBuilder>( (com.google.privacy.dlp.v2.DataProfileAction.TagResources) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 8; onChanged(); return tagResourcesBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileAction) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction) private static final com.google.privacy.dlp.v2.DataProfileAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction(); } public static com.google.privacy.dlp.v2.DataProfileAction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataProfileAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DataProfileAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy