public final class ExecutionRequest 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 Apps Script Execution 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 |
---|
ExecutionRequest() |
Modifier and Type | Method and Description |
---|---|
ExecutionRequest |
clone() |
Boolean |
getDevMode()
If `true` and the user is an owner of the script, the script runs at the most recently saved
version rather than the version deployed for use with the Execution API.
|
String |
getFunction()
The name of the function to execute in the given script.
|
List<Object> |
getParameters()
The parameters to be passed to the function being executed.
|
String |
getSessionState()
This field is not used.
|
ExecutionRequest |
set(String fieldName,
Object value) |
ExecutionRequest |
setDevMode(Boolean devMode)
If `true` and the user is an owner of the script, the script runs at the most recently saved
version rather than the version deployed for use with the Execution API.
|
ExecutionRequest |
setFunction(String function)
The name of the function to execute in the given script.
|
ExecutionRequest |
setParameters(List<Object> parameters)
The parameters to be passed to the function being executed.
|
ExecutionRequest |
setSessionState(String sessionState)
This field is not used.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Boolean getDevMode()
null
for nonepublic ExecutionRequest setDevMode(Boolean devMode)
devMode
- devMode or null
for nonepublic String getFunction()
null
for nonepublic ExecutionRequest setFunction(String function)
function
- function or null
for nonepublic List<Object> getParameters()
null
for nonepublic ExecutionRequest setParameters(List<Object> parameters)
parameters
- parameters or null
for nonepublic String getSessionState()
null
for nonepublic ExecutionRequest setSessionState(String sessionState)
sessionState
- sessionState or null
for nonepublic ExecutionRequest set(String fieldName, Object value)
set
in class GenericJson
public ExecutionRequest clone()
clone
in class GenericJson