target.apidocs.com.google.api.services.drive.model.File.Thumbnail.html Maven / Gradle / Ivy
File.Thumbnail (Google Drive API v2-rev20240809-2.0.0)
com.google.api.services.drive.model
Class File.Thumbnail
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.File.Thumbnail
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.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
Thumbnail()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
File.Thumbnail
clone()
byte[]
decodeImage()
The URL-safe Base64 encoded bytes of the thumbnail image.
File.Thumbnail
encodeImage(byte[] image)
The URL-safe Base64 encoded bytes of the thumbnail image.
String
getImage()
The URL-safe Base64 encoded bytes of the thumbnail image.
String
getMimeType()
The MIME type of the thumbnail.
File.Thumbnail
set(String fieldName,
Object value)
File.Thumbnail
setImage(String image)
The URL-safe Base64 encoded bytes of the thumbnail image.
File.Thumbnail
setMimeType(String mimeType)
The MIME type of the thumbnail.
-
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
-
getImage
public String getImage()
The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section
5.
- Returns:
- value or
null
for none
- See Also:
decodeImage()
-
decodeImage
public byte[] decodeImage()
The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section
5.
- Returns:
- Base64 decoded value or
null
for none
- Since:
- 1.14
- See Also:
getImage()
-
setImage
public File.Thumbnail setImage(String image)
The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section
5.
- Parameters:
image
- image or null
for none
- See Also:
#encodeImage()
-
encodeImage
public File.Thumbnail encodeImage(byte[] image)
The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section
5.
- Since:
- 1.14
- See Also:
The value is encoded Base64 or {@code null} for none.
-
getMimeType
public String getMimeType()
The MIME type of the thumbnail.
- Returns:
- value or
null
for none
-
setMimeType
public File.Thumbnail setMimeType(String mimeType)
The MIME type of the thumbnail.
- Parameters:
mimeType
- mimeType or null
for none
-
set
public File.Thumbnail set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public File.Thumbnail clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.