androidenterprise  v1
Public Member Functions | Static Public Member Functions | List of all members
google_androidenterprise_api::LocalizedText Class Reference

#include <localized_text.h>

Inheritance diagram for google_androidenterprise_api::LocalizedText:

Public Member Functions

 LocalizedText (const Json::Value &storage)
 
 LocalizedText (Json::Value *storage)
 
virtual ~LocalizedText ()
 
const StringPiece GetTypeName () const
 
bool has_locale () const
 
void clear_locale ()
 
const StringPiece get_locale () const
 
void set_locale (const StringPiece &value)
 
bool has_text () const
 
void clear_text ()
 
const StringPiece get_text () const
 
void set_text (const StringPiece &value)
 

Static Public Member Functions

static LocalizedTextNew ()
 

Detailed Description

A localized string with its locale.

Constructor & Destructor Documentation

◆ LocalizedText() [1/2]

google_androidenterprise_api::LocalizedText::LocalizedText ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ LocalizedText() [2/2]

google_androidenterprise_api::LocalizedText::LocalizedText ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~LocalizedText()

google_androidenterprise_api::LocalizedText::~LocalizedText ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_locale()

void google_androidenterprise_api::LocalizedText::clear_locale ( )
inline

Clears the 'locale' attribute.

◆ clear_text()

void google_androidenterprise_api::LocalizedText::clear_text ( )
inline

Clears the 'text' attribute.

◆ get_locale()

const StringPiece google_androidenterprise_api::LocalizedText::get_locale ( ) const
inline

Get the value of the 'locale' attribute.

◆ get_text()

const StringPiece google_androidenterprise_api::LocalizedText::get_text ( ) const
inline

Get the value of the 'text' attribute.

◆ GetTypeName()

const StringPiece google_androidenterprise_api::LocalizedText::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::LocalizedText

◆ has_locale()

bool google_androidenterprise_api::LocalizedText::has_locale ( ) const
inline

Determine if the 'locale' attribute was set.

Returns
true if the 'locale' attribute was set.

◆ has_text()

bool google_androidenterprise_api::LocalizedText::has_text ( ) const
inline

Determine if the 'text' attribute was set.

Returns
true if the 'text' attribute was set.

◆ New()

LocalizedText * google_androidenterprise_api::LocalizedText::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_locale()

void google_androidenterprise_api::LocalizedText::set_locale ( const StringPiece &  value)
inline

Change the 'locale' attribute.

The BCP47 tag for a locale. (e.g. "en-US", "de").

Parameters
[in]valueThe new value.

◆ set_text()

void google_androidenterprise_api::LocalizedText::set_text ( const StringPiece &  value)
inline

Change the 'text' attribute.

The text localized in the associated locale.

Parameters
[in]valueThe new value.

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