target.apidocs.com.google.api.services.sheets.v4.model.DataExecutionStatus.html Maven / Gradle / Ivy
DataExecutionStatus (Google Sheets API v4-rev20240319-2.0.0)
com.google.api.services.sheets.v4.model
Class DataExecutionStatus
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sheets.v4.model.DataExecutionStatus
-
public final class DataExecutionStatus
extends com.google.api.client.json.GenericJson
The data execution status. A data execution is created to sync a data source object with the
latest data from a DataSource. It is usually scheduled to run at background, you can check its
state to tell if an execution completes There are several scenarios where a data execution is
triggered to run: * Adding a data source creates an associated data source sheet as well as a
data execution to sync the data from the data source to the sheet. * Updating a data source
creates a data execution to refresh the associated data source sheet similarly. * You can send
refresh request to explicitly refresh one or multiple data source objects.
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 Sheets API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
DataExecutionStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DataExecutionStatus
clone()
String
getErrorCode()
The error code.
String
getErrorMessage()
The error message, which may be empty.
String
getLastRefreshTime()
Gets the time the data last successfully refreshed.
String
getState()
The state of the data execution.
DataExecutionStatus
set(String fieldName,
Object value)
DataExecutionStatus
setErrorCode(String errorCode)
The error code.
DataExecutionStatus
setErrorMessage(String errorMessage)
The error message, which may be empty.
DataExecutionStatus
setLastRefreshTime(String lastRefreshTime)
Gets the time the data last successfully refreshed.
DataExecutionStatus
setState(String state)
The state of the data execution.
-
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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getErrorCode
public String getErrorCode()
The error code.
- Returns:
- value or
null
for none
-
setErrorCode
public DataExecutionStatus setErrorCode(String errorCode)
The error code.
- Parameters:
errorCode
- errorCode or null
for none
-
getErrorMessage
public String getErrorMessage()
The error message, which may be empty.
- Returns:
- value or
null
for none
-
setErrorMessage
public DataExecutionStatus setErrorMessage(String errorMessage)
The error message, which may be empty.
- Parameters:
errorMessage
- errorMessage or null
for none
-
getLastRefreshTime
public String getLastRefreshTime()
Gets the time the data last successfully refreshed.
- Returns:
- value or
null
for none
-
setLastRefreshTime
public DataExecutionStatus setLastRefreshTime(String lastRefreshTime)
Gets the time the data last successfully refreshed.
- Parameters:
lastRefreshTime
- lastRefreshTime or null
for none
-
getState
public String getState()
The state of the data execution.
- Returns:
- value or
null
for none
-
setState
public DataExecutionStatus setState(String state)
The state of the data execution.
- Parameters:
state
- state or null
for none
-
set
public DataExecutionStatus set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public DataExecutionStatus clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.