classroom  v1
feed.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_FEED_H_
31 #define GOOGLE_CLASSROOM_API_FEED_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/classroom_api/course_roster_changes_info.h"
39 #include "google/classroom_api/course_work_changes_info.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_classroom_api {
46 using namespace googleapis;
47 
54 class Feed : public client::JsonCppData {
55  public:
61  static Feed* New();
62 
68  explicit Feed(const Json::Value& storage);
69 
75  explicit Feed(Json::Value* storage);
76 
80  virtual ~Feed();
81 
87  const StringPiece GetTypeName() const {
88  return StringPiece("google_classroom_api::Feed");
89  }
90 
98  return Storage().isMember("courseRosterChangesInfo");
99  }
100 
105  MutableStorage()->removeMember("courseRosterChangesInfo");
106  }
107 
108 
113  const CourseRosterChangesInfo get_course_roster_changes_info() const;
114 
124  CourseRosterChangesInfo mutable_courseRosterChangesInfo();
125 
132  return Storage().isMember("courseWorkChangesInfo");
133  }
134 
139  MutableStorage()->removeMember("courseWorkChangesInfo");
140  }
141 
142 
147  const CourseWorkChangesInfo get_course_work_changes_info() const;
148 
158  CourseWorkChangesInfo mutable_courseWorkChangesInfo();
159 
165  bool has_feed_type() const {
166  return Storage().isMember("feedType");
167  }
168 
173  MutableStorage()->removeMember("feedType");
174  }
175 
176 
180  const StringPiece get_feed_type() const {
181  const Json::Value& v = Storage("feedType");
182  if (v == Json::Value::null) return StringPiece("");
183  return StringPiece(v.asCString());
184  }
185 
193  void set_feed_type(const StringPiece& value) {
194  *MutableStorage("feedType") = value.data();
195  }
196 
197  private:
198  void operator=(const Feed&);
199 }; // Feed
200 } // namespace google_classroom_api
201 #endif // GOOGLE_CLASSROOM_API_FEED_H_
Definition: feed.h:54
void clear_course_work_changes_info()
Definition: feed.h:138
Definition: course_work_changes_info.h:50
Definition: course_roster_changes_info.h:50
void set_feed_type(const StringPiece &value)
Definition: feed.h:193
void clear_feed_type()
Definition: feed.h:172
bool has_course_work_changes_info() const
Definition: feed.h:131
Definition: announcement.h:41
bool has_course_roster_changes_info() const
Definition: feed.h:97
Definition: announcement.cc:43
void clear_course_roster_changes_info()
Definition: feed.h:104
bool has_feed_type() const
Definition: feed.h:165
const StringPiece get_feed_type() const
Definition: feed.h:180
const StringPiece GetTypeName() const
Definition: feed.h:87