#include <sponsor_snippet.h>
◆ SponsorSnippet() [1/2]
google_youtube_api::SponsorSnippet::SponsorSnippet |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The 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] | storage | The underlying data storage for this instance. |
◆ ~SponsorSnippet()
google_youtube_api::SponsorSnippet::~SponsorSnippet |
( |
| ) |
|
|
virtual |
◆ 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()
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 |
◆ 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()
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()
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
-
◆ 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
-
◆ 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
-
The documentation for this class was generated from the following files: