|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.http.json.JsonHttpRequest
com.google.api.services.drive.DriveRequest
com.google.api.services.drive.Drive.Revisions.Patch
public class Drive.Revisions.Patch
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.api.client.util.GenericData |
|---|
GenericData.Flags |
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
Revision |
execute()
Sends the "patch" request to the Drive server. |
String |
getFileId()
The ID for the file. |
String |
getRevisionId()
The ID for the revision. |
void |
queue(BatchRequest batch,
JsonBatchCallback<Revision> callback)
Queues the "patch" request to the Drive server into the given batch request. |
Drive.Revisions.Patch |
setFields(String fields)
Selector specifying which fields to include in a partial response. |
Drive.Revisions.Patch |
setFileId(String fileId)
The ID for the file. |
Drive.Revisions.Patch |
setRevisionId(String revisionId)
The ID for the revision. |
| Methods inherited from class com.google.api.services.drive.DriveRequest |
|---|
getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setAlt, setKey, setOauthToken, setPrettyPrint, setQuotaUser, setUserIp |
| Methods inherited from class com.google.api.client.http.json.JsonHttpRequest |
|---|
buildHttpRequest, buildHttpRequestUrl, download, executeAsInputStream, executeUnparsed, getClient, getEnableGZipContent, getJsonContent, getLastResponseHeaders, getMethod, getRequestHeaders, getUriTemplate, setEnableGZipContent, setRequestHeaders |
| Methods inherited from class com.google.api.client.util.GenericData |
|---|
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, 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 |
| Method Detail |
|---|
public Revision execute()
throws IOException
Revision response
IOException - if the request fails
public void queue(BatchRequest batch,
JsonBatchCallback<Revision> callback)
throws IOException
Example usage:
request.queue(batchRequest, new JsonBatchCallback<Revision>() {
public void onSuccess(Revision content, GoogleHeaders responseHeaders) {
log("Success");
}
public void onFailure(GoogleJsonError e, GoogleHeaders responseHeaders) {
log(e.getMessage());
}
});
batch - a single batch of requestscallback - batch callback
IOExceptionpublic Drive.Revisions.Patch setFields(String fields)
DriveRequest
setFields in class DriveRequestpublic String getFileId()
public Drive.Revisions.Patch setFileId(String fileId)
public String getRevisionId()
public Drive.Revisions.Patch setRevisionId(String revisionId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||