public final class UserPhoto 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 Directory API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
UserPhoto() |
| Modifier and Type | Method and Description |
|---|---|
UserPhoto |
clone() |
byte[] |
decodePhotoData()
Base64 encoded photo data
|
UserPhoto |
encodePhotoData(byte[] photoData)
Base64 encoded photo data
|
Integer |
getHeight()
Height in pixels of the photo
|
String |
getId()
Unique identifier of User (Read-only)
|
String |
getKind()
Kind of resource this is.
|
String |
getMimeType()
Mime Type of the photo
|
String |
getPhotoData()
Base64 encoded photo data
|
String |
getPrimaryEmail()
Primary email of User (Read-only)
|
Integer |
getWidth()
Width in pixels of the photo
|
UserPhoto |
set(String fieldName,
Object value) |
UserPhoto |
setHeight(Integer height)
Height in pixels of the photo
|
UserPhoto |
setId(String id)
Unique identifier of User (Read-only)
|
UserPhoto |
setKind(String kind)
Kind of resource this is.
|
UserPhoto |
setMimeType(String mimeType)
Mime Type of the photo
|
UserPhoto |
setPhotoData(String photoData)
Base64 encoded photo data
|
UserPhoto |
setPrimaryEmail(String primaryEmail)
Primary email of User (Read-only)
|
UserPhoto |
setWidth(Integer width)
Width in pixels of the photo
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic Integer getHeight()
null for nonepublic UserPhoto setHeight(Integer height)
height - height or null for nonepublic String getId()
null for nonepublic UserPhoto setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic UserPhoto setKind(String kind)
kind - kind or null for nonepublic String getMimeType()
null for nonepublic UserPhoto setMimeType(String mimeType)
mimeType - mimeType or null for nonepublic String getPhotoData()
null for nonedecodePhotoData()public byte[] decodePhotoData()
null for nonegetPhotoData()public UserPhoto setPhotoData(String photoData)
photoData - photoData or null for none#encodePhotoData()public UserPhoto encodePhotoData(byte[] photoData)
The value is encoded Base64 or {@code null} for none.
public String getPrimaryEmail()
null for nonepublic UserPhoto setPrimaryEmail(String primaryEmail)
primaryEmail - primaryEmail or null for nonepublic Integer getWidth()
null for nonepublic UserPhoto setWidth(Integer width)
width - width or null for nonepublic UserPhoto set(String fieldName, Object value)
set in class GenericJsonpublic UserPhoto clone()
clone in class GenericJson