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 SDK API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
UserPhoto() |
| Modifier and Type | Method and Description |
|---|---|
UserPhoto |
clone() |
byte[] |
decodePhotoData()
The user photo's upload data in [web-safe
Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes.
|
UserPhoto |
encodePhotoData(byte[] photoData)
The user photo's upload data in [web-safe
Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes.
|
String |
getEtag()
ETag of the resource.
|
Integer |
getHeight()
Height of the photo in pixels.
|
String |
getId()
The ID the API uses to uniquely identify the user.
|
String |
getKind()
The type of the API resource.
|
String |
getMimeType()
The MIME type of the photo.
|
String |
getPhotoData()
The user photo's upload data in [web-safe
Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes.
|
String |
getPrimaryEmail()
The user's primary email address.
|
Integer |
getWidth()
Width of the photo in pixels.
|
UserPhoto |
set(String fieldName,
Object value) |
UserPhoto |
setEtag(String etag)
ETag of the resource.
|
UserPhoto |
setHeight(Integer height)
Height of the photo in pixels.
|
UserPhoto |
setId(String id)
The ID the API uses to uniquely identify the user.
|
UserPhoto |
setKind(String kind)
The type of the API resource.
|
UserPhoto |
setMimeType(String mimeType)
The MIME type of the photo.
|
UserPhoto |
setPhotoData(String photoData)
The user photo's upload data in [web-safe
Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes.
|
UserPhoto |
setPrimaryEmail(String primaryEmail)
The user's primary email address.
|
UserPhoto |
setWidth(Integer width)
Width of the photo in pixels.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getEtag()
null for nonepublic UserPhoto setEtag(String etag)
etag - etag or null for nonepublic 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 GenericJsonCopyright © 2011–2021 Google. All rights reserved.