target.apidocs.com.google.api.services.androidpublisher.model.DeviceTier.html Maven / Gradle / Ivy
DeviceTier (Google Play Android Developer API v3-rev20240129-2.0.0)
com.google.api.services.androidpublisher.model
Class DeviceTier
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidpublisher.model.DeviceTier
-
public final class DeviceTier
extends com.google.api.client.json.GenericJson
A single device tier. Devices matching any of the device groups in device_group_names are
considered to match the tier.
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
- 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
DeviceTier()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DeviceTier
clone()
List<String>
getDeviceGroupNames()
Groups of devices included in this tier.
Integer
getLevel()
The priority level of the tier.
DeviceTier
set(String fieldName,
Object value)
DeviceTier
setDeviceGroupNames(List<String> deviceGroupNames)
Groups of devices included in this tier.
DeviceTier
setLevel(Integer level)
The priority level of the tier.
-
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
-
getDeviceGroupNames
public List<String> getDeviceGroupNames()
Groups of devices included in this tier. These groups must be defined explicitly under
device_groups in this configuration.
- Returns:
- value or
null
for none
-
setDeviceGroupNames
public DeviceTier setDeviceGroupNames(List<String> deviceGroupNames)
Groups of devices included in this tier. These groups must be defined explicitly under
device_groups in this configuration.
- Parameters:
deviceGroupNames
- deviceGroupNames or null
for none
-
getLevel
public Integer getLevel()
The priority level of the tier. Tiers are evaluated in descending order of level: the highest
level tier has the highest priority. The highest tier matching a given device is selected for
that device. You should use a contiguous range of levels for your tiers in a tier set; tier
levels in a tier set must be unique. For instance, if your tier set has 4 tiers (including the
global fallback), you should define tiers 1, 2 and 3 in this configuration. Note: tier 0 is
implicitly defined as a global fallback and selected for devices that don't match any of the
tiers explicitly defined here. You mustn't define level 0 explicitly in this configuration.
- Returns:
- value or
null
for none
-
setLevel
public DeviceTier setLevel(Integer level)
The priority level of the tier. Tiers are evaluated in descending order of level: the highest
level tier has the highest priority. The highest tier matching a given device is selected for
that device. You should use a contiguous range of levels for your tiers in a tier set; tier
levels in a tier set must be unique. For instance, if your tier set has 4 tiers (including the
global fallback), you should define tiers 1, 2 and 3 in this configuration. Note: tier 0 is
implicitly defined as a global fallback and selected for devices that don't match any of the
tiers explicitly defined here. You mustn't define level 0 explicitly in this configuration.
- Parameters:
level
- level or null
for none
-
set
public DeviceTier set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public DeviceTier 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