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.v1alpha.AutomatedBackupPolicy.TimeBasedRetention
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AutomatedBackupPolicy.TimeBasedRetention.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
build()
public AutomatedBackupPolicy.TimeBasedRetention build()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
buildPartial()
public AutomatedBackupPolicy.TimeBasedRetention buildPartial()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
clear()
public AutomatedBackupPolicy.TimeBasedRetention.Builder clear()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
clearField(Descriptors.FieldDescriptor field)
public AutomatedBackupPolicy.TimeBasedRetention.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AutomatedBackupPolicy.TimeBasedRetention.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
clearRetentionPeriod()
public AutomatedBackupPolicy.TimeBasedRetention.Builder clearRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
clone()
public AutomatedBackupPolicy.TimeBasedRetention.Builder clone()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
getDefaultInstanceForType()
public AutomatedBackupPolicy.TimeBasedRetention getDefaultInstanceForType()
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getRetentionPeriod()
public Duration getRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Type | Description |
Duration |
The retentionPeriod. |
getRetentionPeriodBuilder()
public Duration.Builder getRetentionPeriodBuilder()
The retention period.
.google.protobuf.Duration retention_period = 1;
Type | Description |
Builder |
getRetentionPeriodOrBuilder()
public DurationOrBuilder getRetentionPeriodOrBuilder()
The retention period.
.google.protobuf.Duration retention_period = 1;
Type | Description |
DurationOrBuilder |
hasRetentionPeriod()
public boolean hasRetentionPeriod()
The retention period.
.google.protobuf.Duration retention_period = 1;
Type | Description |
boolean |
Whether the retentionPeriod field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(AutomatedBackupPolicy.TimeBasedRetention other)
public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(AutomatedBackupPolicy.TimeBasedRetention other)
Name | Description |
other |
AutomatedBackupPolicy.TimeBasedRetention |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
mergeRetentionPeriod(Duration value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeRetentionPeriod(Duration value)
The retention period.
.google.protobuf.Duration retention_period = 1;
Name | Description |
value |
Duration |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.TimeBasedRetention.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
setRetentionPeriod(Duration value)
public AutomatedBackupPolicy.TimeBasedRetention.Builder setRetentionPeriod(Duration value)
The retention period.
.google.protobuf.Duration retention_period = 1;
Name | Description |
value |
Duration |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
setRetentionPeriod(Duration.Builder builderForValue)
public AutomatedBackupPolicy.TimeBasedRetention.Builder setRetentionPeriod(Duration.Builder builderForValue)
The retention period.
.google.protobuf.Duration retention_period = 1;
Name | Description |
builderForValue |
Builder |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.TimeBasedRetention.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention.Builder |