Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
A collection of arbitrary key-value pairs which are private to the requesting app. Entries with
null values are cleared in update and copy requests. These properties can only be retrieved
using an authenticated request. An authenticated request uses an access token obtained with a
OAuth 2 client ID. You cannot use an API key to retrieve private properties.
A collection of arbitrary key-value pairs which are private to the requesting app. Entries with
null values are cleared in update and copy requests. These properties can only be retrieved
using an authenticated request. An authenticated request uses an access token obtained with a
OAuth 2 client ID. You cannot use an API key to retrieve private properties.
The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are
published in the `folderColorPalette` field of the About resource. If an unsupported color is
specified, the closest color in the palette is used instead.
Returns:
value or null for none
setFolderColorRgb
public File setFolderColorRgb(String folderColorRgb)
The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are
published in the `folderColorPalette` field of the About resource. If an unsupported color is
specified, the closest color in the palette is used instead.
Output only. The full file extension extracted from the `name` field. May contain multiple
concatenated extensions, such as "tar.gz". This is only available for files with binary content
in Google Drive. This is automatically updated when the `name` field changes, however it is not
cleared if the new name does not contain a valid extension.
Returns:
value or null for none
setFullFileExtension
public File setFullFileExtension(String fullFileExtension)
Output only. The full file extension extracted from the `name` field. May contain multiple
concatenated extensions, such as "tar.gz". This is only available for files with binary content
in Google Drive. This is automatically updated when the `name` field changes, however it is not
cleared if the new name does not contain a valid extension.
Parameters:
fullFileExtension - fullFileExtension or null for none
Output only. Whether this file has a thumbnail. This does not indicate whether the requesting
app has access to the thumbnail. To check access, look for the presence of the thumbnailLink
field.
Output only. Whether this file has a thumbnail. This does not indicate whether the requesting
app has access to the thumbnail. To check access, look for the presence of the thumbnailLink
field.
The MIME type of the file. Google Drive attempts to automatically detect an appropriate value
from uploaded content, if no value is provided. The value cannot be changed unless a new
revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is
imported, if possible. The supported import formats are published in the About resource.
The MIME type of the file. Google Drive attempts to automatically detect an appropriate value
from uploaded content, if no value is provided. The value cannot be changed unless a new
revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is
imported, if possible. The supported import formats are published in the About resource.
The name of the file. This is not necessarily unique within a folder. Note that for immutable
items such as the top level folders of shared drives, My Drive root folder, and Application
Data folder the name is constant.
The name of the file. This is not necessarily unique within a folder. Note that for immutable
items such as the top level folders of shared drives, My Drive root folder, and Application
Data folder the name is constant.
The original filename of the uploaded content if available, or else the original value of the
`name` field. This is only available for files with binary content in Google Drive.
Returns:
value or null for none
setOriginalFilename
public File setOriginalFilename(String originalFilename)
The original filename of the uploaded content if available, or else the original value of the
`name` field. This is only available for files with binary content in Google Drive.
Parameters:
originalFilename - originalFilename or null for none
The IDs of the parent folders which contain the file. If not specified as part of a create
request, the file is placed directly in the user's My Drive folder. If not specified as part of
a copy request, the file inherits any discoverable parents of the source file. Update requests
must use the `addParents` and `removeParents` parameters to modify the parents list.
The IDs of the parent folders which contain the file. If not specified as part of a create
request, the file is placed directly in the user's My Drive folder. If not specified as part of
a copy request, the file inherits any discoverable parents of the source file. Update requests
must use the `addParents` and `removeParents` parameters to modify the parents list.
Output only. The full list of permissions for the file. This is only available if the
requesting user can share the file. Not populated for items in shared drives.
Output only. The full list of permissions for the file. This is only available if the
requesting user can share the file. Not populated for items in shared drives.
Output only. The number of storage quota bytes used by the file. This includes the head
revision as well as previous revisions with `keepForever` enabled.
Returns:
value or null for none
setQuotaBytesUsed
public File setQuotaBytesUsed(Long quotaBytesUsed)
Output only. The number of storage quota bytes used by the file. This includes the head
revision as well as previous revisions with `keepForever` enabled.
Output only. The SHA1 checksum associated with this file, if available. This field is only
populated for files with content stored in Google Drive; it is not populated for Docs Editors
or shortcut files.
Output only. The SHA1 checksum associated with this file, if available. This field is only
populated for files with content stored in Google Drive; it is not populated for Docs Editors
or shortcut files.
Output only. The SHA256 checksum associated with this file, if available. This field is only
populated for files with content stored in Google Drive; it is not populated for Docs Editors
or shortcut files.
Returns:
value or null for none
setSha256Checksum
public File setSha256Checksum(String sha256Checksum)
Output only. The SHA256 checksum associated with this file, if available. This field is only
populated for files with content stored in Google Drive; it is not populated for Docs Editors
or shortcut files.
Output only. A short-lived link to the file's thumbnail, if available. Typically lasts on the
order of hours. Only populated when the requesting app can access the file's content. If the
file isn't shared publicly, the URL returned in `Files.thumbnailLink` must be fetched using a
credentialed request.
Returns:
value or null for none
setThumbnailLink
public File setThumbnailLink(String thumbnailLink)
Output only. A short-lived link to the file's thumbnail, if available. Typically lasts on the
order of hours. Only populated when the requesting app can access the file's content. If the
file isn't shared publicly, the URL returned in `Files.thumbnailLink` must be fetched using a
credentialed request.
Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the
owner may trash a file, and other users cannot see files in the owner's trash.
Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the
owner may trash a file, and other users cannot see files in the owner's trash.
Parameters:
trashed - trashed or null for none
getTrashedTime
public com.google.api.client.util.DateTime getTrashedTime()
The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared
drives.
Returns:
value or null for none
setTrashedTime
public File setTrashedTime(com.google.api.client.util.DateTime trashedTime)
The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared
drives.
Output only. A monotonically increasing version number for the file. This reflects every change
made to the file on the server, even those not visible to the user.
Output only. A monotonically increasing version number for the file. This reflects every change
made to the file on the server, even those not visible to the user.