Enum GrpcLogEntry.EventType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<GrpcLogEntry.EventType>
    Enclosing class:
    GrpcLogEntry

    public static enum GrpcLogEntry.EventType
    extends java.lang.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 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​(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 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:
        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 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 com.google.protobuf.Internal.EnumLiteMap<GrpcLogEntry.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 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null