customsearch  v1
Public Member Functions | Static Public Member Functions | List of all members
google_customsearch_api::Promotion::PromotionImage Class Reference

#include <promotion.h>

Inheritance diagram for google_customsearch_api::Promotion::PromotionImage:

Public Member Functions

 PromotionImage (const Json::Value &storage)
 
 PromotionImage (Json::Value *storage)
 
virtual ~PromotionImage ()
 
const StringPiece GetTypeName () const
 
bool has_height () const
 
void clear_height ()
 
int32 get_height () const
 
void set_height (int32 value)
 
bool has_source () const
 
void clear_source ()
 
const StringPiece get_source () const
 
void set_source (const StringPiece &value)
 
bool has_width () const
 
void clear_width ()
 
int32 get_width () const
 
void set_width (int32 value)
 

Static Public Member Functions

static PromotionImageNew ()
 

Detailed Description

Image belonging to a promotion.

Constructor & Destructor Documentation

◆ PromotionImage() [1/2]

google_customsearch_api::Promotion::PromotionImage::PromotionImage ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ PromotionImage() [2/2]

google_customsearch_api::Promotion::PromotionImage::PromotionImage ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~PromotionImage()

google_customsearch_api::Promotion::PromotionImage::~PromotionImage ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_height()

void google_customsearch_api::Promotion::PromotionImage::clear_height ( )
inline

Clears the 'height' attribute.

◆ clear_source()

void google_customsearch_api::Promotion::PromotionImage::clear_source ( )
inline

Clears the 'source' attribute.

◆ clear_width()

void google_customsearch_api::Promotion::PromotionImage::clear_width ( )
inline

Clears the 'width' attribute.

◆ get_height()

int32 google_customsearch_api::Promotion::PromotionImage::get_height ( ) const
inline

Get the value of the 'height' attribute.

◆ get_source()

const StringPiece google_customsearch_api::Promotion::PromotionImage::get_source ( ) const
inline

Get the value of the 'source' attribute.

◆ get_width()

int32 google_customsearch_api::Promotion::PromotionImage::get_width ( ) const
inline

Get the value of the 'width' attribute.

◆ GetTypeName()

const StringPiece google_customsearch_api::Promotion::PromotionImage::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_customsearch_api::PromotionImage

◆ has_height()

bool google_customsearch_api::Promotion::PromotionImage::has_height ( ) const
inline

Determine if the 'height' attribute was set.

Returns
true if the 'height' attribute was set.

◆ has_source()

bool google_customsearch_api::Promotion::PromotionImage::has_source ( ) const
inline

Determine if the 'source' attribute was set.

Returns
true if the 'source' attribute was set.

◆ has_width()

bool google_customsearch_api::Promotion::PromotionImage::has_width ( ) const
inline

Determine if the 'width' attribute was set.

Returns
true if the 'width' attribute was set.

◆ New()

Promotion::PromotionImage * google_customsearch_api::Promotion::PromotionImage::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_height()

void google_customsearch_api::Promotion::PromotionImage::set_height ( int32  value)
inline

Change the 'height' attribute.

Image height in pixels.

Parameters
[in]valueThe new value.

◆ set_source()

void google_customsearch_api::Promotion::PromotionImage::set_source ( const StringPiece &  value)
inline

Change the 'source' attribute.

URL of the image for this promotion link.

Parameters
[in]valueThe new value.

◆ set_width()

void google_customsearch_api::Promotion::PromotionImage::set_width ( int32  value)
inline

Change the 'width' attribute.

Image width in pixels.

Parameters
[in]valueThe new value.

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