Package com.google.storage.v2
Interface Bucket.RetentionPolicyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Bucket.RetentionPolicy,Bucket.RetentionPolicy.Builder
- Enclosing class:
- Bucket
public static interface Bucket.RetentionPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TimestampServer-determined value that indicates the time from which policy was enforced and effective.com.google.protobuf.TimestampOrBuilderServer-determined value that indicates the time from which policy was enforced and effective.booleanOnce locked, an object retention policy cannot be modified.com.google.protobuf.DurationThe duration that objects need to be retained.com.google.protobuf.DurationOrBuilderThe duration that objects need to be retained.booleanServer-determined value that indicates the time from which policy was enforced and effective.booleanThe duration that objects need to be retained.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
-
hasEffectiveTime
boolean hasEffectiveTime()Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;- Returns:
- Whether the effectiveTime field is set.
-
getEffectiveTime
com.google.protobuf.Timestamp getEffectiveTime()Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;- Returns:
- The effectiveTime.
-
getEffectiveTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder()Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1; -
getIsLocked
boolean getIsLocked()Once locked, an object retention policy cannot be modified.
bool is_locked = 2;- Returns:
- The isLocked.
-
hasRetentionDuration
boolean hasRetentionDuration()The duration that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes. Any `nanos` value specified will be rounded down to the nearest second.
.google.protobuf.Duration retention_duration = 4;- Returns:
- Whether the retentionDuration field is set.
-
getRetentionDuration
com.google.protobuf.Duration getRetentionDuration()The duration that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes. Any `nanos` value specified will be rounded down to the nearest second.
.google.protobuf.Duration retention_duration = 4;- Returns:
- The retentionDuration.
-
getRetentionDurationOrBuilder
com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder()The duration that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes. Any `nanos` value specified will be rounded down to the nearest second.
.google.protobuf.Duration retention_duration = 4;
-