public class Drive.Files.Copy extends DriveRequest<File>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Drive.Files.Copy(java.lang.String fileId,
File content)
Creates a copy of the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getConvert()
Whether to convert this file to the corresponding Google Docs format.
|
java.lang.String |
getFileId()
The ID of the file to copy.
|
java.lang.Boolean |
getOcr()
Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
|
java.lang.String |
getOcrLanguage()
If ocr is true, hints at the language to use.
|
java.lang.Boolean |
getPinned()
Whether to pin the head revision of the new copy.
|
java.lang.String |
getTimedTextLanguage()
The language of the timed text.
|
java.lang.String |
getTimedTextTrackName()
The timed text track name.
|
java.lang.String |
getVisibility()
The visibility of the new file.
|
boolean |
isConvert()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
boolean |
isOcr()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
boolean |
isPinned()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
Drive.Files.Copy |
set(java.lang.String parameterName,
java.lang.Object value) |
Drive.Files.Copy |
setAlt(java.lang.String alt)
Data format for the response.
|
Drive.Files.Copy |
setConvert(java.lang.Boolean convert)
Whether to convert this file to the corresponding Google Docs format.
|
Drive.Files.Copy |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Files.Copy |
setFileId(java.lang.String fileId)
The ID of the file to copy.
|
Drive.Files.Copy |
setKey(java.lang.String key)
API key.
|
Drive.Files.Copy |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Files.Copy |
setOcr(java.lang.Boolean ocr)
Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
|
Drive.Files.Copy |
setOcrLanguage(java.lang.String ocrLanguage)
If ocr is true, hints at the language to use.
|
Drive.Files.Copy |
setPinned(java.lang.Boolean pinned)
Whether to pin the head revision of the new copy.
|
Drive.Files.Copy |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Files.Copy |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Drive.Files.Copy |
setTimedTextLanguage(java.lang.String timedTextLanguage)
The language of the timed text.
|
Drive.Files.Copy |
setTimedTextTrackName(java.lang.String timedTextTrackName)
The timed text track name.
|
Drive.Files.Copy |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
Drive.Files.Copy |
setVisibility(java.lang.String visibility)
The visibility of the new file.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysprotected Drive.Files.Copy(java.lang.String fileId,
File content)
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 to copy.content - the Filepublic Drive.Files.Copy setAlt(java.lang.String alt)
DriveRequestsetAlt in class DriveRequest<File>public Drive.Files.Copy setFields(java.lang.String fields)
DriveRequestsetFields in class DriveRequest<File>public Drive.Files.Copy setKey(java.lang.String key)
DriveRequestsetKey in class DriveRequest<File>public Drive.Files.Copy setOauthToken(java.lang.String oauthToken)
DriveRequestsetOauthToken in class DriveRequest<File>public Drive.Files.Copy setPrettyPrint(java.lang.Boolean prettyPrint)
DriveRequestsetPrettyPrint in class DriveRequest<File>public Drive.Files.Copy setQuotaUser(java.lang.String quotaUser)
DriveRequestsetQuotaUser in class DriveRequest<File>public Drive.Files.Copy setUserIp(java.lang.String userIp)
DriveRequestsetUserIp in class DriveRequest<File>public java.lang.String getFileId()
public Drive.Files.Copy setFileId(java.lang.String fileId)
public java.lang.Boolean getConvert()
public Drive.Files.Copy setConvert(java.lang.Boolean convert)
public boolean isConvert()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Whether to convert this file to the corresponding Google Docs format.
public java.lang.String getOcrLanguage()
public Drive.Files.Copy setOcrLanguage(java.lang.String ocrLanguage)
public java.lang.String getVisibility()
public Drive.Files.Copy setVisibility(java.lang.String visibility)
public java.lang.Boolean getPinned()
public Drive.Files.Copy setPinned(java.lang.Boolean pinned)
public boolean isPinned()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Whether to pin the head revision of the new copy. A file can have a maximum of 200 pinned revisions.
public java.lang.Boolean getOcr()
public Drive.Files.Copy setOcr(java.lang.Boolean ocr)
public boolean isOcr()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
public java.lang.String getTimedTextTrackName()
public Drive.Files.Copy setTimedTextTrackName(java.lang.String timedTextTrackName)
public java.lang.String getTimedTextLanguage()
public Drive.Files.Copy setTimedTextLanguage(java.lang.String timedTextLanguage)
public Drive.Files.Copy set(java.lang.String parameterName, java.lang.Object value)
set in class DriveRequest<File>