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

#include <thread.h>

Inheritance diagram for google_gmail_api::Thread:

Public Member Functions

 Thread (const Json::Value &storage)
 
 Thread (Json::Value *storage)
 
virtual ~Thread ()
 
const StringPiece GetTypeName () const
 
bool has_history_id () const
 
void clear_history_id ()
 
uint64 get_history_id () const
 
void set_history_id (uint64 value)
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_id (const StringPiece &value)
 
bool has_messages () const
 
void clear_messages ()
 
const client::JsonCppArray< Messageget_messages () const
 
client::JsonCppArray< Messagemutable_messages ()
 
bool has_snippet () const
 
void clear_snippet ()
 
const StringPiece get_snippet () const
 
void set_snippet (const StringPiece &value)
 

Static Public Member Functions

static ThreadNew ()
 

Detailed Description

A collection of messages representing a conversation.

Constructor & Destructor Documentation

◆ Thread() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Thread() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Thread()

google_gmail_api::Thread::~Thread ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_history_id()

void google_gmail_api::Thread::clear_history_id ( )
inline

Clears the 'historyId' attribute.

◆ clear_id()

void google_gmail_api::Thread::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_messages()

void google_gmail_api::Thread::clear_messages ( )
inline

Clears the 'messages' attribute.

◆ clear_snippet()

void google_gmail_api::Thread::clear_snippet ( )
inline

Clears the 'snippet' attribute.

◆ get_history_id()

uint64 google_gmail_api::Thread::get_history_id ( ) const
inline

Get the value of the 'historyId' attribute.

◆ get_id()

const StringPiece google_gmail_api::Thread::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_messages()

const client::JsonCppArray<Message > google_gmail_api::Thread::get_messages ( ) const

Get a reference to the value of the 'messages' attribute.

◆ get_snippet()

const StringPiece google_gmail_api::Thread::get_snippet ( ) const
inline

Get the value of the 'snippet' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_gmail_api::Thread

◆ has_history_id()

bool google_gmail_api::Thread::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::Thread::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_messages()

bool google_gmail_api::Thread::has_messages ( ) const
inline

Determine if the 'messages' attribute was set.

Returns
true if the 'messages' attribute was set.

◆ has_snippet()

bool google_gmail_api::Thread::has_snippet ( ) const
inline

Determine if the 'snippet' attribute was set.

Returns
true if the 'snippet' attribute was set.

◆ mutable_messages()

client::JsonCppArray<Message > google_gmail_api::Thread::mutable_messages ( )

Gets a reference to a mutable value of the 'messages' property.

The list of messages in the thread.

Returns
The result can be modified to change the attribute value.

◆ New()

Thread * google_gmail_api::Thread::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_history_id()

void google_gmail_api::Thread::set_history_id ( uint64  value)
inline

Change the 'historyId' attribute.

The ID of the last history record that modified this thread.

Parameters
[in]valueThe new value.

◆ set_id()

void google_gmail_api::Thread::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

The unique ID of the thread.

Parameters
[in]valueThe new value.

◆ set_snippet()

void google_gmail_api::Thread::set_snippet ( const StringPiece &  value)
inline

Change the 'snippet' attribute.

A short part of the message text.

Parameters
[in]valueThe new value.

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