Package com.google.storage.v2
Interface Bucket.SoftDeletePolicyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Bucket.SoftDeletePolicy,Bucket.SoftDeletePolicy.Builder
- Enclosing class:
- Bucket
public static interface Bucket.SoftDeletePolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TimestampTime from which the policy was effective.com.google.protobuf.TimestampOrBuilderTime from which the policy was effective.com.google.protobuf.DurationThe period of time that soft-deleted objects in the bucket must be retained and cannot be permanently deleted.com.google.protobuf.DurationOrBuilderThe period of time that soft-deleted objects in the bucket must be retained and cannot be permanently deleted.booleanTime from which the policy was effective.booleanThe period of time that soft-deleted objects in the bucket must be retained and cannot be permanently deleted.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasRetentionDuration
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:
- Whether the retentionDuration field is set.
-
getRetentionDuration
com.google.protobuf.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:
- The retentionDuration.
-
getRetentionDurationOrBuilder
com.google.protobuf.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; -
hasEffectiveTime
boolean hasEffectiveTime()Time from which the policy was effective. This is service-provided.
optional .google.protobuf.Timestamp effective_time = 2;- Returns:
- Whether the effectiveTime field is set.
-
getEffectiveTime
com.google.protobuf.Timestamp getEffectiveTime()Time from which the policy was effective. This is service-provided.
optional .google.protobuf.Timestamp effective_time = 2;- Returns:
- The effectiveTime.
-
getEffectiveTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder()Time from which the policy was effective. This is service-provided.
optional .google.protobuf.Timestamp effective_time = 2;
-