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