public final class File 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 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 |
---|
File() |
Modifier and Type | Method and Description |
---|---|
File |
clone() |
String |
getCreateTime()
Creation date timestamp.
|
GoogleAppsScriptTypeFunctionSet |
getFunctionSet()
The defined set of functions in the script file, if any.
|
GoogleAppsScriptTypeUser |
getLastModifyUser()
The user who modified the file most recently.
|
String |
getName()
The name of the file.
|
String |
getSource()
The file content.
|
String |
getType()
The type of the file.
|
String |
getUpdateTime()
Last modified date timestamp.
|
File |
set(String fieldName,
Object value) |
File |
setCreateTime(String createTime)
Creation date timestamp.
|
File |
setFunctionSet(GoogleAppsScriptTypeFunctionSet functionSet)
The defined set of functions in the script file, if any.
|
File |
setLastModifyUser(GoogleAppsScriptTypeUser lastModifyUser)
The user who modified the file most recently.
|
File |
setName(String name)
The name of the file.
|
File |
setSource(String source)
The file content.
|
File |
setType(String type)
The type of the file.
|
File |
setUpdateTime(String updateTime)
Last modified date timestamp.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getCreateTime()
null
for nonepublic File setCreateTime(String createTime)
createTime
- createTime or null
for nonepublic GoogleAppsScriptTypeFunctionSet getFunctionSet()
null
for nonepublic File setFunctionSet(GoogleAppsScriptTypeFunctionSet functionSet)
functionSet
- functionSet or null
for nonepublic GoogleAppsScriptTypeUser getLastModifyUser()
null
for nonepublic File setLastModifyUser(GoogleAppsScriptTypeUser lastModifyUser)
lastModifyUser
- lastModifyUser or null
for nonepublic String getName()
null
for nonepublic File setName(String name)
name
- name or null
for nonepublic String getSource()
null
for nonepublic File setSource(String source)
source
- source or null
for nonepublic String getType()
null
for nonepublic File setType(String type)
type
- type or null
for nonepublic String getUpdateTime()
null
for nonepublic File setUpdateTime(String updateTime)
updateTime
- updateTime or null
for nonepublic File set(String fieldName, Object value)
set
in class GenericJson
public File clone()
clone
in class GenericJson