public enum Action extends Enum<Action> implements com.google.protobuf.ProtocolMessageEnum
Represents possible action applied to upstream hostProtobuf enum
envoy.data.cluster.v2alpha.Action| Enum Constant and Description |
|---|
EJECT
In case host was excluded from service
EJECT = 0; |
UNEJECT
In case host was brought back into service
UNEJECT = 1; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
EJECT_VALUE
In case host was excluded from service
EJECT = 0; |
static int |
UNEJECT_VALUE
In case host was brought back into service
UNEJECT = 1; |
| Modifier and Type | Method and Description |
|---|---|
static Action |
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<Action> |
internalGetValueMap() |
static Action |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Action |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Action EJECT
In case host was excluded from service
EJECT = 0;public static final Action UNEJECT
In case host was brought back into service
UNEJECT = 1;public static final Action UNRECOGNIZED
public static final int EJECT_VALUE
In case host was excluded from service
EJECT = 0;public static final int UNEJECT_VALUE
In case host was brought back into service
UNEJECT = 1;public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action 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 Action valueOf(int value)
forNumber(int) instead.public static Action forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Action> 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 Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.