public static enum HealthCheckResponse.ServingStatus extends Enum<HealthCheckResponse.ServingStatus> implements com.google.protobuf.ProtocolMessageEnum
grpc.health.v1.HealthCheckResponse.ServingStatus| 枚举常量和说明 |
|---|
NOT_SERVING
NOT_SERVING = 2; |
SERVICE_UNKNOWN
Used only by the Watch method.
|
SERVING
SERVING = 1; |
UNKNOWN
UNKNOWN = 0; |
UNRECOGNIZED |
| 限定符和类型 | 字段和说明 |
|---|---|
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; |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
已过时。
Use
forNumber(int) instead. |
static HealthCheckResponse.ServingStatus |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HealthCheckResponse.ServingStatus[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 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 在接口中 com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static HealthCheckResponse.ServingStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.