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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Action.PublishToPubSub.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Action.PublishToPubSub build()
buildPartial()
public Action.PublishToPubSub buildPartial()
clear()
public Action.PublishToPubSub.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Action.PublishToPubSub.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Action.PublishToPubSub.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public Action.PublishToPubSub.Builder clone()
Overrides
getDefaultInstanceForType()
public Action.PublishToPubSub getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for topic.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Action.PublishToPubSub other)
public Action.PublishToPubSub.Builder mergeFrom(Action.PublishToPubSub other)
public Action.PublishToPubSub.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Action.PublishToPubSub.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Action.PublishToPubSub.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Action.PublishToPubSub.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Action.PublishToPubSub.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Action.PublishToPubSub.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides