public static enum ApiMethodDescriptor.MethodType extends Enum<ApiMethodDescriptor.MethodType>
| Enum Constant and Description |
|---|
BIDI_STREAMING |
CLIENT_STREAMING |
SERVER_STREAMING |
UNARY |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ApiMethodDescriptor.MethodType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiMethodDescriptor.MethodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiMethodDescriptor.MethodType UNARY
public static final ApiMethodDescriptor.MethodType CLIENT_STREAMING
public static final ApiMethodDescriptor.MethodType SERVER_STREAMING
public static final ApiMethodDescriptor.MethodType BIDI_STREAMING
public static final ApiMethodDescriptor.MethodType UNKNOWN
public static ApiMethodDescriptor.MethodType[] values()
for (ApiMethodDescriptor.MethodType c : ApiMethodDescriptor.MethodType.values()) System.out.println(c);
public static ApiMethodDescriptor.MethodType 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 null