#include <message.h>
◆ Message() [1/2]
google_gmail_api::Message::Message |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ Message() [2/2]
google_gmail_api::Message::Message |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~Message()
google_gmail_api::Message::~Message |
( |
| ) |
|
|
virtual |
◆ clear_history_id()
void google_gmail_api::Message::clear_history_id |
( |
| ) |
|
|
inline |
Clears the 'historyId
' attribute.
◆ clear_id()
void google_gmail_api::Message::clear_id |
( |
| ) |
|
|
inline |
Clears the 'id
' attribute.
◆ clear_internal_date()
void google_gmail_api::Message::clear_internal_date |
( |
| ) |
|
|
inline |
Clears the 'internalDate
' attribute.
◆ clear_label_ids()
void google_gmail_api::Message::clear_label_ids |
( |
| ) |
|
|
inline |
Clears the 'labelIds
' attribute.
◆ clear_payload()
void google_gmail_api::Message::clear_payload |
( |
| ) |
|
|
inline |
Clears the 'payload
' attribute.
◆ clear_raw()
void google_gmail_api::Message::clear_raw |
( |
| ) |
|
|
inline |
Clears the 'raw
' attribute.
◆ clear_size_estimate()
void google_gmail_api::Message::clear_size_estimate |
( |
| ) |
|
|
inline |
Clears the 'sizeEstimate
' attribute.
◆ clear_snippet()
void google_gmail_api::Message::clear_snippet |
( |
| ) |
|
|
inline |
Clears the 'snippet
' attribute.
◆ clear_thread_id()
void google_gmail_api::Message::clear_thread_id |
( |
| ) |
|
|
inline |
Clears the 'threadId
' attribute.
◆ get_history_id()
uint64 google_gmail_api::Message::get_history_id |
( |
| ) |
const |
|
inline |
Get the value of the 'historyId
' attribute.
◆ get_id()
const StringPiece google_gmail_api::Message::get_id |
( |
| ) |
const |
|
inline |
Get the value of the 'id
' attribute.
◆ get_internal_date()
int64 google_gmail_api::Message::get_internal_date |
( |
| ) |
const |
|
inline |
Get the value of the 'internalDate
' attribute.
◆ get_label_ids()
const client::JsonCppArray<string > google_gmail_api::Message::get_label_ids |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'labelIds
' attribute.
◆ get_payload()
const MessagePart google_gmail_api::Message::get_payload |
( |
| ) |
const |
Get a reference to the value of the 'payload
' attribute.
◆ get_raw()
const StringPiece google_gmail_api::Message::get_raw |
( |
| ) |
const |
|
inline |
Get the value of the 'raw
' attribute.
◆ get_size_estimate()
int32 google_gmail_api::Message::get_size_estimate |
( |
| ) |
const |
|
inline |
Get the value of the 'sizeEstimate
' attribute.
◆ get_snippet()
const StringPiece google_gmail_api::Message::get_snippet |
( |
| ) |
const |
|
inline |
Get the value of the 'snippet
' attribute.
◆ get_thread_id()
const StringPiece google_gmail_api::Message::get_thread_id |
( |
| ) |
const |
|
inline |
Get the value of the 'threadId
' attribute.
◆ GetTypeName()
const StringPiece google_gmail_api::Message::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_history_id()
bool google_gmail_api::Message::has_history_id |
( |
| ) |
const |
|
inline |
Determine if the 'historyId
' attribute was set.
- Returns
- true if the '
historyId
' attribute was set.
◆ has_id()
bool google_gmail_api::Message::has_id |
( |
| ) |
const |
|
inline |
Determine if the 'id
' attribute was set.
- Returns
- true if the '
id
' attribute was set.
◆ has_internal_date()
bool google_gmail_api::Message::has_internal_date |
( |
| ) |
const |
|
inline |
Determine if the 'internalDate
' attribute was set.
- Returns
- true if the '
internalDate
' attribute was set.
◆ has_label_ids()
bool google_gmail_api::Message::has_label_ids |
( |
| ) |
const |
|
inline |
Determine if the 'labelIds
' attribute was set.
- Returns
- true if the '
labelIds
' attribute was set.
◆ has_payload()
bool google_gmail_api::Message::has_payload |
( |
| ) |
const |
|
inline |
Determine if the 'payload
' attribute was set.
- Returns
- true if the '
payload
' attribute was set.
◆ has_raw()
bool google_gmail_api::Message::has_raw |
( |
| ) |
const |
|
inline |
Determine if the 'raw
' attribute was set.
- Returns
- true if the '
raw
' attribute was set.
◆ has_size_estimate()
bool google_gmail_api::Message::has_size_estimate |
( |
| ) |
const |
|
inline |
Determine if the 'sizeEstimate
' attribute was set.
- Returns
- true if the '
sizeEstimate
' attribute was set.
◆ has_snippet()
bool google_gmail_api::Message::has_snippet |
( |
| ) |
const |
|
inline |
Determine if the 'snippet
' attribute was set.
- Returns
- true if the '
snippet
' attribute was set.
◆ has_thread_id()
bool google_gmail_api::Message::has_thread_id |
( |
| ) |
const |
|
inline |
Determine if the 'threadId
' attribute was set.
- Returns
- true if the '
threadId
' attribute was set.
◆ mutable_labelIds()
client::JsonCppArray<string > google_gmail_api::Message::mutable_labelIds |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'labelIds
' property.
List of IDs of labels applied to this message.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_payload()
MessagePart google_gmail_api::Message::mutable_payload |
( |
| ) |
|
Gets a reference to a mutable value of the 'payload
' property.
The parsed email structure in the message parts.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Message * google_gmail_api::Message::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_history_id()
void google_gmail_api::Message::set_history_id |
( |
uint64 |
value | ) |
|
|
inline |
Change the 'historyId
' attribute.
The ID of the last history record that modified this message.
- Parameters
-
◆ set_id()
void google_gmail_api::Message::set_id |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'id
' attribute.
The immutable ID of the message.
- Parameters
-
◆ set_internal_date()
void google_gmail_api::Message::set_internal_date |
( |
int64 |
value | ) |
|
|
inline |
Change the 'internalDate
' attribute.
The internal message creation timestamp (epoch ms), which determines ordering in the inbox. For normal SMTP-received email, this represents the time the message was originally accepted by Google, which is more reliable than the Date header. However, for API-migrated mail, it can be configured by client to be based on the Date header.
- Parameters
-
◆ set_raw()
void google_gmail_api::Message::set_raw |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'raw
' attribute.
The entire email message in an RFC 2822 formatted and base64url encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
- Parameters
-
◆ set_size_estimate()
void google_gmail_api::Message::set_size_estimate |
( |
int32 |
value | ) |
|
|
inline |
Change the 'sizeEstimate
' attribute.
Estimated size in bytes of the message.
- Parameters
-
◆ set_snippet()
void google_gmail_api::Message::set_snippet |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'snippet
' attribute.
A short part of the message text.
- Parameters
-
◆ set_thread_id()
void google_gmail_api::Message::set_thread_id |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'threadId
' attribute.
The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:
- The requested threadId must be specified on the Message or Draft.Message you supply with your request.
- The References and In-Reply-To headers must be set in compliance with the RFC 2822 standard.
- The Subject headers must match.
- Parameters
-
The documentation for this class was generated from the following files:
- google/gmail_api/message.h
- google/gmail_api/message.cc