target.apidocs.com.google.api.services.drive.Drive.Realtime.Get.html Maven / Gradle / Ivy
Drive.Realtime.Get (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive
Class Drive.Realtime.Get
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
-
- com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
-
- com.google.api.services.drive.DriveRequest<Void>
-
- com.google.api.services.drive.Drive.Realtime.Get
-
- Enclosing class:
- Drive.Realtime
public class Drive.Realtime.Get
extends DriveRequest<Void>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Modifier
Constructor and Description
protected
Get(String fileId)
Exports the contents of the Realtime API data model associated with this file as JSON.
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
com.google.api.client.http.HttpRequest
buildHttpRequestUsingHead()
com.google.api.client.http.HttpResponse
executeMedia()
void
executeMediaAndDownloadTo(OutputStream outputStream)
InputStream
executeMediaAsInputStream()
com.google.api.client.http.HttpResponse
executeUsingHead()
String
getFileId()
The ID of the file that the Realtime API data model is associated with.
Integer
getRevision()
The revision of the Realtime API data model to export.
Drive.Realtime.Get
set(String parameterName,
Object value)
Drive.Realtime.Get
setAlt(String alt)
Data format for the response.
Drive.Realtime.Get
setFields(String fields)
Selector specifying which fields to include in a partial response.
Drive.Realtime.Get
setFileId(String fileId)
The ID of the file that the Realtime API data model is associated with.
Drive.Realtime.Get
setKey(String key)
API key.
Drive.Realtime.Get
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
Drive.Realtime.Get
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
Drive.Realtime.Get
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
Drive.Realtime.Get
setRevision(Integer revision)
The revision of the Realtime API data model to export.
Drive.Realtime.Get
setUserIp(String userIp)
Deprecated.
-
Methods inherited from class com.google.api.services.drive.DriveRequest
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
-
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest
getJsonContent, newExceptionOnError, queue
-
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
-
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Constructor Detail
-
Get
protected Get(String fileId)
Exports the contents of the Realtime API data model associated with this file as JSON.
Create a request for the method "realtime.get".
This request holds the parameters needed by the the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Drive.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be
called to initialize this instance immediately after invoking the constructor.
- Parameters:
fileId
- The ID of the file that the Realtime API data model is associated with.
- Since:
- 1.13
-
Method Detail
-
executeMediaAndDownloadTo
public void executeMediaAndDownloadTo(OutputStream outputStream)
throws IOException
- Overrides:
executeMediaAndDownloadTo
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Void>
- Throws:
IOException
-
executeMediaAsInputStream
public InputStream executeMediaAsInputStream()
throws IOException
- Overrides:
executeMediaAsInputStream
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Void>
- Throws:
IOException
-
executeMedia
public com.google.api.client.http.HttpResponse executeMedia()
throws IOException
- Overrides:
executeMedia
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Void>
- Throws:
IOException
-
executeUsingHead
public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
- Overrides:
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Void>
- Throws:
IOException
-
buildHttpRequestUsingHead
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
- Overrides:
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Void>
- Throws:
IOException
-
setAlt
public Drive.Realtime.Get setAlt(String alt)
Description copied from class: DriveRequest
Data format for the response.
- Overrides:
setAlt
in class DriveRequest<Void>
-
setFields
public Drive.Realtime.Get setFields(String fields)
Description copied from class: DriveRequest
Selector specifying which fields to include in a partial response.
- Overrides:
setFields
in class DriveRequest<Void>
-
setKey
public Drive.Realtime.Get setKey(String key)
Description copied from class: DriveRequest
API key. Your API key identifies your project and provides you with API access, quota, and
reports. Required unless you provide an OAuth 2.0 token.
- Overrides:
setKey
in class DriveRequest<Void>
-
setOauthToken
public Drive.Realtime.Get setOauthToken(String oauthToken)
Description copied from class: DriveRequest
OAuth 2.0 token for the current user.
- Overrides:
setOauthToken
in class DriveRequest<Void>
-
setPrettyPrint
public Drive.Realtime.Get setPrettyPrint(Boolean prettyPrint)
Description copied from class: DriveRequest
Returns response with indentations and line breaks.
- Overrides:
setPrettyPrint
in class DriveRequest<Void>
-
setQuotaUser
public Drive.Realtime.Get setQuotaUser(String quotaUser)
Description copied from class: DriveRequest
An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- Overrides:
setQuotaUser
in class DriveRequest<Void>
-
setUserIp
public Drive.Realtime.Get setUserIp(String userIp)
Description copied from class: DriveRequest
Deprecated. Please use quotaUser instead.
- Overrides:
setUserIp
in class DriveRequest<Void>
-
getFileId
public String getFileId()
The ID of the file that the Realtime API data model is associated with.
-
setFileId
public Drive.Realtime.Get setFileId(String fileId)
The ID of the file that the Realtime API data model is associated with.
-
getRevision
public Integer getRevision()
The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data
model) and are incremented with each change. If this parameter is excluded, the most recent data
model will be returned.
[minimum: 1]
-
setRevision
public Drive.Realtime.Get setRevision(Integer revision)
The revision of the Realtime API data model to export. Revisions start at 1 (the initial
empty data model) and are incremented with each change. If this parameter is excluded, the
most recent data model will be returned.
-
set
public Drive.Realtime.Get set(String parameterName,
Object value)
- Overrides:
set
in class DriveRequest<Void>
Copyright © 2011–2018 Google. All rights reserved.