30 #ifndef GOOGLE_CLASSROOM_API_TIME_OF_DAY_H_ 31 #define GOOGLE_CLASSROOM_API_TIME_OF_DAY_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" 66 explicit TimeOfDay(
const Json::Value& storage);
86 return StringPiece(
"google_classroom_api::TimeOfDay");
95 return Storage().isMember(
"hours");
102 MutableStorage()->removeMember(
"hours");
110 const Json::Value& storage = Storage(
"hours");
111 return client::JsonValueToCppValueHelper<int32 >(storage);
123 client::SetJsonValueFromCppValueHelper<int32 >(
124 value, MutableStorage(
"hours"));
133 return Storage().isMember(
"minutes");
140 MutableStorage()->removeMember(
"minutes");
148 const Json::Value& storage = Storage(
"minutes");
149 return client::JsonValueToCppValueHelper<int32 >(storage);
160 client::SetJsonValueFromCppValueHelper<int32 >(
161 value, MutableStorage(
"minutes"));
170 return Storage().isMember(
"nanos");
177 MutableStorage()->removeMember(
"nanos");
185 const Json::Value& storage = Storage(
"nanos");
186 return client::JsonValueToCppValueHelper<int32 >(storage);
197 client::SetJsonValueFromCppValueHelper<int32 >(
198 value, MutableStorage(
"nanos"));
207 return Storage().isMember(
"seconds");
214 MutableStorage()->removeMember(
"seconds");
222 const Json::Value& storage = Storage(
"seconds");
223 return client::JsonValueToCppValueHelper<int32 >(storage);
235 client::SetJsonValueFromCppValueHelper<int32 >(
236 value, MutableStorage(
"seconds"));
243 #endif // GOOGLE_CLASSROOM_API_TIME_OF_DAY_H_ int32 get_nanos() const
Definition: time_of_day.h:184
void set_minutes(int32 value)
Definition: time_of_day.h:159
void clear_minutes()
Definition: time_of_day.h:139
bool has_minutes() const
Definition: time_of_day.h:132
const StringPiece GetTypeName() const
Definition: time_of_day.h:85
void set_hours(int32 value)
Definition: time_of_day.h:122
void set_seconds(int32 value)
Definition: time_of_day.h:234
void clear_hours()
Definition: time_of_day.h:101
int32 get_hours() const
Definition: time_of_day.h:109
bool has_nanos() const
Definition: time_of_day.h:169
Definition: announcement.h:41
void clear_seconds()
Definition: time_of_day.h:213
void set_nanos(int32 value)
Definition: time_of_day.h:196
int32 get_minutes() const
Definition: time_of_day.h:147
void clear_nanos()
Definition: time_of_day.h:176
int32 get_seconds() const
Definition: time_of_day.h:221
bool has_seconds() const
Definition: time_of_day.h:206
Definition: time_of_day.h:52
Definition: announcement.cc:43
bool has_hours() const
Definition: time_of_day.h:94