Package pbx

Enum Model.RespCode

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

    public static enum Model.RespCode
    extends java.lang.Enum<Model.RespCode>
    implements com.google.protobuf.Internal.EnumLite
     Plugin response codes
     
    Protobuf enum pbx.RespCode
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CONTINUE
      Instruct Tinode server to continue with default processing of the client request.
      DROP
      Drop the request as if the client did not send it
      REPLACE
      Replace client's original request with the provided request then continue with processing.
      RESPOND
      Send the the provided response to the client.
      UNRECOGNIZED  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONTINUE_VALUE
      Instruct Tinode server to continue with default processing of the client request.
      static int DROP_VALUE
      Drop the request as if the client did not send it
      static int REPLACE_VALUE
      Replace client's original request with the provided request then continue with processing.
      static int RESPOND_VALUE
      Send the the provided response to the client.
    • Enum Constant Detail

      • CONTINUE

        public static final Model.RespCode CONTINUE
         Instruct Tinode server to continue with default processing of the client request.
         
        CONTINUE = 0;
      • DROP

        public static final Model.RespCode DROP
         Drop the request as if the client did not send it
         
        DROP = 1;
      • RESPOND

        public static final Model.RespCode RESPOND
         Send the the provided response to the client.
         
        RESPOND = 2;
      • REPLACE

        public static final Model.RespCode REPLACE
         Replace client's original request with the provided request then continue with
         processing.
         
        REPLACE = 3;
    • Field Detail

      • CONTINUE_VALUE

        public static final int CONTINUE_VALUE
         Instruct Tinode server to continue with default processing of the client request.
         
        CONTINUE = 0;
        See Also:
        Constant Field Values
      • DROP_VALUE

        public static final int DROP_VALUE
         Drop the request as if the client did not send it
         
        DROP = 1;
        See Also:
        Constant Field Values
      • RESPOND_VALUE

        public static final int RESPOND_VALUE
         Send the the provided response to the client.
         
        RESPOND = 2;
        See Also:
        Constant Field Values
      • REPLACE_VALUE

        public static final int REPLACE_VALUE
         Replace client's original request with the provided request then continue with
         processing.
         
        REPLACE = 3;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Model.RespCode[] 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 (Model.RespCode c : Model.RespCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Model.RespCode 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
      • valueOf

        @Deprecated
        public static Model.RespCode 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
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<Model.RespCode> internalGetValueMap()
      • internalGetVerifier

        public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()