public static enum ServerReflectionResponse.MessageResponseCase extends Enum<ServerReflectionResponse.MessageResponseCase> implements com.google.protobuf.Internal.EnumLite
| 枚举常量和说明 |
|---|
ALL_EXTENSION_NUMBERS_RESPONSE |
ERROR_RESPONSE |
FILE_DESCRIPTOR_RESPONSE |
LIST_SERVICES_RESPONSE |
MESSAGERESPONSE_NOT_SET |
| 限定符和类型 | 方法和说明 |
|---|---|
static ServerReflectionResponse.MessageResponseCase |
forNumber(int value) |
int |
getNumber() |
static ServerReflectionResponse.MessageResponseCase |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static ServerReflectionResponse.MessageResponseCase |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ServerReflectionResponse.MessageResponseCase[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ServerReflectionResponse.MessageResponseCase FILE_DESCRIPTOR_RESPONSE
public static final ServerReflectionResponse.MessageResponseCase ALL_EXTENSION_NUMBERS_RESPONSE
public static final ServerReflectionResponse.MessageResponseCase LIST_SERVICES_RESPONSE
public static final ServerReflectionResponse.MessageResponseCase ERROR_RESPONSE
public static final ServerReflectionResponse.MessageResponseCase MESSAGERESPONSE_NOT_SET
public static ServerReflectionResponse.MessageResponseCase[] values()
for (ServerReflectionResponse.MessageResponseCase c : ServerReflectionResponse.MessageResponseCase.values()) System.out.println(c);
public static ServerReflectionResponse.MessageResponseCase valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值@Deprecated public static ServerReflectionResponse.MessageResponseCase valueOf(int value)
forNumber(int) instead.value - The number of the enum to look for.public static ServerReflectionResponse.MessageResponseCase forNumber(int value)
public int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLiteCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.