30 #ifndef GOOGLE_CLASSROOM_API_LIST_GUARDIANS_RESPONSE_H_ 31 #define GOOGLE_CLASSROOM_API_LIST_GUARDIANS_RESPONSE_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/classroom_api/guardian.h" 86 return StringPiece(
"google_classroom_api::ListGuardiansResponse");
95 return Storage().isMember(
"guardians");
102 MutableStorage()->removeMember(
"guardians");
109 const client::JsonCppArray<Guardian > get_guardians()
const;
120 client::JsonCppArray<Guardian > mutable_guardians();
128 return Storage().isMember(
"nextPageToken");
135 MutableStorage()->removeMember(
"nextPageToken");
143 const Json::Value& v = Storage(
"nextPageToken");
144 if (v == Json::Value::null)
return StringPiece(
"");
145 return StringPiece(v.asCString());
157 *MutableStorage(
"nextPageToken") = value.data();
164 #endif // GOOGLE_CLASSROOM_API_LIST_GUARDIANS_RESPONSE_H_ void set_next_page_token(const StringPiece &value)
Definition: list_guardians_response.h:156
const StringPiece get_next_page_token() const
Definition: list_guardians_response.h:142
void clear_guardians()
Definition: list_guardians_response.h:101
Definition: announcement.h:41
bool has_next_page_token() const
Definition: list_guardians_response.h:127
Definition: announcement.cc:43
const StringPiece GetTypeName() const
Definition: list_guardians_response.h:85
void clear_next_page_token()
Definition: list_guardians_response.h:134
bool has_guardians() const
Definition: list_guardians_response.h:94
Definition: list_guardians_response.h:52