Class DataProfileAction.PubSubNotification.Builder (3.53.0)

public static final class DataProfileAction.PubSubNotification.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataProfileAction.PubSubNotification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides

build()

public DataProfileAction.PubSubNotification build()
Returns
Type Description
DataProfileAction.PubSubNotification

buildPartial()

public DataProfileAction.PubSubNotification buildPartial()
Returns
Type Description
DataProfileAction.PubSubNotification

clear()

public DataProfileAction.PubSubNotification.Builder clear()
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides

clearDetailOfMessage()

public DataProfileAction.PubSubNotification.Builder 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
Type Description
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

clearEvent()

public DataProfileAction.PubSubNotification.Builder 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
Type Description
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataProfileAction.PubSubNotification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataProfileAction.PubSubNotification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides

clearPubsubCondition()

public DataProfileAction.PubSubNotification.Builder clearPubsubCondition()

Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.

.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;

Returns
Type Description
DataProfileAction.PubSubNotification.Builder

clearTopic()

public DataProfileAction.PubSubNotification.Builder clearTopic()

Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.

string topic = 1;

Returns
Type Description
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

clone()

public DataProfileAction.PubSubNotification.Builder clone()
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides

getDefaultInstanceForType()

public DataProfileAction.PubSubNotification getDefaultInstanceForType()
Returns
Type Description
DataProfileAction.PubSubNotification

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDetailOfMessage()

public DataProfileAction.PubSubNotification.DetailLevel 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;

Returns
Type Description
DataProfileAction.PubSubNotification.DetailLevel

The detailOfMessage.

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;

Returns
Type Description
int

The enum numeric value on the wire for detailOfMessage.

getEvent()

public DataProfileAction.EventType 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;

Returns
Type Description
DataProfileAction.EventType

The event.

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;

Returns
Type Description
int

The enum numeric value on the wire for event.

getPubsubCondition()

public DataProfilePubSubCondition getPubsubCondition()

Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.

.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;

Returns
Type Description
DataProfilePubSubCondition

The pubsubCondition.

getPubsubConditionBuilder()

public DataProfilePubSubCondition.Builder getPubsubConditionBuilder()

Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.

.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;

Returns
Type Description
DataProfilePubSubCondition.Builder

getPubsubConditionOrBuilder()

public DataProfilePubSubConditionOrBuilder getPubsubConditionOrBuilder()

Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.

.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;

Returns
Type Description
DataProfilePubSubConditionOrBuilder

getTopic()

public String getTopic()

Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.

string topic = 1;

Returns
Type Description
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.

string topic = 1;

Returns
Type Description
ByteString

The bytes for topic.

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;

Returns
Type Description
boolean

Whether the pubsubCondition field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataProfileAction.PubSubNotification other)

public DataProfileAction.PubSubNotification.Builder mergeFrom(DataProfileAction.PubSubNotification other)
Parameter
Name Description
other DataProfileAction.PubSubNotification
Returns
Type Description
DataProfileAction.PubSubNotification.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataProfileAction.PubSubNotification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataProfileAction.PubSubNotification.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides

mergePubsubCondition(DataProfilePubSubCondition value)

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;

Parameter
Name Description
value DataProfilePubSubCondition
Returns
Type Description
DataProfileAction.PubSubNotification.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataProfileAction.PubSubNotification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides

setDetailOfMessage(DataProfileAction.PubSubNotification.DetailLevel value)

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;

Parameter
Name Description
value DataProfileAction.PubSubNotification.DetailLevel

The detailOfMessage to set.

Returns
Type Description
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

setDetailOfMessageValue(int value)

public DataProfileAction.PubSubNotification.Builder setDetailOfMessageValue(int 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;

Parameter
Name Description
value int

The enum numeric value on the wire for detailOfMessage to set.

Returns
Type Description
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

setEvent(DataProfileAction.EventType value)

public DataProfileAction.PubSubNotification.Builder setEvent(DataProfileAction.EventType value)

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;

Parameter
Name Description
value DataProfileAction.EventType

The event to set.

Returns
Type Description
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

setEventValue(int value)

public DataProfileAction.PubSubNotification.Builder setEventValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for event to set.

Returns
Type Description
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataProfileAction.PubSubNotification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides

setPubsubCondition(DataProfilePubSubCondition value)

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;

Parameter
Name Description
value DataProfilePubSubCondition
Returns
Type Description
DataProfileAction.PubSubNotification.Builder

setPubsubCondition(DataProfilePubSubCondition.Builder builderForValue)

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;

Parameter
Name Description
builderForValue DataProfilePubSubCondition.Builder
Returns
Type Description
DataProfileAction.PubSubNotification.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataProfileAction.PubSubNotification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides

setTopic(String value)

public DataProfileAction.PubSubNotification.Builder setTopic(String value)

Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.

string topic = 1;

Parameter
Name Description
value String

The topic to set.

Returns
Type Description
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public DataProfileAction.PubSubNotification.Builder setTopicBytes(ByteString value)

Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.

string topic = 1;

Parameter
Name Description
value ByteString

The bytes for topic to set.

Returns
Type Description
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataProfileAction.PubSubNotification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataProfileAction.PubSubNotification.Builder
Overrides