Package feast.proto.core
Enum StoreProto.Store.RedisClusterConfig.ReadFrom
- java.lang.Object
-
- java.lang.Enum<StoreProto.Store.RedisClusterConfig.ReadFrom>
-
- feast.proto.core.StoreProto.Store.RedisClusterConfig.ReadFrom
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StoreProto.Store.RedisClusterConfig.ReadFrom>
- Enclosing class:
- StoreProto.Store.RedisClusterConfig
public static enum StoreProto.Store.RedisClusterConfig.ReadFrom extends Enum<StoreProto.Store.RedisClusterConfig.ReadFrom> implements com.google.protobuf.ProtocolMessageEnum
Optional. Priority of nodes when reading from cluster
Protobuf enumfeast.core.Store.RedisClusterConfig.ReadFrom
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MASTERMASTER = 0;MASTER_PREFERREDMASTER_PREFERRED = 1;REPLICAREPLICA = 2;REPLICA_PREFERREDREPLICA_PREFERRED = 3;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intMASTER_PREFERRED_VALUEMASTER_PREFERRED = 1;static intMASTER_VALUEMASTER = 0;static intREPLICA_PREFERRED_VALUEREPLICA_PREFERRED = 3;static intREPLICA_VALUEREPLICA = 2;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StoreProto.Store.RedisClusterConfig.ReadFromforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<StoreProto.Store.RedisClusterConfig.ReadFrom>internalGetValueMap()static StoreProto.Store.RedisClusterConfig.ReadFromvalueOf(int value)Deprecated.static StoreProto.Store.RedisClusterConfig.ReadFromvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static StoreProto.Store.RedisClusterConfig.ReadFromvalueOf(String name)Returns the enum constant of this type with the specified name.static StoreProto.Store.RedisClusterConfig.ReadFrom[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MASTER
public static final StoreProto.Store.RedisClusterConfig.ReadFrom MASTER
MASTER = 0;
-
MASTER_PREFERRED
public static final StoreProto.Store.RedisClusterConfig.ReadFrom MASTER_PREFERRED
MASTER_PREFERRED = 1;
-
REPLICA
public static final StoreProto.Store.RedisClusterConfig.ReadFrom REPLICA
REPLICA = 2;
-
REPLICA_PREFERRED
public static final StoreProto.Store.RedisClusterConfig.ReadFrom REPLICA_PREFERRED
REPLICA_PREFERRED = 3;
-
UNRECOGNIZED
public static final StoreProto.Store.RedisClusterConfig.ReadFrom UNRECOGNIZED
-
-
Field Detail
-
MASTER_VALUE
public static final int MASTER_VALUE
MASTER = 0;- See Also:
- Constant Field Values
-
MASTER_PREFERRED_VALUE
public static final int MASTER_PREFERRED_VALUE
MASTER_PREFERRED = 1;- See Also:
- Constant Field Values
-
REPLICA_VALUE
public static final int REPLICA_VALUE
REPLICA = 2;- See Also:
- Constant Field Values
-
REPLICA_PREFERRED_VALUE
public static final int REPLICA_PREFERRED_VALUE
REPLICA_PREFERRED = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static StoreProto.Store.RedisClusterConfig.ReadFrom[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StoreProto.Store.RedisClusterConfig.ReadFrom c : StoreProto.Store.RedisClusterConfig.ReadFrom.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StoreProto.Store.RedisClusterConfig.ReadFrom valueOf(String name)
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 public static StoreProto.Store.RedisClusterConfig.ReadFrom valueOf(int value)
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
public static StoreProto.Store.RedisClusterConfig.ReadFrom forNumber(int value)
- 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<StoreProto.Store.RedisClusterConfig.ReadFrom> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static StoreProto.Store.RedisClusterConfig.ReadFrom 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
-
-