Package pbx
Enum Model.RespCode
- java.lang.Object
-
- java.lang.Enum<Model.RespCode>
-
- pbx.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 enumpbx.RespCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTINUEInstruct Tinode server to continue with default processing of the client request.DROPDrop the request as if the client did not send itREPLACEReplace client's original request with the provided request then continue with processing.RESPONDSend the the provided response to the client.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCONTINUE_VALUEInstruct Tinode server to continue with default processing of the client request.static intDROP_VALUEDrop the request as if the client did not send itstatic intREPLACE_VALUEReplace client's original request with the provided request then continue with processing.static intRESPOND_VALUESend the the provided response to the client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Model.RespCodeforNumber(int value)intgetNumber()static com.google.protobuf.Internal.EnumLiteMap<Model.RespCode>internalGetValueMap()static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()static Model.RespCodevalueOf(int value)Deprecated.static Model.RespCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Model.RespCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
UNRECOGNIZED
public static final Model.RespCode UNRECOGNIZED
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.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 namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static Model.RespCode forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Model.RespCode> internalGetValueMap()
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-
-