Class DataProfilePubSubMessage (3.51.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
Type Description
int

FILE_STORE_PROFILE_FIELD_NUMBER

public static final int FILE_STORE_PROFILE_FIELD_NUMBER
Field Value
Type Description
int

PROFILE_FIELD_NUMBER

public static final int PROFILE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataProfilePubSubMessage getDefaultInstance()
Returns
Type Description
DataProfilePubSubMessage

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DataProfilePubSubMessage.Builder newBuilder()
Returns
Type Description
DataProfilePubSubMessage.Builder

newBuilder(DataProfilePubSubMessage prototype)

public static DataProfilePubSubMessage.Builder newBuilder(DataProfilePubSubMessage prototype)
Parameter
Name Description
prototype DataProfilePubSubMessage
Returns
Type Description
DataProfilePubSubMessage.Builder

parseDelimitedFrom(InputStream input)

public static DataProfilePubSubMessage parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataProfilePubSubMessage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DataProfilePubSubMessage parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataProfilePubSubMessage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataProfilePubSubMessage parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataProfilePubSubMessage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataProfilePubSubMessage parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataProfilePubSubMessage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DataProfilePubSubMessage parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataProfilePubSubMessage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DataProfilePubSubMessage parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataProfilePubSubMessage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfilePubSubMessage
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DataProfilePubSubMessage> parser()
Returns
Type Description
Parser<DataProfilePubSubMessage>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DataProfilePubSubMessage getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for event.

getFileStoreProfile()

public FileStoreDataProfile getFileStoreProfile()

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

.google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;

Returns
Type Description
FileStoreDataProfile

The fileStoreProfile.

getFileStoreProfileOrBuilder()

public FileStoreDataProfileOrBuilder getFileStoreProfileOrBuilder()

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

.google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;

Returns
Type Description
FileStoreDataProfileOrBuilder

getParserForType()

public Parser<DataProfilePubSubMessage> getParserForType()
Returns
Type Description
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
Type Description
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
Type Description
TableDataProfileOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasFileStoreProfile()

public boolean hasFileStoreProfile()

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

.google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;

Returns
Type Description
boolean

Whether the fileStoreProfile field is set.

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
Type Description
boolean

Whether the profile field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DataProfilePubSubMessage.Builder newBuilderForType()
Returns
Type Description
DataProfilePubSubMessage.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DataProfilePubSubMessage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataProfilePubSubMessage.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DataProfilePubSubMessage.Builder toBuilder()
Returns
Type Description
DataProfilePubSubMessage.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException