public static enum HealthCheckResponse.ServingStatus extends Enum<HealthCheckResponse.ServingStatus> implements com.google.protobuf.ProtocolMessageEnum
grpc.health.v1.HealthCheckResponse.ServingStatus| Enum Constant and Description |
|---|
NOT_SERVING
NOT_SERVING = 2; |
SERVICE_UNKNOWN
Used only by the Watch method.
|
SERVING
SERVING = 1; |
UNKNOWN
UNKNOWN = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
NOT_SERVING_VALUE
NOT_SERVING = 2; |
static int |
SERVICE_UNKNOWN_VALUE
Used only by the Watch method.
|
static int |
SERVING_VALUE
SERVING = 1; |
static int |
UNKNOWN_VALUE
UNKNOWN = 0; |
| Modifier and Type | Method and Description |
|---|---|
static HealthCheckResponse.ServingStatus |
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<HealthCheckResponse.ServingStatus> |
internalGetValueMap() |
static HealthCheckResponse.ServingStatus |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HealthCheckResponse.ServingStatus |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HealthCheckResponse.ServingStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HealthCheckResponse.ServingStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HealthCheckResponse.ServingStatus UNKNOWN
UNKNOWN = 0;public static final HealthCheckResponse.ServingStatus SERVING
SERVING = 1;public static final HealthCheckResponse.ServingStatus NOT_SERVING
NOT_SERVING = 2;public static final HealthCheckResponse.ServingStatus SERVICE_UNKNOWN
Used only by the Watch method.
SERVICE_UNKNOWN = 3;public static final HealthCheckResponse.ServingStatus UNRECOGNIZED
public static final int UNKNOWN_VALUE
UNKNOWN = 0;public static final int SERVING_VALUE
SERVING = 1;public static final int NOT_SERVING_VALUE
NOT_SERVING = 2;public static final int SERVICE_UNKNOWN_VALUE
Used only by the Watch method.
SERVICE_UNKNOWN = 3;public static HealthCheckResponse.ServingStatus[] values()
for (HealthCheckResponse.ServingStatus c : HealthCheckResponse.ServingStatus.values()) System.out.println(c);
public static HealthCheckResponse.ServingStatus 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 HealthCheckResponse.ServingStatus valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static HealthCheckResponse.ServingStatus forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<HealthCheckResponse.ServingStatus> 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 HealthCheckResponse.ServingStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)