public enum CheckErrorInfo extends java.lang.Enum<CheckErrorInfo>
CheckError received in a CheckResponse to HTTP
codes and messages.| Modifier and Type | Method and Description |
|---|---|
static CheckErrorInfo |
convert(com.google.api.servicecontrol.v1.CheckResponse response)
Determines the
CheckErrorInfo 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 |
isApiKeyError() |
static CheckErrorInfo |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CheckErrorInfo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CheckErrorInfo OK
public static final CheckErrorInfo NAMESPACE_LOOKUP_UNAVAILABLE
public static final CheckErrorInfo SERVICE_STATUS_UNAVAILABLE
public static final CheckErrorInfo BILLING_STATUS_UNAVAILABLE
public static final CheckErrorInfo NOT_FOUND
public static final CheckErrorInfo API_KEY_NOT_FOUND
public static final CheckErrorInfo API_KEY_EXPIRED
public static final CheckErrorInfo API_KEY_INVALID
public static final CheckErrorInfo SERVICE_NOT_ACTIVATED
public static final CheckErrorInfo PERMISSION_DENIED
public static final CheckErrorInfo IP_ADDRESS_BLOCKED
public static final CheckErrorInfo REFERER_BLOCKED
public static final CheckErrorInfo CLIENT_APP_BLOCKED
public static final CheckErrorInfo PROJECT_DELETED
public static final CheckErrorInfo PROJECT_INVALID
public static final CheckErrorInfo BILLING_DISABLED
public static final CheckErrorInfo UNKNOWN
public static final CheckErrorInfo API_KEY_NOT_PROVIDED
public static CheckErrorInfo[] values()
for (CheckErrorInfo c : CheckErrorInfo.values()) System.out.println(c);
public static CheckErrorInfo 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 isApiKeyError()
true if original code corresponds to a API key issue, otherwise falsepublic static final CheckErrorInfo convert(@Nullable com.google.api.servicecontrol.v1.CheckResponse response)
CheckErrorInfo corresponding to response.response - a response from a CheckRequestCheckErrorInfo