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

#include <message_part_body.h>

Inheritance diagram for google_gmail_api::MessagePartBody:

Public Member Functions

 MessagePartBody (const Json::Value &storage)
 
 MessagePartBody (Json::Value *storage)
 
virtual ~MessagePartBody ()
 
const StringPiece GetTypeName () const
 
bool has_attachment_id () const
 
void clear_attachment_id ()
 
const StringPiece get_attachment_id () const
 
void set_attachment_id (const StringPiece &value)
 
bool has_data () const
 
void clear_data ()
 
const StringPiece get_data () const
 
void set_data (const StringPiece &value)
 
bool has_size () const
 
void clear_size ()
 
int32 get_size () const
 
void set_size (int32 value)
 

Static Public Member Functions

static MessagePartBodyNew ()
 

Detailed Description

The body of a single MIME message part.

Constructor & Destructor Documentation

◆ MessagePartBody() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ MessagePartBody() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~MessagePartBody()

google_gmail_api::MessagePartBody::~MessagePartBody ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_attachment_id()

void google_gmail_api::MessagePartBody::clear_attachment_id ( )
inline

Clears the 'attachmentId' attribute.

◆ clear_data()

void google_gmail_api::MessagePartBody::clear_data ( )
inline

Clears the 'data' attribute.

◆ clear_size()

void google_gmail_api::MessagePartBody::clear_size ( )
inline

Clears the 'size' attribute.

◆ get_attachment_id()

const StringPiece google_gmail_api::MessagePartBody::get_attachment_id ( ) const
inline

Get the value of the 'attachmentId' attribute.

◆ get_data()

const StringPiece google_gmail_api::MessagePartBody::get_data ( ) const
inline

Get the value of the 'data' attribute.

◆ get_size()

int32 google_gmail_api::MessagePartBody::get_size ( ) const
inline

Get the value of the 'size' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_gmail_api::MessagePartBody

◆ has_attachment_id()

bool google_gmail_api::MessagePartBody::has_attachment_id ( ) const
inline

Determine if the 'attachmentId' attribute was set.

Returns
true if the 'attachmentId' attribute was set.

◆ has_data()

bool google_gmail_api::MessagePartBody::has_data ( ) const
inline

Determine if the 'data' attribute was set.

Returns
true if the 'data' attribute was set.

◆ has_size()

bool google_gmail_api::MessagePartBody::has_size ( ) const
inline

Determine if the 'size' attribute was set.

Returns
true if the 'size' attribute was set.

◆ New()

MessagePartBody * google_gmail_api::MessagePartBody::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_attachment_id()

void google_gmail_api::MessagePartBody::set_attachment_id ( const StringPiece &  value)
inline

Change the 'attachmentId' attribute.

When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.

Parameters
[in]valueThe new value.

◆ set_data()

void google_gmail_api::MessagePartBody::set_data ( const StringPiece &  value)
inline

Change the 'data' attribute.

The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.

Parameters
[in]valueThe new value.

◆ set_size()

void google_gmail_api::MessagePartBody::set_size ( int32  value)
inline

Change the 'size' attribute.

Number of bytes for the message part data (encoding notwithstanding).

Parameters
[in]valueThe new value.

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