public static enum Status.Code extends Enum<Status.Code>
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 |
UNRECOGNIZED
Code not known by the client, please upgrade your client
|
Modifier and Type | Method and Description |
---|---|
static Status.Code |
fromCodeNumber(int num) |
static Status.Code |
fromProto(com.google.rpc.Code proto) |
com.google.rpc.Code |
toProto() |
static Status.Code |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status.Code OK
public static final Status.Code CANCELLED
public static final Status.Code UNKNOWN
public static final Status.Code INVALID_ARGUMENT
public static final Status.Code DEADLINE_EXCEEDED
public static final Status.Code NOT_FOUND
public static final Status.Code ALREADY_EXISTS
public static final Status.Code PERMISSION_DENIED
public static final Status.Code UNAUTHENTICATED
public static final Status.Code RESOURCE_EXHAUSTED
public static final Status.Code FAILED_PRECONDITION
public static final Status.Code ABORTED
public static final Status.Code OUT_OF_RANGE
public static final Status.Code UNIMPLEMENTED
public static final Status.Code INTERNAL
public static final Status.Code UNAVAILABLE
public static final Status.Code DATA_LOSS
public static final Status.Code UNRECOGNIZED
public static Status.Code[] values()
for (Status.Code c : Status.Code.values()) System.out.println(c);
public static Status.Code 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 Status.Code fromProto(com.google.rpc.Code proto)
public static Status.Code fromCodeNumber(int num)
public com.google.rpc.Code toProto()
Copyright © 2021 Google LLC. All rights reserved.