Class Action.PublishToPubSub (3.21.0)

publicstaticfinalclass Action.PublishToPubSubextendsGeneratedMessageV3implementsAction.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

Static Fields

TOPIC_FIELD_NUMBER

publicstaticfinalintTOPIC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAction.PublishToPubSubgetDefaultInstance()
Returns
Type Description
Action.PublishToPubSub

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAction.PublishToPubSub.BuildernewBuilder()
Returns
Type Description
Action.PublishToPubSub.Builder

newBuilder(Action.PublishToPubSub prototype)

publicstaticAction.PublishToPubSub.BuildernewBuilder(Action.PublishToPubSubprototype)
Parameter
Name Description
prototype Action.PublishToPubSub
Returns
Type Description
Action.PublishToPubSub.Builder

parseDelimitedFrom(InputStream input)

publicstaticAction.PublishToPubSubparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAction.PublishToPubSubparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticAction.PublishToPubSubparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAction.PublishToPubSubparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAction.PublishToPubSubparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAction.PublishToPubSubparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAction.PublishToPubSubparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAction.PublishToPubSubparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticAction.PublishToPubSubparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAction.PublishToPubSubparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticAction.PublishToPubSubparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAction.PublishToPubSubparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.PublishToPubSub
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Action.PublishToPubSub>parser()
Returns
Type Description
Parser<PublishToPubSub>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicAction.PublishToPubSubgetDefaultInstanceForType()
Returns
Type Description
Action.PublishToPubSub

getParserForType()

publicParser<Action.PublishToPubSub>getParserForType()
Returns
Type Description
Parser<PublishToPubSub>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTopic()

publicStringgetTopic()

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()

publicByteStringgetTopicBytes()

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.

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAction.PublishToPubSub.BuildernewBuilderForType()
Returns
Type Description
Action.PublishToPubSub.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAction.PublishToPubSub.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Action.PublishToPubSub.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicAction.PublishToPubSub.BuildertoBuilder()
Returns
Type Description
Action.PublishToPubSub.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.