public final class Thumbnail 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 Cloud Tool Results 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 |
|---|
Thumbnail() |
| Modifier and Type | Method and Description |
|---|---|
Thumbnail |
clone() |
byte[] |
decodeData()
The thumbnail file itself.
|
Thumbnail |
encodeData(byte[] data)
The thumbnail file itself.
|
String |
getContentType()
The thumbnail's content type, i.e.
|
String |
getData()
The thumbnail file itself.
|
Integer |
getHeightPx()
The height of the thumbnail, in pixels.
|
Integer |
getWidthPx()
The width of the thumbnail, in pixels.
|
Thumbnail |
set(String fieldName,
Object value) |
Thumbnail |
setContentType(String contentType)
The thumbnail's content type, i.e.
|
Thumbnail |
setData(String data)
The thumbnail file itself.
|
Thumbnail |
setHeightPx(Integer heightPx)
The height of the thumbnail, in pixels.
|
Thumbnail |
setWidthPx(Integer widthPx)
The width of the thumbnail, 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 getContentType()
null for nonepublic Thumbnail setContentType(String contentType)
contentType - contentType or null for nonepublic String getData()
null for nonedecodeData()public byte[] decodeData()
null for nonegetData()public Thumbnail setData(String data)
data - data or null for none#encodeData()public Thumbnail encodeData(byte[] data)
The value is encoded Base64 or {@code null} for none.
public Integer getHeightPx()
null for nonepublic Thumbnail setHeightPx(Integer heightPx)
heightPx - heightPx or null for nonepublic Integer getWidthPx()
null for nonepublic Thumbnail setWidthPx(Integer widthPx)
widthPx - widthPx or null for nonepublic Thumbnail set(String fieldName, Object value)
set in class GenericJsonpublic Thumbnail clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.