target.apidocs.com.google.api.services.drive.model.File.ContentHints.Thumbnail.html Maven / Gradle / Ivy
File.ContentHints.Thumbnail (Google Drive API v3-rev20240730-2.0.0)
com.google.api.services.drive.model
Class File.ContentHints.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.ContentHints.Thumbnail
-
- Enclosing class:
- File.ContentHints
public static final class File.ContentHints.Thumbnail
extends com.google.api.client.json.GenericJson
A thumbnail for the file. This will only be used if Google Drive cannot generate a standard
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.ContentHints.Thumbnail
clone()
byte[]
decodeImage()
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
File.ContentHints.Thumbnail
encodeImage(byte[] image)
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
String
getImage()
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
String
getMimeType()
The MIME type of the thumbnail.
File.ContentHints.Thumbnail
set(String fieldName,
Object value)
File.ContentHints.Thumbnail
setImage(String image)
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
File.ContentHints.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 thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
- Returns:
- value or
null
for none
- See Also:
decodeImage()
-
decodeImage
public byte[] decodeImage()
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
- Returns:
- Base64 decoded value or
null
for none
- Since:
- 1.14
- See Also:
getImage()
-
setImage
public File.ContentHints.Thumbnail setImage(String image)
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
- Parameters:
image
- image or null
for none
- See Also:
#encodeImage()
-
encodeImage
public File.ContentHints.Thumbnail encodeImage(byte[] image)
The thumbnail data encoded with URL-safe Base64 (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.ContentHints.Thumbnail setMimeType(String mimeType)
The MIME type of the thumbnail.
- Parameters:
mimeType
- mimeType or null
for none
-
set
public File.ContentHints.Thumbnail set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public File.ContentHints.Thumbnail clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.