public static enum ServiceMethodDescriptor.MethodType extends java.lang.Enum<ServiceMethodDescriptor.MethodType>
| Enum Constant and Description |
|---|
BI_STREAM |
CLIENT_STREAM |
SERVER_STREAM |
SIMPLE |
| Modifier and Type | Method and Description |
|---|---|
static ServiceMethodDescriptor.MethodType |
fromDescriptor(com.google.protobuf.DescriptorProtos.MethodDescriptorProto methodDescriptor) |
static ServiceMethodDescriptor.MethodType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServiceMethodDescriptor.MethodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceMethodDescriptor.MethodType SIMPLE
public static final ServiceMethodDescriptor.MethodType SERVER_STREAM
public static final ServiceMethodDescriptor.MethodType CLIENT_STREAM
public static final ServiceMethodDescriptor.MethodType BI_STREAM
public static ServiceMethodDescriptor.MethodType[] values()
for (ServiceMethodDescriptor.MethodType c : ServiceMethodDescriptor.MethodType.values()) System.out.println(c);
public static ServiceMethodDescriptor.MethodType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ServiceMethodDescriptor.MethodType fromDescriptor(@Nonnull com.google.protobuf.DescriptorProtos.MethodDescriptorProto methodDescriptor)