BigQuery API v2 (revision 86)



com.google.api.services.bigquery.model
Class ErrorProto

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.bigquery.model.ErrorProto
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class ErrorProto
extends GenericJson

Model definition for ErrorProto.

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 BigQuery API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ErrorProto()
           
 
Method Summary
 ErrorProto clone()
           
 String getDebugInfo()
          Debugging information for the service, if present.
 String getLocation()
          Specifies where the error occurred, if present.
 String getMessage()
          A human readable explanation of the error.
 String getReason()
          Specifies the error reason.
 ErrorProto set(String fieldName, Object value)
           
 ErrorProto setDebugInfo(String debugInfo)
          Debugging information for the service, if present.
 ErrorProto setLocation(String location)
          Specifies where the error occurred, if present.
 ErrorProto setMessage(String message)
          A human readable explanation of the error.
 ErrorProto setReason(String reason)
          Specifies the error reason.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorProto

public ErrorProto()
Method Detail

getDebugInfo

public String getDebugInfo()
Debugging information for the service, if present. Should be ignored.

Returns:
value or null for none

setDebugInfo

public ErrorProto setDebugInfo(String debugInfo)
Debugging information for the service, if present. Should be ignored.

Parameters:
debugInfo - debugInfo or null for none

getLocation

public String getLocation()
Specifies where the error occurred, if present.

Returns:
value or null for none

setLocation

public ErrorProto setLocation(String location)
Specifies where the error occurred, if present.

Parameters:
location - location or null for none

getMessage

public String getMessage()
A human readable explanation of the error.

Returns:
value or null for none

setMessage

public ErrorProto setMessage(String message)
A human readable explanation of the error.

Parameters:
message - message or null for none

getReason

public String getReason()
Specifies the error reason. For example, reason will be "required" or "invalid" if some field was missing or malformed.

Returns:
value or null for none

setReason

public ErrorProto setReason(String reason)
Specifies the error reason. For example, reason will be "required" or "invalid" if some field was missing or malformed.

Parameters:
reason - reason or null for none

set

public ErrorProto set(String fieldName,
                      Object value)
Overrides:
set in class GenericJson

clone

public ErrorProto clone()
Overrides:
clone in class GenericJson