30 #ifndef GOOGLE_CONTAINER_API_TIME_WINDOW_H_ 31 #define GOOGLE_CONTAINER_API_TIME_WINDOW_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 64 explicit TimeWindow(
const Json::Value& storage);
84 return StringPiece(
"google_container_api::TimeWindow");
93 return Storage().isMember(
"endTime");
100 MutableStorage()->removeMember(
"endTime");
108 const Json::Value& v = Storage(
"endTime");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
122 *MutableStorage(
"endTime") = value.data();
131 return Storage().isMember(
"startTime");
138 MutableStorage()->removeMember(
"startTime");
146 const Json::Value& v = Storage(
"startTime");
147 if (v == Json::Value::null)
return StringPiece(
"");
148 return StringPiece(v.asCString());
159 *MutableStorage(
"startTime") = value.data();
166 #endif // GOOGLE_CONTAINER_API_TIME_WINDOW_H_ const StringPiece get_start_time() const
Definition: time_window.h:145
bool has_start_time() const
Definition: time_window.h:130
const StringPiece GetTypeName() const
Definition: time_window.h:83
void clear_end_time()
Definition: time_window.h:99
void set_end_time(const StringPiece &value)
Definition: time_window.h:121
const StringPiece get_end_time() const
Definition: time_window.h:107
Definition: accelerator_config.h:39
Definition: time_window.h:50
bool has_end_time() const
Definition: time_window.h:92
void set_start_time(const StringPiece &value)
Definition: time_window.h:158
Definition: accelerator_config.cc:41
void clear_start_time()
Definition: time_window.h:137