public static enum GrpcLogEntry.EventType extends Enum<GrpcLogEntry.EventType> implements com.google.protobuf.ProtocolMessageEnum
Enumerates the type of event Note the terminology is different from the RPC semantics definition, but the same meaning is expressed here.Protobuf enum
grpc.binarylog.v1.GrpcLogEntry.EventType| Enum Constant and Description |
|---|
EVENT_TYPE_CANCEL
A signal that the RPC is cancelled.
|
EVENT_TYPE_CLIENT_HALF_CLOSE
A signal that client is done sending
|
EVENT_TYPE_CLIENT_HEADER
Header sent from client to server
|
EVENT_TYPE_CLIENT_MESSAGE
Message sent from client to server
|
EVENT_TYPE_SERVER_HEADER
Header sent from server to client
|
EVENT_TYPE_SERVER_MESSAGE
Message sent from server to client
|
EVENT_TYPE_SERVER_TRAILER
Trailer indicates the end of the RPC.
|
EVENT_TYPE_UNKNOWN
EVENT_TYPE_UNKNOWN = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
EVENT_TYPE_CANCEL_VALUE
A signal that the RPC is cancelled.
|
static int |
EVENT_TYPE_CLIENT_HALF_CLOSE_VALUE
A signal that client is done sending
|
static int |
EVENT_TYPE_CLIENT_HEADER_VALUE
Header sent from client to server
|
static int |
EVENT_TYPE_CLIENT_MESSAGE_VALUE
Message sent from client to server
|
static int |
EVENT_TYPE_SERVER_HEADER_VALUE
Header sent from server to client
|
static int |
EVENT_TYPE_SERVER_MESSAGE_VALUE
Message sent from server to client
|
static int |
EVENT_TYPE_SERVER_TRAILER_VALUE
Trailer indicates the end of the RPC.
|
static int |
EVENT_TYPE_UNKNOWN_VALUE
EVENT_TYPE_UNKNOWN = 0; |
| Modifier and Type | Method and Description |
|---|---|
static GrpcLogEntry.EventType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<GrpcLogEntry.EventType> |
internalGetValueMap() |
static GrpcLogEntry.EventType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GrpcLogEntry.EventType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GrpcLogEntry.EventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrpcLogEntry.EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrpcLogEntry.EventType EVENT_TYPE_UNKNOWN
EVENT_TYPE_UNKNOWN = 0;public static final GrpcLogEntry.EventType EVENT_TYPE_CLIENT_HEADER
Header sent from client to server
EVENT_TYPE_CLIENT_HEADER = 1;public static final GrpcLogEntry.EventType EVENT_TYPE_SERVER_HEADER
Header sent from server to client
EVENT_TYPE_SERVER_HEADER = 2;public static final GrpcLogEntry.EventType EVENT_TYPE_CLIENT_MESSAGE
Message sent from client to server
EVENT_TYPE_CLIENT_MESSAGE = 3;public static final GrpcLogEntry.EventType EVENT_TYPE_SERVER_MESSAGE
Message sent from server to client
EVENT_TYPE_SERVER_MESSAGE = 4;public static final GrpcLogEntry.EventType EVENT_TYPE_CLIENT_HALF_CLOSE
A signal that client is done sending
EVENT_TYPE_CLIENT_HALF_CLOSE = 5;public static final GrpcLogEntry.EventType EVENT_TYPE_SERVER_TRAILER
Trailer indicates the end of the RPC. On client side, this event means a trailer was either received from the network or the gRPC library locally generated a status to inform the application about a failure. On server side, this event means the server application requested to send a trailer. Note: EVENT_TYPE_CANCEL may still arrive after this due to races on server side.
EVENT_TYPE_SERVER_TRAILER = 6;public static final GrpcLogEntry.EventType EVENT_TYPE_CANCEL
A signal that the RPC is cancelled. On client side, this indicates the client application requests a cancellation. On server side, this indicates that cancellation was detected. Note: This marks the end of the RPC. Events may arrive after this due to races. For example, on client side a trailer may arrive even though the application requested to cancel the RPC.
EVENT_TYPE_CANCEL = 7;public static final GrpcLogEntry.EventType UNRECOGNIZED
public static final int EVENT_TYPE_UNKNOWN_VALUE
EVENT_TYPE_UNKNOWN = 0;public static final int EVENT_TYPE_CLIENT_HEADER_VALUE
Header sent from client to server
EVENT_TYPE_CLIENT_HEADER = 1;public static final int EVENT_TYPE_SERVER_HEADER_VALUE
Header sent from server to client
EVENT_TYPE_SERVER_HEADER = 2;public static final int EVENT_TYPE_CLIENT_MESSAGE_VALUE
Message sent from client to server
EVENT_TYPE_CLIENT_MESSAGE = 3;public static final int EVENT_TYPE_SERVER_MESSAGE_VALUE
Message sent from server to client
EVENT_TYPE_SERVER_MESSAGE = 4;public static final int EVENT_TYPE_CLIENT_HALF_CLOSE_VALUE
A signal that client is done sending
EVENT_TYPE_CLIENT_HALF_CLOSE = 5;public static final int EVENT_TYPE_SERVER_TRAILER_VALUE
Trailer indicates the end of the RPC. On client side, this event means a trailer was either received from the network or the gRPC library locally generated a status to inform the application about a failure. On server side, this event means the server application requested to send a trailer. Note: EVENT_TYPE_CANCEL may still arrive after this due to races on server side.
EVENT_TYPE_SERVER_TRAILER = 6;public static final int EVENT_TYPE_CANCEL_VALUE
A signal that the RPC is cancelled. On client side, this indicates the client application requests a cancellation. On server side, this indicates that cancellation was detected. Note: This marks the end of the RPC. Events may arrive after this due to races. For example, on client side a trailer may arrive even though the application requested to cancel the RPC.
EVENT_TYPE_CANCEL = 7;public static GrpcLogEntry.EventType[] values()
for (GrpcLogEntry.EventType c : GrpcLogEntry.EventType.values()) System.out.println(c);
public static GrpcLogEntry.EventType 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 nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static GrpcLogEntry.EventType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static GrpcLogEntry.EventType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<GrpcLogEntry.EventType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static GrpcLogEntry.EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)