gmail  v1
Public Member Functions | Static Public Member Functions | List of all members
google_gmail_api::Draft Class Reference

#include <draft.h>

Inheritance diagram for google_gmail_api::Draft:

Public Member Functions

 Draft (const Json::Value &storage)
 
 Draft (Json::Value *storage)
 
virtual ~Draft ()
 
const StringPiece GetTypeName () const
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_id (const StringPiece &value)
 
bool has_message () const
 
void clear_message ()
 
const Message get_message () const
 
Message mutable_message ()
 

Static Public Member Functions

static DraftNew ()
 

Detailed Description

A draft email in the user's mailbox.

Constructor & Destructor Documentation

◆ Draft() [1/2]

google_gmail_api::Draft::Draft ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ Draft() [2/2]

google_gmail_api::Draft::Draft ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~Draft()

google_gmail_api::Draft::~Draft ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_id()

void google_gmail_api::Draft::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_message()

void google_gmail_api::Draft::clear_message ( )
inline

Clears the 'message' attribute.

◆ get_id()

const StringPiece google_gmail_api::Draft::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_message()

const Message google_gmail_api::Draft::get_message ( ) const

Get a reference to the value of the 'message' attribute.

◆ GetTypeName()

const StringPiece google_gmail_api::Draft::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_gmail_api::Draft

◆ has_id()

bool google_gmail_api::Draft::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_message()

bool google_gmail_api::Draft::has_message ( ) const
inline

Determine if the 'message' attribute was set.

Returns
true if the 'message' attribute was set.

◆ mutable_message()

Message google_gmail_api::Draft::mutable_message ( )

Gets a reference to a mutable value of the 'message' property.

The message content of the draft.

Returns
The result can be modified to change the attribute value.

◆ New()

Draft * google_gmail_api::Draft::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_id()

void google_gmail_api::Draft::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

The immutable ID of the draft.

Parameters
[in]valueThe new value.

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