public final class File
extends com.google.api.client.json.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 Apps Script API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
File() |
Modifier and Type | Method and Description |
---|---|
File |
clone() |
java.lang.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.
|
java.lang.String |
getName()
The name of the file.
|
java.lang.String |
getSource()
The file content.
|
java.lang.String |
getType()
The type of the file.
|
java.lang.String |
getUpdateTime()
Last modified date timestamp.
|
File |
set(java.lang.String fieldName,
java.lang.Object value) |
File |
setCreateTime(java.lang.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(java.lang.String name)
The name of the file.
|
File |
setSource(java.lang.String source)
The file content.
|
File |
setType(java.lang.String type)
The type of the file.
|
File |
setUpdateTime(java.lang.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 java.lang.String getCreateTime()
null
for nonepublic File setCreateTime(java.lang.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 java.lang.String getName()
null
for nonepublic File setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getSource()
null
for nonepublic File setSource(java.lang.String source)
source
- source or null
for nonepublic java.lang.String getType()
null
for nonepublic File setType(java.lang.String type)
type
- type or null
for nonepublic java.lang.String getUpdateTime()
null
for nonepublic File setUpdateTime(java.lang.String updateTime)
updateTime
- updateTime or null
for nonepublic File set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public File clone()
clone
in class com.google.api.client.json.GenericJson