Class Action.PublishToPubSub (3.7.2)

public static final class Action.PublishToPubSub extends GeneratedMessageV3 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

Static Fields

TOPIC_FIELD_NUMBER

public static final int TOPIC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Action.PublishToPubSub getDefaultInstance()
Returns
TypeDescription
Action.PublishToPubSub

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Action.PublishToPubSub.Builder newBuilder()
Returns
TypeDescription
Action.PublishToPubSub.Builder

newBuilder(Action.PublishToPubSub prototype)

public static Action.PublishToPubSub.Builder newBuilder(Action.PublishToPubSub prototype)
Parameter
NameDescription
prototypeAction.PublishToPubSub
Returns
TypeDescription
Action.PublishToPubSub.Builder

parseDelimitedFrom(InputStream input)

public static Action.PublishToPubSub parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action.PublishToPubSub parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Action.PublishToPubSub parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Action.PublishToPubSub parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Action.PublishToPubSub parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Action.PublishToPubSub parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Action.PublishToPubSub parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Action.PublishToPubSub parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Action.PublishToPubSub parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action.PublishToPubSub parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Action.PublishToPubSub parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Action.PublishToPubSub parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.PublishToPubSub
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Action.PublishToPubSub> parser()
Returns
TypeDescription
Parser<PublishToPubSub>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<Action.PublishToPubSub> getParserForType()
Returns
TypeDescription
Parser<PublishToPubSub>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Action.PublishToPubSub.Builder newBuilderForType()
Returns
TypeDescription
Action.PublishToPubSub.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Action.PublishToPubSub.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Action.PublishToPubSub.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Action.PublishToPubSub.Builder toBuilder()
Returns
TypeDescription
Action.PublishToPubSub.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException