#include <message_part.h>
A single MIME message part.
◆ MessagePart() [1/2]
| google_gmail_api::MessagePart::MessagePart |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ MessagePart() [2/2]
| google_gmail_api::MessagePart::MessagePart |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ~MessagePart()
| google_gmail_api::MessagePart::~MessagePart |
( |
| ) |
|
|
virtual |
◆ clear_body()
| void google_gmail_api::MessagePart::clear_body |
( |
| ) |
|
|
inline |
Clears the 'body' attribute.
◆ clear_filename()
| void google_gmail_api::MessagePart::clear_filename |
( |
| ) |
|
|
inline |
Clears the 'filename' attribute.
◆ clear_headers()
| void google_gmail_api::MessagePart::clear_headers |
( |
| ) |
|
|
inline |
Clears the 'headers' attribute.
◆ clear_mime_type()
| void google_gmail_api::MessagePart::clear_mime_type |
( |
| ) |
|
|
inline |
Clears the 'mimeType' attribute.
◆ clear_part_id()
| void google_gmail_api::MessagePart::clear_part_id |
( |
| ) |
|
|
inline |
Clears the 'partId' attribute.
◆ clear_parts()
| void google_gmail_api::MessagePart::clear_parts |
( |
| ) |
|
|
inline |
Clears the 'parts' attribute.
◆ get_body()
Get a reference to the value of the 'body' attribute.
◆ get_filename()
| const StringPiece google_gmail_api::MessagePart::get_filename |
( |
| ) |
const |
|
inline |
Get the value of the 'filename' attribute.
◆ get_headers()
| const client::JsonCppArray<MessagePartHeader > google_gmail_api::MessagePart::get_headers |
( |
| ) |
const |
Get a reference to the value of the 'headers' attribute.
◆ get_mime_type()
| const StringPiece google_gmail_api::MessagePart::get_mime_type |
( |
| ) |
const |
|
inline |
Get the value of the 'mimeType' attribute.
◆ get_part_id()
| const StringPiece google_gmail_api::MessagePart::get_part_id |
( |
| ) |
const |
|
inline |
Get the value of the 'partId' attribute.
◆ get_parts()
| const client::JsonCppArray<MessagePart > google_gmail_api::MessagePart::get_parts |
( |
| ) |
const |
Get a reference to the value of the 'parts' attribute.
◆ GetTypeName()
| const StringPiece google_gmail_api::MessagePart::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_body()
| bool google_gmail_api::MessagePart::has_body |
( |
| ) |
const |
|
inline |
Determine if the 'body' attribute was set.
- Returns
- true if the '
body' attribute was set.
◆ has_filename()
| bool google_gmail_api::MessagePart::has_filename |
( |
| ) |
const |
|
inline |
Determine if the 'filename' attribute was set.
- Returns
- true if the '
filename' attribute was set.
◆ has_headers()
| bool google_gmail_api::MessagePart::has_headers |
( |
| ) |
const |
|
inline |
Determine if the 'headers' attribute was set.
- Returns
- true if the '
headers' attribute was set.
◆ has_mime_type()
| bool google_gmail_api::MessagePart::has_mime_type |
( |
| ) |
const |
|
inline |
Determine if the 'mimeType' attribute was set.
- Returns
- true if the '
mimeType' attribute was set.
◆ has_part_id()
| bool google_gmail_api::MessagePart::has_part_id |
( |
| ) |
const |
|
inline |
Determine if the 'partId' attribute was set.
- Returns
- true if the '
partId' attribute was set.
◆ has_parts()
| bool google_gmail_api::MessagePart::has_parts |
( |
| ) |
const |
|
inline |
Determine if the 'parts' attribute was set.
- Returns
- true if the '
parts' attribute was set.
◆ mutable_body()
Gets a reference to a mutable value of the 'body' property.
The message part body for this part, which may be empty for container MIME message parts.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_headers()
| client::JsonCppArray<MessagePartHeader > google_gmail_api::MessagePart::mutable_headers |
( |
| ) |
|
Gets a reference to a mutable value of the 'headers' property.
List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_parts()
| client::JsonCppArray<MessagePart > google_gmail_api::MessagePart::mutable_parts |
( |
| ) |
|
Gets a reference to a mutable value of the 'parts' property.
The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_filename()
| void google_gmail_api::MessagePart::set_filename |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'filename' attribute.
The filename of the attachment. Only present if this message part represents an attachment.
- Parameters
-
◆ set_mime_type()
| void google_gmail_api::MessagePart::set_mime_type |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'mimeType' attribute.
The MIME type of the message part.
- Parameters
-
◆ set_part_id()
| void google_gmail_api::MessagePart::set_part_id |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'partId' attribute.
The immutable ID of the message part.
- Parameters
-
The documentation for this class was generated from the following files: