public static final class Bucket.RetentionPolicy extends GeneratedMessageV3 implements Bucket.RetentionPolicyOrBuilder
Retention policy properties of a bucket.
Protobuf type google.storage.v2.Bucket.RetentionPolicy
Fields
EFFECTIVE_TIME_FIELD_NUMBER
public static final int EFFECTIVE_TIME_FIELD_NUMBER
Field Value
IS_LOCKED_FIELD_NUMBER
public static final int IS_LOCKED_FIELD_NUMBER
Field Value
RETENTION_PERIOD_FIELD_NUMBER
public static final int RETENTION_PERIOD_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static Bucket.RetentionPolicy getDefaultInstance()
Returns
getDefaultInstanceForType()
public Bucket.RetentionPolicy getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getEffectiveTime()
public Timestamp getEffectiveTime()
Server-determined value that indicates the time from which policy was
enforced and effective. This value is in
https://tools.ietf.org/html/rfc3339 format.
.google.protobuf.Timestamp effective_time = 1;
Returns
Type |
Description |
Timestamp |
The effectiveTime.
|
getEffectiveTimeOrBuilder()
public TimestampOrBuilder getEffectiveTimeOrBuilder()
Server-determined value that indicates the time from which policy was
enforced and effective. This value is in
https://tools.ietf.org/html/rfc3339 format.
.google.protobuf.Timestamp effective_time = 1;
Returns
getIsLocked()
public boolean getIsLocked()
Once locked, an object retention policy cannot be modified.
bool is_locked = 2;
Returns
Type |
Description |
boolean |
The isLocked.
|
getParserForType()
public Parser<Bucket.RetentionPolicy> getParserForType()
Returns
Overrides
getRetentionPeriod()
public 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.
int64 retention_period = 3;
Returns
Type |
Description |
long |
The retentionPeriod.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasEffectiveTime()
public boolean hasEffectiveTime()
Server-determined value that indicates the time from which policy was
enforced and effective. This value is in
https://tools.ietf.org/html/rfc3339 format.
.google.protobuf.Timestamp effective_time = 1;
Returns
Type |
Description |
boolean |
Whether the effectiveTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Bucket.RetentionPolicy.Builder newBuilder()
Returns
newBuilder(Bucket.RetentionPolicy prototype)
public static Bucket.RetentionPolicy.Builder newBuilder(Bucket.RetentionPolicy prototype)
Parameter
Returns
newBuilderForType()
public Bucket.RetentionPolicy.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Bucket.RetentionPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Bucket.RetentionPolicy parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Bucket.RetentionPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Bucket.RetentionPolicy parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Bucket.RetentionPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Bucket.RetentionPolicy parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Bucket.RetentionPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Bucket.RetentionPolicy parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Bucket.RetentionPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Bucket.RetentionPolicy parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Bucket.RetentionPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Bucket.RetentionPolicy parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Bucket.RetentionPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Bucket.RetentionPolicy> parser()
Returns
toBuilder()
public Bucket.RetentionPolicy.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions