public static enum PersistenceConfig.PersistenceMode extends Enum<PersistenceConfig.PersistenceMode> implements com.google.protobuf.ProtocolMessageEnum
Available Persistence modes.Protobuf enum
google.cloud.redis.v1.PersistenceConfig.PersistenceMode| Enum Constant and Description |
|---|
DISABLED
Persistence is disabled for the instance,
and any existing snapshots are deleted.
|
PERSISTENCE_MODE_UNSPECIFIED
Not set.
|
RDB
RDB based Persistence is enabled.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DISABLED_VALUE
Persistence is disabled for the instance,
and any existing snapshots are deleted.
|
static int |
PERSISTENCE_MODE_UNSPECIFIED_VALUE
Not set.
|
static int |
RDB_VALUE
RDB based Persistence is enabled.
|
| Modifier and Type | Method and Description |
|---|---|
static PersistenceConfig.PersistenceMode |
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<PersistenceConfig.PersistenceMode> |
internalGetValueMap() |
static PersistenceConfig.PersistenceMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static PersistenceConfig.PersistenceMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PersistenceConfig.PersistenceMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceConfig.PersistenceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistenceConfig.PersistenceMode PERSISTENCE_MODE_UNSPECIFIED
Not set.
PERSISTENCE_MODE_UNSPECIFIED = 0;public static final PersistenceConfig.PersistenceMode DISABLED
Persistence is disabled for the instance, and any existing snapshots are deleted.
DISABLED = 1;public static final PersistenceConfig.PersistenceMode RDB
RDB based Persistence is enabled.
RDB = 2;public static final PersistenceConfig.PersistenceMode UNRECOGNIZED
public static final int PERSISTENCE_MODE_UNSPECIFIED_VALUE
Not set.
PERSISTENCE_MODE_UNSPECIFIED = 0;public static final int DISABLED_VALUE
Persistence is disabled for the instance, and any existing snapshots are deleted.
DISABLED = 1;public static final int RDB_VALUE
RDB based Persistence is enabled.
RDB = 2;public static PersistenceConfig.PersistenceMode[] values()
for (PersistenceConfig.PersistenceMode c : PersistenceConfig.PersistenceMode.values()) System.out.println(c);
public static PersistenceConfig.PersistenceMode 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 PersistenceConfig.PersistenceMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static PersistenceConfig.PersistenceMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<PersistenceConfig.PersistenceMode> 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 PersistenceConfig.PersistenceMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.