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

#include <property.h>

Inheritance diagram for google_drive_api::Property:

Public Member Functions

 Property (const Json::Value &storage)
 
 Property (Json::Value *storage)
 
virtual ~Property ()
 
const StringPiece GetTypeName () const
 
bool has_etag () const
 
void clear_etag ()
 
const StringPiece get_etag () const
 
void set_etag (const StringPiece &value)
 
bool has_key () const
 
void clear_key ()
 
const StringPiece get_key () const
 
void set_key (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &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_value () const
 
void clear_value ()
 
const StringPiece get_value () const
 
void set_value (const StringPiece &value)
 
bool has_visibility () const
 
void clear_visibility ()
 
const StringPiece get_visibility () const
 
void set_visibility (const StringPiece &value)
 

Static Public Member Functions

static PropertyNew ()
 

Detailed Description

A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties:

Constructor & Destructor Documentation

◆ Property() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Property() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Property()

google_drive_api::Property::~Property ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_etag()

void google_drive_api::Property::clear_etag ( )
inline

Clears the 'etag' attribute.

◆ clear_key()

void google_drive_api::Property::clear_key ( )
inline

Clears the 'key' attribute.

◆ clear_kind()

void google_drive_api::Property::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_self_link()

void google_drive_api::Property::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_value()

void google_drive_api::Property::clear_value ( )
inline

Clears the 'value' attribute.

◆ clear_visibility()

void google_drive_api::Property::clear_visibility ( )
inline

Clears the 'visibility' attribute.

◆ get_etag()

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

Get the value of the 'etag' attribute.

◆ get_key()

const StringPiece google_drive_api::Property::get_key ( ) const
inline

Get the value of the 'key' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_self_link()

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

Get the value of the 'selfLink' attribute.

◆ get_value()

const StringPiece google_drive_api::Property::get_value ( ) const
inline

Get the value of the 'value' attribute.

◆ get_visibility()

const StringPiece google_drive_api::Property::get_visibility ( ) const
inline

Get the value of the 'visibility' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_drive_api::Property

◆ has_etag()

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

Determine if the 'etag' attribute was set.

Returns
true if the 'etag' attribute was set.

◆ has_key()

bool google_drive_api::Property::has_key ( ) const
inline

Determine if the 'key' attribute was set.

Returns
true if the 'key' attribute was set.

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_self_link()

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

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_value()

bool google_drive_api::Property::has_value ( ) const
inline

Determine if the 'value' attribute was set.

Returns
true if the 'value' attribute was set.

◆ has_visibility()

bool google_drive_api::Property::has_visibility ( ) const
inline

Determine if the 'visibility' attribute was set.

Returns
true if the 'visibility' attribute was set.

◆ New()

Property * google_drive_api::Property::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_etag()

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

Change the 'etag' attribute.

ETag of the property.

Parameters
[in]valueThe new value.

◆ set_key()

void google_drive_api::Property::set_key ( const StringPiece &  value)
inline

Change the 'key' attribute.

The key of this property.

Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

This is always drive::property.

Parameters
[in]valueThe new value.

◆ set_self_link()

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

Change the 'selfLink' attribute.

The link back to this property.

Parameters
[in]valueThe new value.

◆ set_value()

void google_drive_api::Property::set_value ( const StringPiece &  value)
inline

Change the 'value' attribute.

The value of this property.

Parameters
[in]valueThe new value.

◆ set_visibility()

void google_drive_api::Property::set_visibility ( const StringPiece &  value)
inline

Change the 'visibility' attribute.

The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE).

Parameters
[in]valueThe new value.

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