Package com.google.privacy.dlp.v2
Class DataProfileAction.PubSubNotification.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataProfileAction.PubSubNotification.Builder>
com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder
- All Implemented Interfaces:
DataProfileAction.PubSubNotificationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataProfileAction.PubSubNotification
public static final class DataProfileAction.PubSubNotification.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataProfileAction.PubSubNotification.Builder>
implements DataProfileAction.PubSubNotificationOrBuilder
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
google.privacy.dlp.v2.DataProfileAction.PubSubNotification-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()How much data to include in the Pub/Sub message.The type of event that triggers a Pub/Sub.Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.Cloud Pub/Sub topic to send notifications to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorHow much data to include in the Pub/Sub message.intHow much data to include in the Pub/Sub message.getEvent()The type of event that triggers a Pub/Sub.intThe type of event that triggers a Pub/Sub.Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.getTopic()Cloud Pub/Sub topic to send notifications to.com.google.protobuf.ByteStringCloud Pub/Sub topic to send notifications to.booleanConditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.How much data to include in the Pub/Sub message.setDetailOfMessageValue(int value) How much data to include in the Pub/Sub message.The type of event that triggers a Pub/Sub.setEventValue(int value) The type of event that triggers a Pub/Sub.Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.setPubsubCondition(DataProfilePubSubCondition.Builder builderForValue) Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.Cloud Pub/Sub topic to send notifications to.setTopicBytes(com.google.protobuf.ByteString value) Cloud Pub/Sub topic to send notifications to.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataProfileAction.PubSubNotification.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataProfileAction.PubSubNotification.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DataProfileAction.PubSubNotification.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataProfileAction.PubSubNotification.Builder>
-
mergeFrom
public DataProfileAction.PubSubNotification.Builder mergeFrom(DataProfileAction.PubSubNotification other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataProfileAction.PubSubNotification.Builder>
-
mergeFrom
public DataProfileAction.PubSubNotification.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataProfileAction.PubSubNotification.Builder>- Throws:
IOException
-
getTopic
Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.string topic = 1;- Specified by:
getTopicin interfaceDataProfileAction.PubSubNotificationOrBuilder- Returns:
- The topic.
-
getTopicBytes
public com.google.protobuf.ByteString getTopicBytes()Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.string topic = 1;- Specified by:
getTopicBytesin interfaceDataProfileAction.PubSubNotificationOrBuilder- Returns:
- The bytes for topic.
-
setTopic
Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.string topic = 1;- Parameters:
value- The topic to set.- Returns:
- This builder for chaining.
-
clearTopic
Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.string topic = 1;- Returns:
- This builder for chaining.
-
setTopicBytes
public DataProfileAction.PubSubNotification.Builder setTopicBytes(com.google.protobuf.ByteString value) Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.string topic = 1;- Parameters:
value- The bytes for topic to set.- Returns:
- This builder for chaining.
-
getEventValue
public 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;- Specified by:
getEventValuein interfaceDataProfileAction.PubSubNotificationOrBuilder- Returns:
- The enum numeric value on the wire for event.
-
setEventValue
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;- Parameters:
value- The enum numeric value on the wire for event to set.- Returns:
- This builder for chaining.
-
getEvent
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;- Specified by:
getEventin interfaceDataProfileAction.PubSubNotificationOrBuilder- Returns:
- The event.
-
setEvent
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;- Parameters:
value- The event to set.- Returns:
- This builder for chaining.
-
clearEvent
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;- Returns:
- This builder for chaining.
-
hasPubsubCondition
public boolean hasPubsubCondition()Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;- Specified by:
hasPubsubConditionin interfaceDataProfileAction.PubSubNotificationOrBuilder- Returns:
- Whether the pubsubCondition field is set.
-
getPubsubCondition
Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;- Specified by:
getPubsubConditionin interfaceDataProfileAction.PubSubNotificationOrBuilder- Returns:
- The pubsubCondition.
-
setPubsubCondition
public DataProfileAction.PubSubNotification.Builder setPubsubCondition(DataProfilePubSubCondition value) Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; -
setPubsubCondition
public DataProfileAction.PubSubNotification.Builder setPubsubCondition(DataProfilePubSubCondition.Builder builderForValue) Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; -
mergePubsubCondition
public DataProfileAction.PubSubNotification.Builder mergePubsubCondition(DataProfilePubSubCondition value) Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; -
clearPubsubCondition
Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; -
getPubsubConditionBuilder
Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; -
getPubsubConditionOrBuilder
Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;- Specified by:
getPubsubConditionOrBuilderin interfaceDataProfileAction.PubSubNotificationOrBuilder
-
getDetailOfMessageValue
public 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;- Specified by:
getDetailOfMessageValuein interfaceDataProfileAction.PubSubNotificationOrBuilder- Returns:
- The enum numeric value on the wire for detailOfMessage.
-
setDetailOfMessageValue
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;- Parameters:
value- The enum numeric value on the wire for detailOfMessage to set.- Returns:
- This builder for chaining.
-
getDetailOfMessage
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;- Specified by:
getDetailOfMessagein interfaceDataProfileAction.PubSubNotificationOrBuilder- Returns:
- The detailOfMessage.
-
setDetailOfMessage
public DataProfileAction.PubSubNotification.Builder setDetailOfMessage(DataProfileAction.PubSubNotification.DetailLevel value) 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;- Parameters:
value- The detailOfMessage to set.- Returns:
- This builder for chaining.
-
clearDetailOfMessage
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;- Returns:
- This builder for chaining.
-