Class RetentionSettingsInfo (0.3.0)
Version 0.3.0keyboard_arrow_down
public final class RetentionSettingsInfo extends GeneratedMessageV3 implements RetentionSettingsInfoOrBuilder
Metadata about backup retention settings for a database resource.
Protobuf type google.cloud.databasecenter.v1beta.RetentionSettingsInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DURATION_BASED_RETENTION_FIELD_NUMBER
public static final int DURATION_BASED_RETENTION_FIELD_NUMBER
Field Value
Type
Description
int
QUANTITY_BASED_RETENTION_FIELD_NUMBER
public static final int QUANTITY_BASED_RETENTION_FIELD_NUMBER
Field Value
Type
Description
int
SUB_RESOURCE_FIELD_NUMBER
public static final int SUB_RESOURCE_FIELD_NUMBER
Field Value
Type
Description
int
TIMESTAMP_BASED_RETENTION_TIME_FIELD_NUMBER
public static final int TIMESTAMP_BASED_RETENTION_TIME_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static RetentionSettingsInfo getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static RetentionSettingsInfo . Builder newBuilder ()
newBuilder(RetentionSettingsInfo prototype)
public static RetentionSettingsInfo . Builder newBuilder ( RetentionSettingsInfo prototype )
public static RetentionSettingsInfo parseDelimitedFrom ( InputStream input )
public static RetentionSettingsInfo parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static RetentionSettingsInfo parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RetentionSettingsInfo parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static RetentionSettingsInfo parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RetentionSettingsInfo parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static RetentionSettingsInfo parseFrom ( CodedInputStream input )
public static RetentionSettingsInfo parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static RetentionSettingsInfo parseFrom ( InputStream input )
public static RetentionSettingsInfo parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static RetentionSettingsInfo parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RetentionSettingsInfo parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<RetentionSettingsInfo> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public RetentionSettingsInfo getDefaultInstanceForType ()
getDurationBasedRetention()
public Duration getDurationBasedRetention ()
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
Returns
Type
Description
Duration
The durationBasedRetention.
getDurationBasedRetentionOrBuilder()
public DurationOrBuilder getDurationBasedRetentionOrBuilder ()
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
getParserForType()
public Parser<RetentionSettingsInfo> getParserForType ()
Overrides
getQuantityBasedRetention()
public Int32Value getQuantityBasedRetention ()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
Returns
Type
Description
Int32Value
The quantityBasedRetention.
getQuantityBasedRetentionOrBuilder()
public Int32ValueOrBuilder getQuantityBasedRetentionOrBuilder ()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
getRetentionCase()
public RetentionSettingsInfo . RetentionCase getRetentionCase ()
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getSubResource()
public SubResource getSubResource ()
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
getSubResourceOrBuilder()
public SubResourceOrBuilder getSubResourceOrBuilder ()
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
getTimestampBasedRetentionTime()
public Timestamp getTimestampBasedRetentionTime ()
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
Returns
Type
Description
Timestamp
The timestampBasedRetentionTime.
getTimestampBasedRetentionTimeOrBuilder()
public TimestampOrBuilder getTimestampBasedRetentionTimeOrBuilder ()
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
hasDurationBasedRetention()
public boolean hasDurationBasedRetention ()
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
Returns
Type
Description
boolean
Whether the durationBasedRetention field is set.
hasQuantityBasedRetention()
public boolean hasQuantityBasedRetention ()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
Returns
Type
Description
boolean
Whether the quantityBasedRetention field is set.
hasSubResource()
public boolean hasSubResource ()
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the subResource field is set.
hasTimestampBasedRetentionTime()
public boolean hasTimestampBasedRetentionTime ()
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
Returns
Type
Description
boolean
Whether the timestampBasedRetentionTime field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public RetentionSettingsInfo . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RetentionSettingsInfo . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public RetentionSettingsInfo . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-09 UTC."],[],[]]