public static final class AutomatedBackupPolicy.TimeBasedRetention extends GeneratedMessageV3 implements AutomatedBackupPolicy.TimeBasedRetentionOrBuilder
A time based retention policy specifies that all backups within a certain time period should be retained.
Protobuf type google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AutomatedBackupPolicy.TimeBasedRetentionStatic Fields
RETENTION_PERIOD_FIELD_NUMBER
public static final int RETENTION_PERIOD_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AutomatedBackupPolicy.TimeBasedRetention getDefaultInstance()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static AutomatedBackupPolicy.TimeBasedRetention.Builder newBuilder()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
newBuilder(AutomatedBackupPolicy.TimeBasedRetention prototype)
public static AutomatedBackupPolicy.TimeBasedRetention.Builder newBuilder(AutomatedBackupPolicy.TimeBasedRetention prototype)
Name | Description |
prototype |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
parseDelimitedFrom(InputStream input)
public static AutomatedBackupPolicy.TimeBasedRetention parseDelimitedFrom(InputStream input)
Name | Description |
input |
InputStream |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.TimeBasedRetention parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
IOException |
parseFrom(byte[] data)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(byte[] data)
Name | Description |
data |
byte[] |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(ByteString data)
Name | Description |
data |
ByteString |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(CodedInputStream input)
Name | Description |
input |
CodedInputStream |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
IOException |
parseFrom(InputStream input)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(InputStream input)
Name | Description |
input |
InputStream |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(ByteBuffer data)
Name | Description |
data |
ByteBuffer |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.TimeBasedRetention parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AutomatedBackupPolicy.TimeBasedRetention> parser()
Type | Description |
Parser<TimeBasedRetention> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj |
Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public AutomatedBackupPolicy.TimeBasedRetention getDefaultInstanceForType()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
getParserForType()
public Parser<AutomatedBackupPolicy.TimeBasedRetention> getParserForType()
Type | Description |
Parser<TimeBasedRetention> |
getRetentionPeriod()
public Duration getRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Type | Description |
Duration |
The retentionPeriod. |
getRetentionPeriodOrBuilder()
public DurationOrBuilder getRetentionPeriodOrBuilder()
The retention period.
.google.protobuf.Duration retention_period = 1;
Type | Description |
DurationOrBuilder |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasRetentionPeriod()
public boolean hasRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Type | Description |
boolean |
Whether the retentionPeriod 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 |
newBuilderForType()
public AutomatedBackupPolicy.TimeBasedRetention.Builder newBuilderForType()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AutomatedBackupPolicy.TimeBasedRetention.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent |
BuilderParent |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused |
UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public AutomatedBackupPolicy.TimeBasedRetention.Builder toBuilder()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output |
CodedOutputStream |
Type | Description |
IOException |