calendar  v3
event_attachment.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_ATTACHMENT_H_
31 #define GOOGLE_CALENDAR_API_EVENT_ATTACHMENT_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 EventAttachment : public client::JsonCppData {
51  public:
57  static EventAttachment* New();
58 
64  explicit EventAttachment(const Json::Value& storage);
65 
71  explicit EventAttachment(Json::Value* storage);
72 
76  virtual ~EventAttachment();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_calendar_api::EventAttachment");
85  }
86 
92  bool has_file_id() const {
93  return Storage().isMember("fileId");
94  }
95 
99  void clear_file_id() {
100  MutableStorage()->removeMember("fileId");
101  }
102 
103 
107  const StringPiece get_file_id() const {
108  const Json::Value& v = Storage("fileId");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
122  void set_file_id(const StringPiece& value) {
123  *MutableStorage("fileId") = value.data();
124  }
125 
131  bool has_file_url() const {
132  return Storage().isMember("fileUrl");
133  }
134 
138  void clear_file_url() {
139  MutableStorage()->removeMember("fileUrl");
140  }
141 
142 
146  const StringPiece get_file_url() const {
147  const Json::Value& v = Storage("fileUrl");
148  if (v == Json::Value::null) return StringPiece("");
149  return StringPiece(v.asCString());
150  }
151 
162  void set_file_url(const StringPiece& value) {
163  *MutableStorage("fileUrl") = value.data();
164  }
165 
171  bool has_icon_link() const {
172  return Storage().isMember("iconLink");
173  }
174 
179  MutableStorage()->removeMember("iconLink");
180  }
181 
182 
186  const StringPiece get_icon_link() const {
187  const Json::Value& v = Storage("iconLink");
188  if (v == Json::Value::null) return StringPiece("");
189  return StringPiece(v.asCString());
190  }
191 
199  void set_icon_link(const StringPiece& value) {
200  *MutableStorage("iconLink") = value.data();
201  }
202 
208  bool has_mime_type() const {
209  return Storage().isMember("mimeType");
210  }
211 
216  MutableStorage()->removeMember("mimeType");
217  }
218 
219 
223  const StringPiece get_mime_type() const {
224  const Json::Value& v = Storage("mimeType");
225  if (v == Json::Value::null) return StringPiece("");
226  return StringPiece(v.asCString());
227  }
228 
236  void set_mime_type(const StringPiece& value) {
237  *MutableStorage("mimeType") = value.data();
238  }
239 
245  bool has_title() const {
246  return Storage().isMember("title");
247  }
248 
252  void clear_title() {
253  MutableStorage()->removeMember("title");
254  }
255 
256 
260  const StringPiece get_title() const {
261  const Json::Value& v = Storage("title");
262  if (v == Json::Value::null) return StringPiece("");
263  return StringPiece(v.asCString());
264  }
265 
273  void set_title(const StringPiece& value) {
274  *MutableStorage("title") = value.data();
275  }
276 
277  private:
278  void operator=(const EventAttachment&);
279 }; // EventAttachment
280 } // namespace google_calendar_api
281 #endif // GOOGLE_CALENDAR_API_EVENT_ATTACHMENT_H_
void set_file_url(const StringPiece &value)
Definition: event_attachment.h:162
Definition: event_attachment.h:50
bool has_file_url() const
Definition: event_attachment.h:131
void clear_mime_type()
Definition: event_attachment.h:215
void clear_title()
Definition: event_attachment.h:252
void set_file_id(const StringPiece &value)
Definition: event_attachment.h:122
bool has_file_id() const
Definition: event_attachment.h:92
const StringPiece get_title() const
Definition: event_attachment.h:260
void clear_file_id()
Definition: event_attachment.h:99
void clear_file_url()
Definition: event_attachment.h:138
bool has_title() const
Definition: event_attachment.h:245
const StringPiece get_file_url() const
Definition: event_attachment.h:146
void set_icon_link(const StringPiece &value)
Definition: event_attachment.h:199
const StringPiece get_icon_link() const
Definition: event_attachment.h:186
Definition: acl.h:40
bool has_icon_link() const
Definition: event_attachment.h:171
void set_title(const StringPiece &value)
Definition: event_attachment.h:273
void clear_icon_link()
Definition: event_attachment.h:178
Definition: acl.cc:42
const StringPiece get_mime_type() const
Definition: event_attachment.h:223
bool has_mime_type() const
Definition: event_attachment.h:208
void set_mime_type(const StringPiece &value)
Definition: event_attachment.h:236
const StringPiece get_file_id() const
Definition: event_attachment.h:107
const StringPiece GetTypeName() const
Definition: event_attachment.h:83