public class Docs.Documents.Get extends DocsRequest<Document>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Get(java.lang.String documentId)
Gets the latest version of the specified document.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getDocumentId()
The ID of the document to retrieve.
|
java.lang.String |
getSuggestionsViewMode()
The suggestions view mode to apply to the document.
|
Docs.Documents.Get |
set(java.lang.String parameterName,
java.lang.Object value) |
Docs.Documents.Get |
set$Xgafv(java.lang.String $Xgafv)
V1 error format.
|
Docs.Documents.Get |
setAccessToken(java.lang.String accessToken)
OAuth access token.
|
Docs.Documents.Get |
setAlt(java.lang.String alt)
Data format for response.
|
Docs.Documents.Get |
setCallback(java.lang.String callback)
JSONP
|
Docs.Documents.Get |
setDocumentId(java.lang.String documentId)
The ID of the document to retrieve.
|
Docs.Documents.Get |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Docs.Documents.Get |
setKey(java.lang.String key)
API key.
|
Docs.Documents.Get |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Docs.Documents.Get |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Docs.Documents.Get |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Docs.Documents.Get |
setSuggestionsViewMode(java.lang.String suggestionsViewMode)
The suggestions view mode to apply to the document.
|
Docs.Documents.Get |
setUploadProtocol(java.lang.String uploadProtocol)
Upload protocol for media (e.g.
|
Docs.Documents.Get |
setUploadType(java.lang.String uploadType)
Legacy upload protocol for media (e.g.
|
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, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Get(java.lang.String documentId)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Docs.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be
called to initialize this instance immediately after invoking the constructor.
documentId
- The ID of the document to retrieve.public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Document>
java.io.IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Document>
java.io.IOException
public Docs.Documents.Get set$Xgafv(java.lang.String $Xgafv)
DocsRequest
set$Xgafv
in class DocsRequest<Document>
public Docs.Documents.Get setAccessToken(java.lang.String accessToken)
DocsRequest
setAccessToken
in class DocsRequest<Document>
public Docs.Documents.Get setAlt(java.lang.String alt)
DocsRequest
setAlt
in class DocsRequest<Document>
public Docs.Documents.Get setCallback(java.lang.String callback)
DocsRequest
setCallback
in class DocsRequest<Document>
public Docs.Documents.Get setFields(java.lang.String fields)
DocsRequest
setFields
in class DocsRequest<Document>
public Docs.Documents.Get setKey(java.lang.String key)
DocsRequest
setKey
in class DocsRequest<Document>
public Docs.Documents.Get setOauthToken(java.lang.String oauthToken)
DocsRequest
setOauthToken
in class DocsRequest<Document>
public Docs.Documents.Get setPrettyPrint(java.lang.Boolean prettyPrint)
DocsRequest
setPrettyPrint
in class DocsRequest<Document>
public Docs.Documents.Get setQuotaUser(java.lang.String quotaUser)
DocsRequest
setQuotaUser
in class DocsRequest<Document>
public Docs.Documents.Get setUploadType(java.lang.String uploadType)
DocsRequest
setUploadType
in class DocsRequest<Document>
public Docs.Documents.Get setUploadProtocol(java.lang.String uploadProtocol)
DocsRequest
setUploadProtocol
in class DocsRequest<Document>
public java.lang.String getDocumentId()
public Docs.Documents.Get setDocumentId(java.lang.String documentId)
public java.lang.String getSuggestionsViewMode()
public Docs.Documents.Get setSuggestionsViewMode(java.lang.String suggestionsViewMode)
public Docs.Documents.Get set(java.lang.String parameterName, java.lang.Object value)
set
in class DocsRequest<Document>