calendar  v3
entry_point.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_ENTRY_POINT_H_
31 #define GOOGLE_CALENDAR_API_ENTRY_POINT_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 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_calendar_api {
43 using namespace googleapis;
44 
50 class EntryPoint : public client::JsonCppData {
51  public:
57  static EntryPoint* New();
58 
64  explicit EntryPoint(const Json::Value& storage);
65 
71  explicit EntryPoint(Json::Value* storage);
72 
76  virtual ~EntryPoint();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_calendar_api::EntryPoint");
85  }
86 
92  bool has_access_code() const {
93  return Storage().isMember("accessCode");
94  }
95 
100  MutableStorage()->removeMember("accessCode");
101  }
102 
103 
107  const StringPiece get_access_code() const {
108  const Json::Value& v = Storage("accessCode");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
126  void set_access_code(const StringPiece& value) {
127  *MutableStorage("accessCode") = value.data();
128  }
129 
136  return Storage().isMember("entryPointFeatures");
137  }
138 
143  MutableStorage()->removeMember("entryPointFeatures");
144  }
145 
146 
151  const client::JsonCppArray<string > get_entry_point_features() const {
152  const Json::Value& storage = Storage("entryPointFeatures");
153  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
154  }
155 
166  client::JsonCppArray<string > mutable_entryPointFeatures() {
167  Json::Value* storage = MutableStorage("entryPointFeatures");
168  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
169  }
170 
176  bool has_entry_point_type() const {
177  return Storage().isMember("entryPointType");
178  }
179 
184  MutableStorage()->removeMember("entryPointType");
185  }
186 
187 
191  const StringPiece get_entry_point_type() const {
192  const Json::Value& v = Storage("entryPointType");
193  if (v == Json::Value::null) return StringPiece("");
194  return StringPiece(v.asCString());
195  }
196 
221  void set_entry_point_type(const StringPiece& value) {
222  *MutableStorage("entryPointType") = value.data();
223  }
224 
230  bool has_label() const {
231  return Storage().isMember("label");
232  }
233 
237  void clear_label() {
238  MutableStorage()->removeMember("label");
239  }
240 
241 
245  const StringPiece get_label() const {
246  const Json::Value& v = Storage("label");
247  if (v == Json::Value::null) return StringPiece("");
248  return StringPiece(v.asCString());
249  }
250 
273  void set_label(const StringPiece& value) {
274  *MutableStorage("label") = value.data();
275  }
276 
282  bool has_meeting_code() const {
283  return Storage().isMember("meetingCode");
284  }
285 
290  MutableStorage()->removeMember("meetingCode");
291  }
292 
293 
297  const StringPiece get_meeting_code() const {
298  const Json::Value& v = Storage("meetingCode");
299  if (v == Json::Value::null) return StringPiece("");
300  return StringPiece(v.asCString());
301  }
302 
316  void set_meeting_code(const StringPiece& value) {
317  *MutableStorage("meetingCode") = value.data();
318  }
319 
325  bool has_passcode() const {
326  return Storage().isMember("passcode");
327  }
328 
332  void clear_passcode() {
333  MutableStorage()->removeMember("passcode");
334  }
335 
336 
340  const StringPiece get_passcode() const {
341  const Json::Value& v = Storage("passcode");
342  if (v == Json::Value::null) return StringPiece("");
343  return StringPiece(v.asCString());
344  }
345 
358  void set_passcode(const StringPiece& value) {
359  *MutableStorage("passcode") = value.data();
360  }
361 
367  bool has_password() const {
368  return Storage().isMember("password");
369  }
370 
374  void clear_password() {
375  MutableStorage()->removeMember("password");
376  }
377 
378 
382  const StringPiece get_password() const {
383  const Json::Value& v = Storage("password");
384  if (v == Json::Value::null) return StringPiece("");
385  return StringPiece(v.asCString());
386  }
387 
401  void set_password(const StringPiece& value) {
402  *MutableStorage("password") = value.data();
403  }
404 
410  bool has_pin() const {
411  return Storage().isMember("pin");
412  }
413 
417  void clear_pin() {
418  MutableStorage()->removeMember("pin");
419  }
420 
421 
425  const StringPiece get_pin() const {
426  const Json::Value& v = Storage("pin");
427  if (v == Json::Value::null) return StringPiece("");
428  return StringPiece(v.asCString());
429  }
430 
443  void set_pin(const StringPiece& value) {
444  *MutableStorage("pin") = value.data();
445  }
446 
452  bool has_region_code() const {
453  return Storage().isMember("regionCode");
454  }
455 
460  MutableStorage()->removeMember("regionCode");
461  }
462 
463 
467  const StringPiece get_region_code() const {
468  const Json::Value& v = Storage("regionCode");
469  if (v == Json::Value::null) return StringPiece("");
470  return StringPiece(v.asCString());
471  }
472 
482  void set_region_code(const StringPiece& value) {
483  *MutableStorage("regionCode") = value.data();
484  }
485 
491  bool has_uri() const {
492  return Storage().isMember("uri");
493  }
494 
498  void clear_uri() {
499  MutableStorage()->removeMember("uri");
500  }
501 
502 
506  const StringPiece get_uri() const {
507  const Json::Value& v = Storage("uri");
508  if (v == Json::Value::null) return StringPiece("");
509  return StringPiece(v.asCString());
510  }
511 
534  void set_uri(const StringPiece& value) {
535  *MutableStorage("uri") = value.data();
536  }
537 
538  private:
539  void operator=(const EntryPoint&);
540 }; // EntryPoint
541 } // namespace google_calendar_api
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
Definition: acl.h:40
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
Definition: acl.cc:42
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