enum

GRPC::RPCKind

Inherits Enum < Comparable < Value < Object

RPCKind enumerates the four gRPC streaming variants. Available via CallInfo#kind so interceptors can branch on call type.

Constants

Unary = 0
ServerStreaming = 1
ClientStreaming = 2
Bidi = 3

Instance methods

bidi?

Returns true if this enum value equals Bidi

Source
client_streaming?

Returns true if this enum value equals ClientStreaming

Source
server_streaming?

Returns true if this enum value equals ServerStreaming

Source
unary?

Returns true if this enum value equals Unary

Source