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

#include <resource_id.h>

Inheritance diagram for google_youtube_api::ResourceId:

Public Member Functions

 ResourceId (const Json::Value &storage)
 
 ResourceId (Json::Value *storage)
 
virtual ~ResourceId ()
 
const StringPiece GetTypeName () const
 
bool has_channel_id () const
 
void clear_channel_id ()
 
const StringPiece get_channel_id () const
 
void set_channel_id (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_playlist_id () const
 
void clear_playlist_id ()
 
const StringPiece get_playlist_id () const
 
void set_playlist_id (const StringPiece &value)
 
bool has_video_id () const
 
void clear_video_id ()
 
const StringPiece get_video_id () const
 
void set_video_id (const StringPiece &value)
 

Static Public Member Functions

static ResourceIdNew ()
 

Detailed Description

A resource id is a generic reference that points to another YouTube resource.

Constructor & Destructor Documentation

◆ ResourceId() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ ResourceId() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~ResourceId()

google_youtube_api::ResourceId::~ResourceId ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_channel_id()

void google_youtube_api::ResourceId::clear_channel_id ( )
inline

Clears the 'channelId' attribute.

◆ clear_kind()

void google_youtube_api::ResourceId::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_playlist_id()

void google_youtube_api::ResourceId::clear_playlist_id ( )
inline

Clears the 'playlistId' attribute.

◆ clear_video_id()

void google_youtube_api::ResourceId::clear_video_id ( )
inline

Clears the 'videoId' attribute.

◆ get_channel_id()

const StringPiece google_youtube_api::ResourceId::get_channel_id ( ) const
inline

Get the value of the 'channelId' attribute.

◆ get_kind()

const StringPiece google_youtube_api::ResourceId::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_playlist_id()

const StringPiece google_youtube_api::ResourceId::get_playlist_id ( ) const
inline

Get the value of the 'playlistId' attribute.

◆ get_video_id()

const StringPiece google_youtube_api::ResourceId::get_video_id ( ) const
inline

Get the value of the 'videoId' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_youtube_api::ResourceId

◆ has_channel_id()

bool google_youtube_api::ResourceId::has_channel_id ( ) const
inline

Determine if the 'channelId' attribute was set.

Returns
true if the 'channelId' attribute was set.

◆ has_kind()

bool google_youtube_api::ResourceId::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_playlist_id()

bool google_youtube_api::ResourceId::has_playlist_id ( ) const
inline

Determine if the 'playlistId' attribute was set.

Returns
true if the 'playlistId' attribute was set.

◆ has_video_id()

bool google_youtube_api::ResourceId::has_video_id ( ) const
inline

Determine if the 'videoId' attribute was set.

Returns
true if the 'videoId' attribute was set.

◆ New()

ResourceId * google_youtube_api::ResourceId::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_channel_id()

void google_youtube_api::ResourceId::set_channel_id ( const StringPiece &  value)
inline

Change the 'channelId' attribute.

The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube::channel.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_youtube_api::ResourceId::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

The type of the API resource.

Parameters
[in]valueThe new value.

◆ set_playlist_id()

void google_youtube_api::ResourceId::set_playlist_id ( const StringPiece &  value)
inline

Change the 'playlistId' attribute.

The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube::playlist.

Parameters
[in]valueThe new value.

◆ set_video_id()

void google_youtube_api::ResourceId::set_video_id ( const StringPiece &  value)
inline

Change the 'videoId' attribute.

The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube::video.

Parameters
[in]valueThe new value.

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