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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Action.PublishToPubSub.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Action.PublishToPubSub build()
Returns
buildPartial()
public Action.PublishToPubSub buildPartial()
Returns
clear()
public Action.PublishToPubSub.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Action.PublishToPubSub.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Action.PublishToPubSub.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public Action.PublishToPubSub.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Action.PublishToPubSub getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Action.PublishToPubSub other)
public Action.PublishToPubSub.Builder mergeFrom(Action.PublishToPubSub other)
Parameter
Returns
public Action.PublishToPubSub.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Action.PublishToPubSub.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Action.PublishToPubSub.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Action.PublishToPubSub.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Action.PublishToPubSub.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final Action.PublishToPubSub.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides