Enum ProtocolVersion
- java.lang.Object
-
- java.lang.Enum<ProtocolVersion>
-
- org.apache.pulsar.common.api.proto.ProtocolVersion
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProtocolVersion>
public enum ProtocolVersion extends java.lang.Enum<ProtocolVersion>
-
-
Field Summary
Fields Modifier and Type Field Description static intv0_VALUEstatic intv1_VALUEstatic intv10_VALUEstatic intv11_VALUEstatic intv12_VALUEstatic intv13_VALUEstatic intv14_VALUEstatic intv15_VALUEstatic intv16_VALUEstatic intv17_VALUEstatic intv18_VALUEstatic intv19_VALUEstatic intv2_VALUEstatic intv3_VALUEstatic intv4_VALUEstatic intv5_VALUEstatic intv6_VALUEstatic intv7_VALUEstatic intv8_VALUEstatic intv9_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static ProtocolVersionvalueOf(int n)Returns the enum constant of this type with the specified name.static ProtocolVersionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProtocolVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
v0
public static final ProtocolVersion v0
-
v1
public static final ProtocolVersion v1
-
v2
public static final ProtocolVersion v2
-
v3
public static final ProtocolVersion v3
-
v4
public static final ProtocolVersion v4
-
v5
public static final ProtocolVersion v5
-
v6
public static final ProtocolVersion v6
-
v7
public static final ProtocolVersion v7
-
v8
public static final ProtocolVersion v8
-
v9
public static final ProtocolVersion v9
-
v10
public static final ProtocolVersion v10
-
v11
public static final ProtocolVersion v11
-
v12
public static final ProtocolVersion v12
-
v13
public static final ProtocolVersion v13
-
v14
public static final ProtocolVersion v14
-
v15
public static final ProtocolVersion v15
-
v16
public static final ProtocolVersion v16
-
v17
public static final ProtocolVersion v17
-
v18
public static final ProtocolVersion v18
-
v19
public static final ProtocolVersion v19
-
-
Field Detail
-
v0_VALUE
public static final int v0_VALUE
- See Also:
- Constant Field Values
-
v1_VALUE
public static final int v1_VALUE
- See Also:
- Constant Field Values
-
v2_VALUE
public static final int v2_VALUE
- See Also:
- Constant Field Values
-
v3_VALUE
public static final int v3_VALUE
- See Also:
- Constant Field Values
-
v4_VALUE
public static final int v4_VALUE
- See Also:
- Constant Field Values
-
v5_VALUE
public static final int v5_VALUE
- See Also:
- Constant Field Values
-
v6_VALUE
public static final int v6_VALUE
- See Also:
- Constant Field Values
-
v7_VALUE
public static final int v7_VALUE
- See Also:
- Constant Field Values
-
v8_VALUE
public static final int v8_VALUE
- See Also:
- Constant Field Values
-
v9_VALUE
public static final int v9_VALUE
- See Also:
- Constant Field Values
-
v10_VALUE
public static final int v10_VALUE
- See Also:
- Constant Field Values
-
v11_VALUE
public static final int v11_VALUE
- See Also:
- Constant Field Values
-
v12_VALUE
public static final int v12_VALUE
- See Also:
- Constant Field Values
-
v13_VALUE
public static final int v13_VALUE
- See Also:
- Constant Field Values
-
v14_VALUE
public static final int v14_VALUE
- See Also:
- Constant Field Values
-
v15_VALUE
public static final int v15_VALUE
- See Also:
- Constant Field Values
-
v16_VALUE
public static final int v16_VALUE
- See Also:
- Constant Field Values
-
v17_VALUE
public static final int v17_VALUE
- See Also:
- Constant Field Values
-
v18_VALUE
public static final int v18_VALUE
- See Also:
- Constant Field Values
-
v19_VALUE
public static final int v19_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ProtocolVersion[] 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 (ProtocolVersion c : ProtocolVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtocolVersion 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
-
getValue
public int getValue()
-
valueOf
public static ProtocolVersion valueOf(int n)
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:
n- 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
-
-