public static enum PersistenceConfig.SnapshotPeriod extends Enum<PersistenceConfig.SnapshotPeriod> implements com.google.protobuf.ProtocolMessageEnum
Available snapshot periods for scheduling.Protobuf enum
google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod| Enum Constant and Description |
|---|
ONE_HOUR
Snapshot every 1 hour.
|
SIX_HOURS
Snapshot every 6 hours.
|
SNAPSHOT_PERIOD_UNSPECIFIED
Not set.
|
TWELVE_HOURS
Snapshot every 12 hours.
|
TWENTY_FOUR_HOURS
Snapshot every 24 hours.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ONE_HOUR_VALUE
Snapshot every 1 hour.
|
static int |
SIX_HOURS_VALUE
Snapshot every 6 hours.
|
static int |
SNAPSHOT_PERIOD_UNSPECIFIED_VALUE
Not set.
|
static int |
TWELVE_HOURS_VALUE
Snapshot every 12 hours.
|
static int |
TWENTY_FOUR_HOURS_VALUE
Snapshot every 24 hours.
|
| Modifier and Type | Method and Description |
|---|---|
static PersistenceConfig.SnapshotPeriod |
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.SnapshotPeriod> |
internalGetValueMap() |
static PersistenceConfig.SnapshotPeriod |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static PersistenceConfig.SnapshotPeriod |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PersistenceConfig.SnapshotPeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceConfig.SnapshotPeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistenceConfig.SnapshotPeriod SNAPSHOT_PERIOD_UNSPECIFIED
Not set.
SNAPSHOT_PERIOD_UNSPECIFIED = 0;public static final PersistenceConfig.SnapshotPeriod ONE_HOUR
Snapshot every 1 hour.
ONE_HOUR = 3;public static final PersistenceConfig.SnapshotPeriod SIX_HOURS
Snapshot every 6 hours.
SIX_HOURS = 4;public static final PersistenceConfig.SnapshotPeriod TWELVE_HOURS
Snapshot every 12 hours.
TWELVE_HOURS = 5;public static final PersistenceConfig.SnapshotPeriod TWENTY_FOUR_HOURS
Snapshot every 24 hours.
TWENTY_FOUR_HOURS = 6;public static final PersistenceConfig.SnapshotPeriod UNRECOGNIZED
public static final int SNAPSHOT_PERIOD_UNSPECIFIED_VALUE
Not set.
SNAPSHOT_PERIOD_UNSPECIFIED = 0;public static final int ONE_HOUR_VALUE
Snapshot every 1 hour.
ONE_HOUR = 3;public static final int SIX_HOURS_VALUE
Snapshot every 6 hours.
SIX_HOURS = 4;public static final int TWELVE_HOURS_VALUE
Snapshot every 12 hours.
TWELVE_HOURS = 5;public static final int TWENTY_FOUR_HOURS_VALUE
Snapshot every 24 hours.
TWENTY_FOUR_HOURS = 6;public static PersistenceConfig.SnapshotPeriod[] values()
for (PersistenceConfig.SnapshotPeriod c : PersistenceConfig.SnapshotPeriod.values()) System.out.println(c);
public static PersistenceConfig.SnapshotPeriod 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.SnapshotPeriod valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static PersistenceConfig.SnapshotPeriod forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<PersistenceConfig.SnapshotPeriod> 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.SnapshotPeriod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.