Class Action.PublishToPubSub.Builder (3.49.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public Action.PublishToPubSub.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Action.PublishToPubSub.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Action.PublishToPubSub.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.PublishToPubSub.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.PublishToPubSub.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Action.PublishToPubSub.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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.

setUnknownFields(UnknownFieldSet unknownFields)

public final Action.PublishToPubSub.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.PublishToPubSub.Builder
Overrides