Package io.grpc.observabilitylog.v1
Enum GrpcLogRecord.EventType
- java.lang.Object
-
- java.lang.Enum<GrpcLogRecord.EventType>
-
- io.grpc.observabilitylog.v1.GrpcLogRecord.EventType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<GrpcLogRecord.EventType>
- Enclosing class:
- GrpcLogRecord
public static enum GrpcLogRecord.EventType extends java.lang.Enum<GrpcLogRecord.EventType> implements com.google.protobuf.ProtocolMessageEnum
List of event types
Protobuf enumgrpc.observabilitylog.v1.GrpcLogRecord.EventType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELA signal that the rpc is canceledCLIENT_HALF_CLOSEA signal that client is done sendingCLIENT_HEADERHeader sent from client to serverCLIENT_MESSAGEMessage sent from client to serverEVENT_TYPE_UNKNOWNEVENT_TYPE_UNKNOWN = 0;SERVER_HEADERHeader sent from server to clientSERVER_MESSAGEMessage sent from server to clientSERVER_TRAILERTrailer indicates the end of the gRPC callUNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCANCEL_VALUEA signal that the rpc is canceledstatic intCLIENT_HALF_CLOSE_VALUEA signal that client is done sendingstatic intCLIENT_HEADER_VALUEHeader sent from client to serverstatic intCLIENT_MESSAGE_VALUEMessage sent from client to serverstatic intEVENT_TYPE_UNKNOWN_VALUEEVENT_TYPE_UNKNOWN = 0;static intSERVER_HEADER_VALUEHeader sent from server to clientstatic intSERVER_MESSAGE_VALUEMessage sent from server to clientstatic intSERVER_TRAILER_VALUETrailer indicates the end of the gRPC call
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static GrpcLogRecord.EventTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<GrpcLogRecord.EventType>internalGetValueMap()static GrpcLogRecord.EventTypevalueOf(int value)Deprecated.static GrpcLogRecord.EventTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static GrpcLogRecord.EventTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GrpcLogRecord.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 GrpcLogRecord.EventType EVENT_TYPE_UNKNOWN
EVENT_TYPE_UNKNOWN = 0;
-
CLIENT_HEADER
public static final GrpcLogRecord.EventType CLIENT_HEADER
Header sent from client to server
CLIENT_HEADER = 1;
-
SERVER_HEADER
public static final GrpcLogRecord.EventType SERVER_HEADER
Header sent from server to client
SERVER_HEADER = 2;
-
CLIENT_MESSAGE
public static final GrpcLogRecord.EventType CLIENT_MESSAGE
Message sent from client to server
CLIENT_MESSAGE = 3;
-
SERVER_MESSAGE
public static final GrpcLogRecord.EventType SERVER_MESSAGE
Message sent from server to client
SERVER_MESSAGE = 4;
-
CLIENT_HALF_CLOSE
public static final GrpcLogRecord.EventType CLIENT_HALF_CLOSE
A signal that client is done sending
CLIENT_HALF_CLOSE = 5;
-
SERVER_TRAILER
public static final GrpcLogRecord.EventType SERVER_TRAILER
Trailer indicates the end of the gRPC call
SERVER_TRAILER = 6;
-
CANCEL
public static final GrpcLogRecord.EventType CANCEL
A signal that the rpc is canceled
CANCEL = 7;
-
UNRECOGNIZED
public static final GrpcLogRecord.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
-
CLIENT_HEADER_VALUE
public static final int CLIENT_HEADER_VALUE
Header sent from client to server
CLIENT_HEADER = 1;- See Also:
- Constant Field Values
-
SERVER_HEADER_VALUE
public static final int SERVER_HEADER_VALUE
Header sent from server to client
SERVER_HEADER = 2;- See Also:
- Constant Field Values
-
CLIENT_MESSAGE_VALUE
public static final int CLIENT_MESSAGE_VALUE
Message sent from client to server
CLIENT_MESSAGE = 3;- See Also:
- Constant Field Values
-
SERVER_MESSAGE_VALUE
public static final int SERVER_MESSAGE_VALUE
Message sent from server to client
SERVER_MESSAGE = 4;- See Also:
- Constant Field Values
-
CLIENT_HALF_CLOSE_VALUE
public static final int CLIENT_HALF_CLOSE_VALUE
A signal that client is done sending
CLIENT_HALF_CLOSE = 5;- See Also:
- Constant Field Values
-
SERVER_TRAILER_VALUE
public static final int SERVER_TRAILER_VALUE
Trailer indicates the end of the gRPC call
SERVER_TRAILER = 6;- See Also:
- Constant Field Values
-
CANCEL_VALUE
public static final int CANCEL_VALUE
A signal that the rpc is canceled
CANCEL = 7;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static GrpcLogRecord.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 (GrpcLogRecord.EventType c : GrpcLogRecord.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 GrpcLogRecord.EventType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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 public static GrpcLogRecord.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static GrpcLogRecord.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 com.google.protobuf.Internal.EnumLiteMap<GrpcLogRecord.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 GrpcLogRecord.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-