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

#include <change.h>

Inheritance diagram for google_drive_api::Change:

Public Member Functions

 Change (const Json::Value &storage)
 
 Change (Json::Value *storage)
 
virtual ~Change ()
 
const StringPiece GetTypeName () const
 
bool has_change_type () const
 
void clear_change_type ()
 
const StringPiece get_change_type () const
 
void set_change_type (const StringPiece &value)
 
bool has_deleted () const
 
void clear_deleted ()
 
bool get_deleted () const
 
void set_deleted (bool value)
 
bool has_drive () const
 
void clear_drive ()
 
const Drive get_drive () const
 
Drive mutable_drive ()
 
bool has_drive_id () const
 
void clear_drive_id ()
 
const StringPiece get_drive_id () const
 
void set_drive_id (const StringPiece &value)
 
bool has_file () const
 
void clear_file ()
 
const File get_file () const
 
File mutable_file ()
 
bool has_file_id () const
 
void clear_file_id ()
 
const StringPiece get_file_id () const
 
void set_file_id (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
int64 get_id () const
 
void set_id (int64 value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_modification_date () const
 
void clear_modification_date ()
 
client::DateTime get_modification_date () const
 
void set_modification_date (client::DateTime 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_team_drive () const
 
void clear_team_drive ()
 
const TeamDrive get_team_drive () const
 
TeamDrive mutable_teamDrive ()
 
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_type () const
 
void clear_type ()
 
const StringPiece get_type () const
 
void set_type (const StringPiece &value)
 

Static Public Member Functions

static ChangeNew ()
 

Detailed Description

Representation of a change to a file or shared drive.

Constructor & Destructor Documentation

◆ Change() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Change() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Change()

google_drive_api::Change::~Change ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_change_type()

void google_drive_api::Change::clear_change_type ( )
inline

Clears the 'changeType' attribute.

◆ clear_deleted()

void google_drive_api::Change::clear_deleted ( )
inline

Clears the 'deleted' attribute.

◆ clear_drive()

void google_drive_api::Change::clear_drive ( )
inline

Clears the 'drive' attribute.

◆ clear_drive_id()

void google_drive_api::Change::clear_drive_id ( )
inline

Clears the 'driveId' attribute.

◆ clear_file()

void google_drive_api::Change::clear_file ( )
inline

Clears the 'file' attribute.

◆ clear_file_id()

void google_drive_api::Change::clear_file_id ( )
inline

Clears the 'fileId' attribute.

◆ clear_id()

void google_drive_api::Change::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_kind()

void google_drive_api::Change::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_modification_date()

void google_drive_api::Change::clear_modification_date ( )
inline

Clears the 'modificationDate' attribute.

◆ clear_self_link()

void google_drive_api::Change::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_team_drive()

void google_drive_api::Change::clear_team_drive ( )
inline

Clears the 'teamDrive' attribute.

◆ clear_team_drive_id()

void google_drive_api::Change::clear_team_drive_id ( )
inline

Clears the 'teamDriveId' attribute.

◆ clear_type()

void google_drive_api::Change::clear_type ( )
inline

Clears the 'type' attribute.

◆ get_change_type()

const StringPiece google_drive_api::Change::get_change_type ( ) const
inline

Get the value of the 'changeType' attribute.

◆ get_deleted()

bool google_drive_api::Change::get_deleted ( ) const
inline

Get the value of the 'deleted' attribute.

◆ get_drive()

const Drive google_drive_api::Change::get_drive ( ) const

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

◆ get_drive_id()

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

Get the value of the 'driveId' attribute.

◆ get_file()

const File google_drive_api::Change::get_file ( ) const

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

◆ get_file_id()

const StringPiece google_drive_api::Change::get_file_id ( ) const
inline

Get the value of the 'fileId' attribute.

◆ get_id()

int64 google_drive_api::Change::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_modification_date()

client::DateTime google_drive_api::Change::get_modification_date ( ) const
inline

Get the value of the 'modificationDate' attribute.

◆ get_self_link()

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

Get the value of the 'selfLink' attribute.

◆ get_team_drive()

const TeamDrive google_drive_api::Change::get_team_drive ( ) const

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

◆ get_team_drive_id()

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

Get the value of the 'teamDriveId' attribute.

◆ get_type()

const StringPiece google_drive_api::Change::get_type ( ) const
inline

Get the value of the 'type' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_drive_api::Change

◆ has_change_type()

bool google_drive_api::Change::has_change_type ( ) const
inline

Determine if the 'changeType' attribute was set.

Returns
true if the 'changeType' attribute was set.

◆ has_deleted()

bool google_drive_api::Change::has_deleted ( ) const
inline

Determine if the 'deleted' attribute was set.

Returns
true if the 'deleted' attribute was set.

◆ has_drive()

bool google_drive_api::Change::has_drive ( ) const
inline

Determine if the 'drive' attribute was set.

Returns
true if the 'drive' attribute was set.

◆ has_drive_id()

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

Determine if the 'driveId' attribute was set.

Returns
true if the 'driveId' attribute was set.

◆ has_file()

bool google_drive_api::Change::has_file ( ) const
inline

Determine if the 'file' attribute was set.

Returns
true if the 'file' attribute was set.

◆ has_file_id()

bool google_drive_api::Change::has_file_id ( ) const
inline

Determine if the 'fileId' attribute was set.

Returns
true if the 'fileId' attribute was set.

◆ has_id()

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

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_modification_date()

bool google_drive_api::Change::has_modification_date ( ) const
inline

Determine if the 'modificationDate' attribute was set.

Returns
true if the 'modificationDate' attribute was set.

◆ has_self_link()

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

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_team_drive()

bool google_drive_api::Change::has_team_drive ( ) const
inline

Determine if the 'teamDrive' attribute was set.

Returns
true if the 'teamDrive' attribute was set.

◆ has_team_drive_id()

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

Determine if the 'teamDriveId' attribute was set.

Returns
true if the 'teamDriveId' attribute was set.

◆ has_type()

bool google_drive_api::Change::has_type ( ) const
inline

Determine if the 'type' attribute was set.

Returns
true if the 'type' attribute was set.

◆ mutable_drive()

Drive google_drive_api::Change::mutable_drive ( )

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

The updated state of the shared drive. Present if the changeType is drive, the user is still a member of the shared drive, and the shared drive has not been deleted.

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

◆ mutable_file()

File google_drive_api::Change::mutable_file ( )

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

The updated state of the file. Present if the type is file and the file has not been removed from this list of changes.

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

◆ mutable_teamDrive()

TeamDrive google_drive_api::Change::mutable_teamDrive ( )

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

Deprecated:

Deprecated - use drive instead.

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

◆ New()

Change * google_drive_api::Change::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_change_type()

void google_drive_api::Change::set_change_type ( const StringPiece &  value)
inline

Change the 'changeType' attribute.

The type of the change. Possible values are file and drive.

Parameters
[in]valueThe new value.

◆ set_deleted()

void google_drive_api::Change::set_deleted ( bool  value)
inline

Change the 'deleted' attribute.

Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.

Parameters
[in]valueThe new value.

◆ set_drive_id()

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

Change the 'driveId' attribute.

The ID of the shared drive associated with this change.

Parameters
[in]valueThe new value.

◆ set_file_id()

void google_drive_api::Change::set_file_id ( const StringPiece &  value)
inline

Change the 'fileId' attribute.

The ID of the file associated with this change.

Parameters
[in]valueThe new value.

◆ set_id()

void google_drive_api::Change::set_id ( int64  value)
inline

Change the 'id' attribute.

The ID of the change.

Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

This is always drive::change.

Parameters
[in]valueThe new value.

◆ set_modification_date()

void google_drive_api::Change::set_modification_date ( client::DateTime  value)
inline

Change the 'modificationDate' attribute.

The time of this modification.

Parameters
[in]valueThe new value.

◆ set_self_link()

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

Change the 'selfLink' attribute.

A link back to this change.

Parameters
[in]valueThe new value.

◆ set_team_drive_id()

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

Change the 'teamDriveId' attribute.

Deprecated:

Deprecated - use driveId instead.

Parameters
[in]valueThe new value.

◆ set_type()

void google_drive_api::Change::set_type ( const StringPiece &  value)
inline

Change the 'type' attribute.

Deprecated:

Deprecated - use changeType instead.

Parameters
[in]valueThe new value.

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