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

#include <channel_snippet.h>

Inheritance diagram for google_youtube_api::ChannelSnippet:

Public Member Functions

 ChannelSnippet (const Json::Value &storage)
 
 ChannelSnippet (Json::Value *storage)
 
virtual ~ChannelSnippet ()
 
const StringPiece GetTypeName () const
 
bool has_country () const
 
void clear_country ()
 
const StringPiece get_country () const
 
void set_country (const StringPiece &value)
 
bool has_custom_url () const
 
void clear_custom_url ()
 
const StringPiece get_custom_url () const
 
void set_custom_url (const StringPiece &value)
 
bool has_default_language () const
 
void clear_default_language ()
 
const StringPiece get_default_language () const
 
void set_default_language (const StringPiece &value)
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_localized () const
 
void clear_localized ()
 
const ChannelLocalization get_localized () const
 
ChannelLocalization mutable_localized ()
 
bool has_published_at () const
 
void clear_published_at ()
 
client::DateTime get_published_at () const
 
void set_published_at (client::DateTime value)
 
bool has_thumbnails () const
 
void clear_thumbnails ()
 
const ThumbnailDetails get_thumbnails () const
 
ThumbnailDetails mutable_thumbnails ()
 
bool has_title () const
 
void clear_title ()
 
const StringPiece get_title () const
 
void set_title (const StringPiece &value)
 

Static Public Member Functions

static ChannelSnippetNew ()
 

Detailed Description

Basic details about a channel, including title, description and thumbnails.

Constructor & Destructor Documentation

◆ ChannelSnippet() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ ChannelSnippet() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~ChannelSnippet()

google_youtube_api::ChannelSnippet::~ChannelSnippet ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_country()

void google_youtube_api::ChannelSnippet::clear_country ( )
inline

Clears the 'country' attribute.

◆ clear_custom_url()

void google_youtube_api::ChannelSnippet::clear_custom_url ( )
inline

Clears the 'customUrl' attribute.

◆ clear_default_language()

void google_youtube_api::ChannelSnippet::clear_default_language ( )
inline

Clears the 'defaultLanguage' attribute.

◆ clear_description()

void google_youtube_api::ChannelSnippet::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_localized()

void google_youtube_api::ChannelSnippet::clear_localized ( )
inline

Clears the 'localized' attribute.

◆ clear_published_at()

void google_youtube_api::ChannelSnippet::clear_published_at ( )
inline

Clears the 'publishedAt' attribute.

◆ clear_thumbnails()

void google_youtube_api::ChannelSnippet::clear_thumbnails ( )
inline

Clears the 'thumbnails' attribute.

◆ clear_title()

void google_youtube_api::ChannelSnippet::clear_title ( )
inline

Clears the 'title' attribute.

◆ get_country()

const StringPiece google_youtube_api::ChannelSnippet::get_country ( ) const
inline

Get the value of the 'country' attribute.

◆ get_custom_url()

const StringPiece google_youtube_api::ChannelSnippet::get_custom_url ( ) const
inline

Get the value of the 'customUrl' attribute.

◆ get_default_language()

const StringPiece google_youtube_api::ChannelSnippet::get_default_language ( ) const
inline

Get the value of the 'defaultLanguage' attribute.

◆ get_description()

const StringPiece google_youtube_api::ChannelSnippet::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_localized()

const ChannelLocalization google_youtube_api::ChannelSnippet::get_localized ( ) const

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

◆ get_published_at()

client::DateTime google_youtube_api::ChannelSnippet::get_published_at ( ) const
inline

Get the value of the 'publishedAt' attribute.

◆ get_thumbnails()

const ThumbnailDetails google_youtube_api::ChannelSnippet::get_thumbnails ( ) const

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

◆ get_title()

const StringPiece google_youtube_api::ChannelSnippet::get_title ( ) const
inline

Get the value of the 'title' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_youtube_api::ChannelSnippet

◆ has_country()

bool google_youtube_api::ChannelSnippet::has_country ( ) const
inline

Determine if the 'country' attribute was set.

Returns
true if the 'country' attribute was set.

◆ has_custom_url()

bool google_youtube_api::ChannelSnippet::has_custom_url ( ) const
inline

Determine if the 'customUrl' attribute was set.

Returns
true if the 'customUrl' attribute was set.

◆ has_default_language()

bool google_youtube_api::ChannelSnippet::has_default_language ( ) const
inline

Determine if the 'defaultLanguage' attribute was set.

Returns
true if the 'defaultLanguage' attribute was set.

◆ has_description()

bool google_youtube_api::ChannelSnippet::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_localized()

bool google_youtube_api::ChannelSnippet::has_localized ( ) const
inline

Determine if the 'localized' attribute was set.

Returns
true if the 'localized' attribute was set.

◆ has_published_at()

bool google_youtube_api::ChannelSnippet::has_published_at ( ) const
inline

Determine if the 'publishedAt' attribute was set.

Returns
true if the 'publishedAt' attribute was set.

◆ has_thumbnails()

bool google_youtube_api::ChannelSnippet::has_thumbnails ( ) const
inline

Determine if the 'thumbnails' attribute was set.

Returns
true if the 'thumbnails' attribute was set.

◆ has_title()

bool google_youtube_api::ChannelSnippet::has_title ( ) const
inline

Determine if the 'title' attribute was set.

Returns
true if the 'title' attribute was set.

◆ mutable_localized()

ChannelLocalization google_youtube_api::ChannelSnippet::mutable_localized ( )

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

Localized title and description, read-only.

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

◆ mutable_thumbnails()

ThumbnailDetails google_youtube_api::ChannelSnippet::mutable_thumbnails ( )

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

A map of thumbnail images associated with the channel. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.

When displaying thumbnails in your application, make sure that your code uses the image URLs exactly as they are returned in API responses. For example, your application should not use the http domain instead of the https domain in a URL returned in an API response.

Beginning in July 2018, channel thumbnail URLs will only be available in the https domain, which is how the URLs appear in API responses. After that time, you might see broken images in your application if it tries to load YouTube images from the http domain.

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

◆ New()

ChannelSnippet * google_youtube_api::ChannelSnippet::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_country()

void google_youtube_api::ChannelSnippet::set_country ( const StringPiece &  value)
inline

Change the 'country' attribute.

The country of the channel.

Parameters
[in]valueThe new value.

◆ set_custom_url()

void google_youtube_api::ChannelSnippet::set_custom_url ( const StringPiece &  value)
inline

Change the 'customUrl' attribute.

The custom url of the channel.

Parameters
[in]valueThe new value.

◆ set_default_language()

void google_youtube_api::ChannelSnippet::set_default_language ( const StringPiece &  value)
inline

Change the 'defaultLanguage' attribute.

The language of the channel's default title and description.

Parameters
[in]valueThe new value.

◆ set_description()

void google_youtube_api::ChannelSnippet::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

The description of the channel.

Parameters
[in]valueThe new value.

◆ set_published_at()

void google_youtube_api::ChannelSnippet::set_published_at ( client::DateTime  value)
inline

Change the 'publishedAt' attribute.

The date and time that the channel was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.

Parameters
[in]valueThe new value.

◆ set_title()

void google_youtube_api::ChannelSnippet::set_title ( const StringPiece &  value)
inline

Change the 'title' attribute.

The channel's title.

Parameters
[in]valueThe new value.

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