public enum FlightStatusCode extends Enum<FlightStatusCode>
Enum Constant and Description |
---|
ALREADY_EXISTS
The operation creates a resource that already exists.
|
CANCELLED
The operation was cancelled.
|
INTERNAL
An internal/implementation error occurred.
|
INVALID_ARGUMENT
One or more of the given arguments was invalid.
|
NOT_FOUND
The operation describes a resource that does not exist.
|
OK
The call completed successfully.
|
TIMED_OUT
The operation timed out.
|
UNAUTHENTICATED
The client was not authenticated.
|
UNAUTHORIZED
The client did not have permission to make the call.
|
UNAVAILABLE
The server cannot currently handle the request.
|
UNIMPLEMENTED
The requested operation is not implemented.
|
UNKNOWN
An unknown error occurred.
|
Modifier and Type | Method and Description |
---|---|
CallStatus |
toStatus()
Create a blank
CallStatus with this code. |
static FlightStatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FlightStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlightStatusCode OK
public static final FlightStatusCode UNKNOWN
public static final FlightStatusCode INTERNAL
public static final FlightStatusCode INVALID_ARGUMENT
public static final FlightStatusCode TIMED_OUT
public static final FlightStatusCode NOT_FOUND
public static final FlightStatusCode ALREADY_EXISTS
public static final FlightStatusCode CANCELLED
public static final FlightStatusCode UNAUTHENTICATED
public static final FlightStatusCode UNAUTHORIZED
public static final FlightStatusCode UNIMPLEMENTED
public static final FlightStatusCode UNAVAILABLE
public static FlightStatusCode[] values()
for (FlightStatusCode c : FlightStatusCode.values()) System.out.println(c);
public static FlightStatusCode 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 CallStatus toStatus()
CallStatus
with this code.Copyright © 2024 The Apache Software Foundation. All rights reserved.