target.apidocs.com.google.api.services.directory.model.Token.html Maven / Gradle / Ivy
Token (Admin SDK API directory_v1-rev20220606-1.32.1)
com.google.api.services.directory.model
Class Token
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.directory.model.Token
-
public final class Token
extends GenericJson
JSON template for token resource in Directory API.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
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
Token()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
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
-
getAnonymous
public Boolean getAnonymous()
Whether the application is registered with Google. The value is `true` if the application has
an anonymous Client ID.
- Returns:
- value or
null
for none
-
setAnonymous
public Token setAnonymous(Boolean anonymous)
Whether the application is registered with Google. The value is `true` if the application has
an anonymous Client ID.
- Parameters:
anonymous
- anonymous or null
for none
-
getClientId
public String getClientId()
The Client ID of the application the token is issued to.
- Returns:
- value or
null
for none
-
setClientId
public Token setClientId(String clientId)
The Client ID of the application the token is issued to.
- Parameters:
clientId
- clientId or null
for none
-
getDisplayText
public String getDisplayText()
The displayable name of the application the token is issued to.
- Returns:
- value or
null
for none
-
setDisplayText
public Token setDisplayText(String displayText)
The displayable name of the application the token is issued to.
- Parameters:
displayText
- displayText or null
for none
-
getEtag
public String getEtag()
ETag of the resource.
- Returns:
- value or
null
for none
-
setEtag
public Token setEtag(String etag)
ETag of the resource.
- Parameters:
etag
- etag or null
for none
-
getKind
public String getKind()
The type of the API resource. This is always `admin#directory#token`.
- Returns:
- value or
null
for none
-
setKind
public Token setKind(String kind)
The type of the API resource. This is always `admin#directory#token`.
- Parameters:
kind
- kind or null
for none
-
getNativeApp
public Boolean getNativeApp()
Whether the token is issued to an installed application. The value is `true` if the application
is installed to a desktop or mobile device.
- Returns:
- value or
null
for none
-
setNativeApp
public Token setNativeApp(Boolean nativeApp)
Whether the token is issued to an installed application. The value is `true` if the application
is installed to a desktop or mobile device.
- Parameters:
nativeApp
- nativeApp or null
for none
-
getScopes
public List<String> getScopes()
A list of authorization scopes the application is granted.
- Returns:
- value or
null
for none
-
setScopes
public Token setScopes(List<String> scopes)
A list of authorization scopes the application is granted.
- Parameters:
scopes
- scopes or null
for none
-
getUserKey
public String getUserKey()
The unique ID of the user that issued the token.
- Returns:
- value or
null
for none
-
setUserKey
public Token setUserKey(String userKey)
The unique ID of the user that issued the token.
- Parameters:
userKey
- userKey or null
for none
-
set
public Token set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Token clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.