Package io.grpc.binarylog.v1
Enum GrpcLogEntry.EventType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<GrpcLogEntry.EventType>
- Enclosing class:
GrpcLogEntry
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 Summary
Enum ConstantsEnum ConstantDescriptionA signal that the RPC is cancelled.A signal that client is done sendingHeader sent from client to serverMessage sent from client to serverHeader sent from server to clientMessage sent from server to clientTrailer indicates the end of the RPC.EVENT_TYPE_UNKNOWN = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA signal that the RPC is cancelled.static final intA signal that client is done sendingstatic final intHeader sent from client to serverstatic final intMessage sent from client to serverstatic final intHeader sent from server to clientstatic final intMessage sent from server to clientstatic final intTrailer indicates the end of the RPC.static final intEVENT_TYPE_UNKNOWN = 0;private static final com.google.protobuf.Internal.EnumLiteMap<GrpcLogEntry.EventType> private final intprivate static final GrpcLogEntry.EventType[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GrpcLogEntry.EventTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<GrpcLogEntry.EventType> static GrpcLogEntry.EventTypevalueOf(int value) Deprecated.static GrpcLogEntry.EventTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static GrpcLogEntry.EventTypeReturns 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.
-
Enum Constant Details
-
EVENT_TYPE_UNKNOWN
EVENT_TYPE_UNKNOWN = 0; -
EVENT_TYPE_CLIENT_HEADER
Header sent from client to server
EVENT_TYPE_CLIENT_HEADER = 1; -
EVENT_TYPE_SERVER_HEADER
Header sent from server to client
EVENT_TYPE_SERVER_HEADER = 2; -
EVENT_TYPE_CLIENT_MESSAGE
Message sent from client to server
EVENT_TYPE_CLIENT_MESSAGE = 3; -
EVENT_TYPE_SERVER_MESSAGE
Message sent from server to client
EVENT_TYPE_SERVER_MESSAGE = 4; -
EVENT_TYPE_CLIENT_HALF_CLOSE
A signal that client is done sending
EVENT_TYPE_CLIENT_HALF_CLOSE = 5; -
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; -
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; -
UNRECOGNIZED
-
-
Field Details
-
EVENT_TYPE_UNKNOWN_VALUE
public static final int EVENT_TYPE_UNKNOWN_VALUEEVENT_TYPE_UNKNOWN = 0;- See Also:
-
EVENT_TYPE_CLIENT_HEADER_VALUE
public static final int EVENT_TYPE_CLIENT_HEADER_VALUEHeader sent from client to server
EVENT_TYPE_CLIENT_HEADER = 1;- See Also:
-
EVENT_TYPE_SERVER_HEADER_VALUE
public static final int EVENT_TYPE_SERVER_HEADER_VALUEHeader sent from server to client
EVENT_TYPE_SERVER_HEADER = 2;- See Also:
-
EVENT_TYPE_CLIENT_MESSAGE_VALUE
public static final int EVENT_TYPE_CLIENT_MESSAGE_VALUEMessage sent from client to server
EVENT_TYPE_CLIENT_MESSAGE = 3;- See Also:
-
EVENT_TYPE_SERVER_MESSAGE_VALUE
public static final int EVENT_TYPE_SERVER_MESSAGE_VALUEMessage sent from server to client
EVENT_TYPE_SERVER_MESSAGE = 4;- See Also:
-
EVENT_TYPE_CLIENT_HALF_CLOSE_VALUE
public static final int EVENT_TYPE_CLIENT_HALF_CLOSE_VALUEA signal that client is done sending
EVENT_TYPE_CLIENT_HALF_CLOSE = 5;- See Also:
-
EVENT_TYPE_SERVER_TRAILER_VALUE
public static final int EVENT_TYPE_SERVER_TRAILER_VALUETrailer 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;- See Also:
-
EVENT_TYPE_CANCEL_VALUE
public static final int EVENT_TYPE_CANCEL_VALUEA 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;- See Also:
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<GrpcLogEntry.EventType> internalValueMap -
VALUES
-
value
private final int value
-
-
Constructor Details
-
EventType
private EventType(int value)
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<GrpcLogEntry.EventType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static GrpcLogEntry.EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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:
desc- 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
-