All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.drive.model.File.ContentHints.Thumbnail.html Maven / Gradle / Ivy

There is a newer version: v3-rev20241027-2.0.0
Show newest version






File.ContentHints.Thumbnail (Google Drive API v3-rev20240809-2.0.0)












com.google.api.services.drive.model

Class File.ContentHints.Thumbnail

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>
    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.
    • Constructor Detail

      • Thumbnail

        public Thumbnail()
    • 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

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy