calendar  v3
conference_data.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_CONFERENCE_DATA_H_
31 #define GOOGLE_CALENDAR_API_CONFERENCE_DATA_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_parameters.h"
39 #include "google/calendar_api/conference_solution.h"
40 #include "google/calendar_api/create_conference_request.h"
41 #include "google/calendar_api/entry_point.h"
42 
43 namespace Json {
44 class Value;
45 } // namespace Json
46 
47 namespace google_calendar_api {
48 using namespace googleapis;
49 
55 class ConferenceData : public client::JsonCppData {
56  public:
62  static ConferenceData* New();
63 
69  explicit ConferenceData(const Json::Value& storage);
70 
76  explicit ConferenceData(Json::Value* storage);
77 
81  virtual ~ConferenceData();
82 
88  const StringPiece GetTypeName() const {
89  return StringPiece("google_calendar_api::ConferenceData");
90  }
91 
97  bool has_conference_id() const {
98  return Storage().isMember("conferenceId");
99  }
100 
105  MutableStorage()->removeMember("conferenceId");
106  }
107 
108 
112  const StringPiece get_conference_id() const {
113  const Json::Value& v = Storage("conferenceId");
114  if (v == Json::Value::null) return StringPiece("");
115  return StringPiece(v.asCString());
116  }
117 
139  void set_conference_id(const StringPiece& value) {
140  *MutableStorage("conferenceId") = value.data();
141  }
142 
148  bool has_conference_solution() const {
149  return Storage().isMember("conferenceSolution");
150  }
151 
156  MutableStorage()->removeMember("conferenceSolution");
157  }
158 
159 
164  const ConferenceSolution get_conference_solution() const;
165 
177  ConferenceSolution mutable_conferenceSolution();
178 
184  bool has_create_request() const {
185  return Storage().isMember("createRequest");
186  }
187 
192  MutableStorage()->removeMember("createRequest");
193  }
194 
195 
199  const CreateConferenceRequest get_create_request() const;
200 
213  CreateConferenceRequest mutable_createRequest();
214 
220  bool has_entry_points() const {
221  return Storage().isMember("entryPoints");
222  }
223 
228  MutableStorage()->removeMember("entryPoints");
229  }
230 
231 
235  const client::JsonCppArray<EntryPoint > get_entry_points() const;
236 
249  client::JsonCppArray<EntryPoint > mutable_entryPoints();
250 
256  bool has_notes() const {
257  return Storage().isMember("notes");
258  }
259 
263  void clear_notes() {
264  MutableStorage()->removeMember("notes");
265  }
266 
267 
271  const StringPiece get_notes() const {
272  const Json::Value& v = Storage("notes");
273  if (v == Json::Value::null) return StringPiece("");
274  return StringPiece(v.asCString());
275  }
276 
286  void set_notes(const StringPiece& value) {
287  *MutableStorage("notes") = value.data();
288  }
289 
295  bool has_parameters() const {
296  return Storage().isMember("parameters");
297  }
298 
303  MutableStorage()->removeMember("parameters");
304  }
305 
306 
310  const ConferenceParameters get_parameters() const;
311 
321  ConferenceParameters mutable_parameters();
322 
328  bool has_signature() const {
329  return Storage().isMember("signature");
330  }
331 
336  MutableStorage()->removeMember("signature");
337  }
338 
339 
343  const StringPiece get_signature() const {
344  const Json::Value& v = Storage("signature");
345  if (v == Json::Value::null) return StringPiece("");
346  return StringPiece(v.asCString());
347  }
348 
360  void set_signature(const StringPiece& value) {
361  *MutableStorage("signature") = value.data();
362  }
363 
364  private:
365  void operator=(const ConferenceData&);
366 }; // ConferenceData
367 } // namespace google_calendar_api
368 #endif // GOOGLE_CALENDAR_API_CONFERENCE_DATA_H_
void set_conference_id(const StringPiece &value)
Definition: conference_data.h:139
bool has_signature() const
Definition: conference_data.h:328
const StringPiece get_conference_id() const
Definition: conference_data.h:112
bool has_conference_solution() const
Definition: conference_data.h:148
void clear_notes()
Definition: conference_data.h:263
void set_notes(const StringPiece &value)
Definition: conference_data.h:286
void clear_conference_solution()
Definition: conference_data.h:155
void clear_create_request()
Definition: conference_data.h:191
bool has_conference_id() const
Definition: conference_data.h:97
void set_signature(const StringPiece &value)
Definition: conference_data.h:360
const StringPiece get_notes() const
Definition: conference_data.h:271
void clear_parameters()
Definition: conference_data.h:302
bool has_notes() const
Definition: conference_data.h:256
Definition: conference_solution.h:52
bool has_entry_points() const
Definition: conference_data.h:220
bool has_parameters() const
Definition: conference_data.h:295
Definition: acl.h:40
Definition: conference_parameters.h:51
Definition: acl.cc:42
void clear_conference_id()
Definition: conference_data.h:104
void clear_signature()
Definition: conference_data.h:335
bool has_create_request() const
Definition: conference_data.h:184
const StringPiece GetTypeName() const
Definition: conference_data.h:88
Definition: conference_data.h:55
const StringPiece get_signature() const
Definition: conference_data.h:343
void clear_entry_points()
Definition: conference_data.h:227
Definition: create_conference_request.h:53