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

#include <video_content_details_region_restriction.h>

Inheritance diagram for google_youtube_api::VideoContentDetailsRegionRestriction:

Public Member Functions

 VideoContentDetailsRegionRestriction (const Json::Value &storage)
 
 VideoContentDetailsRegionRestriction (Json::Value *storage)
 
virtual ~VideoContentDetailsRegionRestriction ()
 
const StringPiece GetTypeName () const
 
bool has_allowed () const
 
void clear_allowed ()
 
const client::JsonCppArray< string > get_allowed () const
 
client::JsonCppArray< string > mutable_allowed ()
 
bool has_blocked () const
 
void clear_blocked ()
 
const client::JsonCppArray< string > get_blocked () const
 
client::JsonCppArray< string > mutable_blocked ()
 

Static Public Member Functions

static VideoContentDetailsRegionRestrictionNew ()
 

Detailed Description

DEPRECATED Region restriction of the video.

Constructor & Destructor Documentation

◆ VideoContentDetailsRegionRestriction() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ VideoContentDetailsRegionRestriction() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~VideoContentDetailsRegionRestriction()

google_youtube_api::VideoContentDetailsRegionRestriction::~VideoContentDetailsRegionRestriction ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_allowed()

void google_youtube_api::VideoContentDetailsRegionRestriction::clear_allowed ( )
inline

Clears the 'allowed' attribute.

◆ clear_blocked()

void google_youtube_api::VideoContentDetailsRegionRestriction::clear_blocked ( )
inline

Clears the 'blocked' attribute.

◆ get_allowed()

const client::JsonCppArray<string > google_youtube_api::VideoContentDetailsRegionRestriction::get_allowed ( ) const
inline

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

◆ get_blocked()

const client::JsonCppArray<string > google_youtube_api::VideoContentDetailsRegionRestriction::get_blocked ( ) const
inline

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_youtube_api::VideoContentDetailsRegionRestriction

◆ has_allowed()

bool google_youtube_api::VideoContentDetailsRegionRestriction::has_allowed ( ) const
inline

Determine if the 'allowed' attribute was set.

Returns
true if the 'allowed' attribute was set.

◆ has_blocked()

bool google_youtube_api::VideoContentDetailsRegionRestriction::has_blocked ( ) const
inline

Determine if the 'blocked' attribute was set.

Returns
true if the 'blocked' attribute was set.

◆ mutable_allowed()

client::JsonCppArray<string > google_youtube_api::VideoContentDetailsRegionRestriction::mutable_allowed ( )
inline

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

A list of region codes that identify countries where the video is viewable. If this property is present and a country is not listed in its value, then the video is blocked from appearing in that country. If this property is present and contains an empty list, the video is blocked in all countries.

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

◆ mutable_blocked()

client::JsonCppArray<string > google_youtube_api::VideoContentDetailsRegionRestriction::mutable_blocked ( )
inline

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

A list of region codes that identify countries where the video is blocked. If this property is present and a country is not listed in its value, then the video is viewable in that country. If this property is present and contains an empty list, the video is viewable in all countries.

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

◆ New()

VideoContentDetailsRegionRestriction * google_youtube_api::VideoContentDetailsRegionRestriction::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

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