target.apidocs.com.google.api.services.androidenterprise.model.KeyedAppState.html Maven / Gradle / Ivy
The newest version!
KeyedAppState (Google Play EMM API v1-rev20241113-2.0.0)
com.google.api.services.androidenterprise.model
Class KeyedAppState
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidenterprise.model.KeyedAppState
-
public final class KeyedAppState
extends com.google.api.client.json.GenericJson
Represents a keyed app state containing a key, timestamp, severity level, optional description,
and optional data.
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 EMM 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
KeyedAppState()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
KeyedAppState
clone()
String
getData()
Additional field intended for machine-readable data.
String
getKey()
Key indicating what the app is providing a state for.
String
getMessage()
Free-form, human-readable message describing the app state.
String
getSeverity()
Severity of the app state.
Long
getStateTimestampMillis()
Timestamp of when the app set the state in milliseconds since epoch.
KeyedAppState
set(String fieldName,
Object value)
KeyedAppState
setData(String data)
Additional field intended for machine-readable data.
KeyedAppState
setKey(String key)
Key indicating what the app is providing a state for.
KeyedAppState
setMessage(String message)
Free-form, human-readable message describing the app state.
KeyedAppState
setSeverity(String severity)
Severity of the app state.
KeyedAppState
setStateTimestampMillis(Long stateTimestampMillis)
Timestamp of when the app set the state in milliseconds since epoch.
-
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
-
getData
public String getData()
Additional field intended for machine-readable data. For example, a number or JSON object. To
prevent XSS, we recommend removing any HTML from the data before displaying it.
- Returns:
- value or
null
for none
-
setData
public KeyedAppState setData(String data)
Additional field intended for machine-readable data. For example, a number or JSON object. To
prevent XSS, we recommend removing any HTML from the data before displaying it.
- Parameters:
data
- data or null
for none
-
getKey
public String getKey()
Key indicating what the app is providing a state for. The content of the key is set by the
app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying
it. This field will always be present.
- Returns:
- value or
null
for none
-
setKey
public KeyedAppState setKey(String key)
Key indicating what the app is providing a state for. The content of the key is set by the
app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying
it. This field will always be present.
- Parameters:
key
- key or null
for none
-
getMessage
public String getMessage()
Free-form, human-readable message describing the app state. For example, an error message. To
prevent XSS, we recommend removing any HTML from the message before displaying it.
- Returns:
- value or
null
for none
-
setMessage
public KeyedAppState setMessage(String message)
Free-form, human-readable message describing the app state. For example, an error message. To
prevent XSS, we recommend removing any HTML from the message before displaying it.
- Parameters:
message
- message or null
for none
-
getSeverity
public String getSeverity()
Severity of the app state. This field will always be present.
- Returns:
- value or
null
for none
-
setSeverity
public KeyedAppState setSeverity(String severity)
Severity of the app state. This field will always be present.
- Parameters:
severity
- severity or null
for none
-
getStateTimestampMillis
public Long getStateTimestampMillis()
Timestamp of when the app set the state in milliseconds since epoch. This field will always be
present.
- Returns:
- value or
null
for none
-
setStateTimestampMillis
public KeyedAppState setStateTimestampMillis(Long stateTimestampMillis)
Timestamp of when the app set the state in milliseconds since epoch. This field will always be
present.
- Parameters:
stateTimestampMillis
- stateTimestampMillis or null
for none
-
set
public KeyedAppState set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public KeyedAppState 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