Enum 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 enum grpc.observabilitylog.v1.GrpcLogRecord.EventType
    • Enum Constant Detail

      • 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;
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        java.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:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        java.lang.NullPointerException - if the argument is null