Class Action.PublishToPubSub.Builder (3.87.0)

public static final class Action.PublishToPubSub.Builder extends GeneratedMessage.Builder<Action.PublishToPubSub.Builder> implements Action.PublishToPubSubOrBuilder

Publish a message into a given Pub/Sub topic when DlpJob has completed. The message contains a single field, DlpJobName, which is equal to the finished job's DlpJob.name. Compatible with: Inspect, Risk

Protobuf type google.privacy.dlp.v2.Action.PublishToPubSub

Static Methods

getDescriptor()

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

Methods

build()

public Action.PublishToPubSub build()
Returns
Type Description
Action.PublishToPubSub

buildPartial()

public Action.PublishToPubSub buildPartial()
Returns
Type Description
Action.PublishToPubSub

clear()

public Action.PublishToPubSub.Builder clear()
Returns
Type Description
Action.PublishToPubSub.Builder
Overrides

clearTopic()

public Action.PublishToPubSub.Builder clearTopic()

Cloud Pub/Sub topic to send notifications to. The topic must have given publishing access rights to the DLP API service account executing the long running DlpJob sending the notifications. Format is projects/{project}/topics/{topic}.

string topic = 1;

Returns
Type Description
Action.PublishToPubSub.Builder

This builder for chaining.

getDefaultInstanceForType()

public Action.PublishToPubSub getDefaultInstanceForType()
Returns
Type Description
Action.PublishToPubSub

getDescriptorForType()

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

getTopic()

public String getTopic()

Cloud Pub/Sub topic to send notifications to. The topic must have given publishing access rights to the DLP API service account executing the long running DlpJob sending the notifications. 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. The topic must have given publishing access rights to the DLP API service account executing the long running DlpJob sending the notifications. Format is projects/{project}/topics/{topic}.

string topic = 1;

Returns
Type Description
ByteString

The bytes for topic.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Action.PublishToPubSub other)

public Action.PublishToPubSub.Builder mergeFrom(Action.PublishToPubSub other)
Parameter
Name Description
other Action.PublishToPubSub
Returns
Type Description
Action.PublishToPubSub.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Action.PublishToPubSub.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Action.PublishToPubSub.Builder
Overrides

setTopic(String value)

public Action.PublishToPubSub.Builder setTopic(String value)

Cloud Pub/Sub topic to send notifications to. The topic must have given publishing access rights to the DLP API service account executing the long running DlpJob sending the notifications. Format is projects/{project}/topics/{topic}.

string topic = 1;

Parameter
Name Description
value String

The topic to set.

Returns
Type Description
Action.PublishToPubSub.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public Action.PublishToPubSub.Builder setTopicBytes(ByteString value)

Cloud Pub/Sub topic to send notifications to. The topic must have given publishing access rights to the DLP API service account executing the long running DlpJob sending the notifications. Format is projects/{project}/topics/{topic}.

string topic = 1;

Parameter
Name Description
value ByteString

The bytes for topic to set.

Returns
Type Description
Action.PublishToPubSub.Builder

This builder for chaining.