#include <language_settings.h>
Language settings for an account. These settings correspond to the "Language
settings" feature in the web interface.
◆ LanguageSettings() [1/2]
google_gmail_api::LanguageSettings::LanguageSettings |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ LanguageSettings() [2/2]
google_gmail_api::LanguageSettings::LanguageSettings |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~LanguageSettings()
google_gmail_api::LanguageSettings::~LanguageSettings |
( |
| ) |
|
|
virtual |
◆ clear_display_language()
void google_gmail_api::LanguageSettings::clear_display_language |
( |
| ) |
|
|
inline |
Clears the 'displayLanguage
' attribute.
◆ get_display_language()
const StringPiece google_gmail_api::LanguageSettings::get_display_language |
( |
| ) |
const |
|
inline |
Get the value of the 'displayLanguage
' attribute.
◆ GetTypeName()
const StringPiece google_gmail_api::LanguageSettings::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_display_language()
bool google_gmail_api::LanguageSettings::has_display_language |
( |
| ) |
const |
|
inline |
Determine if the 'displayLanguage
' attribute was set.
- Returns
- true if the '
displayLanguage
' attribute was set.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_display_language()
void google_gmail_api::LanguageSettings::set_display_language |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'displayLanguage
' attribute.
The language to display Gmail in, formatted as an RFC 3066 Language Tag (for example en-GB, fr or ja for British English, French, or Japanese respectively).
The set of languages supported by Gmail evolves over time, so please refer to the "Language" dropdown in the Gmail settings for all available options, as described in the language settings help article. A table of sample values is also provided in the Managing Language Settings guide
Not all Gmail clients can display the same set of languages. In the case that a user's display language is not available for use on a particular client, said client automatically chooses to display in the closest supported variant (or a reasonable default).
- Parameters
-
The documentation for this class was generated from the following files: