calendar  v3
calendar.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_CALENDAR_H_
31 #define GOOGLE_CALENDAR_API_CALENDAR_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 #include "google/calendar_api/conference_properties.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_calendar_api {
45 using namespace googleapis;
46 
52 class Calendar : public client::JsonCppData {
53  public:
59  static Calendar* New();
60 
66  explicit Calendar(const Json::Value& storage);
67 
73  explicit Calendar(Json::Value* storage);
74 
78  virtual ~Calendar();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_calendar_api::Calendar");
87  }
88 
95  return Storage().isMember("conferenceProperties");
96  }
97 
102  MutableStorage()->removeMember("conferenceProperties");
103  }
104 
105 
110  const ConferenceProperties get_conference_properties() const;
111 
121  ConferenceProperties mutable_conferenceProperties();
122 
128  bool has_description() const {
129  return Storage().isMember("description");
130  }
131 
136  MutableStorage()->removeMember("description");
137  }
138 
139 
143  const StringPiece get_description() const {
144  const Json::Value& v = Storage("description");
145  if (v == Json::Value::null) return StringPiece("");
146  return StringPiece(v.asCString());
147  }
148 
156  void set_description(const StringPiece& value) {
157  *MutableStorage("description") = value.data();
158  }
159 
165  bool has_etag() const {
166  return Storage().isMember("etag");
167  }
168 
172  void clear_etag() {
173  MutableStorage()->removeMember("etag");
174  }
175 
176 
180  const StringPiece get_etag() const {
181  const Json::Value& v = Storage("etag");
182  if (v == Json::Value::null) return StringPiece("");
183  return StringPiece(v.asCString());
184  }
185 
193  void set_etag(const StringPiece& value) {
194  *MutableStorage("etag") = value.data();
195  }
196 
202  bool has_id() const {
203  return Storage().isMember("id");
204  }
205 
209  void clear_id() {
210  MutableStorage()->removeMember("id");
211  }
212 
213 
217  const StringPiece get_id() const {
218  const Json::Value& v = Storage("id");
219  if (v == Json::Value::null) return StringPiece("");
220  return StringPiece(v.asCString());
221  }
222 
231  void set_id(const StringPiece& value) {
232  *MutableStorage("id") = value.data();
233  }
234 
240  bool has_kind() const {
241  return Storage().isMember("kind");
242  }
243 
247  void clear_kind() {
248  MutableStorage()->removeMember("kind");
249  }
250 
251 
255  const StringPiece get_kind() const {
256  const Json::Value& v = Storage("kind");
257  if (v == Json::Value::null) return StringPiece("");
258  return StringPiece(v.asCString());
259  }
260 
268  void set_kind(const StringPiece& value) {
269  *MutableStorage("kind") = value.data();
270  }
271 
277  bool has_location() const {
278  return Storage().isMember("location");
279  }
280 
284  void clear_location() {
285  MutableStorage()->removeMember("location");
286  }
287 
288 
292  const StringPiece get_location() const {
293  const Json::Value& v = Storage("location");
294  if (v == Json::Value::null) return StringPiece("");
295  return StringPiece(v.asCString());
296  }
297 
305  void set_location(const StringPiece& value) {
306  *MutableStorage("location") = value.data();
307  }
308 
314  bool has_summary() const {
315  return Storage().isMember("summary");
316  }
317 
321  void clear_summary() {
322  MutableStorage()->removeMember("summary");
323  }
324 
325 
329  const StringPiece get_summary() const {
330  const Json::Value& v = Storage("summary");
331  if (v == Json::Value::null) return StringPiece("");
332  return StringPiece(v.asCString());
333  }
334 
342  void set_summary(const StringPiece& value) {
343  *MutableStorage("summary") = value.data();
344  }
345 
351  bool has_time_zone() const {
352  return Storage().isMember("timeZone");
353  }
354 
359  MutableStorage()->removeMember("timeZone");
360  }
361 
362 
366  const StringPiece get_time_zone() const {
367  const Json::Value& v = Storage("timeZone");
368  if (v == Json::Value::null) return StringPiece("");
369  return StringPiece(v.asCString());
370  }
371 
380  void set_time_zone(const StringPiece& value) {
381  *MutableStorage("timeZone") = value.data();
382  }
383 
384  private:
385  void operator=(const Calendar&);
386 }; // Calendar
387 } // namespace google_calendar_api
388 #endif // GOOGLE_CALENDAR_API_CALENDAR_H_
bool has_etag() const
Definition: calendar.h:165
void clear_conference_properties()
Definition: calendar.h:101
void set_description(const StringPiece &value)
Definition: calendar.h:156
void clear_location()
Definition: calendar.h:284
bool has_id() const
Definition: calendar.h:202
bool has_time_zone() const
Definition: calendar.h:351
const StringPiece get_kind() const
Definition: calendar.h:255
bool has_kind() const
Definition: calendar.h:240
const StringPiece get_location() const
Definition: calendar.h:292
void clear_etag()
Definition: calendar.h:172
void set_time_zone(const StringPiece &value)
Definition: calendar.h:380
bool has_summary() const
Definition: calendar.h:314
void clear_time_zone()
Definition: calendar.h:358
bool has_description() const
Definition: calendar.h:128
void set_summary(const StringPiece &value)
Definition: calendar.h:342
void set_etag(const StringPiece &value)
Definition: calendar.h:193
bool has_conference_properties() const
Definition: calendar.h:94
const StringPiece get_id() const
Definition: calendar.h:217
void set_id(const StringPiece &value)
Definition: calendar.h:231
void set_kind(const StringPiece &value)
Definition: calendar.h:268
Definition: acl.h:40
Definition: conference_properties.h:50
const StringPiece get_description() const
Definition: calendar.h:143
Definition: calendar.h:52
const StringPiece get_time_zone() const
Definition: calendar.h:366
Definition: acl.cc:42
void clear_summary()
Definition: calendar.h:321
void clear_id()
Definition: calendar.h:209
const StringPiece get_summary() const
Definition: calendar.h:329
void clear_kind()
Definition: calendar.h:247
const StringPiece GetTypeName() const
Definition: calendar.h:85
void clear_description()
Definition: calendar.h:135
void set_location(const StringPiece &value)
Definition: calendar.h:305
bool has_location() const
Definition: calendar.h:277
const StringPiece get_etag() const
Definition: calendar.h:180