public class Script.Projects.GetContent extends ScriptRequest<Content>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
GetContent(String scriptId)
Gets the content of the script project, including the code source and metadata for each script
file.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getScriptId()
The script project's Drive ID.
|
Integer |
getVersionNumber()
The version number of the project to retrieve.
|
Script.Projects.GetContent |
set(String parameterName,
Object value) |
Script.Projects.GetContent |
set$Xgafv(String $Xgafv)
V1 error format.
|
Script.Projects.GetContent |
setAccessToken(String accessToken)
OAuth access token.
|
Script.Projects.GetContent |
setAlt(String alt)
Data format for response.
|
Script.Projects.GetContent |
setCallback(String callback)
JSONP
|
Script.Projects.GetContent |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Script.Projects.GetContent |
setKey(String key)
API key.
|
Script.Projects.GetContent |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Script.Projects.GetContent |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Script.Projects.GetContent |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Script.Projects.GetContent |
setScriptId(String scriptId)
The script project's Drive ID.
|
Script.Projects.GetContent |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Script.Projects.GetContent |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Script.Projects.GetContent |
setVersionNumber(Integer versionNumber)
The version number of the project to retrieve.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected GetContent(String scriptId)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
Script.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
scriptId
- The script project's Drive ID.public com.google.api.client.http.HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Content>
IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Content>
IOException
public Script.Projects.GetContent set$Xgafv(String $Xgafv)
ScriptRequest
set$Xgafv
in class ScriptRequest<Content>
public Script.Projects.GetContent setAccessToken(String accessToken)
ScriptRequest
setAccessToken
in class ScriptRequest<Content>
public Script.Projects.GetContent setAlt(String alt)
ScriptRequest
setAlt
in class ScriptRequest<Content>
public Script.Projects.GetContent setCallback(String callback)
ScriptRequest
setCallback
in class ScriptRequest<Content>
public Script.Projects.GetContent setFields(String fields)
ScriptRequest
setFields
in class ScriptRequest<Content>
public Script.Projects.GetContent setKey(String key)
ScriptRequest
setKey
in class ScriptRequest<Content>
public Script.Projects.GetContent setOauthToken(String oauthToken)
ScriptRequest
setOauthToken
in class ScriptRequest<Content>
public Script.Projects.GetContent setPrettyPrint(Boolean prettyPrint)
ScriptRequest
setPrettyPrint
in class ScriptRequest<Content>
public Script.Projects.GetContent setQuotaUser(String quotaUser)
ScriptRequest
setQuotaUser
in class ScriptRequest<Content>
public Script.Projects.GetContent setUploadType(String uploadType)
ScriptRequest
setUploadType
in class ScriptRequest<Content>
public Script.Projects.GetContent setUploadProtocol(String uploadProtocol)
ScriptRequest
setUploadProtocol
in class ScriptRequest<Content>
public String getScriptId()
public Script.Projects.GetContent setScriptId(String scriptId)
public Integer getVersionNumber()
public Script.Projects.GetContent setVersionNumber(Integer versionNumber)
public Script.Projects.GetContent set(String parameterName, Object value)
set
in class ScriptRequest<Content>
Copyright © 2011–2024 Google. All rights reserved.