oauth2  v2
Public Member Functions | Static Public Member Functions | List of all members
google_oauth2_api::Userinfo Class Reference

#include <userinfo.h>

Inheritance diagram for google_oauth2_api::Userinfo:

Public Member Functions

 Userinfo (const Json::Value &storage)
 
 Userinfo (Json::Value *storage)
 
virtual ~Userinfo ()
 
const StringPiece GetTypeName () const
 
bool has_email () const
 
void clear_email ()
 
const StringPiece get_email () const
 
void set_email (const StringPiece &value)
 
bool has_family_name () const
 
void clear_family_name ()
 
const StringPiece get_family_name () const
 
void set_family_name (const StringPiece &value)
 
bool has_gender () const
 
void clear_gender ()
 
const StringPiece get_gender () const
 
void set_gender (const StringPiece &value)
 
bool has_given_name () const
 
void clear_given_name ()
 
const StringPiece get_given_name () const
 
void set_given_name (const StringPiece &value)
 
bool has_hd () const
 
void clear_hd ()
 
const StringPiece get_hd () const
 
void set_hd (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_id (const StringPiece &value)
 
bool has_link () const
 
void clear_link ()
 
const StringPiece get_link () const
 
void set_link (const StringPiece &value)
 
bool has_locale () const
 
void clear_locale ()
 
const StringPiece get_locale () const
 
void set_locale (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_picture () const
 
void clear_picture ()
 
const StringPiece get_picture () const
 
void set_picture (const StringPiece &value)
 
bool has_verified_email () const
 
void clear_verified_email ()
 
bool get_verified_email () const
 
void set_verified_email (bool value)
 

Static Public Member Functions

static UserinfoNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ Userinfo() [1/2]

google_oauth2_api::Userinfo::Userinfo ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ Userinfo() [2/2]

google_oauth2_api::Userinfo::Userinfo ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~Userinfo()

google_oauth2_api::Userinfo::~Userinfo ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_email()

void google_oauth2_api::Userinfo::clear_email ( )
inline

Clears the 'email' attribute.

◆ clear_family_name()

void google_oauth2_api::Userinfo::clear_family_name ( )
inline

Clears the 'family_name' attribute.

◆ clear_gender()

void google_oauth2_api::Userinfo::clear_gender ( )
inline

Clears the 'gender' attribute.

◆ clear_given_name()

void google_oauth2_api::Userinfo::clear_given_name ( )
inline

Clears the 'given_name' attribute.

◆ clear_hd()

void google_oauth2_api::Userinfo::clear_hd ( )
inline

Clears the 'hd' attribute.

◆ clear_id()

void google_oauth2_api::Userinfo::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_link()

void google_oauth2_api::Userinfo::clear_link ( )
inline

Clears the 'link' attribute.

◆ clear_locale()

void google_oauth2_api::Userinfo::clear_locale ( )
inline

Clears the 'locale' attribute.

◆ clear_name()

void google_oauth2_api::Userinfo::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_picture()

void google_oauth2_api::Userinfo::clear_picture ( )
inline

Clears the 'picture' attribute.

◆ clear_verified_email()

void google_oauth2_api::Userinfo::clear_verified_email ( )
inline

Clears the 'verified_email' attribute.

◆ get_email()

const StringPiece google_oauth2_api::Userinfo::get_email ( ) const
inline

Get the value of the 'email' attribute.

◆ get_family_name()

const StringPiece google_oauth2_api::Userinfo::get_family_name ( ) const
inline

Get the value of the 'family_name' attribute.

◆ get_gender()

const StringPiece google_oauth2_api::Userinfo::get_gender ( ) const
inline

Get the value of the 'gender' attribute.

◆ get_given_name()

const StringPiece google_oauth2_api::Userinfo::get_given_name ( ) const
inline

Get the value of the 'given_name' attribute.

◆ get_hd()

const StringPiece google_oauth2_api::Userinfo::get_hd ( ) const
inline

Get the value of the 'hd' attribute.

◆ get_id()

const StringPiece google_oauth2_api::Userinfo::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_link()

const StringPiece google_oauth2_api::Userinfo::get_link ( ) const
inline

Get the value of the 'link' attribute.

◆ get_locale()

const StringPiece google_oauth2_api::Userinfo::get_locale ( ) const
inline

Get the value of the 'locale' attribute.

◆ get_name()

const StringPiece google_oauth2_api::Userinfo::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_picture()

const StringPiece google_oauth2_api::Userinfo::get_picture ( ) const
inline

Get the value of the 'picture' attribute.

◆ get_verified_email()

bool google_oauth2_api::Userinfo::get_verified_email ( ) const
inline

Get the value of the 'verified_email' attribute.

◆ GetTypeName()

const StringPiece google_oauth2_api::Userinfo::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_oauth2_api::Userinfo

◆ has_email()

bool google_oauth2_api::Userinfo::has_email ( ) const
inline

Determine if the 'email' attribute was set.

Returns
true if the 'email' attribute was set.

◆ has_family_name()

bool google_oauth2_api::Userinfo::has_family_name ( ) const
inline

Determine if the 'family_name' attribute was set.

Returns
true if the 'family_name' attribute was set.

◆ has_gender()

bool google_oauth2_api::Userinfo::has_gender ( ) const
inline

Determine if the 'gender' attribute was set.

Returns
true if the 'gender' attribute was set.

◆ has_given_name()

bool google_oauth2_api::Userinfo::has_given_name ( ) const
inline

Determine if the 'given_name' attribute was set.

Returns
true if the 'given_name' attribute was set.

◆ has_hd()

bool google_oauth2_api::Userinfo::has_hd ( ) const
inline

Determine if the 'hd' attribute was set.

Returns
true if the 'hd' attribute was set.

◆ has_id()

bool google_oauth2_api::Userinfo::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_link()

bool google_oauth2_api::Userinfo::has_link ( ) const
inline

Determine if the 'link' attribute was set.

Returns
true if the 'link' attribute was set.

◆ has_locale()

bool google_oauth2_api::Userinfo::has_locale ( ) const
inline

Determine if the 'locale' attribute was set.

Returns
true if the 'locale' attribute was set.

◆ has_name()

bool google_oauth2_api::Userinfo::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_picture()

bool google_oauth2_api::Userinfo::has_picture ( ) const
inline

Determine if the 'picture' attribute was set.

Returns
true if the 'picture' attribute was set.

◆ has_verified_email()

bool google_oauth2_api::Userinfo::has_verified_email ( ) const
inline

Determine if the 'verified_email' attribute was set.

Returns
true if the 'verified_email' attribute was set.

◆ New()

Userinfo * google_oauth2_api::Userinfo::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_email()

void google_oauth2_api::Userinfo::set_email ( const StringPiece &  value)
inline

Change the 'email' attribute.

The user's email address.

Parameters
[in]valueThe new value.

◆ set_family_name()

void google_oauth2_api::Userinfo::set_family_name ( const StringPiece &  value)
inline

Change the 'family_name' attribute.

The user's last name.

Parameters
[in]valueThe new value.

◆ set_gender()

void google_oauth2_api::Userinfo::set_gender ( const StringPiece &  value)
inline

Change the 'gender' attribute.

The user's gender.

Parameters
[in]valueThe new value.

◆ set_given_name()

void google_oauth2_api::Userinfo::set_given_name ( const StringPiece &  value)
inline

Change the 'given_name' attribute.

The user's first name.

Parameters
[in]valueThe new value.

◆ set_hd()

void google_oauth2_api::Userinfo::set_hd ( const StringPiece &  value)
inline

Change the 'hd' attribute.

The hosted domain e.g. example.com if the user is Google apps user.

Parameters
[in]valueThe new value.

◆ set_id()

void google_oauth2_api::Userinfo::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

The obfuscated ID of the user.

Parameters
[in]valueThe new value.

◆ set_link()

void google_oauth2_api::Userinfo::set_link ( const StringPiece &  value)
inline

Change the 'link' attribute.

URL of the profile page.

Parameters
[in]valueThe new value.

◆ set_locale()

void google_oauth2_api::Userinfo::set_locale ( const StringPiece &  value)
inline

Change the 'locale' attribute.

The user's preferred locale.

Parameters
[in]valueThe new value.

◆ set_name()

void google_oauth2_api::Userinfo::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

The user's full name.

Parameters
[in]valueThe new value.

◆ set_picture()

void google_oauth2_api::Userinfo::set_picture ( const StringPiece &  value)
inline

Change the 'picture' attribute.

URL of the user's picture image.

Parameters
[in]valueThe new value.

◆ set_verified_email()

void google_oauth2_api::Userinfo::set_verified_email ( bool  value)
inline

Change the 'verified_email' attribute.

Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address.

Parameters
[in]valueThe new value.

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