Enum HiveCatalog.Replica.State
java.lang.Object
java.lang.Enum<HiveCatalog.Replica.State>
com.google.cloud.biglake.hive.v1beta.HiveCatalog.Replica.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<HiveCatalog.Replica.State>
- Enclosing class:
- HiveCatalog.Replica
public static enum HiveCatalog.Replica.State
extends Enum<HiveCatalog.Replica.State>
implements com.google.protobuf.ProtocolMessageEnum
If the catalog is replicated to multiple regions, this enum describes the current state of the replica.Protobuf enum
google.cloud.biglake.hive.v1beta.HiveCatalog.Replica.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates the replica is the writable primary.Indicates the replica has been recently assigned as the primary, but not all databases are writeable yet.Indicates the replica is a read-only secondary replica.The replica state is unknown. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates the replica has been recently assigned as the primary, but not all databases are writeable yet.static final intIndicates the replica is the writable primary.static final intIndicates the replica is a read-only secondary replica.static final intThe replica state is unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic HiveCatalog.Replica.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<HiveCatalog.Replica.State>static HiveCatalog.Replica.StatevalueOf(int value) Deprecated.static HiveCatalog.Replica.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static HiveCatalog.Replica.StateReturns the enum constant of this type with the specified name.static HiveCatalog.Replica.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
The replica state is unknown.
STATE_UNSPECIFIED = 0; -
STATE_PRIMARY
Indicates the replica is the writable primary.
STATE_PRIMARY = 1; -
STATE_PRIMARY_IN_PROGRESS
Indicates the replica has been recently assigned as the primary, but not all databases are writeable yet.
STATE_PRIMARY_IN_PROGRESS = 2; -
STATE_SECONDARY
Indicates the replica is a read-only secondary replica.
STATE_SECONDARY = 3; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEThe replica state is unknown.
STATE_UNSPECIFIED = 0;- See Also:
-
STATE_PRIMARY_VALUE
public static final int STATE_PRIMARY_VALUEIndicates the replica is the writable primary.
STATE_PRIMARY = 1;- See Also:
-
STATE_PRIMARY_IN_PROGRESS_VALUE
public static final int STATE_PRIMARY_IN_PROGRESS_VALUEIndicates the replica has been recently assigned as the primary, but not all databases are writeable yet.
STATE_PRIMARY_IN_PROGRESS = 2;- See Also:
-
STATE_SECONDARY_VALUE
public static final int STATE_SECONDARY_VALUEIndicates the replica is a read-only secondary replica.
STATE_SECONDARY = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<HiveCatalog.Replica.State> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static HiveCatalog.Replica.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-