Enum CommandPartitionedTopicMetadataResponse.LookupType
- java.lang.Object
-
- java.lang.Enum<CommandPartitionedTopicMetadataResponse.LookupType>
-
- org.apache.pulsar.common.api.proto.CommandPartitionedTopicMetadataResponse.LookupType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CommandPartitionedTopicMetadataResponse.LookupType>
- Enclosing class:
- CommandPartitionedTopicMetadataResponse
public static enum CommandPartitionedTopicMetadataResponse.LookupType extends java.lang.Enum<CommandPartitionedTopicMetadataResponse.LookupType>
-
-
Field Summary
Fields Modifier and Type Field Description static intFailed_VALUEstatic intSuccess_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static CommandPartitionedTopicMetadataResponse.LookupTypevalueOf(int n)Returns the enum constant of this type with the specified name.static CommandPartitionedTopicMetadataResponse.LookupTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CommandPartitionedTopicMetadataResponse.LookupType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Success
public static final CommandPartitionedTopicMetadataResponse.LookupType Success
-
Failed
public static final CommandPartitionedTopicMetadataResponse.LookupType Failed
-
-
Field Detail
-
Success_VALUE
public static final int Success_VALUE
- See Also:
- Constant Field Values
-
Failed_VALUE
public static final int Failed_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CommandPartitionedTopicMetadataResponse.LookupType[] 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 (CommandPartitionedTopicMetadataResponse.LookupType c : CommandPartitionedTopicMetadataResponse.LookupType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandPartitionedTopicMetadataResponse.LookupType 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 CommandPartitionedTopicMetadataResponse.LookupType 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
-
-