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

#include <file.h>

Inheritance diagram for google_drive_api::File::FileLabels:

Public Member Functions

 FileLabels (const Json::Value &storage)
 
 FileLabels (Json::Value *storage)
 
virtual ~FileLabels ()
 
const StringPiece GetTypeName () const
 
bool has_hidden () const
 
void clear_hidden ()
 
bool get_hidden () const
 
void set_hidden (bool value)
 
bool has_modified () const
 
void clear_modified ()
 
bool get_modified () const
 
void set_modified (bool value)
 
bool has_restricted () const
 
void clear_restricted ()
 
bool get_restricted () const
 
void set_restricted (bool value)
 
bool has_starred () const
 
void clear_starred ()
 
bool get_starred () const
 
void set_starred (bool value)
 
bool has_trashed () const
 
void clear_trashed ()
 
bool get_trashed () const
 
void set_trashed (bool value)
 
bool has_viewed () const
 
void clear_viewed ()
 
bool get_viewed () const
 
void set_viewed (bool value)
 

Static Public Member Functions

static FileLabelsNew ()
 

Detailed Description

A group of labels for the file.

Constructor & Destructor Documentation

◆ FileLabels() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ FileLabels() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~FileLabels()

google_drive_api::File::FileLabels::~FileLabels ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_hidden()

void google_drive_api::File::FileLabels::clear_hidden ( )
inline

Clears the 'hidden' attribute.

◆ clear_modified()

void google_drive_api::File::FileLabels::clear_modified ( )
inline

Clears the 'modified' attribute.

◆ clear_restricted()

void google_drive_api::File::FileLabels::clear_restricted ( )
inline

Clears the 'restricted' attribute.

◆ clear_starred()

void google_drive_api::File::FileLabels::clear_starred ( )
inline

Clears the 'starred' attribute.

◆ clear_trashed()

void google_drive_api::File::FileLabels::clear_trashed ( )
inline

Clears the 'trashed' attribute.

◆ clear_viewed()

void google_drive_api::File::FileLabels::clear_viewed ( )
inline

Clears the 'viewed' attribute.

◆ get_hidden()

bool google_drive_api::File::FileLabels::get_hidden ( ) const
inline

Get the value of the 'hidden' attribute.

◆ get_modified()

bool google_drive_api::File::FileLabels::get_modified ( ) const
inline

Get the value of the 'modified' attribute.

◆ get_restricted()

bool google_drive_api::File::FileLabels::get_restricted ( ) const
inline

Get the value of the 'restricted' attribute.

◆ get_starred()

bool google_drive_api::File::FileLabels::get_starred ( ) const
inline

Get the value of the 'starred' attribute.

◆ get_trashed()

bool google_drive_api::File::FileLabels::get_trashed ( ) const
inline

Get the value of the 'trashed' attribute.

◆ get_viewed()

bool google_drive_api::File::FileLabels::get_viewed ( ) const
inline

Get the value of the 'viewed' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_drive_api::FileLabels

◆ has_hidden()

bool google_drive_api::File::FileLabels::has_hidden ( ) const
inline

Determine if the 'hidden' attribute was set.

Returns
true if the 'hidden' attribute was set.

◆ has_modified()

bool google_drive_api::File::FileLabels::has_modified ( ) const
inline

Determine if the 'modified' attribute was set.

Returns
true if the 'modified' attribute was set.

◆ has_restricted()

bool google_drive_api::File::FileLabels::has_restricted ( ) const
inline

Determine if the 'restricted' attribute was set.

Returns
true if the 'restricted' attribute was set.

◆ has_starred()

bool google_drive_api::File::FileLabels::has_starred ( ) const
inline

Determine if the 'starred' attribute was set.

Returns
true if the 'starred' attribute was set.

◆ has_trashed()

bool google_drive_api::File::FileLabels::has_trashed ( ) const
inline

Determine if the 'trashed' attribute was set.

Returns
true if the 'trashed' attribute was set.

◆ has_viewed()

bool google_drive_api::File::FileLabels::has_viewed ( ) const
inline

Determine if the 'viewed' attribute was set.

Returns
true if the 'viewed' attribute was set.

◆ New()

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

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_hidden()

void google_drive_api::File::FileLabels::set_hidden ( bool  value)
inline

Change the 'hidden' attribute.

Deprecated:

Deprecated.

Parameters
[in]valueThe new value.

◆ set_modified()

void google_drive_api::File::FileLabels::set_modified ( bool  value)
inline

Change the 'modified' attribute.

Whether the file has been modified by this user.

Parameters
[in]valueThe new value.

◆ set_restricted()

void google_drive_api::File::FileLabels::set_restricted ( bool  value)
inline

Change the 'restricted' attribute.

Deprecated:

Deprecated - use copyRequiresWriterPermission instead.

Parameters
[in]valueThe new value.

◆ set_starred()

void google_drive_api::File::FileLabels::set_starred ( bool  value)
inline

Change the 'starred' attribute.

Whether this file is starred by the user.

Parameters
[in]valueThe new value.

◆ set_trashed()

void google_drive_api::File::FileLabels::set_trashed ( bool  value)
inline

Change the 'trashed' attribute.

Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.

Parameters
[in]valueThe new value.

◆ set_viewed()

void google_drive_api::File::FileLabels::set_viewed ( bool  value)
inline

Change the 'viewed' attribute.

Whether this file has been viewed by this user.

Parameters
[in]valueThe new value.

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