Enum GrpcLogEntry.EventType

    • Enum Constant Detail

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