Class AutomatedBackupPolicy.TimeBasedRetention.Builder (0.14.1)

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.events.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.TimeBasedRetention.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

build()

public AutomatedBackupPolicy.TimeBasedRetention build()
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention

buildPartial()

public AutomatedBackupPolicy.TimeBasedRetention buildPartial()
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention

clear()

public AutomatedBackupPolicy.TimeBasedRetention.Builder clear()
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AutomatedBackupPolicy.TimeBasedRetention.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomatedBackupPolicy.TimeBasedRetention.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

clearRetentionPeriod()

public AutomatedBackupPolicy.TimeBasedRetention.Builder clearRetentionPeriod()

The retention period.

.google.protobuf.Duration retention_period = 1;

Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder

clone()

public AutomatedBackupPolicy.TimeBasedRetention.Builder clone()
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

getDefaultInstanceForType()

public AutomatedBackupPolicy.TimeBasedRetention getDefaultInstanceForType()
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRetentionPeriod()

public Duration getRetentionPeriod()

The retention period.

.google.protobuf.Duration retention_period = 1;

Returns
TypeDescription
Duration

The retentionPeriod.

getRetentionPeriodBuilder()

public Duration.Builder getRetentionPeriodBuilder()

The retention period.

.google.protobuf.Duration retention_period = 1;

Returns
TypeDescription
Builder

getRetentionPeriodOrBuilder()

public DurationOrBuilder getRetentionPeriodOrBuilder()

The retention period.

.google.protobuf.Duration retention_period = 1;

Returns
TypeDescription
DurationOrBuilder

hasRetentionPeriod()

public boolean hasRetentionPeriod()

The retention period.

.google.protobuf.Duration retention_period = 1;

Returns
TypeDescription
boolean

Whether the retentionPeriod field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutomatedBackupPolicy.TimeBasedRetention other)

public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(AutomatedBackupPolicy.TimeBasedRetention other)
Parameter
NameDescription
otherAutomatedBackupPolicy.TimeBasedRetention
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

mergeRetentionPeriod(Duration value)

public AutomatedBackupPolicy.TimeBasedRetention.Builder mergeRetentionPeriod(Duration value)

The retention period.

.google.protobuf.Duration retention_period = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.TimeBasedRetention.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.TimeBasedRetention.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides

setRetentionPeriod(Duration value)

public AutomatedBackupPolicy.TimeBasedRetention.Builder setRetentionPeriod(Duration value)

The retention period.

.google.protobuf.Duration retention_period = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.TimeBasedRetention.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder
Overrides