Package io.grpc.binarylog.v1
Enum GrpcLogEntry.EventType
- java.lang.Object
-
- java.lang.Enum<GrpcLogEntry.EventType>
-
- io.grpc.binarylog.v1.GrpcLogEntry.EventType
-
- All Implemented Interfaces:
Internal.EnumLite
,ProtocolMessageEnum
,Serializable
,Comparable<GrpcLogEntry.EventType>
- Enclosing class:
- GrpcLogEntry
public static enum GrpcLogEntry.EventType extends Enum<GrpcLogEntry.EventType> implements ProtocolMessageEnum
Enumerates the type of event Note the terminology is different from the RPC semantics definition, but the same meaning is expressed here.
Protobuf enumgrpc.binarylog.v1.GrpcLogEntry.EventType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVENT_TYPE_CANCEL
A signal that the RPC is cancelled.EVENT_TYPE_CLIENT_HALF_CLOSE
A signal that client is done sendingEVENT_TYPE_CLIENT_HEADER
Header sent from client to serverEVENT_TYPE_CLIENT_MESSAGE
Message sent from client to serverEVENT_TYPE_SERVER_HEADER
Header sent from server to clientEVENT_TYPE_SERVER_MESSAGE
Message sent from server to clientEVENT_TYPE_SERVER_TRAILER
Trailer indicates the end of the RPC.EVENT_TYPE_UNKNOWN
EVENT_TYPE_UNKNOWN = 0;
UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field 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 sendingstatic int
EVENT_TYPE_CLIENT_HEADER_VALUE
Header sent from client to serverstatic int
EVENT_TYPE_CLIENT_MESSAGE_VALUE
Message sent from client to serverstatic int
EVENT_TYPE_SERVER_HEADER_VALUE
Header sent from server to clientstatic int
EVENT_TYPE_SERVER_MESSAGE_VALUE
Message sent from server to clientstatic int
EVENT_TYPE_SERVER_TRAILER_VALUE
Trailer indicates the end of the RPC.static int
EVENT_TYPE_UNKNOWN_VALUE
EVENT_TYPE_UNKNOWN = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static GrpcLogEntry.EventType
forNumber(int value)
static Descriptors.EnumDescriptor
getDescriptor()
Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
Descriptors.EnumValueDescriptor
getValueDescriptor()
static Internal.EnumLiteMap<GrpcLogEntry.EventType>
internalGetValueMap()
static GrpcLogEntry.EventType
valueOf(int value)
Deprecated.static GrpcLogEntry.EventType
valueOf(Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.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.
-
-
-
Enum Constant Detail
-
EVENT_TYPE_UNKNOWN
public static final GrpcLogEntry.EventType EVENT_TYPE_UNKNOWN
EVENT_TYPE_UNKNOWN = 0;
-
EVENT_TYPE_CLIENT_HEADER
public static final GrpcLogEntry.EventType EVENT_TYPE_CLIENT_HEADER
Header sent from client to server
EVENT_TYPE_CLIENT_HEADER = 1;
-
EVENT_TYPE_SERVER_HEADER
public static final GrpcLogEntry.EventType EVENT_TYPE_SERVER_HEADER
Header sent from server to client
EVENT_TYPE_SERVER_HEADER = 2;
-
EVENT_TYPE_CLIENT_MESSAGE
public static final GrpcLogEntry.EventType EVENT_TYPE_CLIENT_MESSAGE
Message sent from client to server
EVENT_TYPE_CLIENT_MESSAGE = 3;
-
EVENT_TYPE_SERVER_MESSAGE
public static final GrpcLogEntry.EventType EVENT_TYPE_SERVER_MESSAGE
Message sent from server to client
EVENT_TYPE_SERVER_MESSAGE = 4;
-
EVENT_TYPE_CLIENT_HALF_CLOSE
public static final GrpcLogEntry.EventType EVENT_TYPE_CLIENT_HALF_CLOSE
A signal that client is done sending
EVENT_TYPE_CLIENT_HALF_CLOSE = 5;
-
EVENT_TYPE_SERVER_TRAILER
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;
-
EVENT_TYPE_CANCEL
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;
-
UNRECOGNIZED
public static final GrpcLogEntry.EventType UNRECOGNIZED
-
-
Field Detail
-
EVENT_TYPE_UNKNOWN_VALUE
public static final int EVENT_TYPE_UNKNOWN_VALUE
EVENT_TYPE_UNKNOWN = 0;
- See Also:
- Constant Field Values
-
EVENT_TYPE_CLIENT_HEADER_VALUE
public static final int EVENT_TYPE_CLIENT_HEADER_VALUE
Header sent from client to server
EVENT_TYPE_CLIENT_HEADER = 1;
- See Also:
- Constant Field Values
-
EVENT_TYPE_SERVER_HEADER_VALUE
public static final int EVENT_TYPE_SERVER_HEADER_VALUE
Header sent from server to client
EVENT_TYPE_SERVER_HEADER = 2;
- See Also:
- Constant Field Values
-
EVENT_TYPE_CLIENT_MESSAGE_VALUE
public static final int EVENT_TYPE_CLIENT_MESSAGE_VALUE
Message sent from client to server
EVENT_TYPE_CLIENT_MESSAGE = 3;
- See Also:
- Constant Field Values
-
EVENT_TYPE_SERVER_MESSAGE_VALUE
public static final int EVENT_TYPE_SERVER_MESSAGE_VALUE
Message sent from server to client
EVENT_TYPE_SERVER_MESSAGE = 4;
- See Also:
- Constant Field Values
-
EVENT_TYPE_CLIENT_HALF_CLOSE_VALUE
public static final int EVENT_TYPE_CLIENT_HALF_CLOSE_VALUE
A signal that client is done sending
EVENT_TYPE_CLIENT_HALF_CLOSE = 5;
- See Also:
- Constant Field Values
-
EVENT_TYPE_SERVER_TRAILER_VALUE
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;
- See Also:
- Constant Field Values
-
EVENT_TYPE_CANCEL_VALUE
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;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static GrpcLogEntry.EventType[] 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 (GrpcLogEntry.EventType c : GrpcLogEntry.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GrpcLogEntry.EventType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfaceInternal.EnumLite
- Specified by:
getNumber
in interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static GrpcLogEntry.EventType valueOf(int value)
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
public static GrpcLogEntry.EventType forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static Internal.EnumLiteMap<GrpcLogEntry.EventType> internalGetValueMap()
-
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceProtocolMessageEnum
-
getDescriptor
public static final Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static GrpcLogEntry.EventType valueOf(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
-
-