public static final class Bucket.RetentionPolicy extends GeneratedMessageV3 implements Bucket.RetentionPolicyOrBuilder
Retention policy properties of a bucket.
Protobuf type google.storage.v2.Bucket.RetentionPolicy
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Bucket.RetentionPolicyImplements
Bucket.RetentionPolicyOrBuilderFields
EFFECTIVE_TIME_FIELD_NUMBER
public static final int EFFECTIVE_TIME_FIELD_NUMBER
Type | Description |
int |
IS_LOCKED_FIELD_NUMBER
public static final int IS_LOCKED_FIELD_NUMBER
Type | Description |
int |
RETENTION_PERIOD_FIELD_NUMBER
public static final int RETENTION_PERIOD_FIELD_NUMBER
Type | Description |
int |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstance()
public static Bucket.RetentionPolicy getDefaultInstance()
Type | Description |
Bucket.RetentionPolicy |
getDefaultInstanceForType()
public Bucket.RetentionPolicy getDefaultInstanceForType()
Type | Description |
Bucket.RetentionPolicy |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
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;
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;
Type | Description |
TimestampOrBuilder |
getIsLocked()
public boolean getIsLocked()
Once locked, an object retention policy cannot be modified.
bool is_locked = 2;
Type | Description |
boolean | The isLocked. |
getParserForType()
public Parser<Bucket.RetentionPolicy> getParserForType()
Type | Description |
Parser<RetentionPolicy> |
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;
Type | Description |
long | The retentionPeriod. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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;
Type | Description |
boolean | Whether the effectiveTime field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilder()
public static Bucket.RetentionPolicy.Builder newBuilder()
Type | Description |
Bucket.RetentionPolicy.Builder |
newBuilder(Bucket.RetentionPolicy prototype)
public static Bucket.RetentionPolicy.Builder newBuilder(Bucket.RetentionPolicy prototype)
Name | Description |
prototype | Bucket.RetentionPolicy |
Type | Description |
Bucket.RetentionPolicy.Builder |
newBuilderForType()
public Bucket.RetentionPolicy.Builder newBuilderForType()
Type | Description |
Bucket.RetentionPolicy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Bucket.RetentionPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Bucket.RetentionPolicy.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
parseDelimitedFrom(InputStream input)
public static Bucket.RetentionPolicy parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.RetentionPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Bucket.RetentionPolicy parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Bucket.RetentionPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Bucket.RetentionPolicy parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Bucket.RetentionPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Bucket.RetentionPolicy parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.RetentionPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Bucket.RetentionPolicy parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.RetentionPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Bucket.RetentionPolicy parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Bucket.RetentionPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.RetentionPolicy |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Bucket.RetentionPolicy> parser()
Type | Description |
Parser<RetentionPolicy> |
toBuilder()
public Bucket.RetentionPolicy.Builder toBuilder()
Type | Description |
Bucket.RetentionPolicy.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |