30 #ifndef GOOGLE_GMAIL_API_WATCH_RESPONSE_H_ 31 #define GOOGLE_GMAIL_API_WATCH_RESPONSE_H_ 33 #include "googleapis/base/integral_types.h" 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_gmail_api::WatchResponse");
93 return Storage().isMember(
"expiration");
100 MutableStorage()->removeMember(
"expiration");
108 const Json::Value& storage = Storage(
"expiration");
109 return client::JsonValueToCppValueHelper<int64 >(storage);
121 client::SetJsonValueFromCppValueHelper<int64 >(
122 value, MutableStorage(
"expiration"));
131 return Storage().isMember(
"historyId");
138 MutableStorage()->removeMember(
"historyId");
146 const Json::Value& storage = Storage(
"historyId");
147 return client::JsonValueToCppValueHelper<uint64 >(storage);
158 client::SetJsonValueFromCppValueHelper<uint64 >(
159 value, MutableStorage(
"historyId"));
166 #endif // GOOGLE_GMAIL_API_WATCH_RESPONSE_H_ uint64 get_history_id() const
Definition: watch_response.h:145
bool has_expiration() const
Definition: watch_response.h:92
void set_expiration(int64 value)
Definition: watch_response.h:120
void clear_expiration()
Definition: watch_response.h:99
void set_history_id(uint64 value)
Definition: watch_response.h:157
const StringPiece GetTypeName() const
Definition: watch_response.h:83
Definition: auto_forwarding.h:38
bool has_history_id() const
Definition: watch_response.h:130
int64 get_expiration() const
Definition: watch_response.h:107
Definition: auto_forwarding.cc:40
void clear_history_id()
Definition: watch_response.h:137
Definition: watch_response.h:50