Class Bucket.SoftDeletePolicy (2.40.0)

public static final class Bucket.SoftDeletePolicy extends GeneratedMessageV3 implements Bucket.SoftDeletePolicyOrBuilder

Soft delete policy properties of a bucket.

Protobuf type google.storage.v2.Bucket.SoftDeletePolicy

Static Fields

EFFECTIVE_TIME_FIELD_NUMBER

public static final int EFFECTIVE_TIME_FIELD_NUMBER
Field Value
Type Description
int

RETENTION_DURATION_FIELD_NUMBER

public static final int RETENTION_DURATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Bucket.SoftDeletePolicy getDefaultInstance()
Returns
Type Description
Bucket.SoftDeletePolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Bucket.SoftDeletePolicy.Builder newBuilder()
Returns
Type Description
Bucket.SoftDeletePolicy.Builder

newBuilder(Bucket.SoftDeletePolicy prototype)

public static Bucket.SoftDeletePolicy.Builder newBuilder(Bucket.SoftDeletePolicy prototype)
Parameter
Name Description
prototype Bucket.SoftDeletePolicy
Returns
Type Description
Bucket.SoftDeletePolicy.Builder

parseDelimitedFrom(InputStream input)

public static Bucket.SoftDeletePolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.SoftDeletePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Bucket.SoftDeletePolicy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Bucket.SoftDeletePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Bucket.SoftDeletePolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Bucket.SoftDeletePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Bucket.SoftDeletePolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.SoftDeletePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Bucket.SoftDeletePolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.SoftDeletePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Bucket.SoftDeletePolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Bucket.SoftDeletePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.SoftDeletePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Bucket.SoftDeletePolicy> parser()
Returns
Type Description
Parser<SoftDeletePolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Bucket.SoftDeletePolicy getDefaultInstanceForType()
Returns
Type Description
Bucket.SoftDeletePolicy

getEffectiveTime()

public Timestamp getEffectiveTime()

Time from which the policy was effective. This is service-provided.

optional .google.protobuf.Timestamp effective_time = 2;

Returns
Type Description
Timestamp

The effectiveTime.

getEffectiveTimeOrBuilder()

public TimestampOrBuilder getEffectiveTimeOrBuilder()

Time from which the policy was effective. This is service-provided.

optional .google.protobuf.Timestamp effective_time = 2;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<Bucket.SoftDeletePolicy> getParserForType()
Returns
Type Description
Parser<SoftDeletePolicy>
Overrides

getRetentionDuration()

public 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
Type Description
Duration

The retentionDuration.

getRetentionDurationOrBuilder()

public 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;

Returns
Type Description
DurationOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEffectiveTime()

public boolean hasEffectiveTime()

Time from which the policy was effective. This is service-provided.

optional .google.protobuf.Timestamp effective_time = 2;

Returns
Type Description
boolean

Whether the effectiveTime field is set.

hasRetentionDuration()

public 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
Type Description
boolean

Whether the retentionDuration field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Bucket.SoftDeletePolicy.Builder newBuilderForType()
Returns
Type Description
Bucket.SoftDeletePolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Bucket.SoftDeletePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Bucket.SoftDeletePolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Bucket.SoftDeletePolicy.Builder toBuilder()
Returns
Type Description
Bucket.SoftDeletePolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException