public final class Token extends 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 Admin SDK API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Token() |
| Modifier and Type | Method and Description |
|---|---|
Token |
clone() |
Boolean |
getAnonymous()
Whether the application is registered with Google.
|
String |
getClientId()
The Client ID of the application the token is issued to.
|
String |
getDisplayText()
The displayable name of the application the token is issued to.
|
String |
getEtag()
ETag of the resource.
|
String |
getKind()
The type of the API resource.
|
Boolean |
getNativeApp()
Whether the token is issued to an installed application.
|
List<String> |
getScopes()
A list of authorization scopes the application is granted.
|
String |
getUserKey()
The unique ID of the user that issued the token.
|
Token |
set(String fieldName,
Object value) |
Token |
setAnonymous(Boolean anonymous)
Whether the application is registered with Google.
|
Token |
setClientId(String clientId)
The Client ID of the application the token is issued to.
|
Token |
setDisplayText(String displayText)
The displayable name of the application the token is issued to.
|
Token |
setEtag(String etag)
ETag of the resource.
|
Token |
setKind(String kind)
The type of the API resource.
|
Token |
setNativeApp(Boolean nativeApp)
Whether the token is issued to an installed application.
|
Token |
setScopes(List<String> scopes)
A list of authorization scopes the application is granted.
|
Token |
setUserKey(String userKey)
The unique ID of the user that issued the token.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getAnonymous()
null for nonepublic Token setAnonymous(Boolean anonymous)
anonymous - anonymous or null for nonepublic String getClientId()
null for nonepublic Token setClientId(String clientId)
clientId - clientId or null for nonepublic String getDisplayText()
null for nonepublic Token setDisplayText(String displayText)
displayText - displayText or null for nonepublic String getEtag()
null for nonepublic Token setEtag(String etag)
etag - etag or null for nonepublic String getKind()
null for nonepublic Token setKind(String kind)
kind - kind or null for nonepublic Boolean getNativeApp()
null for nonepublic Token setNativeApp(Boolean nativeApp)
nativeApp - nativeApp or null for nonepublic List<String> getScopes()
null for nonepublic Token setScopes(List<String> scopes)
scopes - scopes or null for nonepublic String getUserKey()
null for nonepublic Token setUserKey(String userKey)
userKey - userKey or null for nonepublic Token set(String fieldName, Object value)
set in class GenericJsonpublic Token clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.