Package io.envoyproxy.envoy.type.v3
Enum StatusCode
- java.lang.Object
-
- java.lang.Enum<StatusCode>
-
- io.envoyproxy.envoy.type.v3.StatusCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,java.io.Serializable
,java.lang.Comparable<StatusCode>
public enum StatusCode extends java.lang.Enum<StatusCode> implements com.google.protobuf.ProtocolMessageEnum
HTTP response codes supported in Envoy. For more details: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
Protobuf enumenvoy.type.v3.StatusCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Accepted
Accepted = 202;
AlreadyReported
AlreadyReported = 208;
BadGateway
BadGateway = 502;
BadRequest
BadRequest = 400;
Conflict
Conflict = 409;
Continue
Continue = 100;
Created
Created = 201;
Empty
Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.ExpectationFailed
ExpectationFailed = 417;
FailedDependency
FailedDependency = 424;
Forbidden
Forbidden = 403;
Found
Found = 302;
GatewayTimeout
GatewayTimeout = 504;
Gone
Gone = 410;
HTTPVersionNotSupported
HTTPVersionNotSupported = 505;
IMUsed
IMUsed = 226;
InsufficientStorage
InsufficientStorage = 507;
InternalServerError
InternalServerError = 500;
LengthRequired
LengthRequired = 411;
Locked
Locked = 423;
LoopDetected
LoopDetected = 508;
MethodNotAllowed
MethodNotAllowed = 405;
MisdirectedRequest
MisdirectedRequest = 421;
MovedPermanently
MovedPermanently = 301;
MultipleChoices
MultipleChoices = 300;
MultiStatus
MultiStatus = 207;
NetworkAuthenticationRequired
NetworkAuthenticationRequired = 511;
NoContent
NoContent = 204;
NonAuthoritativeInformation
NonAuthoritativeInformation = 203;
NotAcceptable
NotAcceptable = 406;
NotExtended
NotExtended = 510;
NotFound
NotFound = 404;
NotImplemented
NotImplemented = 501;
NotModified
NotModified = 304;
OK
OK = 200;
PartialContent
PartialContent = 206;
PayloadTooLarge
PayloadTooLarge = 413;
PaymentRequired
PaymentRequired = 402;
PermanentRedirect
PermanentRedirect = 308;
PreconditionFailed
PreconditionFailed = 412;
PreconditionRequired
PreconditionRequired = 428;
ProxyAuthenticationRequired
ProxyAuthenticationRequired = 407;
RangeNotSatisfiable
RangeNotSatisfiable = 416;
RequestHeaderFieldsTooLarge
RequestHeaderFieldsTooLarge = 431;
RequestTimeout
RequestTimeout = 408;
ResetContent
ResetContent = 205;
SeeOther
SeeOther = 303;
ServiceUnavailable
ServiceUnavailable = 503;
TemporaryRedirect
TemporaryRedirect = 307;
TooManyRequests
TooManyRequests = 429;
Unauthorized
Unauthorized = 401;
UnprocessableEntity
UnprocessableEntity = 422;
UNRECOGNIZED
UnsupportedMediaType
UnsupportedMediaType = 415;
UpgradeRequired
UpgradeRequired = 426;
URITooLong
URITooLong = 414;
UseProxy
UseProxy = 305;
VariantAlsoNegotiates
VariantAlsoNegotiates = 506;
-
Field Summary
Fields Modifier and Type Field Description static int
Accepted_VALUE
Accepted = 202;
static int
AlreadyReported_VALUE
AlreadyReported = 208;
static int
BadGateway_VALUE
BadGateway = 502;
static int
BadRequest_VALUE
BadRequest = 400;
static int
Conflict_VALUE
Conflict = 409;
static int
Continue_VALUE
Continue = 100;
static int
Created_VALUE
Created = 201;
static int
Empty_VALUE
Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.static int
ExpectationFailed_VALUE
ExpectationFailed = 417;
static int
FailedDependency_VALUE
FailedDependency = 424;
static int
Forbidden_VALUE
Forbidden = 403;
static int
Found_VALUE
Found = 302;
static int
GatewayTimeout_VALUE
GatewayTimeout = 504;
static int
Gone_VALUE
Gone = 410;
static int
HTTPVersionNotSupported_VALUE
HTTPVersionNotSupported = 505;
static int
IMUsed_VALUE
IMUsed = 226;
static int
InsufficientStorage_VALUE
InsufficientStorage = 507;
static int
InternalServerError_VALUE
InternalServerError = 500;
private static com.google.protobuf.Internal.EnumLiteMap<StatusCode>
internalValueMap
static int
LengthRequired_VALUE
LengthRequired = 411;
static int
Locked_VALUE
Locked = 423;
static int
LoopDetected_VALUE
LoopDetected = 508;
static int
MethodNotAllowed_VALUE
MethodNotAllowed = 405;
static int
MisdirectedRequest_VALUE
MisdirectedRequest = 421;
static int
MovedPermanently_VALUE
MovedPermanently = 301;
static int
MultipleChoices_VALUE
MultipleChoices = 300;
static int
MultiStatus_VALUE
MultiStatus = 207;
static int
NetworkAuthenticationRequired_VALUE
NetworkAuthenticationRequired = 511;
static int
NoContent_VALUE
NoContent = 204;
static int
NonAuthoritativeInformation_VALUE
NonAuthoritativeInformation = 203;
static int
NotAcceptable_VALUE
NotAcceptable = 406;
static int
NotExtended_VALUE
NotExtended = 510;
static int
NotFound_VALUE
NotFound = 404;
static int
NotImplemented_VALUE
NotImplemented = 501;
static int
NotModified_VALUE
NotModified = 304;
static int
OK_VALUE
OK = 200;
static int
PartialContent_VALUE
PartialContent = 206;
static int
PayloadTooLarge_VALUE
PayloadTooLarge = 413;
static int
PaymentRequired_VALUE
PaymentRequired = 402;
static int
PermanentRedirect_VALUE
PermanentRedirect = 308;
static int
PreconditionFailed_VALUE
PreconditionFailed = 412;
static int
PreconditionRequired_VALUE
PreconditionRequired = 428;
static int
ProxyAuthenticationRequired_VALUE
ProxyAuthenticationRequired = 407;
static int
RangeNotSatisfiable_VALUE
RangeNotSatisfiable = 416;
static int
RequestHeaderFieldsTooLarge_VALUE
RequestHeaderFieldsTooLarge = 431;
static int
RequestTimeout_VALUE
RequestTimeout = 408;
static int
ResetContent_VALUE
ResetContent = 205;
static int
SeeOther_VALUE
SeeOther = 303;
static int
ServiceUnavailable_VALUE
ServiceUnavailable = 503;
static int
TemporaryRedirect_VALUE
TemporaryRedirect = 307;
static int
TooManyRequests_VALUE
TooManyRequests = 429;
static int
Unauthorized_VALUE
Unauthorized = 401;
static int
UnprocessableEntity_VALUE
UnprocessableEntity = 422;
static int
UnsupportedMediaType_VALUE
UnsupportedMediaType = 415;
static int
UpgradeRequired_VALUE
UpgradeRequired = 426;
static int
URITooLong_VALUE
URITooLong = 414;
static int
UseProxy_VALUE
UseProxy = 305;
private int
value
private static StatusCode[]
VALUES
static int
VariantAlsoNegotiates_VALUE
VariantAlsoNegotiates = 506;
-
Constructor Summary
Constructors Modifier Constructor Description private
StatusCode(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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<StatusCode>
internalGetValueMap()
static StatusCode
valueOf(int value)
Deprecated.static StatusCode
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static StatusCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Empty
public static final StatusCode Empty
Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.
Empty = 0;
-
Continue
public static final StatusCode Continue
Continue = 100;
-
OK
public static final StatusCode OK
OK = 200;
-
Created
public static final StatusCode Created
Created = 201;
-
Accepted
public static final StatusCode Accepted
Accepted = 202;
-
NonAuthoritativeInformation
public static final StatusCode NonAuthoritativeInformation
NonAuthoritativeInformation = 203;
-
NoContent
public static final StatusCode NoContent
NoContent = 204;
-
ResetContent
public static final StatusCode ResetContent
ResetContent = 205;
-
PartialContent
public static final StatusCode PartialContent
PartialContent = 206;
-
MultiStatus
public static final StatusCode MultiStatus
MultiStatus = 207;
-
AlreadyReported
public static final StatusCode AlreadyReported
AlreadyReported = 208;
-
IMUsed
public static final StatusCode IMUsed
IMUsed = 226;
-
MultipleChoices
public static final StatusCode MultipleChoices
MultipleChoices = 300;
-
MovedPermanently
public static final StatusCode MovedPermanently
MovedPermanently = 301;
-
Found
public static final StatusCode Found
Found = 302;
-
SeeOther
public static final StatusCode SeeOther
SeeOther = 303;
-
NotModified
public static final StatusCode NotModified
NotModified = 304;
-
UseProxy
public static final StatusCode UseProxy
UseProxy = 305;
-
TemporaryRedirect
public static final StatusCode TemporaryRedirect
TemporaryRedirect = 307;
-
PermanentRedirect
public static final StatusCode PermanentRedirect
PermanentRedirect = 308;
-
BadRequest
public static final StatusCode BadRequest
BadRequest = 400;
-
Unauthorized
public static final StatusCode Unauthorized
Unauthorized = 401;
-
PaymentRequired
public static final StatusCode PaymentRequired
PaymentRequired = 402;
-
Forbidden
public static final StatusCode Forbidden
Forbidden = 403;
-
NotFound
public static final StatusCode NotFound
NotFound = 404;
-
MethodNotAllowed
public static final StatusCode MethodNotAllowed
MethodNotAllowed = 405;
-
NotAcceptable
public static final StatusCode NotAcceptable
NotAcceptable = 406;
-
ProxyAuthenticationRequired
public static final StatusCode ProxyAuthenticationRequired
ProxyAuthenticationRequired = 407;
-
RequestTimeout
public static final StatusCode RequestTimeout
RequestTimeout = 408;
-
Conflict
public static final StatusCode Conflict
Conflict = 409;
-
Gone
public static final StatusCode Gone
Gone = 410;
-
LengthRequired
public static final StatusCode LengthRequired
LengthRequired = 411;
-
PreconditionFailed
public static final StatusCode PreconditionFailed
PreconditionFailed = 412;
-
PayloadTooLarge
public static final StatusCode PayloadTooLarge
PayloadTooLarge = 413;
-
URITooLong
public static final StatusCode URITooLong
URITooLong = 414;
-
UnsupportedMediaType
public static final StatusCode UnsupportedMediaType
UnsupportedMediaType = 415;
-
RangeNotSatisfiable
public static final StatusCode RangeNotSatisfiable
RangeNotSatisfiable = 416;
-
ExpectationFailed
public static final StatusCode ExpectationFailed
ExpectationFailed = 417;
-
MisdirectedRequest
public static final StatusCode MisdirectedRequest
MisdirectedRequest = 421;
-
UnprocessableEntity
public static final StatusCode UnprocessableEntity
UnprocessableEntity = 422;
-
Locked
public static final StatusCode Locked
Locked = 423;
-
FailedDependency
public static final StatusCode FailedDependency
FailedDependency = 424;
-
UpgradeRequired
public static final StatusCode UpgradeRequired
UpgradeRequired = 426;
-
PreconditionRequired
public static final StatusCode PreconditionRequired
PreconditionRequired = 428;
-
TooManyRequests
public static final StatusCode TooManyRequests
TooManyRequests = 429;
-
RequestHeaderFieldsTooLarge
public static final StatusCode RequestHeaderFieldsTooLarge
RequestHeaderFieldsTooLarge = 431;
-
InternalServerError
public static final StatusCode InternalServerError
InternalServerError = 500;
-
NotImplemented
public static final StatusCode NotImplemented
NotImplemented = 501;
-
BadGateway
public static final StatusCode BadGateway
BadGateway = 502;
-
ServiceUnavailable
public static final StatusCode ServiceUnavailable
ServiceUnavailable = 503;
-
GatewayTimeout
public static final StatusCode GatewayTimeout
GatewayTimeout = 504;
-
HTTPVersionNotSupported
public static final StatusCode HTTPVersionNotSupported
HTTPVersionNotSupported = 505;
-
VariantAlsoNegotiates
public static final StatusCode VariantAlsoNegotiates
VariantAlsoNegotiates = 506;
-
InsufficientStorage
public static final StatusCode InsufficientStorage
InsufficientStorage = 507;
-
LoopDetected
public static final StatusCode LoopDetected
LoopDetected = 508;
-
NotExtended
public static final StatusCode NotExtended
NotExtended = 510;
-
NetworkAuthenticationRequired
public static final StatusCode NetworkAuthenticationRequired
NetworkAuthenticationRequired = 511;
-
UNRECOGNIZED
public static final StatusCode UNRECOGNIZED
-
-
Field Detail
-
Empty_VALUE
public static final int Empty_VALUE
Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.
Empty = 0;
- See Also:
- Constant Field Values
-
Continue_VALUE
public static final int Continue_VALUE
Continue = 100;
- See Also:
- Constant Field Values
-
OK_VALUE
public static final int OK_VALUE
OK = 200;
- See Also:
- Constant Field Values
-
Created_VALUE
public static final int Created_VALUE
Created = 201;
- See Also:
- Constant Field Values
-
Accepted_VALUE
public static final int Accepted_VALUE
Accepted = 202;
- See Also:
- Constant Field Values
-
NonAuthoritativeInformation_VALUE
public static final int NonAuthoritativeInformation_VALUE
NonAuthoritativeInformation = 203;
- See Also:
- Constant Field Values
-
NoContent_VALUE
public static final int NoContent_VALUE
NoContent = 204;
- See Also:
- Constant Field Values
-
ResetContent_VALUE
public static final int ResetContent_VALUE
ResetContent = 205;
- See Also:
- Constant Field Values
-
PartialContent_VALUE
public static final int PartialContent_VALUE
PartialContent = 206;
- See Also:
- Constant Field Values
-
MultiStatus_VALUE
public static final int MultiStatus_VALUE
MultiStatus = 207;
- See Also:
- Constant Field Values
-
AlreadyReported_VALUE
public static final int AlreadyReported_VALUE
AlreadyReported = 208;
- See Also:
- Constant Field Values
-
IMUsed_VALUE
public static final int IMUsed_VALUE
IMUsed = 226;
- See Also:
- Constant Field Values
-
MultipleChoices_VALUE
public static final int MultipleChoices_VALUE
MultipleChoices = 300;
- See Also:
- Constant Field Values
-
MovedPermanently_VALUE
public static final int MovedPermanently_VALUE
MovedPermanently = 301;
- See Also:
- Constant Field Values
-
Found_VALUE
public static final int Found_VALUE
Found = 302;
- See Also:
- Constant Field Values
-
SeeOther_VALUE
public static final int SeeOther_VALUE
SeeOther = 303;
- See Also:
- Constant Field Values
-
NotModified_VALUE
public static final int NotModified_VALUE
NotModified = 304;
- See Also:
- Constant Field Values
-
UseProxy_VALUE
public static final int UseProxy_VALUE
UseProxy = 305;
- See Also:
- Constant Field Values
-
TemporaryRedirect_VALUE
public static final int TemporaryRedirect_VALUE
TemporaryRedirect = 307;
- See Also:
- Constant Field Values
-
PermanentRedirect_VALUE
public static final int PermanentRedirect_VALUE
PermanentRedirect = 308;
- See Also:
- Constant Field Values
-
BadRequest_VALUE
public static final int BadRequest_VALUE
BadRequest = 400;
- See Also:
- Constant Field Values
-
Unauthorized_VALUE
public static final int Unauthorized_VALUE
Unauthorized = 401;
- See Also:
- Constant Field Values
-
PaymentRequired_VALUE
public static final int PaymentRequired_VALUE
PaymentRequired = 402;
- See Also:
- Constant Field Values
-
Forbidden_VALUE
public static final int Forbidden_VALUE
Forbidden = 403;
- See Also:
- Constant Field Values
-
NotFound_VALUE
public static final int NotFound_VALUE
NotFound = 404;
- See Also:
- Constant Field Values
-
MethodNotAllowed_VALUE
public static final int MethodNotAllowed_VALUE
MethodNotAllowed = 405;
- See Also:
- Constant Field Values
-
NotAcceptable_VALUE
public static final int NotAcceptable_VALUE
NotAcceptable = 406;
- See Also:
- Constant Field Values
-
ProxyAuthenticationRequired_VALUE
public static final int ProxyAuthenticationRequired_VALUE
ProxyAuthenticationRequired = 407;
- See Also:
- Constant Field Values
-
RequestTimeout_VALUE
public static final int RequestTimeout_VALUE
RequestTimeout = 408;
- See Also:
- Constant Field Values
-
Conflict_VALUE
public static final int Conflict_VALUE
Conflict = 409;
- See Also:
- Constant Field Values
-
Gone_VALUE
public static final int Gone_VALUE
Gone = 410;
- See Also:
- Constant Field Values
-
LengthRequired_VALUE
public static final int LengthRequired_VALUE
LengthRequired = 411;
- See Also:
- Constant Field Values
-
PreconditionFailed_VALUE
public static final int PreconditionFailed_VALUE
PreconditionFailed = 412;
- See Also:
- Constant Field Values
-
PayloadTooLarge_VALUE
public static final int PayloadTooLarge_VALUE
PayloadTooLarge = 413;
- See Also:
- Constant Field Values
-
URITooLong_VALUE
public static final int URITooLong_VALUE
URITooLong = 414;
- See Also:
- Constant Field Values
-
UnsupportedMediaType_VALUE
public static final int UnsupportedMediaType_VALUE
UnsupportedMediaType = 415;
- See Also:
- Constant Field Values
-
RangeNotSatisfiable_VALUE
public static final int RangeNotSatisfiable_VALUE
RangeNotSatisfiable = 416;
- See Also:
- Constant Field Values
-
ExpectationFailed_VALUE
public static final int ExpectationFailed_VALUE
ExpectationFailed = 417;
- See Also:
- Constant Field Values
-
MisdirectedRequest_VALUE
public static final int MisdirectedRequest_VALUE
MisdirectedRequest = 421;
- See Also:
- Constant Field Values
-
UnprocessableEntity_VALUE
public static final int UnprocessableEntity_VALUE
UnprocessableEntity = 422;
- See Also:
- Constant Field Values
-
Locked_VALUE
public static final int Locked_VALUE
Locked = 423;
- See Also:
- Constant Field Values
-
FailedDependency_VALUE
public static final int FailedDependency_VALUE
FailedDependency = 424;
- See Also:
- Constant Field Values
-
UpgradeRequired_VALUE
public static final int UpgradeRequired_VALUE
UpgradeRequired = 426;
- See Also:
- Constant Field Values
-
PreconditionRequired_VALUE
public static final int PreconditionRequired_VALUE
PreconditionRequired = 428;
- See Also:
- Constant Field Values
-
TooManyRequests_VALUE
public static final int TooManyRequests_VALUE
TooManyRequests = 429;
- See Also:
- Constant Field Values
-
RequestHeaderFieldsTooLarge_VALUE
public static final int RequestHeaderFieldsTooLarge_VALUE
RequestHeaderFieldsTooLarge = 431;
- See Also:
- Constant Field Values
-
InternalServerError_VALUE
public static final int InternalServerError_VALUE
InternalServerError = 500;
- See Also:
- Constant Field Values
-
NotImplemented_VALUE
public static final int NotImplemented_VALUE
NotImplemented = 501;
- See Also:
- Constant Field Values
-
BadGateway_VALUE
public static final int BadGateway_VALUE
BadGateway = 502;
- See Also:
- Constant Field Values
-
ServiceUnavailable_VALUE
public static final int ServiceUnavailable_VALUE
ServiceUnavailable = 503;
- See Also:
- Constant Field Values
-
GatewayTimeout_VALUE
public static final int GatewayTimeout_VALUE
GatewayTimeout = 504;
- See Also:
- Constant Field Values
-
HTTPVersionNotSupported_VALUE
public static final int HTTPVersionNotSupported_VALUE
HTTPVersionNotSupported = 505;
- See Also:
- Constant Field Values
-
VariantAlsoNegotiates_VALUE
public static final int VariantAlsoNegotiates_VALUE
VariantAlsoNegotiates = 506;
- See Also:
- Constant Field Values
-
InsufficientStorage_VALUE
public static final int InsufficientStorage_VALUE
InsufficientStorage = 507;
- See Also:
- Constant Field Values
-
LoopDetected_VALUE
public static final int LoopDetected_VALUE
LoopDetected = 508;
- See Also:
- Constant Field Values
-
NotExtended_VALUE
public static final int NotExtended_VALUE
NotExtended = 510;
- See Also:
- Constant Field Values
-
NetworkAuthenticationRequired_VALUE
public static final int NetworkAuthenticationRequired_VALUE
NetworkAuthenticationRequired = 511;
- See Also:
- Constant Field Values
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<StatusCode> internalValueMap
-
VALUES
private static final StatusCode[] VALUES
-
value
private final int value
-
-
Method Detail
-
values
public static 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 (StatusCode c : 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 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 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 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<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 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
-
-