30 #ifndef GOOGLE_CALENDAR_API_EVENT_ATTACHMENT_H_ 31 #define GOOGLE_CALENDAR_API_EVENT_ATTACHMENT_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_calendar_api::EventAttachment");
93 return Storage().isMember(
"fileId");
100 MutableStorage()->removeMember(
"fileId");
108 const Json::Value& v = Storage(
"fileId");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
123 *MutableStorage(
"fileId") = value.data();
132 return Storage().isMember(
"fileUrl");
139 MutableStorage()->removeMember(
"fileUrl");
147 const Json::Value& v = Storage(
"fileUrl");
148 if (v == Json::Value::null)
return StringPiece(
"");
149 return StringPiece(v.asCString());
163 *MutableStorage(
"fileUrl") = value.data();
172 return Storage().isMember(
"iconLink");
179 MutableStorage()->removeMember(
"iconLink");
187 const Json::Value& v = Storage(
"iconLink");
188 if (v == Json::Value::null)
return StringPiece(
"");
189 return StringPiece(v.asCString());
200 *MutableStorage(
"iconLink") = value.data();
209 return Storage().isMember(
"mimeType");
216 MutableStorage()->removeMember(
"mimeType");
224 const Json::Value& v = Storage(
"mimeType");
225 if (v == Json::Value::null)
return StringPiece(
"");
226 return StringPiece(v.asCString());
237 *MutableStorage(
"mimeType") = value.data();
246 return Storage().isMember(
"title");
253 MutableStorage()->removeMember(
"title");
261 const Json::Value& v = Storage(
"title");
262 if (v == Json::Value::null)
return StringPiece(
"");
263 return StringPiece(v.asCString());
274 *MutableStorage(
"title") = value.data();
281 #endif // GOOGLE_CALENDAR_API_EVENT_ATTACHMENT_H_ void set_file_url(const StringPiece &value)
Definition: event_attachment.h:162
Definition: event_attachment.h:50
bool has_file_url() const
Definition: event_attachment.h:131
void clear_mime_type()
Definition: event_attachment.h:215
void clear_title()
Definition: event_attachment.h:252
void set_file_id(const StringPiece &value)
Definition: event_attachment.h:122
bool has_file_id() const
Definition: event_attachment.h:92
const StringPiece get_title() const
Definition: event_attachment.h:260
void clear_file_id()
Definition: event_attachment.h:99
void clear_file_url()
Definition: event_attachment.h:138
bool has_title() const
Definition: event_attachment.h:245
const StringPiece get_file_url() const
Definition: event_attachment.h:146
void set_icon_link(const StringPiece &value)
Definition: event_attachment.h:199
const StringPiece get_icon_link() const
Definition: event_attachment.h:186
bool has_icon_link() const
Definition: event_attachment.h:171
void set_title(const StringPiece &value)
Definition: event_attachment.h:273
void clear_icon_link()
Definition: event_attachment.h:178
const StringPiece get_mime_type() const
Definition: event_attachment.h:223
bool has_mime_type() const
Definition: event_attachment.h:208
void set_mime_type(const StringPiece &value)
Definition: event_attachment.h:236
const StringPiece get_file_id() const
Definition: event_attachment.h:107
const StringPiece GetTypeName() const
Definition: event_attachment.h:83