public static enum MethodDescriptor.RpcType extends Enum<MethodDescriptor.RpcType>
| Enum Constant and Description |
|---|
BI_STREAM |
CLIENT_STREAM |
SERVER_STREAM |
UNARY |
| Modifier and Type | Method and Description |
|---|---|
static MethodDescriptor.RpcType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodDescriptor.RpcType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodDescriptor.RpcType UNARY
public static final MethodDescriptor.RpcType CLIENT_STREAM
public static final MethodDescriptor.RpcType SERVER_STREAM
public static final MethodDescriptor.RpcType BI_STREAM
public static MethodDescriptor.RpcType[] values()
for (MethodDescriptor.RpcType c : MethodDescriptor.RpcType.values()) System.out.println(c);
public static MethodDescriptor.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 nullCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.