public class Drive.Realtime.Update extends DriveRequest<Void>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
USER_AGENT_SUFFIX
Modifier | Constructor and Description |
---|---|
protected |
Update(String fileId)
Overwrites the Realtime API data model associated with this file with the provided JSON data
model.
|
protected |
Update(String fileId,
AbstractInputStreamContent mediaContent)
Overwrites the Realtime API data model associated with this file with the provided JSON data
model.
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseRevision()
The revision of the model to diff the uploaded model against.
|
String |
getFileId()
The ID of the file that the Realtime API data model is associated with.
|
Drive.Realtime.Update |
set(String parameterName,
Object value) |
Drive.Realtime.Update |
setAlt(String alt)
Data format for the response.
|
Drive.Realtime.Update |
setBaseRevision(String baseRevision)
The revision of the model to diff the uploaded model against.
|
Drive.Realtime.Update |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Realtime.Update |
setFileId(String fileId)
The ID of the file that the Realtime API data model is associated with.
|
Drive.Realtime.Update |
setKey(String key)
API key.
|
Drive.Realtime.Update |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Realtime.Update |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Realtime.Update |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Drive.Realtime.Update |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
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 Update(String fileId)
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.
fileId
- The ID of the file that the Realtime API data model is associated with.protected Update(String fileId, AbstractInputStreamContent mediaContent)
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.
This constructor should be used for uploading media content.
fileId
- The ID of the file that the Realtime API data model is associated with.mediaContent
- The media HTTP content or null
if none.public Drive.Realtime.Update setAlt(String alt)
DriveRequest
setAlt
in class DriveRequest<Void>
public Drive.Realtime.Update setFields(String fields)
DriveRequest
setFields
in class DriveRequest<Void>
public Drive.Realtime.Update setKey(String key)
DriveRequest
setKey
in class DriveRequest<Void>
public Drive.Realtime.Update setOauthToken(String oauthToken)
DriveRequest
setOauthToken
in class DriveRequest<Void>
public Drive.Realtime.Update setPrettyPrint(Boolean prettyPrint)
DriveRequest
setPrettyPrint
in class DriveRequest<Void>
public Drive.Realtime.Update setQuotaUser(String quotaUser)
DriveRequest
setQuotaUser
in class DriveRequest<Void>
public Drive.Realtime.Update setUserIp(String userIp)
DriveRequest
setUserIp
in class DriveRequest<Void>
public String getFileId()
public Drive.Realtime.Update setFileId(String fileId)
public String getBaseRevision()
public Drive.Realtime.Update setBaseRevision(String baseRevision)
public Drive.Realtime.Update set(String parameterName, Object value)
set
in class DriveRequest<Void>
Copyright © 2011–2019 Google. All rights reserved.