#include <message_part_body.h>
The body of a single MIME message part.
◆ MessagePartBody() [1/2]
google_gmail_api::MessagePartBody::MessagePartBody |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The 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] | storage | The underlying data storage for this instance. |
◆ ~MessagePartBody()
google_gmail_api::MessagePartBody::~MessagePartBody |
( |
| ) |
|
|
virtual |
◆ 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 |
◆ 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()
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
-
◆ 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
-
◆ 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
-
The documentation for this class was generated from the following files: