public final class UserPhoto
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
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
|
java.lang.String |
getEtag()
ETag of the resource.
|
java.lang.Integer |
getHeight()
Height in pixels of the photo
|
java.lang.String |
getId()
Unique identifier of User (Read-only)
|
java.lang.String |
getKind()
Kind of resource this is.
|
java.lang.String |
getMimeType()
Mime Type of the photo
|
java.lang.String |
getPhotoData()
Base64 encoded photo data
|
java.lang.String |
getPrimaryEmail()
Primary email of User (Read-only)
|
java.lang.Integer |
getWidth()
Width in pixels of the photo
|
UserPhoto |
set(java.lang.String fieldName,
java.lang.Object value) |
UserPhoto |
setEtag(java.lang.String etag)
ETag of the resource.
|
UserPhoto |
setHeight(java.lang.Integer height)
Height in pixels of the photo
|
UserPhoto |
setId(java.lang.String id)
Unique identifier of User (Read-only)
|
UserPhoto |
setKind(java.lang.String kind)
Kind of resource this is.
|
UserPhoto |
setMimeType(java.lang.String mimeType)
Mime Type of the photo
|
UserPhoto |
setPhotoData(java.lang.String photoData)
Base64 encoded photo data
|
UserPhoto |
setPrimaryEmail(java.lang.String primaryEmail)
Primary email of User (Read-only)
|
UserPhoto |
setWidth(java.lang.Integer width)
Width in pixels of the photo
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getEtag()
null
for nonepublic UserPhoto setEtag(java.lang.String etag)
etag
- etag or null
for nonepublic java.lang.Integer getHeight()
null
for nonepublic UserPhoto setHeight(java.lang.Integer height)
height
- height or null
for nonepublic java.lang.String getId()
null
for nonepublic UserPhoto setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic UserPhoto setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getMimeType()
null
for nonepublic UserPhoto setMimeType(java.lang.String mimeType)
mimeType
- mimeType or null
for nonepublic java.lang.String getPhotoData()
null
for nonedecodePhotoData()
public byte[] decodePhotoData()
null
for nonegetPhotoData()
public UserPhoto setPhotoData(java.lang.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 java.lang.String getPrimaryEmail()
null
for nonepublic UserPhoto setPrimaryEmail(java.lang.String primaryEmail)
primaryEmail
- primaryEmail or null
for nonepublic java.lang.Integer getWidth()
null
for nonepublic UserPhoto setWidth(java.lang.Integer width)
width
- width or null
for nonepublic UserPhoto set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public UserPhoto clone()
clone
in class com.google.api.client.json.GenericJson