Class AutomatedBackupConfig.Builder (0.29.0)

public static final class AutomatedBackupConfig.Builder extends GeneratedMessageV3.Builder<AutomatedBackupConfig.Builder> implements AutomatedBackupConfigOrBuilder

The automated backup config for a cluster.

Protobuf type google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutomatedBackupConfig build()
Returns
Type Description
AutomatedBackupConfig

buildPartial()

public AutomatedBackupConfig buildPartial()
Returns
Type Description
AutomatedBackupConfig

clear()

public AutomatedBackupConfig.Builder clear()
Returns
Type Description
AutomatedBackupConfig.Builder
Overrides

clearAutomatedBackupMode()

public AutomatedBackupConfig.Builder clearAutomatedBackupMode()

Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomatedBackupConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFixedFrequencySchedule()

public AutomatedBackupConfig.Builder clearFixedFrequencySchedule()

Optional. Trigger automated backups at a fixed frequency.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomatedBackupConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRetention()

public AutomatedBackupConfig.Builder clearRetention()

Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.

optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomatedBackupConfig.Builder

clearSchedule()

public AutomatedBackupConfig.Builder clearSchedule()
Returns
Type Description
AutomatedBackupConfig.Builder

clone()

public AutomatedBackupConfig.Builder clone()
Returns
Type Description
AutomatedBackupConfig.Builder
Overrides

getAutomatedBackupMode()

public AutomatedBackupConfig.AutomatedBackupMode getAutomatedBackupMode()

Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomatedBackupConfig.AutomatedBackupMode

The automatedBackupMode.

getAutomatedBackupModeValue()

public int getAutomatedBackupModeValue()

Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for automatedBackupMode.

getDefaultInstanceForType()

public AutomatedBackupConfig getDefaultInstanceForType()
Returns
Type Description
AutomatedBackupConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFixedFrequencySchedule()

public AutomatedBackupConfig.FixedFrequencySchedule getFixedFrequencySchedule()

Optional. Trigger automated backups at a fixed frequency.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomatedBackupConfig.FixedFrequencySchedule

The fixedFrequencySchedule.

getFixedFrequencyScheduleBuilder()

public AutomatedBackupConfig.FixedFrequencySchedule.Builder getFixedFrequencyScheduleBuilder()

Optional. Trigger automated backups at a fixed frequency.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomatedBackupConfig.FixedFrequencySchedule.Builder

getFixedFrequencyScheduleOrBuilder()

public AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder getFixedFrequencyScheduleOrBuilder()

Optional. Trigger automated backups at a fixed frequency.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder

getRetention()

public Duration getRetention()

Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.

optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The retention.

getRetentionBuilder()

public Duration.Builder getRetentionBuilder()

Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.

optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getRetentionOrBuilder()

public DurationOrBuilder getRetentionOrBuilder()

Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.

optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getScheduleCase()

public AutomatedBackupConfig.ScheduleCase getScheduleCase()
Returns
Type Description
AutomatedBackupConfig.ScheduleCase

hasFixedFrequencySchedule()

public boolean hasFixedFrequencySchedule()

Optional. Trigger automated backups at a fixed frequency.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the fixedFrequencySchedule field is set.

hasRetention()

public boolean hasRetention()

Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.

optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the retention field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule value)

public AutomatedBackupConfig.Builder mergeFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule value)

Optional. Trigger automated backups at a fixed frequency.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutomatedBackupConfig.FixedFrequencySchedule
Returns
Type Description
AutomatedBackupConfig.Builder

mergeFrom(AutomatedBackupConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRetention(Duration value)

public AutomatedBackupConfig.Builder mergeRetention(Duration value)

Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.

optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
AutomatedBackupConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAutomatedBackupMode(AutomatedBackupConfig.AutomatedBackupMode value)

public AutomatedBackupConfig.Builder setAutomatedBackupMode(AutomatedBackupConfig.AutomatedBackupMode value)

Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutomatedBackupConfig.AutomatedBackupMode

The automatedBackupMode to set.

Returns
Type Description
AutomatedBackupConfig.Builder

This builder for chaining.

setAutomatedBackupModeValue(int value)

public AutomatedBackupConfig.Builder setAutomatedBackupModeValue(int value)

Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for automatedBackupMode to set.

Returns
Type Description
AutomatedBackupConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule value)

public AutomatedBackupConfig.Builder setFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule value)

Optional. Trigger automated backups at a fixed frequency.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AutomatedBackupConfig.FixedFrequencySchedule
Returns
Type Description
AutomatedBackupConfig.Builder

setFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule.Builder builderForValue)

public AutomatedBackupConfig.Builder setFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule.Builder builderForValue)

Optional. Trigger automated backups at a fixed frequency.

.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AutomatedBackupConfig.FixedFrequencySchedule.Builder
Returns
Type Description
AutomatedBackupConfig.Builder

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

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

setRetention(Duration value)

public AutomatedBackupConfig.Builder setRetention(Duration value)

Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.

optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
AutomatedBackupConfig.Builder

setRetention(Duration.Builder builderForValue)

public AutomatedBackupConfig.Builder setRetention(Duration.Builder builderForValue)

Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.

optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AutomatedBackupConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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