public static interface Bucket.RetentionPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.Timestamp |
getEffectiveTime()
Server-determined value that indicates the time from which policy was
enforced and effective.
|
com.google.protobuf.TimestampOrBuilder |
getEffectiveTimeOrBuilder()
Server-determined value that indicates the time from which policy was
enforced and effective.
|
boolean |
getIsLocked()
Once locked, an object retention policy cannot be modified.
|
com.google.protobuf.Duration |
getRetentionDuration()
The duration that objects need to be retained.
|
com.google.protobuf.DurationOrBuilder |
getRetentionDurationOrBuilder()
The duration that objects need to be retained.
|
long |
getRetentionPeriod()
The duration in seconds that objects need to be retained.
|
boolean |
hasEffectiveTime()
Server-determined value that indicates the time from which policy was
enforced and effective.
|
boolean |
hasRetentionDuration()
The duration that objects need to be retained.
|
boolean |
hasRetentionPeriod()
The duration in seconds that objects need to be retained.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasEffectiveTime()
Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;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;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;boolean getIsLocked()
Once locked, an object retention policy cannot be modified.
bool is_locked = 2;boolean hasRetentionPeriod()
The duration in seconds 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.
optional int64 retention_period = 3;long getRetentionPeriod()
The duration in seconds 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.
optional int64 retention_period = 3;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;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;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;Copyright © 2023 Google LLC. All rights reserved.