Class AutomatedBackupConfig (0.30.0)

public final class AutomatedBackupConfig extends GeneratedMessageV3 implements AutomatedBackupConfigOrBuilder

The automated backup config for a cluster.

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

Static Fields

AUTOMATED_BACKUP_MODE_FIELD_NUMBER

public static final int AUTOMATED_BACKUP_MODE_FIELD_NUMBER
Field Value
TypeDescription
int

FIXED_FREQUENCY_SCHEDULE_FIELD_NUMBER

public static final int FIXED_FREQUENCY_SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

RETENTION_FIELD_NUMBER

public static final int RETENTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AutomatedBackupConfig getDefaultInstance()
Returns
TypeDescription
AutomatedBackupConfig

getDescriptor()

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

newBuilder()

public static AutomatedBackupConfig.Builder newBuilder()
Returns
TypeDescription
AutomatedBackupConfig.Builder

newBuilder(AutomatedBackupConfig )

public static AutomatedBackupConfig.Builder newBuilder(AutomatedBackupConfig )
Parameter
NameDescription
AutomatedBackupConfig
Returns
TypeDescription
AutomatedBackupConfig.Builder

parseDelimitedFrom(InputStream input)

public static AutomatedBackupConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AutomatedBackupConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutomatedBackupConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutomatedBackupConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AutomatedBackupConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AutomatedBackupConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AutomatedBackupConfig> parser()
Returns
TypeDescription
Parser<AutomatedBackupConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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.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

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.

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

getParserForType()

public Parser<AutomatedBackupConfig> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getScheduleCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutomatedBackupConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AutomatedBackupConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException