Class AutomatedBackupConfig.Builder (0.30.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.v1.AutomatedBackupConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutomatedBackupConfig build()
Returns
TypeDescription
AutomatedBackupConfig

buildPartial()

public AutomatedBackupConfig buildPartial()
Returns
TypeDescription
AutomatedBackupConfig

clear()

public AutomatedBackupConfig.Builder clear()
Returns
TypeDescription
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.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AutomatedBackupConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFixedFrequencySchedule()

public AutomatedBackupConfig.Builder clearFixedFrequencySchedule()

Optional. Trigger automated backups at a fixed frequency.

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

Returns
TypeDescription
AutomatedBackupConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomatedBackupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AutomatedBackupConfig.Builder

clearSchedule()

public AutomatedBackupConfig.Builder clearSchedule()
Returns
TypeDescription
AutomatedBackupConfig.Builder

clone()

public AutomatedBackupConfig.Builder clone()
Returns
TypeDescription
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.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for automatedBackupMode.

getDefaultInstanceForType()

public AutomatedBackupConfig getDefaultInstanceForType()
Returns
TypeDescription
AutomatedBackupConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFixedFrequencySchedule()

public AutomatedBackupConfig.FixedFrequencySchedule getFixedFrequencySchedule()

Optional. Trigger automated backups at a fixed frequency.

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

Returns
TypeDescription
AutomatedBackupConfig.FixedFrequencySchedule

The fixedFrequencySchedule.

getFixedFrequencyScheduleBuilder()

public AutomatedBackupConfig.FixedFrequencySchedule.Builder getFixedFrequencyScheduleBuilder()

Optional. Trigger automated backups at a fixed frequency.

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

Returns
TypeDescription
AutomatedBackupConfig.FixedFrequencySchedule.Builder

getFixedFrequencyScheduleOrBuilder()

public AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder getFixedFrequencyScheduleOrBuilder()

Optional. Trigger automated backups at a fixed frequency.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getScheduleCase()

public AutomatedBackupConfig.ScheduleCase getScheduleCase()
Returns
TypeDescription
AutomatedBackupConfig.ScheduleCase

hasFixedFrequencySchedule()

public boolean hasFixedFrequencySchedule()

Optional. Trigger automated backups at a fixed frequency.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the retention field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAutomatedBackupConfig.FixedFrequencySchedule
Returns
TypeDescription
AutomatedBackupConfig.Builder

mergeFrom(AutomatedBackupConfig other)

public AutomatedBackupConfig.Builder mergeFrom(AutomatedBackupConfig other)
Parameter
NameDescription
otherAutomatedBackupConfig
Returns
TypeDescription
AutomatedBackupConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AutomatedBackupConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
AutomatedBackupConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAutomatedBackupConfig.AutomatedBackupMode

The automatedBackupMode to set.

Returns
TypeDescription
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.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
AutomatedBackupConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAutomatedBackupConfig.FixedFrequencySchedule
Returns
TypeDescription
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.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAutomatedBackupConfig.FixedFrequencySchedule.Builder
Returns
TypeDescription
AutomatedBackupConfig.Builder

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

public AutomatedBackupConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AutomatedBackupConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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