Interface Bucket.SoftDeletePolicyOrBuilder (2.36.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the retentionDuration field is set.