public final class Status
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Status() |
| Modifier and Type | Method and Description |
|---|---|
Status |
clone() |
Integer |
getCode()
The status code, which should be an enum value of google.rpc.Code.
|
List<Map<String,Object>> |
getDetails()
A list of messages that carry the error details.
|
String |
getMessage()
A developer-facing error message, which should be in English.
|
Status |
set(String fieldName,
Object value) |
Status |
setCode(Integer code)
The status code, which should be an enum value of google.rpc.Code.
|
Status |
setDetails(List<Map<String,Object>> details)
A list of messages that carry the error details.
|
Status |
setMessage(String message)
A developer-facing error message, which should be in English.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Integer getCode()
null for nonepublic Status setCode(Integer code)
code - code or null for nonepublic List<Map<String,Object>> getDetails()
null for nonepublic Status setDetails(List<Map<String,Object>> details)
details - details or null for nonepublic String getMessage()
null for nonepublic Status setMessage(String message)
message - message or null for nonepublic Status set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Status clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.