Class DataProfilePubSubMessage.Builder (3.87.0)

public static final class DataProfilePubSubMessage.Builder extends GeneratedMessage.Builder<DataProfilePubSubMessage.Builder> 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 Methods

getDescriptor()

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

Methods

build()

public DataProfilePubSubMessage build()
Returns
Type Description
DataProfilePubSubMessage

buildPartial()

public DataProfilePubSubMessage buildPartial()
Returns
Type Description
DataProfilePubSubMessage

clear()

public DataProfilePubSubMessage.Builder clear()
Returns
Type Description
DataProfilePubSubMessage.Builder
Overrides

clearEvent()

public DataProfilePubSubMessage.Builder clearEvent()

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

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

Returns
Type Description
DataProfilePubSubMessage.Builder

This builder for chaining.

clearFileStoreProfile()

public DataProfilePubSubMessage.Builder clearFileStoreProfile()

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
DataProfilePubSubMessage.Builder

clearProfile()

public DataProfilePubSubMessage.Builder clearProfile()

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
DataProfilePubSubMessage.Builder

getDefaultInstanceForType()

public DataProfilePubSubMessage getDefaultInstanceForType()
Returns
Type Description
DataProfilePubSubMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getFileStoreProfileBuilder()

public FileStoreDataProfile.Builder getFileStoreProfileBuilder()

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.Builder

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

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.

getProfileBuilder()

public TableDataProfile.Builder getProfileBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFileStoreProfile(FileStoreDataProfile value)

public DataProfilePubSubMessage.Builder mergeFileStoreProfile(FileStoreDataProfile value)

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;

Parameter
Name Description
value FileStoreDataProfile
Returns
Type Description
DataProfilePubSubMessage.Builder

mergeFrom(DataProfilePubSubMessage other)

public DataProfilePubSubMessage.Builder mergeFrom(DataProfilePubSubMessage other)
Parameter
Name Description
other DataProfilePubSubMessage
Returns
Type Description
DataProfilePubSubMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataProfilePubSubMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfilePubSubMessage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataProfilePubSubMessage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataProfilePubSubMessage.Builder
Overrides

mergeProfile(TableDataProfile value)

public DataProfilePubSubMessage.Builder mergeProfile(TableDataProfile value)

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;

Parameter
Name Description
value TableDataProfile
Returns
Type Description
DataProfilePubSubMessage.Builder

setEvent(DataProfileAction.EventType value)

public DataProfilePubSubMessage.Builder setEvent(DataProfileAction.EventType value)

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

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

Parameter
Name Description
value DataProfileAction.EventType

The event to set.

Returns
Type Description
DataProfilePubSubMessage.Builder

This builder for chaining.

setEventValue(int value)

public DataProfilePubSubMessage.Builder setEventValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for event to set.

Returns
Type Description
DataProfilePubSubMessage.Builder

This builder for chaining.

setFileStoreProfile(FileStoreDataProfile value)

public DataProfilePubSubMessage.Builder setFileStoreProfile(FileStoreDataProfile value)

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;

Parameter
Name Description
value FileStoreDataProfile
Returns
Type Description
DataProfilePubSubMessage.Builder

setFileStoreProfile(FileStoreDataProfile.Builder builderForValue)

public DataProfilePubSubMessage.Builder setFileStoreProfile(FileStoreDataProfile.Builder builderForValue)

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;

Parameter
Name Description
builderForValue FileStoreDataProfile.Builder
Returns
Type Description
DataProfilePubSubMessage.Builder

setProfile(TableDataProfile value)

public DataProfilePubSubMessage.Builder setProfile(TableDataProfile value)

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;

Parameter
Name Description
value TableDataProfile
Returns
Type Description
DataProfilePubSubMessage.Builder

setProfile(TableDataProfile.Builder builderForValue)

public DataProfilePubSubMessage.Builder setProfile(TableDataProfile.Builder builderForValue)

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;

Parameter
Name Description
builderForValue TableDataProfile.Builder
Returns
Type Description
DataProfilePubSubMessage.Builder