Enum ConnectionType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ConnectionType>
@Generated
public enum ConnectionType
extends Enum<ConnectionType>
implements com.google.protobuf.ProtocolMessageEnum
Type of a PSC connection, for cluster access purpose.Protobuf enum
google.cloud.redis.cluster.v1beta1.ConnectionType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCluster endpoint that will be used as for cluster topology discovery.Cluster endpoint that will be used as primary endpoint to access primary.Cluster endpoint that will be used as reader endpoint to access replicas.Cluster endpoint Type is not set -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCluster endpoint that will be used as for cluster topology discovery.static final intCluster endpoint that will be used as primary endpoint to access primary.static final intCluster endpoint that will be used as reader endpoint to access replicas.static final intCluster endpoint Type is not set -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ConnectionType>static ConnectionTypevalueOf(int value) Deprecated.static ConnectionTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ConnectionTypeReturns the enum constant of this type with the specified name.static ConnectionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CONNECTION_TYPE_UNSPECIFIED
Cluster endpoint Type is not set
CONNECTION_TYPE_UNSPECIFIED = 0; -
CONNECTION_TYPE_DISCOVERY
Cluster endpoint that will be used as for cluster topology discovery.
CONNECTION_TYPE_DISCOVERY = 1; -
CONNECTION_TYPE_PRIMARY
Cluster endpoint that will be used as primary endpoint to access primary.
CONNECTION_TYPE_PRIMARY = 2; -
CONNECTION_TYPE_READER
Cluster endpoint that will be used as reader endpoint to access replicas.
CONNECTION_TYPE_READER = 3; -
UNRECOGNIZED
-
-
Field Details
-
CONNECTION_TYPE_UNSPECIFIED_VALUE
public static final int CONNECTION_TYPE_UNSPECIFIED_VALUECluster endpoint Type is not set
CONNECTION_TYPE_UNSPECIFIED = 0;- See Also:
-
CONNECTION_TYPE_DISCOVERY_VALUE
public static final int CONNECTION_TYPE_DISCOVERY_VALUECluster endpoint that will be used as for cluster topology discovery.
CONNECTION_TYPE_DISCOVERY = 1;- See Also:
-
CONNECTION_TYPE_PRIMARY_VALUE
public static final int CONNECTION_TYPE_PRIMARY_VALUECluster endpoint that will be used as primary endpoint to access primary.
CONNECTION_TYPE_PRIMARY = 2;- See Also:
-
CONNECTION_TYPE_READER_VALUE
public static final int CONNECTION_TYPE_READER_VALUECluster endpoint that will be used as reader endpoint to access replicas.
CONNECTION_TYPE_READER = 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
-
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
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
-