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

#include <user.h>

Inheritance diagram for google_drive_api::User:

Classes

class  UserPicture
 

Public Member Functions

 User (const Json::Value &storage)
 
 User (Json::Value *storage)
 
virtual ~User ()
 
const StringPiece GetTypeName () const
 
bool has_display_name () const
 
void clear_display_name ()
 
const StringPiece get_display_name () const
 
void set_display_name (const StringPiece &value)
 
bool has_email_address () const
 
void clear_email_address ()
 
const StringPiece get_email_address () const
 
void set_email_address (const StringPiece &value)
 
bool has_is_authenticated_user () const
 
void clear_is_authenticated_user ()
 
bool get_is_authenticated_user () const
 
void set_is_authenticated_user (bool value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_permission_id () const
 
void clear_permission_id ()
 
const StringPiece get_permission_id () const
 
void set_permission_id (const StringPiece &value)
 
bool has_picture () const
 
void clear_picture ()
 
const UserPicture get_picture () const
 
UserPicture mutable_picture ()
 

Static Public Member Functions

static UserNew ()
 

Detailed Description

Information about a Drive user.

Constructor & Destructor Documentation

◆ User() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ User() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~User()

google_drive_api::User::~User ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_display_name()

void google_drive_api::User::clear_display_name ( )
inline

Clears the 'displayName' attribute.

◆ clear_email_address()

void google_drive_api::User::clear_email_address ( )
inline

Clears the 'emailAddress' attribute.

◆ clear_is_authenticated_user()

void google_drive_api::User::clear_is_authenticated_user ( )
inline

Clears the 'isAuthenticatedUser' attribute.

◆ clear_kind()

void google_drive_api::User::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_permission_id()

void google_drive_api::User::clear_permission_id ( )
inline

Clears the 'permissionId' attribute.

◆ clear_picture()

void google_drive_api::User::clear_picture ( )
inline

Clears the 'picture' attribute.

◆ get_display_name()

const StringPiece google_drive_api::User::get_display_name ( ) const
inline

Get the value of the 'displayName' attribute.

◆ get_email_address()

const StringPiece google_drive_api::User::get_email_address ( ) const
inline

Get the value of the 'emailAddress' attribute.

◆ get_is_authenticated_user()

bool google_drive_api::User::get_is_authenticated_user ( ) const
inline

Get the value of the 'isAuthenticatedUser' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_permission_id()

const StringPiece google_drive_api::User::get_permission_id ( ) const
inline

Get the value of the 'permissionId' attribute.

◆ get_picture()

const UserPicture google_drive_api::User::get_picture ( ) const
inline

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_drive_api::User

◆ has_display_name()

bool google_drive_api::User::has_display_name ( ) const
inline

Determine if the 'displayName' attribute was set.

Returns
true if the 'displayName' attribute was set.

◆ has_email_address()

bool google_drive_api::User::has_email_address ( ) const
inline

Determine if the 'emailAddress' attribute was set.

Returns
true if the 'emailAddress' attribute was set.

◆ has_is_authenticated_user()

bool google_drive_api::User::has_is_authenticated_user ( ) const
inline

Determine if the 'isAuthenticatedUser' attribute was set.

Returns
true if the 'isAuthenticatedUser' attribute was set.

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_permission_id()

bool google_drive_api::User::has_permission_id ( ) const
inline

Determine if the 'permissionId' attribute was set.

Returns
true if the 'permissionId' attribute was set.

◆ has_picture()

bool google_drive_api::User::has_picture ( ) const
inline

Determine if the 'picture' attribute was set.

Returns
true if the 'picture' attribute was set.

◆ mutable_picture()

UserPicture google_drive_api::User::mutable_picture ( )
inline

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

The user's profile picture.

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

◆ New()

User * google_drive_api::User::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_display_name()

void google_drive_api::User::set_display_name ( const StringPiece &  value)
inline

Change the 'displayName' attribute.

A plain text displayable name for this user.

Parameters
[in]valueThe new value.

◆ set_email_address()

void google_drive_api::User::set_email_address ( const StringPiece &  value)
inline

Change the 'emailAddress' attribute.

The email address of the user.

Parameters
[in]valueThe new value.

◆ set_is_authenticated_user()

void google_drive_api::User::set_is_authenticated_user ( bool  value)
inline

Change the 'isAuthenticatedUser' attribute.

Whether this user is the same as the authenticated user for whom the request was made.

Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

This is always drive::user.

Parameters
[in]valueThe new value.

◆ set_permission_id()

void google_drive_api::User::set_permission_id ( const StringPiece &  value)
inline

Change the 'permissionId' attribute.

The user's ID as visible in the permissions collection.

Parameters
[in]valueThe new value.

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