public static enum FailoverInstanceRequest.DataProtectionMode extends Enum<FailoverInstanceRequest.DataProtectionMode> implements com.google.protobuf.ProtocolMessageEnum
Specifies different modes of operation in relation to the data retention.Protobuf enum
google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode| Enum Constant and Description |
|---|
DATA_PROTECTION_MODE_UNSPECIFIED
Defaults to LIMITED_DATA_LOSS if a data protection mode is not
specified.
|
FORCE_DATA_LOSS
Instance failover will be performed without data loss control.
|
LIMITED_DATA_LOSS
Instance failover will be protected with data loss control.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_PROTECTION_MODE_UNSPECIFIED_VALUE
Defaults to LIMITED_DATA_LOSS if a data protection mode is not
specified.
|
static int |
FORCE_DATA_LOSS_VALUE
Instance failover will be performed without data loss control.
|
static int |
LIMITED_DATA_LOSS_VALUE
Instance failover will be protected with data loss control.
|
| Modifier and Type | Method and Description |
|---|---|
static FailoverInstanceRequest.DataProtectionMode |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<FailoverInstanceRequest.DataProtectionMode> |
internalGetValueMap() |
static FailoverInstanceRequest.DataProtectionMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static FailoverInstanceRequest.DataProtectionMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static FailoverInstanceRequest.DataProtectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FailoverInstanceRequest.DataProtectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailoverInstanceRequest.DataProtectionMode DATA_PROTECTION_MODE_UNSPECIFIED
Defaults to LIMITED_DATA_LOSS if a data protection mode is not specified.
DATA_PROTECTION_MODE_UNSPECIFIED = 0;public static final FailoverInstanceRequest.DataProtectionMode LIMITED_DATA_LOSS
Instance failover will be protected with data loss control. More specifically, the failover will only be performed if the current replication offset diff between primary and replica is under a certain threshold.
LIMITED_DATA_LOSS = 1;public static final FailoverInstanceRequest.DataProtectionMode FORCE_DATA_LOSS
Instance failover will be performed without data loss control.
FORCE_DATA_LOSS = 2;public static final FailoverInstanceRequest.DataProtectionMode UNRECOGNIZED
public static final int DATA_PROTECTION_MODE_UNSPECIFIED_VALUE
Defaults to LIMITED_DATA_LOSS if a data protection mode is not specified.
DATA_PROTECTION_MODE_UNSPECIFIED = 0;public static final int LIMITED_DATA_LOSS_VALUE
Instance failover will be protected with data loss control. More specifically, the failover will only be performed if the current replication offset diff between primary and replica is under a certain threshold.
LIMITED_DATA_LOSS = 1;public static final int FORCE_DATA_LOSS_VALUE
Instance failover will be performed without data loss control.
FORCE_DATA_LOSS = 2;public static FailoverInstanceRequest.DataProtectionMode[] values()
for (FailoverInstanceRequest.DataProtectionMode c : FailoverInstanceRequest.DataProtectionMode.values()) System.out.println(c);
public static FailoverInstanceRequest.DataProtectionMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static FailoverInstanceRequest.DataProtectionMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static FailoverInstanceRequest.DataProtectionMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<FailoverInstanceRequest.DataProtectionMode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static FailoverInstanceRequest.DataProtectionMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.