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-rev20241027-2.0.0
Show newest version






File.Thumbnail (Google Drive API v2-rev20240809-2.0.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 a standard thumbnail cannot be generated.
    • 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–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy