public static enum Control.ServerType extends Enum<Control.ServerType> implements com.google.protobuf.ProtocolMessageEnum
grpc.testing.ServerType| Enum Constant and Description |
|---|
ASYNC_GENERIC_SERVER
ASYNC_GENERIC_SERVER = 2; |
ASYNC_SERVER
ASYNC_SERVER = 1; |
OTHER_SERVER
used for some language-specific variants
|
SYNC_SERVER
SYNC_SERVER = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ASYNC_GENERIC_SERVER_VALUE
ASYNC_GENERIC_SERVER = 2; |
static int |
ASYNC_SERVER_VALUE
ASYNC_SERVER = 1; |
static int |
OTHER_SERVER_VALUE
used for some language-specific variants
|
static int |
SYNC_SERVER_VALUE
SYNC_SERVER = 0; |
| Modifier and Type | Method and Description |
|---|---|
static Control.ServerType |
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<Control.ServerType> |
internalGetValueMap() |
static Control.ServerType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Control.ServerType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Control.ServerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Control.ServerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Control.ServerType SYNC_SERVER
SYNC_SERVER = 0;public static final Control.ServerType ASYNC_SERVER
ASYNC_SERVER = 1;public static final Control.ServerType ASYNC_GENERIC_SERVER
ASYNC_GENERIC_SERVER = 2;public static final Control.ServerType OTHER_SERVER
used for some language-specific variants
OTHER_SERVER = 3;public static final Control.ServerType UNRECOGNIZED
public static final int SYNC_SERVER_VALUE
SYNC_SERVER = 0;public static final int ASYNC_SERVER_VALUE
ASYNC_SERVER = 1;public static final int ASYNC_GENERIC_SERVER_VALUE
ASYNC_GENERIC_SERVER = 2;public static final int OTHER_SERVER_VALUE
used for some language-specific variants
OTHER_SERVER = 3;public static Control.ServerType[] values()
for (Control.ServerType c : Control.ServerType.values()) System.out.println(c);
public static Control.ServerType 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 Control.ServerType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Control.ServerType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Control.ServerType> 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 Control.ServerType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)