public static enum Control.RpcType extends Enum<Control.RpcType> implements com.google.protobuf.ProtocolMessageEnum
grpc.testing.RpcType| Enum Constant and Description |
|---|
STREAMING
STREAMING = 1; |
STREAMING_BOTH_WAYS
STREAMING_BOTH_WAYS = 4; |
STREAMING_FROM_CLIENT
STREAMING_FROM_CLIENT = 2; |
STREAMING_FROM_SERVER
STREAMING_FROM_SERVER = 3; |
UNARY
UNARY = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
STREAMING_BOTH_WAYS_VALUE
STREAMING_BOTH_WAYS = 4; |
static int |
STREAMING_FROM_CLIENT_VALUE
STREAMING_FROM_CLIENT = 2; |
static int |
STREAMING_FROM_SERVER_VALUE
STREAMING_FROM_SERVER = 3; |
static int |
STREAMING_VALUE
STREAMING = 1; |
static int |
UNARY_VALUE
UNARY = 0; |
| Modifier and Type | Method and Description |
|---|---|
static Control.RpcType |
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.RpcType> |
internalGetValueMap() |
static Control.RpcType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Control.RpcType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Control.RpcType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Control.RpcType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Control.RpcType UNARY
UNARY = 0;public static final Control.RpcType STREAMING
STREAMING = 1;public static final Control.RpcType STREAMING_FROM_CLIENT
STREAMING_FROM_CLIENT = 2;public static final Control.RpcType STREAMING_FROM_SERVER
STREAMING_FROM_SERVER = 3;public static final Control.RpcType STREAMING_BOTH_WAYS
STREAMING_BOTH_WAYS = 4;public static final Control.RpcType UNRECOGNIZED
public static final int UNARY_VALUE
UNARY = 0;public static final int STREAMING_VALUE
STREAMING = 1;public static final int STREAMING_FROM_CLIENT_VALUE
STREAMING_FROM_CLIENT = 2;public static final int STREAMING_FROM_SERVER_VALUE
STREAMING_FROM_SERVER = 3;public static final int STREAMING_BOTH_WAYS_VALUE
STREAMING_BOTH_WAYS = 4;public static Control.RpcType[] values()
for (Control.RpcType c : Control.RpcType.values()) System.out.println(c);
public static Control.RpcType 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.RpcType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Control.RpcType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Control.RpcType> 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.RpcType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)