Enum MethodCardinality
- All Implemented Interfaces:
Serializable, Comparable<MethodCardinality>
Rpc method cardinality
- Author:
- Julien Viet
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoth sides send any number of messages.The client sends any number of messages, the server replies with exactly one message.The client sends exactly one message, the server replies with any number of messages.Both sides send exactly one message. -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodCardinalityReturns the enum constant of this type with the specified name.static MethodCardinality[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNARY
Both sides send exactly one message. -
CLIENT_STREAMING
The client sends any number of messages, the server replies with exactly one message. -
SERVER_STREAMING
The client sends exactly one message, the server replies with any number of messages. -
BIDI_STREAMING
Both sides send any number of messages.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-