Enum Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy
java.lang.Object
java.lang.Enum<Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy>
io.envoyproxy.envoy.config.cluster.v3.Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy>
- Enclosing class:
Cluster.LbSubsetConfig
public static enum Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy
extends Enum<Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
envoy.config.cluster.v3.Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA special metadata key ``fallback_list`` will be used to provide variants of metadata to try.No fallback. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A special metadata key ``fallback_list`` will be used to provide variants of metadata to try.private static final com.google.protobuf.Internal.EnumLiteMap
<Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy> static final int
No fallback.private final int
private static final Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy> valueOf
(int value) Deprecated.valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
METADATA_NO_FALLBACK
No fallback. Route metadata will be used as-is.
METADATA_NO_FALLBACK = 0;
-
FALLBACK_LIST
A special metadata key ``fallback_list`` will be used to provide variants of metadata to try. Value of ``fallback_list`` key has to be a list. Every list element has to be a struct - it will be merged with route metadata, overriding keys that appear in both places. ``fallback_list`` entries will be used in order until a host is found. ``fallback_list`` key itself is removed from metadata before subset load balancing is performed. Example: for metadata: .. code-block:: yaml version: 1.0 fallback_list: - version: 2.0 hardware: c64 - hardware: c32 - version: 3.0 at first, metadata: .. code-block:: json {"version": "2.0", "hardware": "c64"} will be used for load balancing. If no host is found, metadata: .. code-block:: json {"version": "1.0", "hardware": "c32"} is next to try. If it still results in no host, finally metadata: .. code-block:: json {"version": "3.0"} is used.
FALLBACK_LIST = 1;
-
UNRECOGNIZED
-
-
Field Details
-
METADATA_NO_FALLBACK_VALUE
public static final int METADATA_NO_FALLBACK_VALUENo fallback. Route metadata will be used as-is.
METADATA_NO_FALLBACK = 0;
- See Also:
-
FALLBACK_LIST_VALUE
public static final int FALLBACK_LIST_VALUEA special metadata key ``fallback_list`` will be used to provide variants of metadata to try. Value of ``fallback_list`` key has to be a list. Every list element has to be a struct - it will be merged with route metadata, overriding keys that appear in both places. ``fallback_list`` entries will be used in order until a host is found. ``fallback_list`` key itself is removed from metadata before subset load balancing is performed. Example: for metadata: .. code-block:: yaml version: 1.0 fallback_list: - version: 2.0 hardware: c64 - hardware: c32 - version: 3.0 at first, metadata: .. code-block:: json {"version": "2.0", "hardware": "c64"} will be used for load balancing. If no host is found, metadata: .. code-block:: json {"version": "1.0", "hardware": "c32"} is next to try. If it still results in no host, finally metadata: .. code-block:: json {"version": "3.0"} is used.
FALLBACK_LIST = 1;
- See Also:
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy> internalValueMap -
VALUES
-
value
private final int value
-
-
Constructor Details
-
LbSubsetMetadataFallbackPolicy
private LbSubsetMetadataFallbackPolicy(int value)
-
-
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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<Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy 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
-