Package com.google.privacy.dlp.v2
Class DataProfilePubSubMessage.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
- com.google.privacy.dlp.v2.DataProfilePubSubMessage.Builder
-
- All Implemented Interfaces:
DataProfilePubSubMessageOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- DataProfilePubSubMessage
public static final class DataProfilePubSubMessage.Builder extends com.google.protobuf.GeneratedMessageV3.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 typegoogle.privacy.dlp.v2.DataProfilePubSubMessage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataProfilePubSubMessage.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DataProfilePubSubMessage
build()
DataProfilePubSubMessage
buildPartial()
DataProfilePubSubMessage.Builder
clear()
DataProfilePubSubMessage.Builder
clearEvent()
The event that caused the Pub/Sub message to be sent.DataProfilePubSubMessage.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DataProfilePubSubMessage.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DataProfilePubSubMessage.Builder
clearProfile()
If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.DataProfilePubSubMessage.Builder
clone()
DataProfilePubSubMessage
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
DataProfileAction.EventType
getEvent()
The event that caused the Pub/Sub message to be sent.int
getEventValue()
The event that caused the Pub/Sub message to be sent.TableDataProfile
getProfile()
If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.TableDataProfile.Builder
getProfileBuilder()
If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.TableDataProfileOrBuilder
getProfileOrBuilder()
If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.boolean
hasProfile()
If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DataProfilePubSubMessage.Builder
mergeFrom(DataProfilePubSubMessage other)
DataProfilePubSubMessage.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DataProfilePubSubMessage.Builder
mergeFrom(com.google.protobuf.Message other)
DataProfilePubSubMessage.Builder
mergeProfile(TableDataProfile value)
If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.DataProfilePubSubMessage.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DataProfilePubSubMessage.Builder
setEvent(DataProfileAction.EventType value)
The event that caused the Pub/Sub message to be sent.DataProfilePubSubMessage.Builder
setEventValue(int value)
The event that caused the Pub/Sub message to be sent.DataProfilePubSubMessage.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DataProfilePubSubMessage.Builder
setProfile(TableDataProfile value)
If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.DataProfilePubSubMessage.Builder
setProfile(TableDataProfile.Builder builderForValue)
If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.DataProfilePubSubMessage.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DataProfilePubSubMessage.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
clear
public DataProfilePubSubMessage.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
getDefaultInstanceForType
public DataProfilePubSubMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DataProfilePubSubMessage build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DataProfilePubSubMessage buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DataProfilePubSubMessage.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
setField
public DataProfilePubSubMessage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
clearField
public DataProfilePubSubMessage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
clearOneof
public DataProfilePubSubMessage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
setRepeatedField
public DataProfilePubSubMessage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
addRepeatedField
public DataProfilePubSubMessage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
mergeFrom
public DataProfilePubSubMessage.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DataProfilePubSubMessage.Builder>
-
mergeFrom
public DataProfilePubSubMessage.Builder mergeFrom(DataProfilePubSubMessage other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
mergeFrom
public DataProfilePubSubMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DataProfilePubSubMessage.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasProfile
in interfaceDataProfilePubSubMessageOrBuilder
- Returns:
- Whether the profile field is set.
-
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;
- Specified by:
getProfile
in interfaceDataProfilePubSubMessageOrBuilder
- Returns:
- The profile.
-
setProfile
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;
-
setProfile
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;
-
mergeProfile
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;
-
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;
-
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;
-
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;
- Specified by:
getProfileOrBuilder
in interfaceDataProfilePubSubMessageOrBuilder
-
getEventValue
public int getEventValue()
The event that caused the Pub/Sub message to be sent.
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
- Specified by:
getEventValue
in interfaceDataProfilePubSubMessageOrBuilder
- Returns:
- The enum numeric value on the wire for event.
-
setEventValue
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;
- Parameters:
value
- The enum numeric value on the wire for event to set.- Returns:
- This builder for chaining.
-
getEvent
public DataProfileAction.EventType getEvent()
The event that caused the Pub/Sub message to be sent.
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
- Specified by:
getEvent
in interfaceDataProfilePubSubMessageOrBuilder
- Returns:
- The event.
-
setEvent
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;
- Parameters:
value
- The event to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUnknownFields
public final DataProfilePubSubMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
mergeUnknownFields
public final DataProfilePubSubMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
-
-