Class DataProfileAction.PubSubNotification.Builder (3.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataProfileAction.PubSubNotification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder
Overrides

build()

public DataProfileAction.PubSubNotification build()
Returns
TypeDescription
DataProfileAction.PubSubNotification

buildPartial()

public DataProfileAction.PubSubNotification buildPartial()
Returns
TypeDescription
DataProfileAction.PubSubNotification

clear()

public DataProfileAction.PubSubNotification.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataProfileAction.PubSubNotification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataProfileAction.PubSubNotification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

clone()

public DataProfileAction.PubSubNotification.Builder clone()
Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder
Overrides

getDefaultInstanceForType()

public DataProfileAction.PubSubNotification getDefaultInstanceForType()
Returns
TypeDescription
DataProfileAction.PubSubNotification

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DataProfilePubSubConditionOrBuilder

getTopic()

public String getTopic()

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

string topic = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the pubsubCondition field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataProfileAction.PubSubNotification other)

public DataProfileAction.PubSubNotification.Builder mergeFrom(DataProfileAction.PubSubNotification other)
Parameter
NameDescription
otherDataProfileAction.PubSubNotification
Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataProfileAction.PubSubNotification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DataProfileAction.PubSubNotification.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDataProfilePubSubCondition
Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataProfileAction.PubSubNotification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDataProfileAction.PubSubNotification.DetailLevel

The detailOfMessage to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueDataProfileAction.EventType

The event to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataProfileAction.PubSubNotification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDataProfilePubSubCondition
Returns
TypeDescription
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
NameDescription
builderForValueDataProfilePubSubCondition.Builder
Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder

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

public DataProfileAction.PubSubNotification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The topic to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for topic to set.

Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataProfileAction.PubSubNotification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataProfileAction.PubSubNotification.Builder
Overrides