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

#include <sponsor_snippet.h>

Inheritance diagram for google_youtube_api::SponsorSnippet:

Public Member Functions

 SponsorSnippet (const Json::Value &storage)
 
 SponsorSnippet (Json::Value *storage)
 
virtual ~SponsorSnippet ()
 
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_cumulative_duration_months () const
 
void clear_cumulative_duration_months ()
 
int32 get_cumulative_duration_months () const
 
void set_cumulative_duration_months (int32 value)
 
bool has_sponsor_details () const
 
void clear_sponsor_details ()
 
const ChannelProfileDetails get_sponsor_details () const
 
ChannelProfileDetails mutable_sponsorDetails ()
 
bool has_sponsor_since () const
 
void clear_sponsor_since ()
 
client::DateTime get_sponsor_since () const
 
void set_sponsor_since (client::DateTime value)
 

Static Public Member Functions

static SponsorSnippetNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ SponsorSnippet() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ SponsorSnippet() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~SponsorSnippet()

google_youtube_api::SponsorSnippet::~SponsorSnippet ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_channel_id()

void google_youtube_api::SponsorSnippet::clear_channel_id ( )
inline

Clears the 'channelId' attribute.

◆ clear_cumulative_duration_months()

void google_youtube_api::SponsorSnippet::clear_cumulative_duration_months ( )
inline

Clears the 'cumulativeDurationMonths' attribute.

◆ clear_sponsor_details()

void google_youtube_api::SponsorSnippet::clear_sponsor_details ( )
inline

Clears the 'sponsorDetails' attribute.

◆ clear_sponsor_since()

void google_youtube_api::SponsorSnippet::clear_sponsor_since ( )
inline

Clears the 'sponsorSince' attribute.

◆ get_channel_id()

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

Get the value of the 'channelId' attribute.

◆ get_cumulative_duration_months()

int32 google_youtube_api::SponsorSnippet::get_cumulative_duration_months ( ) const
inline

Get the value of the 'cumulativeDurationMonths' attribute.

◆ get_sponsor_details()

const ChannelProfileDetails google_youtube_api::SponsorSnippet::get_sponsor_details ( ) const

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

◆ get_sponsor_since()

client::DateTime google_youtube_api::SponsorSnippet::get_sponsor_since ( ) const
inline

Get the value of the 'sponsorSince' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_youtube_api::SponsorSnippet

◆ has_channel_id()

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

Determine if the 'channelId' attribute was set.

Returns
true if the 'channelId' attribute was set.

◆ has_cumulative_duration_months()

bool google_youtube_api::SponsorSnippet::has_cumulative_duration_months ( ) const
inline

Determine if the 'cumulativeDurationMonths' attribute was set.

Returns
true if the 'cumulativeDurationMonths' attribute was set.

◆ has_sponsor_details()

bool google_youtube_api::SponsorSnippet::has_sponsor_details ( ) const
inline

Determine if the 'sponsorDetails' attribute was set.

Returns
true if the 'sponsorDetails' attribute was set.

◆ has_sponsor_since()

bool google_youtube_api::SponsorSnippet::has_sponsor_since ( ) const
inline

Determine if the 'sponsorSince' attribute was set.

Returns
true if the 'sponsorSince' attribute was set.

◆ mutable_sponsorDetails()

ChannelProfileDetails google_youtube_api::SponsorSnippet::mutable_sponsorDetails ( )

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

Details about the sponsor.

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

◆ New()

SponsorSnippet * google_youtube_api::SponsorSnippet::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_channel_id()

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

Change the 'channelId' attribute.

The id of the channel being sponsored.

Parameters
[in]valueThe new value.

◆ set_cumulative_duration_months()

void google_youtube_api::SponsorSnippet::set_cumulative_duration_months ( int32  value)
inline

Change the 'cumulativeDurationMonths' attribute.

The cumulative time a user has been a sponsor in months.

Parameters
[in]valueThe new value.

◆ set_sponsor_since()

void google_youtube_api::SponsorSnippet::set_sponsor_since ( client::DateTime  value)
inline

Change the 'sponsorSince' attribute.

The date and time when the user became a sponsor. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.

Parameters
[in]valueThe new value.

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