public static final class AutomatedBackupPolicy.TimeBasedRetention.Builder extends GeneratedMessageV3.Builder<AutomatedBackupPolicy.TimeBasedRetention.Builder> 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.v1.AutomatedBackupPolicy.TimeBasedRetention
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AutomatedBackupPolicy.TimeBasedRetention build()
Returns
buildPartial()
public AutomatedBackupPolicy.TimeBasedRetention buildPartial()
Returns
clear()
public AutomatedBackupPolicy.TimeBasedRetention.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AutomatedBackupPolicy.TimeBasedRetention.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AutomatedBackupPolicy.TimeBasedRetention.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRetentionPeriod()
public AutomatedBackupPolicy.TimeBasedRetention.Builder clearRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Returns
clone()
public AutomatedBackupPolicy.TimeBasedRetention.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AutomatedBackupPolicy.TimeBasedRetention getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getRetentionPeriod()
public Duration getRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Returns
Type |
Description |
Duration |
The retentionPeriod.
|
getRetentionPeriodBuilder()
public Duration.Builder getRetentionPeriodBuilder()
The retention period.
.google.protobuf.Duration retention_period = 1;
Returns
getRetentionPeriodOrBuilder()
public DurationOrBuilder getRetentionPeriodOrBuilder()
The retention period.
.google.protobuf.Duration retention_period = 1;
Returns
hasRetentionPeriod()
public boolean hasRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Returns
Type |
Description |
boolean |
Whether the retentionPeriod field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AutomatedBackupPolicy.TimeBasedRetention other)
public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(AutomatedBackupPolicy.TimeBasedRetention other)
Parameter
Returns
public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeRetentionPeriod(Duration value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeRetentionPeriod(Duration value)
The retention period.
.google.protobuf.Duration retention_period = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.TimeBasedRetention.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setRetentionPeriod(Duration value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder setRetentionPeriod(Duration value)
The retention period.
.google.protobuf.Duration retention_period = 1;
Parameter
Returns
setRetentionPeriod(Duration.Builder builderForValue)
public AutomatedBackupPolicy.TimeBasedRetention.Builder setRetentionPeriod(Duration.Builder builderForValue)
The retention period.
.google.protobuf.Duration retention_period = 1;
Parameter
Name |
Description |
builderForValue |
Builder
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.TimeBasedRetention.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides