Class DataRetentionDeletionEvent (2.67.0)

public final class DataRetentionDeletionEvent extends GeneratedMessageV3 implements DataRetentionDeletionEventOrBuilder

Details about data retention deletion violations, in which the data is non-compliant based on their retention or deletion time, as defined in the applicable data security policy. The Data Retention Deletion (DRD) control is a control of the DSPM (Data Security Posture Management) suite that enables organizations to manage data retention and deletion policies in compliance with regulations, such as GDPR and CRPA. DRD supports two primary policy types: maximum storage length (max TTL) and minimum storage length (min TTL). Both are aimed at helping organizations meet regulatory and data management commitments.

Protobuf type google.cloud.securitycenter.v2.DataRetentionDeletionEvent

Static Fields

DATA_OBJECT_COUNT_FIELD_NUMBER

public static final int DATA_OBJECT_COUNT_FIELD_NUMBER
Field Value
Type Description
int

EVENT_DETECTION_TIME_FIELD_NUMBER

public static final int EVENT_DETECTION_TIME_FIELD_NUMBER
Field Value
Type Description
int

EVENT_TYPE_FIELD_NUMBER

public static final int EVENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MAX_RETENTION_ALLOWED_FIELD_NUMBER

public static final int MAX_RETENTION_ALLOWED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataRetentionDeletionEvent getDefaultInstance()
Returns
Type Description
DataRetentionDeletionEvent

getDescriptor()

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

newBuilder()

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

newBuilder(DataRetentionDeletionEvent prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDataObjectCount()

public long getDataObjectCount()

Number of objects that violated the policy for this resource. If the number is less than 1,000, then the value of this field is the exact number. If the number of objects that violated the policy is greater than or equal to 1,000, then the value of this field is 1000.

int64 data_object_count = 3;

Returns
Type Description
long

The dataObjectCount.

getDefaultInstanceForType()

public DataRetentionDeletionEvent getDefaultInstanceForType()
Returns
Type Description
DataRetentionDeletionEvent

getEventDetectionTime()

public Timestamp getEventDetectionTime()

Timestamp indicating when the event was detected.

.google.protobuf.Timestamp event_detection_time = 2;

Returns
Type Description
Timestamp

The eventDetectionTime.

getEventDetectionTimeOrBuilder()

public TimestampOrBuilder getEventDetectionTimeOrBuilder()

Timestamp indicating when the event was detected.

.google.protobuf.Timestamp event_detection_time = 2;

Returns
Type Description
TimestampOrBuilder

getEventType()

public DataRetentionDeletionEvent.EventType getEventType()

Type of the DRD event.

.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.EventType event_type = 5;

Returns
Type Description
DataRetentionDeletionEvent.EventType

The eventType.

getEventTypeValue()

public int getEventTypeValue()

Type of the DRD event.

.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.EventType event_type = 5;

Returns
Type Description
int

The enum numeric value on the wire for eventType.

getMaxRetentionAllowed()

public Duration getMaxRetentionAllowed()

Maximum duration of retention allowed from the DRD control. This comes from the DRD control where users set a max TTL for their data. For example, suppose that a user sets the max TTL for a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the max_retention_allowed is 90 days.

.google.protobuf.Duration max_retention_allowed = 4;

Returns
Type Description
Duration

The maxRetentionAllowed.

getMaxRetentionAllowedOrBuilder()

public DurationOrBuilder getMaxRetentionAllowedOrBuilder()

Maximum duration of retention allowed from the DRD control. This comes from the DRD control where users set a max TTL for their data. For example, suppose that a user sets the max TTL for a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the max_retention_allowed is 90 days.

.google.protobuf.Duration max_retention_allowed = 4;

Returns
Type Description
DurationOrBuilder

getParserForType()

public Parser<DataRetentionDeletionEvent> getParserForType()
Returns
Type Description
Parser<DataRetentionDeletionEvent>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEventDetectionTime()

public boolean hasEventDetectionTime()

Timestamp indicating when the event was detected.

.google.protobuf.Timestamp event_detection_time = 2;

Returns
Type Description
boolean

Whether the eventDetectionTime field is set.

hasMaxRetentionAllowed()

public boolean hasMaxRetentionAllowed()

Maximum duration of retention allowed from the DRD control. This comes from the DRD control where users set a max TTL for their data. For example, suppose that a user sets the max TTL for a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the max_retention_allowed is 90 days.

.google.protobuf.Duration max_retention_allowed = 4;

Returns
Type Description
boolean

Whether the maxRetentionAllowed 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 DataRetentionDeletionEvent.Builder newBuilderForType()
Returns
Type Description
DataRetentionDeletionEvent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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