Interface AutomatedBackupPolicy.TimeBasedRetentionOrBuilder (0.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static interface AutomatedBackupPolicy.TimeBasedRetentionOrBuilder extends MessageOrBuilder
Methods
getRetentionPeriod()
public abstract Duration getRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Returns |
Type |
Description |
Duration |
The retentionPeriod.
|
getRetentionPeriodOrBuilder()
public abstract DurationOrBuilder getRetentionPeriodOrBuilder()
The retention period.
.google.protobuf.Duration retention_period = 1;
hasRetentionPeriod()
public abstract boolean hasRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Returns |
Type |
Description |
boolean |
Whether the retentionPeriod field is set.
|
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 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface AutomatedBackupPolicy.TimeBasedRetentionOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetentionOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetentionOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetentionOrBuilder) \n\n public static interface AutomatedBackupPolicy.TimeBasedRetentionOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getRetentionPeriod()\n\n public abstract Duration getRetentionPeriod()\n\nThe retention period.\n\n`.google.protobuf.Duration retention_period = 1;`\n\n### getRetentionPeriodOrBuilder()\n\n public abstract DurationOrBuilder getRetentionPeriodOrBuilder()\n\nThe retention period.\n\n`.google.protobuf.Duration retention_period = 1;`\n\n### hasRetentionPeriod()\n\n public abstract boolean hasRetentionPeriod()\n\nThe retention period.\n\n`.google.protobuf.Duration retention_period = 1;`"]]