calendar  v3
event_attendee.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2020-03-19, 04:06:47 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Calendar API (calendar/v3)
24 // Generated from:
25 // Version: v3
26 // Revision: 411
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_CALENDAR_API_EVENT_ATTENDEE_H_
31 #define GOOGLE_CALENDAR_API_EVENT_ATTENDEE_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_calendar_api {
44 using namespace googleapis;
45 
51 class EventAttendee : public client::JsonCppData {
52  public:
58  static EventAttendee* New();
59 
65  explicit EventAttendee(const Json::Value& storage);
66 
72  explicit EventAttendee(Json::Value* storage);
73 
77  virtual ~EventAttendee();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_calendar_api::EventAttendee");
86  }
87 
93  bool has_additional_guests() const {
94  return Storage().isMember("additionalGuests");
95  }
96 
101  MutableStorage()->removeMember("additionalGuests");
102  }
103 
104 
108  int32 get_additional_guests() const {
109  const Json::Value& storage = Storage("additionalGuests");
110  return client::JsonValueToCppValueHelper<int32 >(storage);
111  }
112 
120  void set_additional_guests(int32 value) {
121  client::SetJsonValueFromCppValueHelper<int32 >(
122  value, MutableStorage("additionalGuests"));
123  }
124 
130  bool has_comment() const {
131  return Storage().isMember("comment");
132  }
133 
137  void clear_comment() {
138  MutableStorage()->removeMember("comment");
139  }
140 
141 
145  const StringPiece get_comment() const {
146  const Json::Value& v = Storage("comment");
147  if (v == Json::Value::null) return StringPiece("");
148  return StringPiece(v.asCString());
149  }
150 
158  void set_comment(const StringPiece& value) {
159  *MutableStorage("comment") = value.data();
160  }
161 
167  bool has_display_name() const {
168  return Storage().isMember("displayName");
169  }
170 
175  MutableStorage()->removeMember("displayName");
176  }
177 
178 
182  const StringPiece get_display_name() const {
183  const Json::Value& v = Storage("displayName");
184  if (v == Json::Value::null) return StringPiece("");
185  return StringPiece(v.asCString());
186  }
187 
195  void set_display_name(const StringPiece& value) {
196  *MutableStorage("displayName") = value.data();
197  }
198 
204  bool has_email() const {
205  return Storage().isMember("email");
206  }
207 
211  void clear_email() {
212  MutableStorage()->removeMember("email");
213  }
214 
215 
219  const StringPiece get_email() const {
220  const Json::Value& v = Storage("email");
221  if (v == Json::Value::null) return StringPiece("");
222  return StringPiece(v.asCString());
223  }
224 
234  void set_email(const StringPiece& value) {
235  *MutableStorage("email") = value.data();
236  }
237 
243  bool has_id() const {
244  return Storage().isMember("id");
245  }
246 
250  void clear_id() {
251  MutableStorage()->removeMember("id");
252  }
253 
254 
258  const StringPiece get_id() const {
259  const Json::Value& v = Storage("id");
260  if (v == Json::Value::null) return StringPiece("");
261  return StringPiece(v.asCString());
262  }
263 
272  void set_id(const StringPiece& value) {
273  *MutableStorage("id") = value.data();
274  }
275 
281  bool has_optional() const {
282  return Storage().isMember("optional");
283  }
284 
288  void clear_optional() {
289  MutableStorage()->removeMember("optional");
290  }
291 
292 
296  bool get_optional() const {
297  const Json::Value& storage = Storage("optional");
298  return client::JsonValueToCppValueHelper<bool >(storage);
299  }
300 
308  void set_optional(bool value) {
309  client::SetJsonValueFromCppValueHelper<bool >(
310  value, MutableStorage("optional"));
311  }
312 
318  bool has_organizer() const {
319  return Storage().isMember("organizer");
320  }
321 
326  MutableStorage()->removeMember("organizer");
327  }
328 
329 
333  bool get_organizer() const {
334  const Json::Value& storage = Storage("organizer");
335  return client::JsonValueToCppValueHelper<bool >(storage);
336  }
337 
346  void set_organizer(bool value) {
347  client::SetJsonValueFromCppValueHelper<bool >(
348  value, MutableStorage("organizer"));
349  }
350 
356  bool has_resource() const {
357  return Storage().isMember("resource");
358  }
359 
363  void clear_resource() {
364  MutableStorage()->removeMember("resource");
365  }
366 
367 
371  bool get_resource() const {
372  const Json::Value& storage = Storage("resource");
373  return client::JsonValueToCppValueHelper<bool >(storage);
374  }
375 
385  void set_resource(bool value) {
386  client::SetJsonValueFromCppValueHelper<bool >(
387  value, MutableStorage("resource"));
388  }
389 
395  bool has_response_status() const {
396  return Storage().isMember("responseStatus");
397  }
398 
403  MutableStorage()->removeMember("responseStatus");
404  }
405 
406 
410  const StringPiece get_response_status() const {
411  const Json::Value& v = Storage("responseStatus");
412  if (v == Json::Value::null) return StringPiece("");
413  return StringPiece(v.asCString());
414  }
415 
434  void set_response_status(const StringPiece& value) {
435  *MutableStorage("responseStatus") = value.data();
436  }
437 
443  bool has_self() const {
444  return Storage().isMember("self");
445  }
446 
450  void clear_self() {
451  MutableStorage()->removeMember("self");
452  }
453 
454 
458  bool get_self() const {
459  const Json::Value& storage = Storage("self");
460  return client::JsonValueToCppValueHelper<bool >(storage);
461  }
462 
471  void set_self(bool value) {
472  client::SetJsonValueFromCppValueHelper<bool >(
473  value, MutableStorage("self"));
474  }
475 
476  private:
477  void operator=(const EventAttendee&);
478 }; // EventAttendee
479 } // namespace google_calendar_api
480 #endif // GOOGLE_CALENDAR_API_EVENT_ATTENDEE_H_
void set_display_name(const StringPiece &value)
Definition: event_attendee.h:195
void clear_email()
Definition: event_attendee.h:211
void clear_display_name()
Definition: event_attendee.h:174
void clear_comment()
Definition: event_attendee.h:137
void clear_response_status()
Definition: event_attendee.h:402
void clear_organizer()
Definition: event_attendee.h:325
bool get_resource() const
Definition: event_attendee.h:371
void clear_optional()
Definition: event_attendee.h:288
void set_id(const StringPiece &value)
Definition: event_attendee.h:272
const StringPiece get_display_name() const
Definition: event_attendee.h:182
void clear_self()
Definition: event_attendee.h:450
bool has_self() const
Definition: event_attendee.h:443
void set_resource(bool value)
Definition: event_attendee.h:385
void clear_id()
Definition: event_attendee.h:250
void clear_additional_guests()
Definition: event_attendee.h:100
bool get_self() const
Definition: event_attendee.h:458
bool has_resource() const
Definition: event_attendee.h:356
void set_optional(bool value)
Definition: event_attendee.h:308
void set_response_status(const StringPiece &value)
Definition: event_attendee.h:434
Definition: acl.h:40
const StringPiece get_id() const
Definition: event_attendee.h:258
bool has_response_status() const
Definition: event_attendee.h:395
int32 get_additional_guests() const
Definition: event_attendee.h:108
bool has_comment() const
Definition: event_attendee.h:130
Definition: acl.cc:42
void set_self(bool value)
Definition: event_attendee.h:471
bool get_organizer() const
Definition: event_attendee.h:333
bool has_email() const
Definition: event_attendee.h:204
bool get_optional() const
Definition: event_attendee.h:296
void set_organizer(bool value)
Definition: event_attendee.h:346
const StringPiece get_comment() const
Definition: event_attendee.h:145
const StringPiece GetTypeName() const
Definition: event_attendee.h:84
Definition: event_attendee.h:51
void set_email(const StringPiece &value)
Definition: event_attendee.h:234
void set_comment(const StringPiece &value)
Definition: event_attendee.h:158
bool has_display_name() const
Definition: event_attendee.h:167
const StringPiece get_email() const
Definition: event_attendee.h:219
bool has_organizer() const
Definition: event_attendee.h:318
const StringPiece get_response_status() const
Definition: event_attendee.h:410
void set_additional_guests(int32 value)
Definition: event_attendee.h:120
bool has_additional_guests() const
Definition: event_attendee.h:93
void clear_resource()
Definition: event_attendee.h:363
bool has_id() const
Definition: event_attendee.h:243
bool has_optional() const
Definition: event_attendee.h:281