Class DataProfilePubSubMessage (3.13.0)

public final class DataProfilePubSubMessage extends GeneratedMessageV3 implements DataProfilePubSubMessageOrBuilder

Pub/Sub topic message for a DataProfileAction.PubSubNotification event. To receive a message of protocol buffer schema type, convert the message data to an object of this proto class.

Protobuf type google.privacy.dlp.v2.DataProfilePubSubMessage

Static Fields

EVENT_FIELD_NUMBER

public static final int EVENT_FIELD_NUMBER
Field Value
TypeDescription
int

PROFILE_FIELD_NUMBER

public static final int PROFILE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DataProfilePubSubMessage getDefaultInstance()
Returns
TypeDescription
DataProfilePubSubMessage

getDescriptor()

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

newBuilder()

public static DataProfilePubSubMessage.Builder newBuilder()
Returns
TypeDescription
DataProfilePubSubMessage.Builder

newBuilder(DataProfilePubSubMessage prototype)

public static DataProfilePubSubMessage.Builder newBuilder(DataProfilePubSubMessage prototype)
Parameter
NameDescription
prototypeDataProfilePubSubMessage
Returns
TypeDescription
DataProfilePubSubMessage.Builder

parseDelimitedFrom(InputStream input)

public static DataProfilePubSubMessage parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataProfilePubSubMessage
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static DataProfilePubSubMessage parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DataProfilePubSubMessage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static DataProfilePubSubMessage parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DataProfilePubSubMessage
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static DataProfilePubSubMessage parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataProfilePubSubMessage
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static DataProfilePubSubMessage parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DataProfilePubSubMessage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<DataProfilePubSubMessage> parser()
Returns
TypeDescription
Parser<DataProfilePubSubMessage>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DataProfilePubSubMessage getDefaultInstanceForType()
Returns
TypeDescription
DataProfilePubSubMessage

getEvent()

public DataProfileAction.EventType getEvent()

The event that caused the Pub/Sub message to be sent.

.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;

Returns
TypeDescription
DataProfileAction.EventType

The event.

getEventValue()

public int getEventValue()

The event that caused the Pub/Sub message to be sent.

.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for event.

getParserForType()

public Parser<DataProfilePubSubMessage> getParserForType()
Returns
TypeDescription
Parser<DataProfilePubSubMessage>
Overrides

getProfile()

public TableDataProfile getProfile()

If DetailLevel is TABLE_PROFILE this will be fully populated. Otherwise, if DetailLevel is RESOURCE_NAME, then only name and full_resource will be populated.

.google.privacy.dlp.v2.TableDataProfile profile = 1;

Returns
TypeDescription
TableDataProfile

The profile.

getProfileOrBuilder()

public TableDataProfileOrBuilder getProfileOrBuilder()

If DetailLevel is TABLE_PROFILE this will be fully populated. Otherwise, if DetailLevel is RESOURCE_NAME, then only name and full_resource will be populated.

.google.privacy.dlp.v2.TableDataProfile profile = 1;

Returns
TypeDescription
TableDataProfileOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasProfile()

public boolean hasProfile()

If DetailLevel is TABLE_PROFILE this will be fully populated. Otherwise, if DetailLevel is RESOURCE_NAME, then only name and full_resource will be populated.

.google.privacy.dlp.v2.TableDataProfile profile = 1;

Returns
TypeDescription
boolean

Whether the profile field is set.

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 DataProfilePubSubMessage.Builder newBuilderForType()
Returns
TypeDescription
DataProfilePubSubMessage.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public DataProfilePubSubMessage.Builder toBuilder()
Returns
TypeDescription
DataProfilePubSubMessage.Builder

writeTo(CodedOutputStream output)

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