public static final class Action.PublishToPubSub.Builder extends com.google.protobuf.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`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob). Compatible with: Inspect, RiskProtobuf type
google.privacy.dlp.v2.Action.PublishToPubSub| Modifier and Type | Method and Description |
|---|---|
Action.PublishToPubSub.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Action.PublishToPubSub |
build() |
Action.PublishToPubSub |
buildPartial() |
Action.PublishToPubSub.Builder |
clear() |
Action.PublishToPubSub.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Action.PublishToPubSub.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Action.PublishToPubSub.Builder |
clearTopic()
Cloud Pub/Sub topic to send notifications to.
|
Action.PublishToPubSub.Builder |
clone() |
Action.PublishToPubSub |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getTopic()
Cloud Pub/Sub topic to send notifications to.
|
com.google.protobuf.ByteString |
getTopicBytes()
Cloud Pub/Sub topic to send notifications to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Action.PublishToPubSub.Builder |
mergeFrom(Action.PublishToPubSub other) |
Action.PublishToPubSub.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Action.PublishToPubSub.Builder |
mergeFrom(com.google.protobuf.Message other) |
Action.PublishToPubSub.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Action.PublishToPubSub.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Action.PublishToPubSub.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Action.PublishToPubSub.Builder |
setTopic(String value)
Cloud Pub/Sub topic to send notifications to.
|
Action.PublishToPubSub.Builder |
setTopicBytes(com.google.protobuf.ByteString value)
Cloud Pub/Sub topic to send notifications to.
|
Action.PublishToPubSub.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Action.PublishToPubSub build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Action.PublishToPubSub buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Action.PublishToPubSub.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub.Builder mergeFrom(Action.PublishToPubSub other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public Action.PublishToPubSub.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Action.PublishToPubSub.Builder>IOExceptionpublic 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;getTopic in interface Action.PublishToPubSubOrBuilderpublic com.google.protobuf.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;getTopicBytes in interface Action.PublishToPubSubOrBuilderpublic 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;value - The topic to set.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;public Action.PublishToPubSub.Builder setTopicBytes(com.google.protobuf.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;value - The bytes for topic to set.public final Action.PublishToPubSub.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>public final Action.PublishToPubSub.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Action.PublishToPubSub.Builder>Copyright © 2022 Google LLC. All rights reserved.