Class AutomatedBackupConfig (0.29.0)

public final class AutomatedBackupConfig extends GeneratedMessageV3 implements AutomatedBackupConfigOrBuilder

The automated backup config for a cluster.

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

Static Fields

AUTOMATED_BACKUP_MODE_FIELD_NUMBER

public static final int AUTOMATED_BACKUP_MODE_FIELD_NUMBER
Field Value
Type Description
int

FIXED_FREQUENCY_SCHEDULE_FIELD_NUMBER

public static final int FIXED_FREQUENCY_SCHEDULE_FIELD_NUMBER
Field Value
Type Description
int

RETENTION_FIELD_NUMBER

public static final int RETENTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AutomatedBackupConfig getDefaultInstance()
Returns
Type Description
AutomatedBackupConfig

getDescriptor()

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

newBuilder()

public static AutomatedBackupConfig.Builder newBuilder()
Returns
Type Description
AutomatedBackupConfig.Builder

newBuilder(AutomatedBackupConfig prototype)

public static AutomatedBackupConfig.Builder newBuilder(AutomatedBackupConfig prototype)
Parameter
Name Description
prototype AutomatedBackupConfig
Returns
Type Description
AutomatedBackupConfig.Builder

parseDelimitedFrom(InputStream input)

public static AutomatedBackupConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AutomatedBackupConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutomatedBackupConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutomatedBackupConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AutomatedBackupConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AutomatedBackupConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AutomatedBackupConfig> parser()
Returns
Type Description
Parser<AutomatedBackupConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

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

getParserForType()

public Parser<AutomatedBackupConfig> getParserForType()
Returns
Type Description
Parser<AutomatedBackupConfig>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutomatedBackupConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AutomatedBackupConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException