public enum QuotaErrorInfo extends java.lang.Enum<QuotaErrorInfo>
CheckError received in a CheckResponse to HTTP
codes and messages.| Modifier and Type | Method and Description |
|---|---|
static QuotaErrorInfo |
convert(com.google.api.servicecontrol.v1.AllocateQuotaResponse response)
Determines the
QuotaErrorInfo corresponding to response. |
java.lang.String |
fullMessage(java.lang.String projectId,
java.lang.String detail)
Expands
message with the project Id and detail where necessary |
int |
getHttpCode() |
java.lang.String |
getMessage() |
boolean |
isReallyError() |
static QuotaErrorInfo |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QuotaErrorInfo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuotaErrorInfo OK
public static final QuotaErrorInfo RESOURCE_EXHAUSTED
public static final QuotaErrorInfo PROJECT_SUSPENDED
public static final QuotaErrorInfo SERVICE_NOT_ENABLED
public static final QuotaErrorInfo BILLING_NOT_ACTIVE
public static final QuotaErrorInfo PROJECT_DELETED
public static final QuotaErrorInfo PROJECT_INVALID
public static final QuotaErrorInfo IP_ADDRESS_BLOCKED
public static final QuotaErrorInfo REFERER_BLOCKED
public static final QuotaErrorInfo CLIENT_APP_BLOCKED
public static final QuotaErrorInfo API_KEY_INVALID
public static final QuotaErrorInfo API_KEY_EXPIRED
public static final QuotaErrorInfo PROJECT_STATUS_UNAVAILABLE
public static final QuotaErrorInfo SERVICE_STATUS_UNAVAILABLE
public static final QuotaErrorInfo BILLING_STATUS_UNAVAILABLE
public static final QuotaErrorInfo QUOTA_SYSTEM_UNAVAILABLE
public static final QuotaErrorInfo UNKNOWN
public static QuotaErrorInfo[] values()
for (QuotaErrorInfo c : QuotaErrorInfo.values()) System.out.println(c);
public static QuotaErrorInfo valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String fullMessage(@Nullable
java.lang.String projectId,
@Nullable
java.lang.String detail)
message with the project Id and detail where necessaryprojectId - the cloud project Iddetail - the error detailpublic java.lang.String getMessage()
public int getHttpCode()
public boolean isReallyError()
true if the error should be returned to the userpublic static QuotaErrorInfo convert(@Nullable com.google.api.servicecontrol.v1.AllocateQuotaResponse response)
QuotaErrorInfo corresponding to response.response - a response from a CheckRequestCheckErrorInfo