public final class Status extends 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 Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
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 GenericJson
public Status clone()
clone
in class GenericJson