public enum TStatus extends Enum<TStatus> implements org.apache.thrift.TEnum
Enum Constant and Description |
---|
ABORTED |
ALREADY_EXISTS |
CANCELED |
DATA_LOSS |
DEADLINE_EXCEEDED |
FAILED_PRECONDITION |
INTERNAL |
INVALID_ARGUMENT |
NOT_FOUND |
OK |
OUT_OF_RANGE |
PERMISSION_DENIED |
RESOURCE_EXHAUSTED |
UNAUTHENTICATED |
UNAVAILABLE |
UNIMPLEMENTED |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static TStatus |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.
|
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.
|
static TStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TStatus OK
public static final TStatus CANCELED
public static final TStatus UNKNOWN
public static final TStatus INVALID_ARGUMENT
public static final TStatus DEADLINE_EXCEEDED
public static final TStatus NOT_FOUND
public static final TStatus ALREADY_EXISTS
public static final TStatus PERMISSION_DENIED
public static final TStatus UNAUTHENTICATED
public static final TStatus RESOURCE_EXHAUSTED
public static final TStatus FAILED_PRECONDITION
public static final TStatus ABORTED
public static final TStatus OUT_OF_RANGE
public static final TStatus UNIMPLEMENTED
public static final TStatus INTERNAL
public static final TStatus UNAVAILABLE
public static final TStatus DATA_LOSS
public static TStatus[] values()
for (TStatus c : TStatus.values()) System.out.println(c);
public static TStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface org.apache.thrift.TEnum
public static TStatus findByValue(int value)
Copyright © 2023. All Rights Reserved.