target.apidocs.com.google.api.services.androidpublisher.model.DeviceMetadata.html Maven / Gradle / Ivy
DeviceMetadata (Google Play Android Developer API v3-rev20240129-2.0.0)
com.google.api.services.androidpublisher.model
Class DeviceMetadata
- 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.DeviceMetadata
-
public final class DeviceMetadata
extends com.google.api.client.json.GenericJson
Characteristics of the user's device.
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
DeviceMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DeviceMetadata
clone()
String
getCpuMake()
Device CPU make, e.g.
String
getCpuModel()
Device CPU model, e.g.
String
getDeviceClass()
Device class (e.g.
Integer
getGlEsVersion()
OpenGL version
String
getManufacturer()
Device manufacturer (e.g.
String
getNativePlatform()
Comma separated list of native platforms (e.g.
String
getProductName()
Device model name (e.g.
Integer
getRamMb()
Device RAM in Megabytes, e.g.
Integer
getScreenDensityDpi()
Screen density in DPI
Integer
getScreenHeightPx()
Screen height in pixels
Integer
getScreenWidthPx()
Screen width in pixels
DeviceMetadata
set(String fieldName,
Object value)
DeviceMetadata
setCpuMake(String cpuMake)
Device CPU make, e.g.
DeviceMetadata
setCpuModel(String cpuModel)
Device CPU model, e.g.
DeviceMetadata
setDeviceClass(String deviceClass)
Device class (e.g.
DeviceMetadata
setGlEsVersion(Integer glEsVersion)
OpenGL version
DeviceMetadata
setManufacturer(String manufacturer)
Device manufacturer (e.g.
DeviceMetadata
setNativePlatform(String nativePlatform)
Comma separated list of native platforms (e.g.
DeviceMetadata
setProductName(String productName)
Device model name (e.g.
DeviceMetadata
setRamMb(Integer ramMb)
Device RAM in Megabytes, e.g.
DeviceMetadata
setScreenDensityDpi(Integer screenDensityDpi)
Screen density in DPI
DeviceMetadata
setScreenHeightPx(Integer screenHeightPx)
Screen height in pixels
DeviceMetadata
setScreenWidthPx(Integer screenWidthPx)
Screen width in pixels
-
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
-
getCpuMake
public String getCpuMake()
Device CPU make, e.g. "Qualcomm"
- Returns:
- value or
null
for none
-
setCpuMake
public DeviceMetadata setCpuMake(String cpuMake)
Device CPU make, e.g. "Qualcomm"
- Parameters:
cpuMake
- cpuMake or null
for none
-
getCpuModel
public String getCpuModel()
Device CPU model, e.g. "MSM8974"
- Returns:
- value or
null
for none
-
setCpuModel
public DeviceMetadata setCpuModel(String cpuModel)
Device CPU model, e.g. "MSM8974"
- Parameters:
cpuModel
- cpuModel or null
for none
-
getDeviceClass
public String getDeviceClass()
Device class (e.g. tablet)
- Returns:
- value or
null
for none
-
setDeviceClass
public DeviceMetadata setDeviceClass(String deviceClass)
Device class (e.g. tablet)
- Parameters:
deviceClass
- deviceClass or null
for none
-
getGlEsVersion
public Integer getGlEsVersion()
OpenGL version
- Returns:
- value or
null
for none
-
setGlEsVersion
public DeviceMetadata setGlEsVersion(Integer glEsVersion)
OpenGL version
- Parameters:
glEsVersion
- glEsVersion or null
for none
-
getManufacturer
public String getManufacturer()
Device manufacturer (e.g. Motorola)
- Returns:
- value or
null
for none
-
setManufacturer
public DeviceMetadata setManufacturer(String manufacturer)
Device manufacturer (e.g. Motorola)
- Parameters:
manufacturer
- manufacturer or null
for none
-
getNativePlatform
public String getNativePlatform()
Comma separated list of native platforms (e.g. "arm", "arm7")
- Returns:
- value or
null
for none
-
setNativePlatform
public DeviceMetadata setNativePlatform(String nativePlatform)
Comma separated list of native platforms (e.g. "arm", "arm7")
- Parameters:
nativePlatform
- nativePlatform or null
for none
-
getProductName
public String getProductName()
Device model name (e.g. Droid)
- Returns:
- value or
null
for none
-
setProductName
public DeviceMetadata setProductName(String productName)
Device model name (e.g. Droid)
- Parameters:
productName
- productName or null
for none
-
getRamMb
public Integer getRamMb()
Device RAM in Megabytes, e.g. "2048"
- Returns:
- value or
null
for none
-
setRamMb
public DeviceMetadata setRamMb(Integer ramMb)
Device RAM in Megabytes, e.g. "2048"
- Parameters:
ramMb
- ramMb or null
for none
-
getScreenDensityDpi
public Integer getScreenDensityDpi()
Screen density in DPI
- Returns:
- value or
null
for none
-
setScreenDensityDpi
public DeviceMetadata setScreenDensityDpi(Integer screenDensityDpi)
Screen density in DPI
- Parameters:
screenDensityDpi
- screenDensityDpi or null
for none
-
getScreenHeightPx
public Integer getScreenHeightPx()
Screen height in pixels
- Returns:
- value or
null
for none
-
setScreenHeightPx
public DeviceMetadata setScreenHeightPx(Integer screenHeightPx)
Screen height in pixels
- Parameters:
screenHeightPx
- screenHeightPx or null
for none
-
getScreenWidthPx
public Integer getScreenWidthPx()
Screen width in pixels
- Returns:
- value or
null
for none
-
setScreenWidthPx
public DeviceMetadata setScreenWidthPx(Integer screenWidthPx)
Screen width in pixels
- Parameters:
screenWidthPx
- screenWidthPx or null
for none
-
set
public DeviceMetadata set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public DeviceMetadata 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