#include <promotion.h>
◆ Promotion() [1/2]
| google_customsearch_api::Promotion::Promotion |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ Promotion() [2/2]
| google_customsearch_api::Promotion::Promotion |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ~Promotion()
| google_customsearch_api::Promotion::~Promotion |
( |
| ) |
|
|
virtual |
◆ clear_body_lines()
| void google_customsearch_api::Promotion::clear_body_lines |
( |
| ) |
|
|
inline |
Clears the 'bodyLines' attribute.
◆ clear_display_link()
| void google_customsearch_api::Promotion::clear_display_link |
( |
| ) |
|
|
inline |
Clears the 'displayLink' attribute.
◆ clear_html_title()
| void google_customsearch_api::Promotion::clear_html_title |
( |
| ) |
|
|
inline |
Clears the 'htmlTitle' attribute.
◆ clear_image()
| void google_customsearch_api::Promotion::clear_image |
( |
| ) |
|
|
inline |
Clears the 'image' attribute.
◆ clear_link()
| void google_customsearch_api::Promotion::clear_link |
( |
| ) |
|
|
inline |
Clears the 'link' attribute.
◆ clear_title()
| void google_customsearch_api::Promotion::clear_title |
( |
| ) |
|
|
inline |
Clears the 'title' attribute.
◆ get_body_lines()
| const client::JsonCppArray<PromotionBodyLines > google_customsearch_api::Promotion::get_body_lines |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'bodyLines' attribute.
◆ get_display_link()
| const StringPiece google_customsearch_api::Promotion::get_display_link |
( |
| ) |
const |
|
inline |
Get the value of the 'displayLink' attribute.
◆ get_html_title()
| const StringPiece google_customsearch_api::Promotion::get_html_title |
( |
| ) |
const |
|
inline |
Get the value of the 'htmlTitle' attribute.
◆ get_image()
| const PromotionImage google_customsearch_api::Promotion::get_image |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'image' attribute.
◆ get_link()
| const StringPiece google_customsearch_api::Promotion::get_link |
( |
| ) |
const |
|
inline |
Get the value of the 'link' attribute.
◆ get_title()
| const StringPiece google_customsearch_api::Promotion::get_title |
( |
| ) |
const |
|
inline |
Get the value of the 'title' attribute.
◆ GetTypeName()
| const StringPiece google_customsearch_api::Promotion::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_body_lines()
| bool google_customsearch_api::Promotion::has_body_lines |
( |
| ) |
const |
|
inline |
Determine if the 'bodyLines' attribute was set.
- Returns
- true if the '
bodyLines' attribute was set.
◆ has_display_link()
| bool google_customsearch_api::Promotion::has_display_link |
( |
| ) |
const |
|
inline |
Determine if the 'displayLink' attribute was set.
- Returns
- true if the '
displayLink' attribute was set.
◆ has_html_title()
| bool google_customsearch_api::Promotion::has_html_title |
( |
| ) |
const |
|
inline |
Determine if the 'htmlTitle' attribute was set.
- Returns
- true if the '
htmlTitle' attribute was set.
◆ has_image()
| bool google_customsearch_api::Promotion::has_image |
( |
| ) |
const |
|
inline |
Determine if the 'image' attribute was set.
- Returns
- true if the '
image' attribute was set.
◆ has_link()
| bool google_customsearch_api::Promotion::has_link |
( |
| ) |
const |
|
inline |
Determine if the 'link' attribute was set.
- Returns
- true if the '
link' attribute was set.
◆ has_title()
| bool google_customsearch_api::Promotion::has_title |
( |
| ) |
const |
|
inline |
Determine if the 'title' attribute was set.
- Returns
- true if the '
title' attribute was set.
◆ mutable_bodyLines()
| client::JsonCppArray<PromotionBodyLines > google_customsearch_api::Promotion::mutable_bodyLines |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'bodyLines' property.
An array of block objects for this promotion. See [Google WebSearch Protocol reference](https://developers.google.com/custom-search/docs/xml_results) for more information.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_image()
Gets a reference to a mutable value of the 'image' property.
Image belonging to a promotion.
- Returns
- The result can be modified to change the attribute value.
◆ New()
| Promotion * google_customsearch_api::Promotion::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_display_link()
| void google_customsearch_api::Promotion::set_display_link |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'displayLink' attribute.
An abridged version of this search's result URL, e.g. www.example.com.
- Parameters
-
◆ set_html_title()
| void google_customsearch_api::Promotion::set_html_title |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'htmlTitle' attribute.
The title of the promotion, in HTML.
- Parameters
-
◆ set_link()
| void google_customsearch_api::Promotion::set_link |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'link' attribute.
The URL of the promotion.
- Parameters
-
◆ set_title()
| void google_customsearch_api::Promotion::set_title |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'title' attribute.
The title of the promotion.
- Parameters
-
The documentation for this class was generated from the following files:
- google/customsearch_api/promotion.h
- google/customsearch_api/promotion.cc