Class AutomatedBackupPolicy.TimeBasedRetention.Builder (0.35.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.TimeBasedRetention.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

build()

public AutomatedBackupPolicy.TimeBasedRetention build()
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention

buildPartial()

public AutomatedBackupPolicy.TimeBasedRetention buildPartial()
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention

clear()

public AutomatedBackupPolicy.TimeBasedRetention.Builder clear()
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AutomatedBackupPolicy.TimeBasedRetention.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomatedBackupPolicy.TimeBasedRetention.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

clearRetentionPeriod()

public AutomatedBackupPolicy.TimeBasedRetention.Builder clearRetentionPeriod()

The retention period.

.google.protobuf.Duration retention_period = 1;

Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder

clone()

public AutomatedBackupPolicy.TimeBasedRetention.Builder clone()
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

getDefaultInstanceForType()

public AutomatedBackupPolicy.TimeBasedRetention getDefaultInstanceForType()
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
Builder

getRetentionPeriodOrBuilder()

public DurationOrBuilder getRetentionPeriodOrBuilder()

The retention period.

.google.protobuf.Duration retention_period = 1;

Returns
Type Description
DurationOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutomatedBackupPolicy.TimeBasedRetention other)

public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(AutomatedBackupPolicy.TimeBasedRetention other)
Parameter
Name Description
other AutomatedBackupPolicy.TimeBasedRetention
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

mergeRetentionPeriod(Duration value)

public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeRetentionPeriod(Duration value)

The retention period.

.google.protobuf.Duration retention_period = 1;

Parameter
Name Description
value Duration
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.TimeBasedRetention.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.TimeBasedRetention.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AutomatedBackupPolicy.TimeBasedRetention.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

setRetentionPeriod(Duration value)

public AutomatedBackupPolicy.TimeBasedRetention.Builder setRetentionPeriod(Duration value)

The retention period.

.google.protobuf.Duration retention_period = 1;

Parameter
Name Description
value Duration
Returns
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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.TimeBasedRetention.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides