Package org.apache.bookkeeper.proto
Enum BookkeeperProtocol.StatusCode
- java.lang.Object
-
- java.lang.Enum<BookkeeperProtocol.StatusCode>
-
- org.apache.bookkeeper.proto.BookkeeperProtocol.StatusCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,java.io.Serializable
,java.lang.Comparable<BookkeeperProtocol.StatusCode>
- Enclosing class:
- BookkeeperProtocol
public static enum BookkeeperProtocol.StatusCode extends java.lang.Enum<BookkeeperProtocol.StatusCode> implements com.google.protobuf.ProtocolMessageEnum
Status codes.
Protobuf enumStatusCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EBADREQ
EBADREQ = 404;
EBADVERSION
EBADVERSION = 503;
EFENCED
EFENCED = 504;
EIO
IO/access errors 5xxENOENTRY
ENOENTRY = 403;
ENOLEDGER
Server side Errors 4xxEOK
EOK = 0;
EREADONLY
EREADONLY = 505;
ETOOMANYREQUESTS
ETOOMANYREQUESTS = 506;
EUA
EUA = 502;
EUNKNOWNLEDGERSTATE
EUNKNOWNLEDGERSTATE = 507;
-
Field Summary
Fields Modifier and Type Field Description static int
EBADREQ_VALUE
EBADREQ = 404;
static int
EBADVERSION_VALUE
EBADVERSION = 503;
static int
EFENCED_VALUE
EFENCED = 504;
static int
EIO_VALUE
IO/access errors 5xxstatic int
ENOENTRY_VALUE
ENOENTRY = 403;
static int
ENOLEDGER_VALUE
Server side Errors 4xxstatic int
EOK_VALUE
EOK = 0;
static int
EREADONLY_VALUE
EREADONLY = 505;
static int
ETOOMANYREQUESTS_VALUE
ETOOMANYREQUESTS = 506;
static int
EUA_VALUE
EUA = 502;
static int
EUNKNOWNLEDGERSTATE_VALUE
EUNKNOWNLEDGERSTATE = 507;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BookkeeperProtocol.StatusCode
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<BookkeeperProtocol.StatusCode>
internalGetValueMap()
static BookkeeperProtocol.StatusCode
valueOf(int value)
Deprecated.static BookkeeperProtocol.StatusCode
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static BookkeeperProtocol.StatusCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BookkeeperProtocol.StatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EOK
public static final BookkeeperProtocol.StatusCode EOK
EOK = 0;
-
ENOLEDGER
public static final BookkeeperProtocol.StatusCode ENOLEDGER
Server side Errors 4xx
ENOLEDGER = 402;
-
ENOENTRY
public static final BookkeeperProtocol.StatusCode ENOENTRY
ENOENTRY = 403;
-
EBADREQ
public static final BookkeeperProtocol.StatusCode EBADREQ
EBADREQ = 404;
-
EIO
public static final BookkeeperProtocol.StatusCode EIO
IO/access errors 5xx
EIO = 501;
-
EUA
public static final BookkeeperProtocol.StatusCode EUA
EUA = 502;
-
EBADVERSION
public static final BookkeeperProtocol.StatusCode EBADVERSION
EBADVERSION = 503;
-
EFENCED
public static final BookkeeperProtocol.StatusCode EFENCED
EFENCED = 504;
-
EREADONLY
public static final BookkeeperProtocol.StatusCode EREADONLY
EREADONLY = 505;
-
ETOOMANYREQUESTS
public static final BookkeeperProtocol.StatusCode ETOOMANYREQUESTS
ETOOMANYREQUESTS = 506;
-
EUNKNOWNLEDGERSTATE
public static final BookkeeperProtocol.StatusCode EUNKNOWNLEDGERSTATE
EUNKNOWNLEDGERSTATE = 507;
-
-
Field Detail
-
EOK_VALUE
public static final int EOK_VALUE
EOK = 0;
- See Also:
- Constant Field Values
-
ENOLEDGER_VALUE
public static final int ENOLEDGER_VALUE
Server side Errors 4xx
ENOLEDGER = 402;
- See Also:
- Constant Field Values
-
ENOENTRY_VALUE
public static final int ENOENTRY_VALUE
ENOENTRY = 403;
- See Also:
- Constant Field Values
-
EBADREQ_VALUE
public static final int EBADREQ_VALUE
EBADREQ = 404;
- See Also:
- Constant Field Values
-
EIO_VALUE
public static final int EIO_VALUE
IO/access errors 5xx
EIO = 501;
- See Also:
- Constant Field Values
-
EUA_VALUE
public static final int EUA_VALUE
EUA = 502;
- See Also:
- Constant Field Values
-
EBADVERSION_VALUE
public static final int EBADVERSION_VALUE
EBADVERSION = 503;
- See Also:
- Constant Field Values
-
EFENCED_VALUE
public static final int EFENCED_VALUE
EFENCED = 504;
- See Also:
- Constant Field Values
-
EREADONLY_VALUE
public static final int EREADONLY_VALUE
EREADONLY = 505;
- See Also:
- Constant Field Values
-
ETOOMANYREQUESTS_VALUE
public static final int ETOOMANYREQUESTS_VALUE
ETOOMANYREQUESTS = 506;
- See Also:
- Constant Field Values
-
EUNKNOWNLEDGERSTATE_VALUE
public static final int EUNKNOWNLEDGERSTATE_VALUE
EUNKNOWNLEDGERSTATE = 507;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static BookkeeperProtocol.StatusCode[] 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 (BookkeeperProtocol.StatusCode c : BookkeeperProtocol.StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BookkeeperProtocol.StatusCode 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static BookkeeperProtocol.StatusCode 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 BookkeeperProtocol.StatusCode 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<BookkeeperProtocol.StatusCode> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static BookkeeperProtocol.StatusCode 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 namejava.lang.NullPointerException
- if the argument is null
-
-