classroom  v1
course_material.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-13, 00:00: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 // Google Classroom API (classroom/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 386
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_CLASSROOM_API_COURSE_MATERIAL_H_
31 #define GOOGLE_CLASSROOM_API_COURSE_MATERIAL_H_
32 
33 #include "googleapis/base/macros.h"
34 #include "googleapis/client/data/jsoncpp_data.h"
35 #include "googleapis/strings/stringpiece.h"
36 
37 #include "google/classroom_api/drive_file.h"
38 #include "google/classroom_api/form.h"
39 #include "google/classroom_api/link.h"
40 #include "google/classroom_api/you_tube_video.h"
41 
42 namespace Json {
43 class Value;
44 } // namespace Json
45 
46 namespace google_classroom_api {
47 using namespace googleapis;
48 
54 class CourseMaterial : public client::JsonCppData {
55  public:
61  static CourseMaterial* New();
62 
68  explicit CourseMaterial(const Json::Value& storage);
69 
75  explicit CourseMaterial(Json::Value* storage);
76 
80  virtual ~CourseMaterial();
81 
87  const StringPiece GetTypeName() const {
88  return StringPiece("google_classroom_api::CourseMaterial");
89  }
90 
96  bool has_drive_file() const {
97  return Storage().isMember("driveFile");
98  }
99 
104  MutableStorage()->removeMember("driveFile");
105  }
106 
107 
111  const DriveFile get_drive_file() const;
112 
121  DriveFile mutable_driveFile();
122 
128  bool has_form() const {
129  return Storage().isMember("form");
130  }
131 
135  void clear_form() {
136  MutableStorage()->removeMember("form");
137  }
138 
139 
143  const Form get_form() const;
144 
152  Form mutable_form();
153 
159  bool has_link() const {
160  return Storage().isMember("link");
161  }
162 
166  void clear_link() {
167  MutableStorage()->removeMember("link");
168  }
169 
170 
174  const Link get_link() const;
175 
183  Link mutable_link();
184 
190  bool has_you_tube_video() const {
191  return Storage().isMember("youTubeVideo");
192  }
193 
198  MutableStorage()->removeMember("youTubeVideo");
199  }
200 
201 
205  const YouTubeVideo get_you_tube_video() const;
206 
215  YouTubeVideo mutable_youTubeVideo();
216 
217  private:
218  void operator=(const CourseMaterial&);
219 }; // CourseMaterial
220 } // namespace google_classroom_api
221 #endif // GOOGLE_CLASSROOM_API_COURSE_MATERIAL_H_
void clear_form()
Definition: course_material.h:135
Definition: drive_file.h:50
bool has_link() const
Definition: course_material.h:159
void clear_link()
Definition: course_material.h:166
bool has_you_tube_video() const
Definition: course_material.h:190
bool has_form() const
Definition: course_material.h:128
void clear_you_tube_video()
Definition: course_material.h:197
const StringPiece GetTypeName() const
Definition: course_material.h:87
void clear_drive_file()
Definition: course_material.h:103
Definition: course_material.h:54
Definition: announcement.h:41
Definition: announcement.cc:43
Definition: you_tube_video.h:50
Definition: form.h:50
bool has_drive_file() const
Definition: course_material.h:96