public final class User 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 Google Chat API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
User |
clone() |
String |
getDisplayName()
The user's display name.
|
String |
getDomainId()
Obfuscated domain information.
|
Boolean |
getIsAnonymous()
True when the user is deleted or the user's profile is not visible.
|
String |
getName()
Resource name, in the format "users".
|
String |
getType()
User type.
|
User |
set(String fieldName,
Object value) |
User |
setDisplayName(String displayName)
The user's display name.
|
User |
setDomainId(String domainId)
Obfuscated domain information.
|
User |
setIsAnonymous(Boolean isAnonymous)
True when the user is deleted or the user's profile is not visible.
|
User |
setName(String name)
Resource name, in the format "users".
|
User |
setType(String type)
User type.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getDisplayName()
null
for nonepublic User setDisplayName(String displayName)
displayName
- displayName or null
for nonepublic String getDomainId()
null
for nonepublic User setDomainId(String domainId)
domainId
- domainId or null
for nonepublic Boolean getIsAnonymous()
null
for nonepublic User setIsAnonymous(Boolean isAnonymous)
isAnonymous
- isAnonymous or null
for nonepublic String getName()
null
for nonepublic User setName(String name)
name
- name or null
for nonepublic String getType()
null
for nonepublic User set(String fieldName, Object value)
set
in class GenericJson
public User clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.