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 Google Drive 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.Flags
AbstractMap.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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.GenericJson
public Status clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.