30 #ifndef GOOGLE_CALENDAR_API_ENTRY_POINT_H_ 31 #define GOOGLE_CALENDAR_API_ENTRY_POINT_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 64 explicit EntryPoint(
const Json::Value& storage);
84 return StringPiece(
"google_calendar_api::EntryPoint");
93 return Storage().isMember(
"accessCode");
100 MutableStorage()->removeMember(
"accessCode");
108 const Json::Value& v = Storage(
"accessCode");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
127 *MutableStorage(
"accessCode") = value.data();
136 return Storage().isMember(
"entryPointFeatures");
143 MutableStorage()->removeMember(
"entryPointFeatures");
152 const Json::Value& storage = Storage(
"entryPointFeatures");
153 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
167 Json::Value* storage = MutableStorage(
"entryPointFeatures");
168 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
177 return Storage().isMember(
"entryPointType");
184 MutableStorage()->removeMember(
"entryPointType");
192 const Json::Value& v = Storage(
"entryPointType");
193 if (v == Json::Value::null)
return StringPiece(
"");
194 return StringPiece(v.asCString());
222 *MutableStorage(
"entryPointType") = value.data();
231 return Storage().isMember(
"label");
238 MutableStorage()->removeMember(
"label");
246 const Json::Value& v = Storage(
"label");
247 if (v == Json::Value::null)
return StringPiece(
"");
248 return StringPiece(v.asCString());
274 *MutableStorage(
"label") = value.data();
283 return Storage().isMember(
"meetingCode");
290 MutableStorage()->removeMember(
"meetingCode");
298 const Json::Value& v = Storage(
"meetingCode");
299 if (v == Json::Value::null)
return StringPiece(
"");
300 return StringPiece(v.asCString());
317 *MutableStorage(
"meetingCode") = value.data();
326 return Storage().isMember(
"passcode");
333 MutableStorage()->removeMember(
"passcode");
341 const Json::Value& v = Storage(
"passcode");
342 if (v == Json::Value::null)
return StringPiece(
"");
343 return StringPiece(v.asCString());
359 *MutableStorage(
"passcode") = value.data();
368 return Storage().isMember(
"password");
375 MutableStorage()->removeMember(
"password");
383 const Json::Value& v = Storage(
"password");
384 if (v == Json::Value::null)
return StringPiece(
"");
385 return StringPiece(v.asCString());
402 *MutableStorage(
"password") = value.data();
411 return Storage().isMember(
"pin");
418 MutableStorage()->removeMember(
"pin");
426 const Json::Value& v = Storage(
"pin");
427 if (v == Json::Value::null)
return StringPiece(
"");
428 return StringPiece(v.asCString());
444 *MutableStorage(
"pin") = value.data();
453 return Storage().isMember(
"regionCode");
460 MutableStorage()->removeMember(
"regionCode");
468 const Json::Value& v = Storage(
"regionCode");
469 if (v == Json::Value::null)
return StringPiece(
"");
470 return StringPiece(v.asCString());
483 *MutableStorage(
"regionCode") = value.data();
492 return Storage().isMember(
"uri");
499 MutableStorage()->removeMember(
"uri");
507 const Json::Value& v = Storage(
"uri");
508 if (v == Json::Value::null)
return StringPiece(
"");
509 return StringPiece(v.asCString());
535 *MutableStorage(
"uri") = value.data();
542 #endif // GOOGLE_CALENDAR_API_ENTRY_POINT_H_ bool has_region_code() const
Definition: entry_point.h:452
const StringPiece get_access_code() const
Definition: entry_point.h:107
void clear_pin()
Definition: entry_point.h:417
bool has_label() const
Definition: entry_point.h:230
client::JsonCppArray< string > mutable_entryPointFeatures()
Definition: entry_point.h:166
const StringPiece GetTypeName() const
Definition: entry_point.h:83
void set_access_code(const StringPiece &value)
Definition: entry_point.h:126
const StringPiece get_pin() const
Definition: entry_point.h:425
bool has_access_code() const
Definition: entry_point.h:92
const StringPiece get_label() const
Definition: entry_point.h:245
void set_meeting_code(const StringPiece &value)
Definition: entry_point.h:316
const StringPiece get_passcode() const
Definition: entry_point.h:340
const StringPiece get_region_code() const
Definition: entry_point.h:467
void clear_uri()
Definition: entry_point.h:498
void set_uri(const StringPiece &value)
Definition: entry_point.h:534
const StringPiece get_meeting_code() const
Definition: entry_point.h:297
void clear_entry_point_type()
Definition: entry_point.h:183
void clear_access_code()
Definition: entry_point.h:99
bool has_pin() const
Definition: entry_point.h:410
bool has_entry_point_type() const
Definition: entry_point.h:176
void clear_passcode()
Definition: entry_point.h:332
void set_region_code(const StringPiece &value)
Definition: entry_point.h:482
bool has_password() const
Definition: entry_point.h:367
void set_entry_point_type(const StringPiece &value)
Definition: entry_point.h:221
const StringPiece get_uri() const
Definition: entry_point.h:506
void clear_password()
Definition: entry_point.h:374
const StringPiece get_entry_point_type() const
Definition: entry_point.h:191
bool has_passcode() const
Definition: entry_point.h:325
bool has_uri() const
Definition: entry_point.h:491
void set_passcode(const StringPiece &value)
Definition: entry_point.h:358
bool has_meeting_code() const
Definition: entry_point.h:282
const StringPiece get_password() const
Definition: entry_point.h:382
void clear_meeting_code()
Definition: entry_point.h:289
void clear_entry_point_features()
Definition: entry_point.h:142
void clear_region_code()
Definition: entry_point.h:459
void clear_label()
Definition: entry_point.h:237
void set_pin(const StringPiece &value)
Definition: entry_point.h:443
bool has_entry_point_features() const
Definition: entry_point.h:135
void set_password(const StringPiece &value)
Definition: entry_point.h:401
Definition: entry_point.h:50
const client::JsonCppArray< string > get_entry_point_features() const
Definition: entry_point.h:151
void set_label(const StringPiece &value)
Definition: entry_point.h:273