30 #ifndef GOOGLE_CALENDAR_API_FREE_BUSY_REQUEST_H_ 31 #define GOOGLE_CALENDAR_API_FREE_BUSY_REQUEST_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/client/util/date_time.h" 38 #include "googleapis/strings/stringpiece.h" 40 #include "google/calendar_api/free_busy_request_item.h" 88 return StringPiece(
"google_calendar_api::FreeBusyRequest");
97 return Storage().isMember(
"calendarExpansionMax");
104 MutableStorage()->removeMember(
"calendarExpansionMax");
112 const Json::Value& storage = Storage(
"calendarExpansionMax");
113 return client::JsonValueToCppValueHelper<int32 >(storage);
125 client::SetJsonValueFromCppValueHelper<int32 >(
126 value, MutableStorage(
"calendarExpansionMax"));
135 return Storage().isMember(
"groupExpansionMax");
142 MutableStorage()->removeMember(
"groupExpansionMax");
150 const Json::Value& storage = Storage(
"groupExpansionMax");
151 return client::JsonValueToCppValueHelper<int32 >(storage);
164 client::SetJsonValueFromCppValueHelper<int32 >(
165 value, MutableStorage(
"groupExpansionMax"));
174 return Storage().isMember(
"items");
181 MutableStorage()->removeMember(
"items");
188 const client::JsonCppArray<FreeBusyRequestItem > get_items()
const;
197 client::JsonCppArray<FreeBusyRequestItem > mutable_items();
205 return Storage().isMember(
"timeMax");
212 MutableStorage()->removeMember(
"timeMax");
220 const Json::Value& storage = Storage(
"timeMax");
221 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
232 client::SetJsonValueFromCppValueHelper<client::DateTime >(
233 value, MutableStorage(
"timeMax"));
242 return Storage().isMember(
"timeMin");
249 MutableStorage()->removeMember(
"timeMin");
257 const Json::Value& storage = Storage(
"timeMin");
258 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
269 client::SetJsonValueFromCppValueHelper<client::DateTime >(
270 value, MutableStorage(
"timeMin"));
279 return Storage().isMember(
"timeZone");
286 MutableStorage()->removeMember(
"timeZone");
294 const Json::Value& v = Storage(
"timeZone");
295 if (v == Json::Value::null)
return StringPiece(
"");
296 return StringPiece(v.asCString());
307 *MutableStorage(
"timeZone") = value.data();
314 #endif // GOOGLE_CALENDAR_API_FREE_BUSY_REQUEST_H_ bool has_time_zone() const
Definition: free_busy_request.h:278
void set_time_min(client::DateTime value)
Definition: free_busy_request.h:268
void set_group_expansion_max(int32 value)
Definition: free_busy_request.h:163
int32 get_group_expansion_max() const
Definition: free_busy_request.h:149
void set_calendar_expansion_max(int32 value)
Definition: free_busy_request.h:124
Definition: free_busy_request.h:54
bool has_items() const
Definition: free_busy_request.h:173
void clear_time_min()
Definition: free_busy_request.h:248
bool has_group_expansion_max() const
Definition: free_busy_request.h:134
int32 get_calendar_expansion_max() const
Definition: free_busy_request.h:111
const StringPiece get_time_zone() const
Definition: free_busy_request.h:293
const StringPiece GetTypeName() const
Definition: free_busy_request.h:87
void set_time_zone(const StringPiece &value)
Definition: free_busy_request.h:306
void clear_calendar_expansion_max()
Definition: free_busy_request.h:103
bool has_time_max() const
Definition: free_busy_request.h:204
void clear_time_zone()
Definition: free_busy_request.h:285
void set_time_max(client::DateTime value)
Definition: free_busy_request.h:231
bool has_calendar_expansion_max() const
Definition: free_busy_request.h:96
void clear_items()
Definition: free_busy_request.h:180
client::DateTime get_time_max() const
Definition: free_busy_request.h:219
void clear_group_expansion_max()
Definition: free_busy_request.h:141
void clear_time_max()
Definition: free_busy_request.h:211
client::DateTime get_time_min() const
Definition: free_busy_request.h:256
bool has_time_min() const
Definition: free_busy_request.h:241