public final class CountryTargeting
extends com.google.api.client.json.GenericJson
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 Google Play Android Developer API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CountryTargeting() |
Modifier and Type | Method and Description |
---|---|
CountryTargeting |
clone() |
List<String> |
getCountries()
Countries to target, specified as two letter [CLDR
codes](https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html).
|
Boolean |
getIncludeRestOfWorld()
Include "rest of world" as well as explicitly targeted countries.
|
CountryTargeting |
set(String fieldName,
Object value) |
CountryTargeting |
setCountries(List<String> countries)
Countries to target, specified as two letter [CLDR
codes](https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html).
|
CountryTargeting |
setIncludeRestOfWorld(Boolean includeRestOfWorld)
Include "rest of world" as well as explicitly targeted countries.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<String> getCountries()
null
for nonepublic CountryTargeting setCountries(List<String> countries)
countries
- countries or null
for nonepublic Boolean getIncludeRestOfWorld()
null
for nonepublic CountryTargeting setIncludeRestOfWorld(Boolean includeRestOfWorld)
includeRestOfWorld
- includeRestOfWorld or null
for nonepublic CountryTargeting set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public CountryTargeting clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.