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

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

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






File.Thumbnail (Drive API v2-rev20180830-1.26.0)












com.google.api.services.drive.model

Class File.Thumbnail

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>
    Enclosing class:
    File


    public static final class File.Thumbnail
    extends com.google.api.client.json.GenericJson
    A thumbnail for the file. This will only be used if Drive cannot generate a standard thumbnail.
    • Constructor Detail

      • Thumbnail

        public Thumbnail()
    • 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–2018 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy