drive  v2
Classes | Public Member Functions | Static Public Member Functions | List of all members
google_drive_api::File Class Reference

#include <file.h>

Inheritance diagram for google_drive_api::File:

Classes

class  FileCapabilities
 
class  FileImageMediaMetadata
 
class  FileIndexableText
 
class  FileLabels
 
class  FileShortcutDetails
 
class  FileThumbnail
 
class  FileVideoMediaMetadata
 

Public Member Functions

 File (const Json::Value &storage)
 
 File (Json::Value *storage)
 
virtual ~File ()
 
const StringPiece GetTypeName () const
 
bool has_alternate_link () const
 
void clear_alternate_link ()
 
const StringPiece get_alternate_link () const
 
void set_alternate_link (const StringPiece &value)
 
bool has_app_data_contents () const
 
void clear_app_data_contents ()
 
bool get_app_data_contents () const
 
void set_app_data_contents (bool value)
 
bool has_can_comment () const
 
void clear_can_comment ()
 
bool get_can_comment () const
 
void set_can_comment (bool value)
 
bool has_can_read_revisions () const
 
void clear_can_read_revisions ()
 
bool get_can_read_revisions () const
 
void set_can_read_revisions (bool value)
 
bool has_capabilities () const
 
void clear_capabilities ()
 
const FileCapabilities get_capabilities () const
 
FileCapabilities mutable_capabilities ()
 
bool has_copy_requires_writer_permission () const
 
void clear_copy_requires_writer_permission ()
 
bool get_copy_requires_writer_permission () const
 
void set_copy_requires_writer_permission (bool value)
 
bool has_copyable () const
 
void clear_copyable ()
 
bool get_copyable () const
 
void set_copyable (bool value)
 
bool has_created_date () const
 
void clear_created_date ()
 
client::DateTime get_created_date () const
 
void set_created_date (client::DateTime value)
 
bool has_default_open_with_link () const
 
void clear_default_open_with_link ()
 
const StringPiece get_default_open_with_link () const
 
void set_default_open_with_link (const StringPiece &value)
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_download_url () const
 
void clear_download_url ()
 
const StringPiece get_download_url () const
 
void set_download_url (const StringPiece &value)
 
bool has_drive_id () const
 
void clear_drive_id ()
 
const StringPiece get_drive_id () const
 
void set_drive_id (const StringPiece &value)
 
bool has_editable () const
 
void clear_editable ()
 
bool get_editable () const
 
void set_editable (bool value)
 
bool has_embed_link () const
 
void clear_embed_link ()
 
const StringPiece get_embed_link () const
 
void set_embed_link (const StringPiece &value)
 
bool has_etag () const
 
void clear_etag ()
 
const StringPiece get_etag () const
 
void set_etag (const StringPiece &value)
 
bool has_explicitly_trashed () const
 
void clear_explicitly_trashed ()
 
bool get_explicitly_trashed () const
 
void set_explicitly_trashed (bool value)
 
bool has_export_links () const
 
void clear_export_links ()
 
const client::JsonCppAssociativeArray< string > get_export_links () const
 
client::JsonCppAssociativeArray< string > mutable_exportLinks ()
 
bool has_file_extension () const
 
void clear_file_extension ()
 
const StringPiece get_file_extension () const
 
void set_file_extension (const StringPiece &value)
 
bool has_file_size () const
 
void clear_file_size ()
 
int64 get_file_size () const
 
void set_file_size (int64 value)
 
bool has_folder_color_rgb () const
 
void clear_folder_color_rgb ()
 
const StringPiece get_folder_color_rgb () const
 
void set_folder_color_rgb (const StringPiece &value)
 
bool has_full_file_extension () const
 
void clear_full_file_extension ()
 
const StringPiece get_full_file_extension () const
 
void set_full_file_extension (const StringPiece &value)
 
bool has_has_augmented_permissions () const
 
void clear_has_augmented_permissions ()
 
bool get_has_augmented_permissions () const
 
void set_has_augmented_permissions (bool value)
 
bool has_has_thumbnail () const
 
void clear_has_thumbnail ()
 
bool get_has_thumbnail () const
 
void set_has_thumbnail (bool value)
 
bool has_head_revision_id () const
 
void clear_head_revision_id ()
 
const StringPiece get_head_revision_id () const
 
void set_head_revision_id (const StringPiece &value)
 
bool has_icon_link () const
 
void clear_icon_link ()
 
const StringPiece get_icon_link () const
 
void set_icon_link (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_id (const StringPiece &value)
 
bool has_image_media_metadata () const
 
void clear_image_media_metadata ()
 
const FileImageMediaMetadata get_image_media_metadata () const
 
FileImageMediaMetadata mutable_imageMediaMetadata ()
 
bool has_indexable_text () const
 
void clear_indexable_text ()
 
const FileIndexableText get_indexable_text () const
 
FileIndexableText mutable_indexableText ()
 
bool has_is_app_authorized () const
 
void clear_is_app_authorized ()
 
bool get_is_app_authorized () const
 
void set_is_app_authorized (bool value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_labels () const
 
void clear_labels ()
 
const FileLabels get_labels () const
 
FileLabels mutable_labels ()
 
bool has_last_modifying_user () const
 
void clear_last_modifying_user ()
 
const User get_last_modifying_user () const
 
User mutable_lastModifyingUser ()
 
bool has_last_modifying_user_name () const
 
void clear_last_modifying_user_name ()
 
const StringPiece get_last_modifying_user_name () const
 
void set_last_modifying_user_name (const StringPiece &value)
 
bool has_last_viewed_by_me_date () const
 
void clear_last_viewed_by_me_date ()
 
client::DateTime get_last_viewed_by_me_date () const
 
void set_last_viewed_by_me_date (client::DateTime value)
 
bool has_marked_viewed_by_me_date () const
 
void clear_marked_viewed_by_me_date ()
 
client::DateTime get_marked_viewed_by_me_date () const
 
void set_marked_viewed_by_me_date (client::DateTime value)
 
bool has_md5_checksum () const
 
void clear_md5_checksum ()
 
const StringPiece get_md5_checksum () const
 
void set_md5_checksum (const StringPiece &value)
 
bool has_mime_type () const
 
void clear_mime_type ()
 
const StringPiece get_mime_type () const
 
void set_mime_type (const StringPiece &value)
 
bool has_modified_by_me_date () const
 
void clear_modified_by_me_date ()
 
client::DateTime get_modified_by_me_date () const
 
void set_modified_by_me_date (client::DateTime value)
 
bool has_modified_date () const
 
void clear_modified_date ()
 
client::DateTime get_modified_date () const
 
void set_modified_date (client::DateTime value)
 
bool has_open_with_links () const
 
void clear_open_with_links ()
 
const client::JsonCppAssociativeArray< string > get_open_with_links () const
 
client::JsonCppAssociativeArray< string > mutable_openWithLinks ()
 
bool has_original_filename () const
 
void clear_original_filename ()
 
const StringPiece get_original_filename () const
 
void set_original_filename (const StringPiece &value)
 
bool has_owned_by_me () const
 
void clear_owned_by_me ()
 
bool get_owned_by_me () const
 
void set_owned_by_me (bool value)
 
bool has_owner_names () const
 
void clear_owner_names ()
 
const client::JsonCppArray< string > get_owner_names () const
 
client::JsonCppArray< string > mutable_ownerNames ()
 
bool has_owners () const
 
void clear_owners ()
 
const client::JsonCppArray< Userget_owners () const
 
client::JsonCppArray< Usermutable_owners ()
 
bool has_parents () const
 
void clear_parents ()
 
const client::JsonCppArray< ParentReferenceget_parents () const
 
client::JsonCppArray< ParentReferencemutable_parents ()
 
bool has_permission_ids () const
 
void clear_permission_ids ()
 
const client::JsonCppArray< string > get_permission_ids () const
 
client::JsonCppArray< string > mutable_permissionIds ()
 
bool has_permissions () const
 
void clear_permissions ()
 
const client::JsonCppArray< Permissionget_permissions () const
 
client::JsonCppArray< Permissionmutable_permissions ()
 
bool has_properties () const
 
void clear_properties ()
 
const client::JsonCppArray< Propertyget_properties () const
 
client::JsonCppArray< Propertymutable_properties ()
 
bool has_quota_bytes_used () const
 
void clear_quota_bytes_used ()
 
int64 get_quota_bytes_used () const
 
void set_quota_bytes_used (int64 value)
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 
bool has_shareable () const
 
void clear_shareable ()
 
bool get_shareable () const
 
void set_shareable (bool value)
 
bool has_shared () const
 
void clear_shared ()
 
bool get_shared () const
 
void set_shared (bool value)
 
bool has_shared_with_me_date () const
 
void clear_shared_with_me_date ()
 
client::DateTime get_shared_with_me_date () const
 
void set_shared_with_me_date (client::DateTime value)
 
bool has_sharing_user () const
 
void clear_sharing_user ()
 
const User get_sharing_user () const
 
User mutable_sharingUser ()
 
bool has_shortcut_details () const
 
void clear_shortcut_details ()
 
const FileShortcutDetails get_shortcut_details () const
 
FileShortcutDetails mutable_shortcutDetails ()
 
bool has_spaces () const
 
void clear_spaces ()
 
const client::JsonCppArray< string > get_spaces () const
 
client::JsonCppArray< string > mutable_spaces ()
 
bool has_team_drive_id () const
 
void clear_team_drive_id ()
 
const StringPiece get_team_drive_id () const
 
void set_team_drive_id (const StringPiece &value)
 
bool has_thumbnail () const
 
void clear_thumbnail ()
 
const FileThumbnail get_thumbnail () const
 
FileThumbnail mutable_thumbnail ()
 
bool has_thumbnail_link () const
 
void clear_thumbnail_link ()
 
const StringPiece get_thumbnail_link () const
 
void set_thumbnail_link (const StringPiece &value)
 
bool has_thumbnail_version () const
 
void clear_thumbnail_version ()
 
int64 get_thumbnail_version () const
 
void set_thumbnail_version (int64 value)
 
bool has_title () const
 
void clear_title ()
 
const StringPiece get_title () const
 
void set_title (const StringPiece &value)
 
bool has_trashed_date () const
 
void clear_trashed_date ()
 
client::DateTime get_trashed_date () const
 
void set_trashed_date (client::DateTime value)
 
bool has_trashing_user () const
 
void clear_trashing_user ()
 
const User get_trashing_user () const
 
User mutable_trashingUser ()
 
bool has_user_permission () const
 
void clear_user_permission ()
 
const Permission get_user_permission () const
 
Permission mutable_userPermission ()
 
bool has_version () const
 
void clear_version ()
 
int64 get_version () const
 
void set_version (int64 value)
 
bool has_video_media_metadata () const
 
void clear_video_media_metadata ()
 
const FileVideoMediaMetadata get_video_media_metadata () const
 
FileVideoMediaMetadata mutable_videoMediaMetadata ()
 
bool has_web_content_link () const
 
void clear_web_content_link ()
 
const StringPiece get_web_content_link () const
 
void set_web_content_link (const StringPiece &value)
 
bool has_web_view_link () const
 
void clear_web_view_link ()
 
const StringPiece get_web_view_link () const
 
void set_web_view_link (const StringPiece &value)
 
bool has_writers_can_share () const
 
void clear_writers_can_share ()
 
bool get_writers_can_share () const
 
void set_writers_can_share (bool value)
 

Static Public Member Functions

static FileNew ()
 

Detailed Description

The metadata for a file.

Constructor & Destructor Documentation

◆ File() [1/2]

google_drive_api::File::File ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ File() [2/2]

google_drive_api::File::File ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~File()

google_drive_api::File::~File ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_alternate_link()

void google_drive_api::File::clear_alternate_link ( )
inline

Clears the 'alternateLink' attribute.

◆ clear_app_data_contents()

void google_drive_api::File::clear_app_data_contents ( )
inline

Clears the 'appDataContents' attribute.

◆ clear_can_comment()

void google_drive_api::File::clear_can_comment ( )
inline

Clears the 'canComment' attribute.

◆ clear_can_read_revisions()

void google_drive_api::File::clear_can_read_revisions ( )
inline

Clears the 'canReadRevisions' attribute.

◆ clear_capabilities()

void google_drive_api::File::clear_capabilities ( )
inline

Clears the 'capabilities' attribute.

◆ clear_copy_requires_writer_permission()

void google_drive_api::File::clear_copy_requires_writer_permission ( )
inline

Clears the 'copyRequiresWriterPermission' attribute.

◆ clear_copyable()

void google_drive_api::File::clear_copyable ( )
inline

Clears the 'copyable' attribute.

◆ clear_created_date()

void google_drive_api::File::clear_created_date ( )
inline

Clears the 'createdDate' attribute.

◆ clear_default_open_with_link()

void google_drive_api::File::clear_default_open_with_link ( )
inline

Clears the 'defaultOpenWithLink' attribute.

◆ clear_description()

void google_drive_api::File::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_download_url()

void google_drive_api::File::clear_download_url ( )
inline

Clears the 'downloadUrl' attribute.

◆ clear_drive_id()

void google_drive_api::File::clear_drive_id ( )
inline

Clears the 'driveId' attribute.

◆ clear_editable()

void google_drive_api::File::clear_editable ( )
inline

Clears the 'editable' attribute.

◆ clear_embed_link()

void google_drive_api::File::clear_embed_link ( )
inline

Clears the 'embedLink' attribute.

◆ clear_etag()

void google_drive_api::File::clear_etag ( )
inline

Clears the 'etag' attribute.

◆ clear_explicitly_trashed()

void google_drive_api::File::clear_explicitly_trashed ( )
inline

Clears the 'explicitlyTrashed' attribute.

◆ clear_export_links()

void google_drive_api::File::clear_export_links ( )
inline

Clears the 'exportLinks' attribute.

◆ clear_file_extension()

void google_drive_api::File::clear_file_extension ( )
inline

Clears the 'fileExtension' attribute.

◆ clear_file_size()

void google_drive_api::File::clear_file_size ( )
inline

Clears the 'fileSize' attribute.

◆ clear_folder_color_rgb()

void google_drive_api::File::clear_folder_color_rgb ( )
inline

Clears the 'folderColorRgb' attribute.

◆ clear_full_file_extension()

void google_drive_api::File::clear_full_file_extension ( )
inline

Clears the 'fullFileExtension' attribute.

◆ clear_has_augmented_permissions()

void google_drive_api::File::clear_has_augmented_permissions ( )
inline

Clears the 'hasAugmentedPermissions' attribute.

◆ clear_has_thumbnail()

void google_drive_api::File::clear_has_thumbnail ( )
inline

Clears the 'hasThumbnail' attribute.

◆ clear_head_revision_id()

void google_drive_api::File::clear_head_revision_id ( )
inline

Clears the 'headRevisionId' attribute.

◆ clear_icon_link()

void google_drive_api::File::clear_icon_link ( )
inline

Clears the 'iconLink' attribute.

◆ clear_id()

void google_drive_api::File::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_image_media_metadata()

void google_drive_api::File::clear_image_media_metadata ( )
inline

Clears the 'imageMediaMetadata' attribute.

◆ clear_indexable_text()

void google_drive_api::File::clear_indexable_text ( )
inline

Clears the 'indexableText' attribute.

◆ clear_is_app_authorized()

void google_drive_api::File::clear_is_app_authorized ( )
inline

Clears the 'isAppAuthorized' attribute.

◆ clear_kind()

void google_drive_api::File::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_labels()

void google_drive_api::File::clear_labels ( )
inline

Clears the 'labels' attribute.

◆ clear_last_modifying_user()

void google_drive_api::File::clear_last_modifying_user ( )
inline

Clears the 'lastModifyingUser' attribute.

◆ clear_last_modifying_user_name()

void google_drive_api::File::clear_last_modifying_user_name ( )
inline

Clears the 'lastModifyingUserName' attribute.

◆ clear_last_viewed_by_me_date()

void google_drive_api::File::clear_last_viewed_by_me_date ( )
inline

Clears the 'lastViewedByMeDate' attribute.

◆ clear_marked_viewed_by_me_date()

void google_drive_api::File::clear_marked_viewed_by_me_date ( )
inline

Clears the 'markedViewedByMeDate' attribute.

◆ clear_md5_checksum()

void google_drive_api::File::clear_md5_checksum ( )
inline

Clears the 'md5Checksum' attribute.

◆ clear_mime_type()

void google_drive_api::File::clear_mime_type ( )
inline

Clears the 'mimeType' attribute.

◆ clear_modified_by_me_date()

void google_drive_api::File::clear_modified_by_me_date ( )
inline

Clears the 'modifiedByMeDate' attribute.

◆ clear_modified_date()

void google_drive_api::File::clear_modified_date ( )
inline

Clears the 'modifiedDate' attribute.

◆ clear_open_with_links()

void google_drive_api::File::clear_open_with_links ( )
inline

Clears the 'openWithLinks' attribute.

◆ clear_original_filename()

void google_drive_api::File::clear_original_filename ( )
inline

Clears the 'originalFilename' attribute.

◆ clear_owned_by_me()

void google_drive_api::File::clear_owned_by_me ( )
inline

Clears the 'ownedByMe' attribute.

◆ clear_owner_names()

void google_drive_api::File::clear_owner_names ( )
inline

Clears the 'ownerNames' attribute.

◆ clear_owners()

void google_drive_api::File::clear_owners ( )
inline

Clears the 'owners' attribute.

◆ clear_parents()

void google_drive_api::File::clear_parents ( )
inline

Clears the 'parents' attribute.

◆ clear_permission_ids()

void google_drive_api::File::clear_permission_ids ( )
inline

Clears the 'permissionIds' attribute.

◆ clear_permissions()

void google_drive_api::File::clear_permissions ( )
inline

Clears the 'permissions' attribute.

◆ clear_properties()

void google_drive_api::File::clear_properties ( )
inline

Clears the 'properties' attribute.

◆ clear_quota_bytes_used()

void google_drive_api::File::clear_quota_bytes_used ( )
inline

Clears the 'quotaBytesUsed' attribute.

◆ clear_self_link()

void google_drive_api::File::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_shareable()

void google_drive_api::File::clear_shareable ( )
inline

Clears the 'shareable' attribute.

◆ clear_shared()

void google_drive_api::File::clear_shared ( )
inline

Clears the 'shared' attribute.

◆ clear_shared_with_me_date()

void google_drive_api::File::clear_shared_with_me_date ( )
inline

Clears the 'sharedWithMeDate' attribute.

◆ clear_sharing_user()

void google_drive_api::File::clear_sharing_user ( )
inline

Clears the 'sharingUser' attribute.

◆ clear_shortcut_details()

void google_drive_api::File::clear_shortcut_details ( )
inline

Clears the 'shortcutDetails' attribute.

◆ clear_spaces()

void google_drive_api::File::clear_spaces ( )
inline

Clears the 'spaces' attribute.

◆ clear_team_drive_id()

void google_drive_api::File::clear_team_drive_id ( )
inline

Clears the 'teamDriveId' attribute.

◆ clear_thumbnail()

void google_drive_api::File::clear_thumbnail ( )
inline

Clears the 'thumbnail' attribute.

◆ clear_thumbnail_link()

void google_drive_api::File::clear_thumbnail_link ( )
inline

Clears the 'thumbnailLink' attribute.

◆ clear_thumbnail_version()

void google_drive_api::File::clear_thumbnail_version ( )
inline

Clears the 'thumbnailVersion' attribute.

◆ clear_title()

void google_drive_api::File::clear_title ( )
inline

Clears the 'title' attribute.

◆ clear_trashed_date()

void google_drive_api::File::clear_trashed_date ( )
inline

Clears the 'trashedDate' attribute.

◆ clear_trashing_user()

void google_drive_api::File::clear_trashing_user ( )
inline

Clears the 'trashingUser' attribute.

◆ clear_user_permission()

void google_drive_api::File::clear_user_permission ( )
inline

Clears the 'userPermission' attribute.

◆ clear_version()

void google_drive_api::File::clear_version ( )
inline

Clears the 'version' attribute.

◆ clear_video_media_metadata()

void google_drive_api::File::clear_video_media_metadata ( )
inline

Clears the 'videoMediaMetadata' attribute.

◆ clear_web_content_link()

void google_drive_api::File::clear_web_content_link ( )
inline

Clears the 'webContentLink' attribute.

◆ clear_web_view_link()

void google_drive_api::File::clear_web_view_link ( )
inline

Clears the 'webViewLink' attribute.

◆ clear_writers_can_share()

void google_drive_api::File::clear_writers_can_share ( )
inline

Clears the 'writersCanShare' attribute.

◆ get_alternate_link()

const StringPiece google_drive_api::File::get_alternate_link ( ) const
inline

Get the value of the 'alternateLink' attribute.

◆ get_app_data_contents()

bool google_drive_api::File::get_app_data_contents ( ) const
inline

Get the value of the 'appDataContents' attribute.

◆ get_can_comment()

bool google_drive_api::File::get_can_comment ( ) const
inline

Get the value of the 'canComment' attribute.

◆ get_can_read_revisions()

bool google_drive_api::File::get_can_read_revisions ( ) const
inline

Get the value of the 'canReadRevisions' attribute.

◆ get_capabilities()

const FileCapabilities google_drive_api::File::get_capabilities ( ) const
inline

Get a reference to the value of the 'capabilities' attribute.

◆ get_copy_requires_writer_permission()

bool google_drive_api::File::get_copy_requires_writer_permission ( ) const
inline

Get the value of the 'copyRequiresWriterPermission' attribute.

◆ get_copyable()

bool google_drive_api::File::get_copyable ( ) const
inline

Get the value of the 'copyable' attribute.

◆ get_created_date()

client::DateTime google_drive_api::File::get_created_date ( ) const
inline

Get the value of the 'createdDate' attribute.

◆ get_default_open_with_link()

const StringPiece google_drive_api::File::get_default_open_with_link ( ) const
inline

Get the value of the 'defaultOpenWithLink' attribute.

◆ get_description()

const StringPiece google_drive_api::File::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_download_url()

const StringPiece google_drive_api::File::get_download_url ( ) const
inline

Get the value of the 'downloadUrl' attribute.

◆ get_drive_id()

const StringPiece google_drive_api::File::get_drive_id ( ) const
inline

Get the value of the 'driveId' attribute.

◆ get_editable()

bool google_drive_api::File::get_editable ( ) const
inline

Get the value of the 'editable' attribute.

◆ get_embed_link()

const StringPiece google_drive_api::File::get_embed_link ( ) const
inline

Get the value of the 'embedLink' attribute.

◆ get_etag()

const StringPiece google_drive_api::File::get_etag ( ) const
inline

Get the value of the 'etag' attribute.

◆ get_explicitly_trashed()

bool google_drive_api::File::get_explicitly_trashed ( ) const
inline

Get the value of the 'explicitlyTrashed' attribute.

◆ get_export_links()

const client::JsonCppAssociativeArray<string > google_drive_api::File::get_export_links ( ) const
inline

Get a reference to the value of the 'exportLinks' attribute.

◆ get_file_extension()

const StringPiece google_drive_api::File::get_file_extension ( ) const
inline

Get the value of the 'fileExtension' attribute.

◆ get_file_size()

int64 google_drive_api::File::get_file_size ( ) const
inline

Get the value of the 'fileSize' attribute.

◆ get_folder_color_rgb()

const StringPiece google_drive_api::File::get_folder_color_rgb ( ) const
inline

Get the value of the 'folderColorRgb' attribute.

◆ get_full_file_extension()

const StringPiece google_drive_api::File::get_full_file_extension ( ) const
inline

Get the value of the 'fullFileExtension' attribute.

◆ get_has_augmented_permissions()

bool google_drive_api::File::get_has_augmented_permissions ( ) const
inline

Get the value of the 'hasAugmentedPermissions' attribute.

◆ get_has_thumbnail()

bool google_drive_api::File::get_has_thumbnail ( ) const
inline

Get the value of the 'hasThumbnail' attribute.

◆ get_head_revision_id()

const StringPiece google_drive_api::File::get_head_revision_id ( ) const
inline

Get the value of the 'headRevisionId' attribute.

◆ get_icon_link()

const StringPiece google_drive_api::File::get_icon_link ( ) const
inline

Get the value of the 'iconLink' attribute.

◆ get_id()

const StringPiece google_drive_api::File::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_image_media_metadata()

const FileImageMediaMetadata google_drive_api::File::get_image_media_metadata ( ) const
inline

Get a reference to the value of the 'imageMediaMetadata' attribute.

◆ get_indexable_text()

const FileIndexableText google_drive_api::File::get_indexable_text ( ) const
inline

Get a reference to the value of the 'indexableText' attribute.

◆ get_is_app_authorized()

bool google_drive_api::File::get_is_app_authorized ( ) const
inline

Get the value of the 'isAppAuthorized' attribute.

◆ get_kind()

const StringPiece google_drive_api::File::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_labels()

const FileLabels google_drive_api::File::get_labels ( ) const
inline

Get a reference to the value of the 'labels' attribute.

◆ get_last_modifying_user()

const User google_drive_api::File::get_last_modifying_user ( ) const

Get a reference to the value of the 'lastModifyingUser' attribute.

◆ get_last_modifying_user_name()

const StringPiece google_drive_api::File::get_last_modifying_user_name ( ) const
inline

Get the value of the 'lastModifyingUserName' attribute.

◆ get_last_viewed_by_me_date()

client::DateTime google_drive_api::File::get_last_viewed_by_me_date ( ) const
inline

Get the value of the 'lastViewedByMeDate' attribute.

◆ get_marked_viewed_by_me_date()

client::DateTime google_drive_api::File::get_marked_viewed_by_me_date ( ) const
inline

Get the value of the 'markedViewedByMeDate' attribute.

◆ get_md5_checksum()

const StringPiece google_drive_api::File::get_md5_checksum ( ) const
inline

Get the value of the 'md5Checksum' attribute.

◆ get_mime_type()

const StringPiece google_drive_api::File::get_mime_type ( ) const
inline

Get the value of the 'mimeType' attribute.

◆ get_modified_by_me_date()

client::DateTime google_drive_api::File::get_modified_by_me_date ( ) const
inline

Get the value of the 'modifiedByMeDate' attribute.

◆ get_modified_date()

client::DateTime google_drive_api::File::get_modified_date ( ) const
inline

Get the value of the 'modifiedDate' attribute.

◆ get_open_with_links()

const client::JsonCppAssociativeArray<string > google_drive_api::File::get_open_with_links ( ) const
inline

Get a reference to the value of the 'openWithLinks' attribute.

◆ get_original_filename()

const StringPiece google_drive_api::File::get_original_filename ( ) const
inline

Get the value of the 'originalFilename' attribute.

◆ get_owned_by_me()

bool google_drive_api::File::get_owned_by_me ( ) const
inline

Get the value of the 'ownedByMe' attribute.

◆ get_owner_names()

const client::JsonCppArray<string > google_drive_api::File::get_owner_names ( ) const
inline

Get a reference to the value of the 'ownerNames' attribute.

◆ get_owners()

const client::JsonCppArray<User > google_drive_api::File::get_owners ( ) const

Get a reference to the value of the 'owners' attribute.

◆ get_parents()

const client::JsonCppArray<ParentReference > google_drive_api::File::get_parents ( ) const

Get a reference to the value of the 'parents' attribute.

◆ get_permission_ids()

const client::JsonCppArray<string > google_drive_api::File::get_permission_ids ( ) const
inline

Get a reference to the value of the 'permissionIds' attribute.

◆ get_permissions()

const client::JsonCppArray<Permission > google_drive_api::File::get_permissions ( ) const

Get a reference to the value of the 'permissions' attribute.

◆ get_properties()

const client::JsonCppArray<Property > google_drive_api::File::get_properties ( ) const

Get a reference to the value of the 'properties' attribute.

◆ get_quota_bytes_used()

int64 google_drive_api::File::get_quota_bytes_used ( ) const
inline

Get the value of the 'quotaBytesUsed' attribute.

◆ get_self_link()

const StringPiece google_drive_api::File::get_self_link ( ) const
inline

Get the value of the 'selfLink' attribute.

◆ get_shareable()

bool google_drive_api::File::get_shareable ( ) const
inline

Get the value of the 'shareable' attribute.

◆ get_shared()

bool google_drive_api::File::get_shared ( ) const
inline

Get the value of the 'shared' attribute.

◆ get_shared_with_me_date()

client::DateTime google_drive_api::File::get_shared_with_me_date ( ) const
inline

Get the value of the 'sharedWithMeDate' attribute.

◆ get_sharing_user()

const User google_drive_api::File::get_sharing_user ( ) const

Get a reference to the value of the 'sharingUser' attribute.

◆ get_shortcut_details()

const FileShortcutDetails google_drive_api::File::get_shortcut_details ( ) const
inline

Get a reference to the value of the 'shortcutDetails' attribute.

◆ get_spaces()

const client::JsonCppArray<string > google_drive_api::File::get_spaces ( ) const
inline

Get a reference to the value of the 'spaces' attribute.

◆ get_team_drive_id()

const StringPiece google_drive_api::File::get_team_drive_id ( ) const
inline

Get the value of the 'teamDriveId' attribute.

◆ get_thumbnail()

const FileThumbnail google_drive_api::File::get_thumbnail ( ) const
inline

Get a reference to the value of the 'thumbnail' attribute.

◆ get_thumbnail_link()

const StringPiece google_drive_api::File::get_thumbnail_link ( ) const
inline

Get the value of the 'thumbnailLink' attribute.

◆ get_thumbnail_version()

int64 google_drive_api::File::get_thumbnail_version ( ) const
inline

Get the value of the 'thumbnailVersion' attribute.

◆ get_title()

const StringPiece google_drive_api::File::get_title ( ) const
inline

Get the value of the 'title' attribute.

◆ get_trashed_date()

client::DateTime google_drive_api::File::get_trashed_date ( ) const
inline

Get the value of the 'trashedDate' attribute.

◆ get_trashing_user()

const User google_drive_api::File::get_trashing_user ( ) const

Get a reference to the value of the 'trashingUser' attribute.

◆ get_user_permission()

const Permission google_drive_api::File::get_user_permission ( ) const

Get a reference to the value of the 'userPermission' attribute.

◆ get_version()

int64 google_drive_api::File::get_version ( ) const
inline

Get the value of the 'version' attribute.

◆ get_video_media_metadata()

const FileVideoMediaMetadata google_drive_api::File::get_video_media_metadata ( ) const
inline

Get a reference to the value of the 'videoMediaMetadata' attribute.

◆ get_web_content_link()

const StringPiece google_drive_api::File::get_web_content_link ( ) const
inline

Get the value of the 'webContentLink' attribute.

◆ get_web_view_link()

const StringPiece google_drive_api::File::get_web_view_link ( ) const
inline

Get the value of the 'webViewLink' attribute.

◆ get_writers_can_share()

bool google_drive_api::File::get_writers_can_share ( ) const
inline

Get the value of the 'writersCanShare' attribute.

◆ GetTypeName()

const StringPiece google_drive_api::File::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_drive_api::File

◆ has_alternate_link()

bool google_drive_api::File::has_alternate_link ( ) const
inline

Determine if the 'alternateLink' attribute was set.

Returns
true if the 'alternateLink' attribute was set.

◆ has_app_data_contents()

bool google_drive_api::File::has_app_data_contents ( ) const
inline

Determine if the 'appDataContents' attribute was set.

Returns
true if the 'appDataContents' attribute was set.

◆ has_can_comment()

bool google_drive_api::File::has_can_comment ( ) const
inline

Determine if the 'canComment' attribute was set.

Returns
true if the 'canComment' attribute was set.

◆ has_can_read_revisions()

bool google_drive_api::File::has_can_read_revisions ( ) const
inline

Determine if the 'canReadRevisions' attribute was set.

Returns
true if the 'canReadRevisions' attribute was set.

◆ has_capabilities()

bool google_drive_api::File::has_capabilities ( ) const
inline

Determine if the 'capabilities' attribute was set.

Returns
true if the 'capabilities' attribute was set.

◆ has_copy_requires_writer_permission()

bool google_drive_api::File::has_copy_requires_writer_permission ( ) const
inline

Determine if the 'copyRequiresWriterPermission' attribute was set.

Returns
true if the 'copyRequiresWriterPermission' attribute was set.

◆ has_copyable()

bool google_drive_api::File::has_copyable ( ) const
inline

Determine if the 'copyable' attribute was set.

Returns
true if the 'copyable' attribute was set.

◆ has_created_date()

bool google_drive_api::File::has_created_date ( ) const
inline

Determine if the 'createdDate' attribute was set.

Returns
true if the 'createdDate' attribute was set.

◆ has_default_open_with_link()

bool google_drive_api::File::has_default_open_with_link ( ) const
inline

Determine if the 'defaultOpenWithLink' attribute was set.

Returns
true if the 'defaultOpenWithLink' attribute was set.

◆ has_description()

bool google_drive_api::File::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_download_url()

bool google_drive_api::File::has_download_url ( ) const
inline

Determine if the 'downloadUrl' attribute was set.

Returns
true if the 'downloadUrl' attribute was set.

◆ has_drive_id()

bool google_drive_api::File::has_drive_id ( ) const
inline

Determine if the 'driveId' attribute was set.

Returns
true if the 'driveId' attribute was set.

◆ has_editable()

bool google_drive_api::File::has_editable ( ) const
inline

Determine if the 'editable' attribute was set.

Returns
true if the 'editable' attribute was set.

◆ has_embed_link()

bool google_drive_api::File::has_embed_link ( ) const
inline

Determine if the 'embedLink' attribute was set.

Returns
true if the 'embedLink' attribute was set.

◆ has_etag()

bool google_drive_api::File::has_etag ( ) const
inline

Determine if the 'etag' attribute was set.

Returns
true if the 'etag' attribute was set.

◆ has_explicitly_trashed()

bool google_drive_api::File::has_explicitly_trashed ( ) const
inline

Determine if the 'explicitlyTrashed' attribute was set.

Returns
true if the 'explicitlyTrashed' attribute was set.

◆ has_export_links()

bool google_drive_api::File::has_export_links ( ) const
inline

Determine if the 'exportLinks' attribute was set.

Returns
true if the 'exportLinks' attribute was set.

◆ has_file_extension()

bool google_drive_api::File::has_file_extension ( ) const
inline

Determine if the 'fileExtension' attribute was set.

Returns
true if the 'fileExtension' attribute was set.

◆ has_file_size()

bool google_drive_api::File::has_file_size ( ) const
inline

Determine if the 'fileSize' attribute was set.

Returns
true if the 'fileSize' attribute was set.

◆ has_folder_color_rgb()

bool google_drive_api::File::has_folder_color_rgb ( ) const
inline

Determine if the 'folderColorRgb' attribute was set.

Returns
true if the 'folderColorRgb' attribute was set.

◆ has_full_file_extension()

bool google_drive_api::File::has_full_file_extension ( ) const
inline

Determine if the 'fullFileExtension' attribute was set.

Returns
true if the 'fullFileExtension' attribute was set.

◆ has_has_augmented_permissions()

bool google_drive_api::File::has_has_augmented_permissions ( ) const
inline

Determine if the 'hasAugmentedPermissions' attribute was set.

Returns
true if the 'hasAugmentedPermissions' attribute was set.

◆ has_has_thumbnail()

bool google_drive_api::File::has_has_thumbnail ( ) const
inline

Determine if the 'hasThumbnail' attribute was set.

Returns
true if the 'hasThumbnail' attribute was set.

◆ has_head_revision_id()

bool google_drive_api::File::has_head_revision_id ( ) const
inline

Determine if the 'headRevisionId' attribute was set.

Returns
true if the 'headRevisionId' attribute was set.

◆ has_icon_link()

bool google_drive_api::File::has_icon_link ( ) const
inline

Determine if the 'iconLink' attribute was set.

Returns
true if the 'iconLink' attribute was set.

◆ has_id()

bool google_drive_api::File::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_image_media_metadata()

bool google_drive_api::File::has_image_media_metadata ( ) const
inline

Determine if the 'imageMediaMetadata' attribute was set.

Returns
true if the 'imageMediaMetadata' attribute was set.

◆ has_indexable_text()

bool google_drive_api::File::has_indexable_text ( ) const
inline

Determine if the 'indexableText' attribute was set.

Returns
true if the 'indexableText' attribute was set.

◆ has_is_app_authorized()

bool google_drive_api::File::has_is_app_authorized ( ) const
inline

Determine if the 'isAppAuthorized' attribute was set.

Returns
true if the 'isAppAuthorized' attribute was set.

◆ has_kind()

bool google_drive_api::File::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_labels()

bool google_drive_api::File::has_labels ( ) const
inline

Determine if the 'labels' attribute was set.

Returns
true if the 'labels' attribute was set.

◆ has_last_modifying_user()

bool google_drive_api::File::has_last_modifying_user ( ) const
inline

Determine if the 'lastModifyingUser' attribute was set.

Returns
true if the 'lastModifyingUser' attribute was set.

◆ has_last_modifying_user_name()

bool google_drive_api::File::has_last_modifying_user_name ( ) const
inline

Determine if the 'lastModifyingUserName' attribute was set.

Returns
true if the 'lastModifyingUserName' attribute was set.

◆ has_last_viewed_by_me_date()

bool google_drive_api::File::has_last_viewed_by_me_date ( ) const
inline

Determine if the 'lastViewedByMeDate' attribute was set.

Returns
true if the 'lastViewedByMeDate' attribute was set.

◆ has_marked_viewed_by_me_date()

bool google_drive_api::File::has_marked_viewed_by_me_date ( ) const
inline

Determine if the 'markedViewedByMeDate' attribute was set.

Returns
true if the 'markedViewedByMeDate' attribute was set.

◆ has_md5_checksum()

bool google_drive_api::File::has_md5_checksum ( ) const
inline

Determine if the 'md5Checksum' attribute was set.

Returns
true if the 'md5Checksum' attribute was set.

◆ has_mime_type()

bool google_drive_api::File::has_mime_type ( ) const
inline

Determine if the 'mimeType' attribute was set.

Returns
true if the 'mimeType' attribute was set.

◆ has_modified_by_me_date()

bool google_drive_api::File::has_modified_by_me_date ( ) const
inline

Determine if the 'modifiedByMeDate' attribute was set.

Returns
true if the 'modifiedByMeDate' attribute was set.

◆ has_modified_date()

bool google_drive_api::File::has_modified_date ( ) const
inline

Determine if the 'modifiedDate' attribute was set.

Returns
true if the 'modifiedDate' attribute was set.

◆ has_open_with_links()

bool google_drive_api::File::has_open_with_links ( ) const
inline

Determine if the 'openWithLinks' attribute was set.

Returns
true if the 'openWithLinks' attribute was set.

◆ has_original_filename()

bool google_drive_api::File::has_original_filename ( ) const
inline

Determine if the 'originalFilename' attribute was set.

Returns
true if the 'originalFilename' attribute was set.

◆ has_owned_by_me()

bool google_drive_api::File::has_owned_by_me ( ) const
inline

Determine if the 'ownedByMe' attribute was set.

Returns
true if the 'ownedByMe' attribute was set.

◆ has_owner_names()

bool google_drive_api::File::has_owner_names ( ) const
inline

Determine if the 'ownerNames' attribute was set.

Returns
true if the 'ownerNames' attribute was set.

◆ has_owners()

bool google_drive_api::File::has_owners ( ) const
inline

Determine if the 'owners' attribute was set.

Returns
true if the 'owners' attribute was set.

◆ has_parents()

bool google_drive_api::File::has_parents ( ) const
inline

Determine if the 'parents' attribute was set.

Returns
true if the 'parents' attribute was set.

◆ has_permission_ids()

bool google_drive_api::File::has_permission_ids ( ) const
inline

Determine if the 'permissionIds' attribute was set.

Returns
true if the 'permissionIds' attribute was set.

◆ has_permissions()

bool google_drive_api::File::has_permissions ( ) const
inline

Determine if the 'permissions' attribute was set.

Returns
true if the 'permissions' attribute was set.

◆ has_properties()

bool google_drive_api::File::has_properties ( ) const
inline

Determine if the 'properties' attribute was set.

Returns
true if the 'properties' attribute was set.

◆ has_quota_bytes_used()

bool google_drive_api::File::has_quota_bytes_used ( ) const
inline

Determine if the 'quotaBytesUsed' attribute was set.

Returns
true if the 'quotaBytesUsed' attribute was set.

◆ has_self_link()

bool google_drive_api::File::has_self_link ( ) const
inline

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_shareable()

bool google_drive_api::File::has_shareable ( ) const
inline

Determine if the 'shareable' attribute was set.

Returns
true if the 'shareable' attribute was set.

◆ has_shared()

bool google_drive_api::File::has_shared ( ) const
inline

Determine if the 'shared' attribute was set.

Returns
true if the 'shared' attribute was set.

◆ has_shared_with_me_date()

bool google_drive_api::File::has_shared_with_me_date ( ) const
inline

Determine if the 'sharedWithMeDate' attribute was set.

Returns
true if the 'sharedWithMeDate' attribute was set.

◆ has_sharing_user()

bool google_drive_api::File::has_sharing_user ( ) const
inline

Determine if the 'sharingUser' attribute was set.

Returns
true if the 'sharingUser' attribute was set.

◆ has_shortcut_details()

bool google_drive_api::File::has_shortcut_details ( ) const
inline

Determine if the 'shortcutDetails' attribute was set.

Returns
true if the 'shortcutDetails' attribute was set.

◆ has_spaces()

bool google_drive_api::File::has_spaces ( ) const
inline

Determine if the 'spaces' attribute was set.

Returns
true if the 'spaces' attribute was set.

◆ has_team_drive_id()

bool google_drive_api::File::has_team_drive_id ( ) const
inline

Determine if the 'teamDriveId' attribute was set.

Returns
true if the 'teamDriveId' attribute was set.

◆ has_thumbnail()

bool google_drive_api::File::has_thumbnail ( ) const
inline

Determine if the 'thumbnail' attribute was set.

Returns
true if the 'thumbnail' attribute was set.

◆ has_thumbnail_link()

bool google_drive_api::File::has_thumbnail_link ( ) const
inline

Determine if the 'thumbnailLink' attribute was set.

Returns
true if the 'thumbnailLink' attribute was set.

◆ has_thumbnail_version()

bool google_drive_api::File::has_thumbnail_version ( ) const
inline

Determine if the 'thumbnailVersion' attribute was set.

Returns
true if the 'thumbnailVersion' attribute was set.

◆ has_title()

bool google_drive_api::File::has_title ( ) const
inline

Determine if the 'title' attribute was set.

Returns
true if the 'title' attribute was set.

◆ has_trashed_date()

bool google_drive_api::File::has_trashed_date ( ) const
inline

Determine if the 'trashedDate' attribute was set.

Returns
true if the 'trashedDate' attribute was set.

◆ has_trashing_user()

bool google_drive_api::File::has_trashing_user ( ) const
inline

Determine if the 'trashingUser' attribute was set.

Returns
true if the 'trashingUser' attribute was set.

◆ has_user_permission()

bool google_drive_api::File::has_user_permission ( ) const
inline

Determine if the 'userPermission' attribute was set.

Returns
true if the 'userPermission' attribute was set.

◆ has_version()

bool google_drive_api::File::has_version ( ) const
inline

Determine if the 'version' attribute was set.

Returns
true if the 'version' attribute was set.

◆ has_video_media_metadata()

bool google_drive_api::File::has_video_media_metadata ( ) const
inline

Determine if the 'videoMediaMetadata' attribute was set.

Returns
true if the 'videoMediaMetadata' attribute was set.

◆ has_web_content_link()

bool google_drive_api::File::has_web_content_link ( ) const
inline

Determine if the 'webContentLink' attribute was set.

Returns
true if the 'webContentLink' attribute was set.

◆ has_web_view_link()

bool google_drive_api::File::has_web_view_link ( ) const
inline

Determine if the 'webViewLink' attribute was set.

Returns
true if the 'webViewLink' attribute was set.

◆ has_writers_can_share()

bool google_drive_api::File::has_writers_can_share ( ) const
inline

Determine if the 'writersCanShare' attribute was set.

Returns
true if the 'writersCanShare' attribute was set.

◆ mutable_capabilities()

FileCapabilities google_drive_api::File::mutable_capabilities ( )
inline

Gets a reference to a mutable value of the 'capabilities' property.

Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

Returns
The result can be modified to change the attribute value.

◆ mutable_exportLinks()

client::JsonCppAssociativeArray<string > google_drive_api::File::mutable_exportLinks ( )
inline

Gets a reference to a mutable value of the 'exportLinks' property.

Links for exporting Google Docs to specific formats.

Returns
The result can be modified to change the attribute value.

◆ mutable_imageMediaMetadata()

FileImageMediaMetadata google_drive_api::File::mutable_imageMediaMetadata ( )
inline

Gets a reference to a mutable value of the 'imageMediaMetadata' property.

Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.

Returns
The result can be modified to change the attribute value.

◆ mutable_indexableText()

FileIndexableText google_drive_api::File::mutable_indexableText ( )
inline

Gets a reference to a mutable value of the 'indexableText' property.

Indexable text attributes for the file (can only be written).

Returns
The result can be modified to change the attribute value.

◆ mutable_labels()

FileLabels google_drive_api::File::mutable_labels ( )
inline

Gets a reference to a mutable value of the 'labels' property.

A group of labels for the file.

Returns
The result can be modified to change the attribute value.

◆ mutable_lastModifyingUser()

User google_drive_api::File::mutable_lastModifyingUser ( )

Gets a reference to a mutable value of the 'lastModifyingUser' property.

The last user to modify this file.

Returns
The result can be modified to change the attribute value.

◆ mutable_openWithLinks()

client::JsonCppAssociativeArray<string > google_drive_api::File::mutable_openWithLinks ( )
inline

Gets a reference to a mutable value of the 'openWithLinks' property.

A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.

Returns
The result can be modified to change the attribute value.

◆ mutable_ownerNames()

client::JsonCppArray<string > google_drive_api::File::mutable_ownerNames ( )
inline

Gets a reference to a mutable value of the 'ownerNames' property.

Name(s) of the owner(s) of this file. Not populated for items in shared drives.

Returns
The result can be modified to change the attribute value.

◆ mutable_owners()

client::JsonCppArray<User > google_drive_api::File::mutable_owners ( )

Gets a reference to a mutable value of the 'owners' property.

The owner(s) of this file. Not populated for items in shared drives.

Returns
The result can be modified to change the attribute value.

◆ mutable_parents()

client::JsonCppArray<ParentReference > google_drive_api::File::mutable_parents ( )

Gets a reference to a mutable value of the 'parents' property.

Collection of parent folders which contain this file. If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.

Returns
The result can be modified to change the attribute value.

◆ mutable_permissionIds()

client::JsonCppArray<string > google_drive_api::File::mutable_permissionIds ( )
inline

Gets a reference to a mutable value of the 'permissionIds' property.

List of permission IDs for users with access to this file.

Returns
The result can be modified to change the attribute value.

◆ mutable_permissions()

client::JsonCppArray<Permission > google_drive_api::File::mutable_permissions ( )

Gets a reference to a mutable value of the 'permissions' property.

The list of permissions for users with access to this file. Not populated for items in shared drives.

Returns
The result can be modified to change the attribute value.

◆ mutable_properties()

client::JsonCppArray<Property > google_drive_api::File::mutable_properties ( )

Gets a reference to a mutable value of the 'properties' property.

The list of properties.

Returns
The result can be modified to change the attribute value.

◆ mutable_sharingUser()

User google_drive_api::File::mutable_sharingUser ( )

Gets a reference to a mutable value of the 'sharingUser' property.

User that shared the item with the current user, if available.

Returns
The result can be modified to change the attribute value.

◆ mutable_shortcutDetails()

FileShortcutDetails google_drive_api::File::mutable_shortcutDetails ( )
inline

Gets a reference to a mutable value of the 'shortcutDetails' property.

Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.

Returns
The result can be modified to change the attribute value.

◆ mutable_spaces()

client::JsonCppArray<string > google_drive_api::File::mutable_spaces ( )
inline

Gets a reference to a mutable value of the 'spaces' property.

The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.

Returns
The result can be modified to change the attribute value.

◆ mutable_thumbnail()

FileThumbnail google_drive_api::File::mutable_thumbnail ( )
inline

Gets a reference to a mutable value of the 'thumbnail' property.

A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.

Returns
The result can be modified to change the attribute value.

◆ mutable_trashingUser()

User google_drive_api::File::mutable_trashingUser ( )

Gets a reference to a mutable value of the 'trashingUser' property.

If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.

Returns
The result can be modified to change the attribute value.

◆ mutable_userPermission()

Permission google_drive_api::File::mutable_userPermission ( )

Gets a reference to a mutable value of the 'userPermission' property.

The permissions for the authenticated user on this file.

Returns
The result can be modified to change the attribute value.

◆ mutable_videoMediaMetadata()

FileVideoMediaMetadata google_drive_api::File::mutable_videoMediaMetadata ( )
inline

Gets a reference to a mutable value of the 'videoMediaMetadata' property.

Metadata about video media. This will only be present for video types.

Returns
The result can be modified to change the attribute value.

◆ New()

File * google_drive_api::File::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_alternate_link()

void google_drive_api::File::set_alternate_link ( const StringPiece &  value)
inline

Change the 'alternateLink' attribute.

A link for opening the file in a relevant Google editor or viewer.

Parameters
[in]valueThe new value.

◆ set_app_data_contents()

void google_drive_api::File::set_app_data_contents ( bool  value)
inline

Change the 'appDataContents' attribute.

Whether this file is in the Application Data folder.

Parameters
[in]valueThe new value.

◆ set_can_comment()

void google_drive_api::File::set_can_comment ( bool  value)
inline

Change the 'canComment' attribute.

Deprecated:

Deprecated: use capabilities/canComment.

Parameters
[in]valueThe new value.

◆ set_can_read_revisions()

void google_drive_api::File::set_can_read_revisions ( bool  value)
inline

Change the 'canReadRevisions' attribute.

Deprecated:

Deprecated: use capabilities/canReadRevisions.

Parameters
[in]valueThe new value.

◆ set_copy_requires_writer_permission()

void google_drive_api::File::set_copy_requires_writer_permission ( bool  value)
inline

Change the 'copyRequiresWriterPermission' attribute.

Whether the options to copy, print, or download this file, should be disabled for readers and commenters.

Parameters
[in]valueThe new value.

◆ set_copyable()

void google_drive_api::File::set_copyable ( bool  value)
inline

Change the 'copyable' attribute.

Deprecated:

Deprecated: use capabilities/canCopy.

Parameters
[in]valueThe new value.

◆ set_created_date()

void google_drive_api::File::set_created_date ( client::DateTime  value)
inline

Change the 'createdDate' attribute.

Create time for this file (formatted RFC 3339 timestamp).

Parameters
[in]valueThe new value.

◆ set_default_open_with_link()

void google_drive_api::File::set_default_open_with_link ( const StringPiece &  value)
inline

Change the 'defaultOpenWithLink' attribute.

A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.

Parameters
[in]valueThe new value.

◆ set_description()

void google_drive_api::File::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

A short description of the file.

Parameters
[in]valueThe new value.

◆ set_download_url()

void google_drive_api::File::set_download_url ( const StringPiece &  value)
inline

Change the 'downloadUrl' attribute.

Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.

Parameters
[in]valueThe new value.

◆ set_drive_id()

void google_drive_api::File::set_drive_id ( const StringPiece &  value)
inline

Change the 'driveId' attribute.

ID of the shared drive the file resides in. Only populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_editable()

void google_drive_api::File::set_editable ( bool  value)
inline

Change the 'editable' attribute.

Deprecated:

Deprecated: use capabilities/canEdit.

Parameters
[in]valueThe new value.

◆ set_embed_link()

void google_drive_api::File::set_embed_link ( const StringPiece &  value)
inline

Change the 'embedLink' attribute.

A link for embedding the file.

Parameters
[in]valueThe new value.

◆ set_etag()

void google_drive_api::File::set_etag ( const StringPiece &  value)
inline

Change the 'etag' attribute.

ETag of the file.

Parameters
[in]valueThe new value.

◆ set_explicitly_trashed()

void google_drive_api::File::set_explicitly_trashed ( bool  value)
inline

Change the 'explicitlyTrashed' attribute.

Whether this file has been explicitly trashed, as opposed to recursively trashed.

Parameters
[in]valueThe new value.

◆ set_file_extension()

void google_drive_api::File::set_file_extension ( const StringPiece &  value)
inline

Change the 'fileExtension' attribute.

The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.

Parameters
[in]valueThe new value.

◆ set_file_size()

void google_drive_api::File::set_file_size ( int64  value)
inline

Change the 'fileSize' attribute.

The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.

Parameters
[in]valueThe new value.

◆ set_folder_color_rgb()

void google_drive_api::File::set_folder_color_rgb ( const StringPiece &  value)
inline

Change the 'folderColorRgb' attribute.

Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_full_file_extension()

void google_drive_api::File::set_full_file_extension ( const StringPiece &  value)
inline

Change the 'fullFileExtension' attribute.

The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.

Parameters
[in]valueThe new value.

◆ set_has_augmented_permissions()

void google_drive_api::File::set_has_augmented_permissions ( bool  value)
inline

Change the 'hasAugmentedPermissions' attribute.

Whether there are permissions directly on this file. This field is only populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_has_thumbnail()

void google_drive_api::File::set_has_thumbnail ( bool  value)
inline

Change the 'hasThumbnail' attribute.

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.

Parameters
[in]valueThe new value.

◆ set_head_revision_id()

void google_drive_api::File::set_head_revision_id ( const StringPiece &  value)
inline

Change the 'headRevisionId' attribute.

The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.

Parameters
[in]valueThe new value.

◆ set_icon_link()

void google_drive_api::File::set_icon_link ( const StringPiece &  value)
inline

Change the 'iconLink' attribute.

A link to the file's icon.

Parameters
[in]valueThe new value.

◆ set_id()

void google_drive_api::File::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

The ID of the file.

Parameters
[in]valueThe new value.

◆ set_is_app_authorized()

void google_drive_api::File::set_is_app_authorized ( bool  value)
inline

Change the 'isAppAuthorized' attribute.

Whether the file was created or opened by the requesting app.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_drive_api::File::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

The type of file. This is always drive::file.

Parameters
[in]valueThe new value.

◆ set_last_modifying_user_name()

void google_drive_api::File::set_last_modifying_user_name ( const StringPiece &  value)
inline

Change the 'lastModifyingUserName' attribute.

Name of the last user to modify this file.

Parameters
[in]valueThe new value.

◆ set_last_viewed_by_me_date()

void google_drive_api::File::set_last_viewed_by_me_date ( client::DateTime  value)
inline

Change the 'lastViewedByMeDate' attribute.

Last time this file was viewed by the user (formatted RFC 3339 timestamp).

Parameters
[in]valueThe new value.

◆ set_marked_viewed_by_me_date()

void google_drive_api::File::set_marked_viewed_by_me_date ( client::DateTime  value)
inline

Change the 'markedViewedByMeDate' attribute.

Deprecated:

Deprecated.

Parameters
[in]valueThe new value.

◆ set_md5_checksum()

void google_drive_api::File::set_md5_checksum ( const StringPiece &  value)
inline

Change the 'md5Checksum' attribute.

An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.

Parameters
[in]valueThe new value.

◆ set_mime_type()

void google_drive_api::File::set_mime_type ( const StringPiece &  value)
inline

Change the 'mimeType' attribute.

The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.

Parameters
[in]valueThe new value.

◆ set_modified_by_me_date()

void google_drive_api::File::set_modified_by_me_date ( client::DateTime  value)
inline

Change the 'modifiedByMeDate' attribute.

Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.

Parameters
[in]valueThe new value.

◆ set_modified_date()

void google_drive_api::File::set_modified_date ( client::DateTime  value)
inline

Change the 'modifiedDate' attribute.

Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.

Parameters
[in]valueThe new value.

◆ set_original_filename()

void google_drive_api::File::set_original_filename ( const StringPiece &  value)
inline

Change the 'originalFilename' attribute.

The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.

Parameters
[in]valueThe new value.

◆ set_owned_by_me()

void google_drive_api::File::set_owned_by_me ( bool  value)
inline

Change the 'ownedByMe' attribute.

Whether the file is owned by the current user. Not populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_quota_bytes_used()

void google_drive_api::File::set_quota_bytes_used ( int64  value)
inline

Change the 'quotaBytesUsed' attribute.

The number of quota bytes used by this file.

Parameters
[in]valueThe new value.

◆ set_self_link()

void google_drive_api::File::set_self_link ( const StringPiece &  value)
inline

Change the 'selfLink' attribute.

A link back to this file.

Parameters
[in]valueThe new value.

◆ set_shareable()

void google_drive_api::File::set_shareable ( bool  value)
inline

Change the 'shareable' attribute.

Deprecated:

Deprecated: use capabilities/canShare.

Parameters
[in]valueThe new value.

◆ set_shared()

void google_drive_api::File::set_shared ( bool  value)
inline

Change the 'shared' attribute.

Whether the file has been shared. Not populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_shared_with_me_date()

void google_drive_api::File::set_shared_with_me_date ( client::DateTime  value)
inline

Change the 'sharedWithMeDate' attribute.

Time at which this file was shared with the user (formatted RFC 3339 timestamp).

Parameters
[in]valueThe new value.

◆ set_team_drive_id()

void google_drive_api::File::set_team_drive_id ( const StringPiece &  value)
inline

Change the 'teamDriveId' attribute.

Deprecated:

Deprecated - use driveId instead.

Parameters
[in]valueThe new value.

◆ set_thumbnail_link()

void google_drive_api::File::set_thumbnail_link ( const StringPiece &  value)
inline

Change the 'thumbnailLink' attribute.

A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.

Parameters
[in]valueThe new value.

◆ set_thumbnail_version()

void google_drive_api::File::set_thumbnail_version ( int64  value)
inline

Change the 'thumbnailVersion' attribute.

The thumbnail version for use in thumbnail cache invalidation.

Parameters
[in]valueThe new value.

◆ set_title()

void google_drive_api::File::set_title ( const StringPiece &  value)
inline

Change the 'title' attribute.

The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.

Parameters
[in]valueThe new value.

◆ set_trashed_date()

void google_drive_api::File::set_trashed_date ( client::DateTime  value)
inline

Change the 'trashedDate' attribute.

The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_version()

void google_drive_api::File::set_version ( int64  value)
inline

Change the 'version' attribute.

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 requesting user.

Parameters
[in]valueThe new value.

◆ set_web_content_link()

void google_drive_api::File::set_web_content_link ( const StringPiece &  value)
inline

Change the 'webContentLink' attribute.

A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.

Parameters
[in]valueThe new value.

◆ set_web_view_link()

void google_drive_api::File::set_web_view_link ( const StringPiece &  value)
inline

Change the 'webViewLink' attribute.

A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.

Parameters
[in]valueThe new value.

◆ set_writers_can_share()

void google_drive_api::File::set_writers_can_share ( bool  value)
inline

Change the 'writersCanShare' attribute.

Whether writers can share the document with other users. Not populated for items in shared drives.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: