Package com.google.api.gax.httpjson
Enum ApiMethodDescriptor.MethodType
- java.lang.Object
-
- java.lang.Enum<ApiMethodDescriptor.MethodType>
-
- com.google.api.gax.httpjson.ApiMethodDescriptor.MethodType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ApiMethodDescriptor.MethodType>
- Enclosing class:
- ApiMethodDescriptor<RequestT,ResponseT>
public static enum ApiMethodDescriptor.MethodType extends java.lang.Enum<ApiMethodDescriptor.MethodType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIDI_STREAMINGCLIENT_STREAMINGSERVER_STREAMINGUNARYUNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApiMethodDescriptor.MethodTypevalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
UNARY
public static final ApiMethodDescriptor.MethodType UNARY
-
CLIENT_STREAMING
public static final ApiMethodDescriptor.MethodType CLIENT_STREAMING
-
SERVER_STREAMING
public static final ApiMethodDescriptor.MethodType SERVER_STREAMING
-
BIDI_STREAMING
public static final ApiMethodDescriptor.MethodType BIDI_STREAMING
-
UNKNOWN
public static final ApiMethodDescriptor.MethodType UNKNOWN
-
-
Method Detail
-
values
public static ApiMethodDescriptor.MethodType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ApiMethodDescriptor.MethodType c : ApiMethodDescriptor.MethodType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApiMethodDescriptor.MethodType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-