target.apidocs.com.google.api.services.directory.model.UserIm.html Maven / Gradle / Ivy
UserIm (Admin SDK API directory_v1-rev20220621-2.0.0)
com.google.api.services.directory.model
Class UserIm
- 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.UserIm
-
public final class UserIm
extends GenericJson
JSON template for instant messenger of an user.
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
UserIm()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
UserIm
clone()
String
getCustomProtocol()
Custom protocol.
String
getCustomType()
Custom type.
String
getIm()
Instant messenger id.
Boolean
getPrimary()
If this is user's primary im.
String
getProtocol()
Protocol used in the instant messenger.
String
getType()
Each entry can have a type which indicates standard types of that entry.
UserIm
set(String fieldName,
Object value)
UserIm
setCustomProtocol(String customProtocol)
Custom protocol.
UserIm
setCustomType(String customType)
Custom type.
UserIm
setIm(String im)
Instant messenger id.
UserIm
setPrimary(Boolean primary)
If this is user's primary im.
UserIm
setProtocol(String protocol)
Protocol used in the instant messenger.
UserIm
setType(String type)
Each entry can have a type which indicates standard types of that entry.
-
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
-
getCustomProtocol
public String getCustomProtocol()
Custom protocol.
- Returns:
- value or
null
for none
-
setCustomProtocol
public UserIm setCustomProtocol(String customProtocol)
Custom protocol.
- Parameters:
customProtocol
- customProtocol or null
for none
-
getCustomType
public String getCustomType()
Custom type.
- Returns:
- value or
null
for none
-
setCustomType
public UserIm setCustomType(String customType)
Custom type.
- Parameters:
customType
- customType or null
for none
-
getIm
public String getIm()
Instant messenger id.
- Returns:
- value or
null
for none
-
getPrimary
public Boolean getPrimary()
If this is user's primary im. Only one entry could be marked as primary.
- Returns:
- value or
null
for none
-
setPrimary
public UserIm setPrimary(Boolean primary)
If this is user's primary im. Only one entry could be marked as primary.
- Parameters:
primary
- primary or null
for none
-
getProtocol
public String getProtocol()
Protocol used in the instant messenger. It should be one of the values from ImProtocolTypes
map. Similar to type it can take a CUSTOM value and specify the custom name in customProtocol
field.
- Returns:
- value or
null
for none
-
setProtocol
public UserIm setProtocol(String protocol)
Protocol used in the instant messenger. It should be one of the values from ImProtocolTypes
map. Similar to type it can take a CUSTOM value and specify the custom name in customProtocol
field.
- Parameters:
protocol
- protocol or null
for none
-
getType
public String getType()
Each entry can have a type which indicates standard types of that entry. For example instant
messengers could be of home work etc. In addition to the standard type an entry can have a
custom type and can take any value. Such types should have the CUSTOM value as type and also
have a customType value.
- Returns:
- value or
null
for none
-
setType
public UserIm setType(String type)
Each entry can have a type which indicates standard types of that entry. For example instant
messengers could be of home work etc. In addition to the standard type an entry can have a
custom type and can take any value. Such types should have the CUSTOM value as type and also
have a customType value.
- Parameters:
type
- type or null
for none
-
set
public UserIm set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public UserIm clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.