target.apidocs.com.google.api.services.gmail.model.LanguageSettings.html Maven / Gradle / Ivy
LanguageSettings (Gmail API v1-rev20240422-2.0.0)
com.google.api.services.gmail.model
Class LanguageSettings
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.gmail.model.LanguageSettings
-
public final class LanguageSettings
extends com.google.api.client.json.GenericJson
Language settings for an account. These settings correspond to the "Language settings" feature in
the web interface.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Gmail API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
LanguageSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
LanguageSettings
clone()
String
getDisplayLanguage()
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).
LanguageSettings
set(String fieldName,
Object value)
LanguageSettings
setDisplayLanguage(String displayLanguage)
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).
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getDisplayLanguage
public String getDisplayLanguage()
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).
- Returns:
- value or
null
for none
-
setDisplayLanguage
public LanguageSettings setDisplayLanguage(String displayLanguage)
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:
displayLanguage
- displayLanguage or null
for none
-
set
public LanguageSettings set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public LanguageSettings clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy