gmail
v1
|
#include <label.h>
Public Member Functions | |
Label (const Json::Value &storage) | |
Label (Json::Value *storage) | |
virtual | ~Label () |
const StringPiece | GetTypeName () const |
bool | has_color () const |
void | clear_color () |
const LabelColor | get_color () const |
LabelColor | mutable_color () |
bool | has_id () const |
void | clear_id () |
const StringPiece | get_id () const |
void | set_id (const StringPiece &value) |
bool | has_label_list_visibility () const |
void | clear_label_list_visibility () |
const StringPiece | get_label_list_visibility () const |
void | set_label_list_visibility (const StringPiece &value) |
bool | has_message_list_visibility () const |
void | clear_message_list_visibility () |
const StringPiece | get_message_list_visibility () const |
void | set_message_list_visibility (const StringPiece &value) |
bool | has_messages_total () const |
void | clear_messages_total () |
int32 | get_messages_total () const |
void | set_messages_total (int32 value) |
bool | has_messages_unread () const |
void | clear_messages_unread () |
int32 | get_messages_unread () const |
void | set_messages_unread (int32 value) |
bool | has_name () const |
void | clear_name () |
const StringPiece | get_name () const |
void | set_name (const StringPiece &value) |
bool | has_threads_total () const |
void | clear_threads_total () |
int32 | get_threads_total () const |
void | set_threads_total (int32 value) |
bool | has_threads_unread () const |
void | clear_threads_unread () |
int32 | get_threads_unread () const |
void | set_threads_unread (int32 value) |
bool | has_type () const |
void | clear_type () |
const StringPiece | get_type () const |
void | set_type (const StringPiece &value) |
Static Public Member Functions | |
static Label * | New () |
Labels are used to categorize messages and threads within the user's mailbox.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'color
' attribute.
|
inline |
Clears the 'id
' attribute.
|
inline |
Clears the 'labelListVisibility
' attribute.
|
inline |
Clears the 'messageListVisibility
' attribute.
|
inline |
Clears the 'messagesTotal
' attribute.
|
inline |
Clears the 'messagesUnread
' attribute.
|
inline |
Clears the 'name
' attribute.
|
inline |
Clears the 'threadsTotal
' attribute.
|
inline |
Clears the 'threadsUnread
' attribute.
|
inline |
Clears the 'type
' attribute.
const LabelColor google_gmail_api::Label::get_color | ( | ) | const |
Get a reference to the value of the 'color
' attribute.
|
inline |
Get the value of the 'id
' attribute.
|
inline |
Get the value of the 'labelListVisibility
' attribute.
|
inline |
Get the value of the 'messageListVisibility
' attribute.
|
inline |
Get the value of the 'messagesTotal
' attribute.
|
inline |
Get the value of the 'messagesUnread
' attribute.
|
inline |
Get the value of the 'name
' attribute.
|
inline |
Get the value of the 'threadsTotal
' attribute.
|
inline |
Get the value of the 'threadsUnread
' attribute.
|
inline |
Get the value of the 'type
' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_gmail_api::Label
|
inline |
Determine if the 'color
' attribute was set.
color
' attribute was set.
|
inline |
Determine if the 'id
' attribute was set.
id
' attribute was set.
|
inline |
Determine if the 'labelListVisibility
' attribute was set.
labelListVisibility
' attribute was set.
|
inline |
Determine if the 'messageListVisibility
' attribute was set.
messageListVisibility
' attribute was set.
|
inline |
Determine if the 'messagesTotal
' attribute was set.
messagesTotal
' attribute was set.
|
inline |
Determine if the 'messagesUnread
' attribute was set.
messagesUnread
' attribute was set.
|
inline |
Determine if the 'name
' attribute was set.
name
' attribute was set.
|
inline |
Determine if the 'threadsTotal
' attribute was set.
threadsTotal
' attribute was set.
|
inline |
Determine if the 'threadsUnread
' attribute was set.
threadsUnread
' attribute was set.
|
inline |
Determine if the 'type
' attribute was set.
type
' attribute was set. LabelColor google_gmail_api::Label::mutable_color | ( | ) |
Gets a reference to a mutable value of the 'color
' property.
The color to assign to the label. Color is only available for labels that have their type set to user.
|
static |
Creates a new default instance.
|
inline |
Change the 'id
' attribute.
The immutable ID of the label.
[in] | value | The new value. |
|
inline |
Change the 'labelListVisibility
' attribute.
The visibility of the label in the label list in the Gmail web interface.
[in] | value | The new value. |
|
inline |
Change the 'messageListVisibility
' attribute.
The visibility of the label in the message list in the Gmail web interface.
[in] | value | The new value. |
|
inline |
Change the 'messagesTotal
' attribute.
The total number of messages with the label.
[in] | value | The new value. |
|
inline |
Change the 'messagesUnread
' attribute.
The number of unread messages with the label.
[in] | value | The new value. |
|
inline |
Change the 'name
' attribute.
The display name of the label.
[in] | value | The new value. |
|
inline |
Change the 'threadsTotal
' attribute.
The total number of threads with the label.
[in] | value | The new value. |
|
inline |
Change the 'threadsUnread
' attribute.
The number of unread threads with the label.
[in] | value | The new value. |
|
inline |
Change the 'type
' attribute.
The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the INBOX and UNREAD labels from messages and threads, but cannot apply or remove the DRAFTS or SENT labels from messages or threads.
[in] | value | The new value. |