public static enum ResponseProto.DiscoverResponse.DiscoverResponseType extends Enum<ResponseProto.DiscoverResponse.DiscoverResponseType> implements com.google.protobuf.ProtocolMessageEnum
v1.DiscoverResponse.DiscoverResponseType| 枚举常量和说明 |
|---|
CIRCUIT_BREAKER
CIRCUIT_BREAKER = 5; |
CLUSTER
CLUSTER = 2; |
INSTANCE
INSTANCE = 1; |
RATE_LIMIT
RATE_LIMIT = 4; |
ROUTING
ROUTING = 3; |
SERVICES
SERVICES = 6; |
UNKNOWN
UNKNOWN = 0; |
UNRECOGNIZED |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CIRCUIT_BREAKER_VALUE
CIRCUIT_BREAKER = 5; |
static int |
CLUSTER_VALUE
CLUSTER = 2; |
static int |
INSTANCE_VALUE
INSTANCE = 1; |
static int |
RATE_LIMIT_VALUE
RATE_LIMIT = 4; |
static int |
ROUTING_VALUE
ROUTING = 3; |
static int |
SERVICES_VALUE
SERVICES = 6; |
static int |
UNKNOWN_VALUE
UNKNOWN = 0; |
| 限定符和类型 | 方法和说明 |
|---|---|
static ResponseProto.DiscoverResponse.DiscoverResponseType |
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<ResponseProto.DiscoverResponse.DiscoverResponseType> |
internalGetValueMap() |
static ResponseProto.DiscoverResponse.DiscoverResponseType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ResponseProto.DiscoverResponse.DiscoverResponseType |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static ResponseProto.DiscoverResponse.DiscoverResponseType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ResponseProto.DiscoverResponse.DiscoverResponseType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ResponseProto.DiscoverResponse.DiscoverResponseType UNKNOWN
UNKNOWN = 0;public static final ResponseProto.DiscoverResponse.DiscoverResponseType INSTANCE
INSTANCE = 1;public static final ResponseProto.DiscoverResponse.DiscoverResponseType CLUSTER
CLUSTER = 2;public static final ResponseProto.DiscoverResponse.DiscoverResponseType ROUTING
ROUTING = 3;public static final ResponseProto.DiscoverResponse.DiscoverResponseType RATE_LIMIT
RATE_LIMIT = 4;public static final ResponseProto.DiscoverResponse.DiscoverResponseType CIRCUIT_BREAKER
CIRCUIT_BREAKER = 5;public static final ResponseProto.DiscoverResponse.DiscoverResponseType SERVICES
SERVICES = 6;public static final ResponseProto.DiscoverResponse.DiscoverResponseType UNRECOGNIZED
public static final int UNKNOWN_VALUE
UNKNOWN = 0;public static final int INSTANCE_VALUE
INSTANCE = 1;public static final int CLUSTER_VALUE
CLUSTER = 2;public static final int ROUTING_VALUE
ROUTING = 3;public static final int RATE_LIMIT_VALUE
RATE_LIMIT = 4;public static final int CIRCUIT_BREAKER_VALUE
CIRCUIT_BREAKER = 5;public static final int SERVICES_VALUE
SERVICES = 6;public static ResponseProto.DiscoverResponse.DiscoverResponseType[] values()
for (ResponseProto.DiscoverResponse.DiscoverResponseType c : ResponseProto.DiscoverResponse.DiscoverResponseType.values()) System.out.println(c);
public static ResponseProto.DiscoverResponse.DiscoverResponseType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static ResponseProto.DiscoverResponse.DiscoverResponseType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ResponseProto.DiscoverResponse.DiscoverResponseType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ResponseProto.DiscoverResponse.DiscoverResponseType> 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 ResponseProto.DiscoverResponse.DiscoverResponseType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021. All rights reserved.