public static enum Instance.ReadReplicasMode extends Enum<Instance.ReadReplicasMode> implements com.google.protobuf.ProtocolMessageEnum
Read replicas mode.Protobuf enum
google.cloud.redis.v1.Instance.ReadReplicasMode| Enum Constant and Description |
|---|
READ_REPLICAS_DISABLED
If disabled, read endpoint will not be provided and the instance cannot
scale up or down the number of replicas.
|
READ_REPLICAS_ENABLED
If enabled, read endpoint will be provided and the instance can scale
up and down the number of replicas.
|
READ_REPLICAS_MODE_UNSPECIFIED
If not set, Memorystore Redis backend will pick the mode based on other fields in
the request.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
READ_REPLICAS_DISABLED_VALUE
If disabled, read endpoint will not be provided and the instance cannot
scale up or down the number of replicas.
|
static int |
READ_REPLICAS_ENABLED_VALUE
If enabled, read endpoint will be provided and the instance can scale
up and down the number of replicas.
|
static int |
READ_REPLICAS_MODE_UNSPECIFIED_VALUE
If not set, Memorystore Redis backend will pick the mode based on other fields in
the request.
|
| Modifier and Type | Method and Description |
|---|---|
static Instance.ReadReplicasMode |
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<Instance.ReadReplicasMode> |
internalGetValueMap() |
static Instance.ReadReplicasMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Instance.ReadReplicasMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Instance.ReadReplicasMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Instance.ReadReplicasMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Instance.ReadReplicasMode READ_REPLICAS_MODE_UNSPECIFIED
If not set, Memorystore Redis backend will pick the mode based on other fields in the request.
READ_REPLICAS_MODE_UNSPECIFIED = 0;public static final Instance.ReadReplicasMode READ_REPLICAS_DISABLED
If disabled, read endpoint will not be provided and the instance cannot scale up or down the number of replicas.
READ_REPLICAS_DISABLED = 1;public static final Instance.ReadReplicasMode READ_REPLICAS_ENABLED
If enabled, read endpoint will be provided and the instance can scale up and down the number of replicas.
READ_REPLICAS_ENABLED = 2;public static final Instance.ReadReplicasMode UNRECOGNIZED
public static final int READ_REPLICAS_MODE_UNSPECIFIED_VALUE
If not set, Memorystore Redis backend will pick the mode based on other fields in the request.
READ_REPLICAS_MODE_UNSPECIFIED = 0;public static final int READ_REPLICAS_DISABLED_VALUE
If disabled, read endpoint will not be provided and the instance cannot scale up or down the number of replicas.
READ_REPLICAS_DISABLED = 1;public static final int READ_REPLICAS_ENABLED_VALUE
If enabled, read endpoint will be provided and the instance can scale up and down the number of replicas.
READ_REPLICAS_ENABLED = 2;public static Instance.ReadReplicasMode[] values()
for (Instance.ReadReplicasMode c : Instance.ReadReplicasMode.values()) System.out.println(c);
public static Instance.ReadReplicasMode 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 Instance.ReadReplicasMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Instance.ReadReplicasMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Instance.ReadReplicasMode> 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 Instance.ReadReplicasMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.