public enum GrpcStatus extends Enum<GrpcStatus>
Enum Constant and Description |
---|
ABORTED |
ALREADY_EXISTS |
CANCELLED |
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 | Field and Description |
---|---|
int |
code |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static GrpcStatus |
valueOf(int code) |
static GrpcStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrpcStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrpcStatus OK
public static final GrpcStatus CANCELLED
public static final GrpcStatus UNKNOWN
public static final GrpcStatus INVALID_ARGUMENT
public static final GrpcStatus DEADLINE_EXCEEDED
public static final GrpcStatus NOT_FOUND
public static final GrpcStatus ALREADY_EXISTS
public static final GrpcStatus PERMISSION_DENIED
public static final GrpcStatus RESOURCE_EXHAUSTED
public static final GrpcStatus FAILED_PRECONDITION
public static final GrpcStatus ABORTED
public static final GrpcStatus OUT_OF_RANGE
public static final GrpcStatus UNIMPLEMENTED
public static final GrpcStatus INTERNAL
public static final GrpcStatus UNAVAILABLE
public static final GrpcStatus DATA_LOSS
public static final GrpcStatus UNAUTHENTICATED
public static GrpcStatus[] values()
for (GrpcStatus c : GrpcStatus.values()) System.out.println(c);
public static GrpcStatus 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 static GrpcStatus valueOf(int code)
public String toString()
toString
in class Enum<GrpcStatus>
Copyright © 2023 Eclipse. All rights reserved.