Interface Bucket.SoftDeletePolicyOrBuilder (2.44.1)

public static interface Bucket.SoftDeletePolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEffectiveTime()

public abstract Timestamp getEffectiveTime()

Time from which the policy was effective. This is service-provided.

optional .google.protobuf.Timestamp effective_time = 2;

Returns
Type Description
Timestamp

The effectiveTime.

getEffectiveTimeOrBuilder()

public abstract TimestampOrBuilder getEffectiveTimeOrBuilder()

Time from which the policy was effective. This is service-provided.

optional .google.protobuf.Timestamp effective_time = 2;

Returns
Type Description
TimestampOrBuilder

getRetentionDuration()

public abstract Duration getRetentionDuration()

The period of time that soft-deleted objects in the bucket must be retained and cannot be permanently deleted. The duration must be greater than or equal to 7 days and less than 1 year.

optional .google.protobuf.Duration retention_duration = 1;

Returns
Type Description
Duration

The retentionDuration.

getRetentionDurationOrBuilder()

public abstract DurationOrBuilder getRetentionDurationOrBuilder()

The period of time that soft-deleted objects in the bucket must be retained and cannot be permanently deleted. The duration must be greater than or equal to 7 days and less than 1 year.

optional .google.protobuf.Duration retention_duration = 1;

Returns
Type Description
DurationOrBuilder

hasEffectiveTime()

public abstract boolean hasEffectiveTime()

Time from which the policy was effective. This is service-provided.

optional .google.protobuf.Timestamp effective_time = 2;

Returns
Type Description
boolean

Whether the effectiveTime field is set.

hasRetentionDuration()

public abstract boolean hasRetentionDuration()

The period of time that soft-deleted objects in the bucket must be retained and cannot be permanently deleted. The duration must be greater than or equal to 7 days and less than 1 year.

optional .google.protobuf.Duration retention_duration = 1;

Returns
Type Description
boolean

Whether the retentionDuration field is set.