BigQuery API v2 (revision 76)



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

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.JobStatus
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class JobStatus
extends GenericJson

Model definition for JobStatus.

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-api-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
JobStatus()
           
 
Method Summary
 JobStatus clone()
           
 ErrorProto getErrorResult()
          [Output-only] Final error result of the job.
 List<ErrorProto> getErrors()
          [Output-only] All errors encountered during the running of the job.
 String getState()
          [Output-only] Running state of the job.
 JobStatus set(String fieldName, Object value)
           
 JobStatus setErrorResult(ErrorProto errorResult)
          [Output-only] Final error result of the job.
 JobStatus setErrors(List<ErrorProto> errors)
          [Output-only] All errors encountered during the running of the job.
 JobStatus setState(String state)
          [Output-only] Running state of the job.
 
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

JobStatus

public JobStatus()
Method Detail

getErrorResult

public ErrorProto getErrorResult()
[Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful.

Returns:
value or null for none

setErrorResult

public JobStatus setErrorResult(ErrorProto errorResult)
[Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful.

Parameters:
errorResult - errorResult or null for none

getErrors

public List<ErrorProto> getErrors()
[Output-only] All errors encountered during the running of the job. Errors here do not necessarily mean that the job has completed or was unsuccessful.

Returns:
value or null for none

setErrors

public JobStatus setErrors(List<ErrorProto> errors)
[Output-only] All errors encountered during the running of the job. Errors here do not necessarily mean that the job has completed or was unsuccessful.

Parameters:
errors - errors or null for none

getState

public String getState()
[Output-only] Running state of the job.

Returns:
value or null for none

setState

public JobStatus setState(String state)
[Output-only] Running state of the job.

Parameters:
state - state or null for none

set

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

clone

public JobStatus clone()
Overrides:
clone in class GenericJson