#include <localized_text.h>
A localized string with its locale.
◆ LocalizedText() [1/2]
| google_androidenterprise_api::LocalizedText::LocalizedText |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The 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] | storage | The underlying data storage for this instance. |
◆ ~LocalizedText()
| google_androidenterprise_api::LocalizedText::~LocalizedText |
( |
| ) |
|
|
virtual |
◆ 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 |
◆ 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
-
◆ 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
-
The documentation for this class was generated from the following files:
- google/androidenterprise_api/localized_text.h
- google/androidenterprise_api/localized_text.cc