Class DataProfilePubSubMessage.Builder (3.6.7)

public static final class DataProfilePubSubMessage.Builder extends GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder> implements DataProfilePubSubMessageOrBuilder

The message that will be published to a Pub/Sub topic. To receive a message of protocol buffer schema type, convert the message data to an object of this proto class. https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe-proto-messages

Protobuf type google.privacy.dlp.v2.DataProfilePubSubMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataProfilePubSubMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataProfilePubSubMessage.Builder
Overrides

build()

public DataProfilePubSubMessage build()
Returns
TypeDescription
DataProfilePubSubMessage

buildPartial()

public DataProfilePubSubMessage buildPartial()
Returns
TypeDescription
DataProfilePubSubMessage

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataProfilePubSubMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DataProfilePubSubMessage.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataProfilePubSubMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DataProfilePubSubMessage.Builder
Overrides

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

clone()

public DataProfilePubSubMessage.Builder clone()
Returns
TypeDescription
DataProfilePubSubMessage.Builder
Overrides

getDefaultInstanceForType()

public DataProfilePubSubMessage getDefaultInstanceForType()
Returns
TypeDescription
DataProfilePubSubMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.

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
TypeDescription
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
TypeDescription
TableDataProfileOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataProfilePubSubMessage other)

public DataProfilePubSubMessage.Builder mergeFrom(DataProfilePubSubMessage other)
Parameter
NameDescription
otherDataProfilePubSubMessage
Returns
TypeDescription
DataProfilePubSubMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataProfilePubSubMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataProfilePubSubMessage.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DataProfilePubSubMessage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTableDataProfile
Returns
TypeDescription
DataProfilePubSubMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataProfilePubSubMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataProfilePubSubMessage.Builder
Overrides

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
NameDescription
valueDataProfileAction.EventType

The event to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
DataProfilePubSubMessage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataProfilePubSubMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataProfilePubSubMessage.Builder
Overrides

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
NameDescription
valueTableDataProfile
Returns
TypeDescription
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
NameDescription
builderForValueTableDataProfile.Builder
Returns
TypeDescription
DataProfilePubSubMessage.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataProfilePubSubMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DataProfilePubSubMessage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataProfilePubSubMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataProfilePubSubMessage.Builder
Overrides