Class Action.PublishToPubSub.Builder (3.5.0)

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

Publish a message into 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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Action.PublishToPubSub build()
Returns
TypeDescription
Action.PublishToPubSub

buildPartial()

public Action.PublishToPubSub buildPartial()
Returns
TypeDescription
Action.PublishToPubSub

clear()

public Action.PublishToPubSub.Builder clear()
Returns
TypeDescription
Action.PublishToPubSub.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Action.PublishToPubSub.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Action.PublishToPubSub.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public Action.PublishToPubSub.Builder clone()
Returns
TypeDescription
Action.PublishToPubSub.Builder
Overrides

getDefaultInstanceForType()

public Action.PublishToPubSub getDefaultInstanceForType()
Returns
TypeDescription
Action.PublishToPubSub

getDescriptorForType()

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

The bytes for topic.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Action.PublishToPubSub other)

public Action.PublishToPubSub.Builder mergeFrom(Action.PublishToPubSub other)
Parameter
NameDescription
otherAction.PublishToPubSub
Returns
TypeDescription
Action.PublishToPubSub.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Action.PublishToPubSub.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Action.PublishToPubSub.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.PublishToPubSub.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Action.PublishToPubSub.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Action.PublishToPubSub.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The topic to set.

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

The bytes for topic to set.

Returns
TypeDescription
Action.PublishToPubSub.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Action.PublishToPubSub.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Action.PublishToPubSub.Builder
Overrides