drive  v2
Public Member Functions | Static Public Member Functions | List of all members
google_drive_api::File::FileThumbnail Class Reference

#include <file.h>

Inheritance diagram for google_drive_api::File::FileThumbnail:

Public Member Functions

 FileThumbnail (const Json::Value &storage)
 
 FileThumbnail (Json::Value *storage)
 
virtual ~FileThumbnail ()
 
const StringPiece GetTypeName () const
 
bool has_image () const
 
void clear_image ()
 
const StringPiece get_image () const
 
void set_image (const StringPiece &value)
 
bool has_mime_type () const
 
void clear_mime_type ()
 
const StringPiece get_mime_type () const
 
void set_mime_type (const StringPiece &value)
 

Static Public Member Functions

static FileThumbnailNew ()
 

Detailed Description

A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.

Constructor & Destructor Documentation

◆ FileThumbnail() [1/2]

google_drive_api::File::FileThumbnail::FileThumbnail ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ FileThumbnail() [2/2]

google_drive_api::File::FileThumbnail::FileThumbnail ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~FileThumbnail()

google_drive_api::File::FileThumbnail::~FileThumbnail ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_image()

void google_drive_api::File::FileThumbnail::clear_image ( )
inline

Clears the 'image' attribute.

◆ clear_mime_type()

void google_drive_api::File::FileThumbnail::clear_mime_type ( )
inline

Clears the 'mimeType' attribute.

◆ get_image()

const StringPiece google_drive_api::File::FileThumbnail::get_image ( ) const
inline

Get the value of the 'image' attribute.

◆ get_mime_type()

const StringPiece google_drive_api::File::FileThumbnail::get_mime_type ( ) const
inline

Get the value of the 'mimeType' attribute.

◆ GetTypeName()

const StringPiece google_drive_api::File::FileThumbnail::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_drive_api::FileThumbnail

◆ has_image()

bool google_drive_api::File::FileThumbnail::has_image ( ) const
inline

Determine if the 'image' attribute was set.

Returns
true if the 'image' attribute was set.

◆ has_mime_type()

bool google_drive_api::File::FileThumbnail::has_mime_type ( ) const
inline

Determine if the 'mimeType' attribute was set.

Returns
true if the 'mimeType' attribute was set.

◆ New()

File::FileThumbnail * google_drive_api::File::FileThumbnail::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_image()

void google_drive_api::File::FileThumbnail::set_image ( const StringPiece &  value)
inline

Change the 'image' attribute.

The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.

Parameters
[in]valueThe new value.

◆ set_mime_type()

void google_drive_api::File::FileThumbnail::set_mime_type ( const StringPiece &  value)
inline

Change the 'mimeType' attribute.

The MIME type of the thumbnail.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: