calendar  v3
create_conference_request.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_CREATE_CONFERENCE_REQUEST_H_
31 #define GOOGLE_CALENDAR_API_CREATE_CONFERENCE_REQUEST_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_request_status.h"
39 #include "google/calendar_api/conference_solution_key.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_calendar_api {
46 using namespace googleapis;
47 
53 class CreateConferenceRequest : public client::JsonCppData {
54  public:
60  static CreateConferenceRequest* New();
61 
67  explicit CreateConferenceRequest(const Json::Value& storage);
68 
74  explicit CreateConferenceRequest(Json::Value* storage);
75 
79  virtual ~CreateConferenceRequest();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_calendar_api::CreateConferenceRequest");
88  }
89 
96  return Storage().isMember("conferenceSolutionKey");
97  }
98 
103  MutableStorage()->removeMember("conferenceSolutionKey");
104  }
105 
106 
111  const ConferenceSolutionKey get_conference_solution_key() const;
112 
121  ConferenceSolutionKey mutable_conferenceSolutionKey();
122 
128  bool has_request_id() const {
129  return Storage().isMember("requestId");
130  }
131 
136  MutableStorage()->removeMember("requestId");
137  }
138 
139 
143  const StringPiece get_request_id() const {
144  const Json::Value& v = Storage("requestId");
145  if (v == Json::Value::null) return StringPiece("");
146  return StringPiece(v.asCString());
147  }
148 
158  void set_request_id(const StringPiece& value) {
159  *MutableStorage("requestId") = value.data();
160  }
161 
167  bool has_status() const {
168  return Storage().isMember("status");
169  }
170 
174  void clear_status() {
175  MutableStorage()->removeMember("status");
176  }
177 
178 
182  const ConferenceRequestStatus get_status() const;
183 
191  ConferenceRequestStatus mutable_status();
192 
193  private:
194  void operator=(const CreateConferenceRequest&);
195 }; // CreateConferenceRequest
196 } // namespace google_calendar_api
197 #endif // GOOGLE_CALENDAR_API_CREATE_CONFERENCE_REQUEST_H_
Definition: conference_solution_key.h:50
void clear_conference_solution_key()
Definition: create_conference_request.h:102
Definition: conference_request_status.h:50
void clear_status()
Definition: create_conference_request.h:174
bool has_conference_solution_key() const
Definition: create_conference_request.h:95
void set_request_id(const StringPiece &value)
Definition: create_conference_request.h:158
bool has_request_id() const
Definition: create_conference_request.h:128
Definition: acl.h:40
const StringPiece GetTypeName() const
Definition: create_conference_request.h:86
Definition: acl.cc:42
void clear_request_id()
Definition: create_conference_request.h:135
const StringPiece get_request_id() const
Definition: create_conference_request.h:143
Definition: create_conference_request.h:53
bool has_status() const
Definition: create_conference_request.h:167