youtube  v3
Public Member Functions | Static Public Member Functions | List of all members
google_youtube_api::VideoAgeGating Class Reference

#include <video_age_gating.h>

Inheritance diagram for google_youtube_api::VideoAgeGating:

Public Member Functions

 VideoAgeGating (const Json::Value &storage)
 
 VideoAgeGating (Json::Value *storage)
 
virtual ~VideoAgeGating ()
 
const StringPiece GetTypeName () const
 
bool has_alcohol_content () const
 
void clear_alcohol_content ()
 
bool get_alcohol_content () const
 
void set_alcohol_content (bool value)
 
bool has_restricted () const
 
void clear_restricted ()
 
bool get_restricted () const
 
void set_restricted (bool value)
 
bool has_video_game_rating () const
 
void clear_video_game_rating ()
 
const StringPiece get_video_game_rating () const
 
void set_video_game_rating (const StringPiece &value)
 

Static Public Member Functions

static VideoAgeGatingNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ VideoAgeGating() [1/2]

google_youtube_api::VideoAgeGating::VideoAgeGating ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ VideoAgeGating() [2/2]

google_youtube_api::VideoAgeGating::VideoAgeGating ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~VideoAgeGating()

google_youtube_api::VideoAgeGating::~VideoAgeGating ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_alcohol_content()

void google_youtube_api::VideoAgeGating::clear_alcohol_content ( )
inline

Clears the 'alcoholContent' attribute.

◆ clear_restricted()

void google_youtube_api::VideoAgeGating::clear_restricted ( )
inline

Clears the 'restricted' attribute.

◆ clear_video_game_rating()

void google_youtube_api::VideoAgeGating::clear_video_game_rating ( )
inline

Clears the 'videoGameRating' attribute.

◆ get_alcohol_content()

bool google_youtube_api::VideoAgeGating::get_alcohol_content ( ) const
inline

Get the value of the 'alcoholContent' attribute.

◆ get_restricted()

bool google_youtube_api::VideoAgeGating::get_restricted ( ) const
inline

Get the value of the 'restricted' attribute.

◆ get_video_game_rating()

const StringPiece google_youtube_api::VideoAgeGating::get_video_game_rating ( ) const
inline

Get the value of the 'videoGameRating' attribute.

◆ GetTypeName()

const StringPiece google_youtube_api::VideoAgeGating::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_youtube_api::VideoAgeGating

◆ has_alcohol_content()

bool google_youtube_api::VideoAgeGating::has_alcohol_content ( ) const
inline

Determine if the 'alcoholContent' attribute was set.

Returns
true if the 'alcoholContent' attribute was set.

◆ has_restricted()

bool google_youtube_api::VideoAgeGating::has_restricted ( ) const
inline

Determine if the 'restricted' attribute was set.

Returns
true if the 'restricted' attribute was set.

◆ has_video_game_rating()

bool google_youtube_api::VideoAgeGating::has_video_game_rating ( ) const
inline

Determine if the 'videoGameRating' attribute was set.

Returns
true if the 'videoGameRating' attribute was set.

◆ New()

VideoAgeGating * google_youtube_api::VideoAgeGating::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_alcohol_content()

void google_youtube_api::VideoAgeGating::set_alcohol_content ( bool  value)
inline

Change the 'alcoholContent' attribute.

Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content.

Parameters
[in]valueThe new value.

◆ set_restricted()

void google_youtube_api::VideoAgeGating::set_restricted ( bool  value)
inline

Change the 'restricted' attribute.

Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present.

Parameters
[in]valueThe new value.

◆ set_video_game_rating()

void google_youtube_api::VideoAgeGating::set_video_game_rating ( const StringPiece &  value)
inline

Change the 'videoGameRating' attribute.

Video game rating, if any.

Parameters
[in]valueThe new value.

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