target.apidocs.com.google.api.services.testing.model.Locale.html Maven / Gradle / Ivy
Locale (Cloud Testing API v1-rev20241105-2.0.0)
com.google.api.services.testing.model
Class Locale
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.testing.model.Locale
-
public final class Locale
extends com.google.api.client.json.GenericJson
A location/region designation for language.
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 Cloud Testing 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
Locale()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Locale
clone()
String
getId()
The id for this locale.
String
getName()
A human-friendly name for this language/locale.
String
getRegion()
A human-friendly string representing the region for this locale.
List<String>
getTags()
Tags for this dimension.
Locale
set(String fieldName,
Object value)
Locale
setId(String id)
The id for this locale.
Locale
setName(String name)
A human-friendly name for this language/locale.
Locale
setRegion(String region)
A human-friendly string representing the region for this locale.
Locale
setTags(List<String> tags)
Tags for this dimension.
-
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
-
getId
public String getId()
The id for this locale. Example: "en_US".
- Returns:
- value or
null
for none
-
setId
public Locale setId(String id)
The id for this locale. Example: "en_US".
- Parameters:
id
- id or null
for none
-
getName
public String getName()
A human-friendly name for this language/locale. Example: "English".
- Returns:
- value or
null
for none
-
setName
public Locale setName(String name)
A human-friendly name for this language/locale. Example: "English".
- Parameters:
name
- name or null
for none
-
getRegion
public String getRegion()
A human-friendly string representing the region for this locale. Example: "United States". Not
present for every locale.
- Returns:
- value or
null
for none
-
setRegion
public Locale setRegion(String region)
A human-friendly string representing the region for this locale. Example: "United States". Not
present for every locale.
- Parameters:
region
- region or null
for none
-
getTags
public List<String> getTags()
Tags for this dimension. Example: "default".
- Returns:
- value or
null
for none
-
setTags
public Locale setTags(List<String> tags)
Tags for this dimension. Example: "default".
- Parameters:
tags
- tags or null
for none
-
set
public Locale set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Locale clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy