androidenterprise  v1
notification_set.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-02-11, 20:26:36 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 Play EMM API (androidenterprise/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 218
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_ANDROIDENTERPRISE_API_NOTIFICATION_SET_H_
31 #define GOOGLE_ANDROIDENTERPRISE_API_NOTIFICATION_SET_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/androidenterprise_api/notification.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
45 using namespace googleapis;
46 
54 class NotificationSet : public client::JsonCppData {
55  public:
61  static NotificationSet* New();
62 
68  explicit NotificationSet(const Json::Value& storage);
69 
75  explicit NotificationSet(Json::Value* storage);
76 
80  virtual ~NotificationSet();
81 
87  const StringPiece GetTypeName() const {
88  return StringPiece("google_androidenterprise_api::NotificationSet");
89  }
90 
96  bool has_kind() const {
97  return Storage().isMember("kind");
98  }
99 
103  void clear_kind() {
104  MutableStorage()->removeMember("kind");
105  }
106 
107 
111  const StringPiece get_kind() const {
112  const Json::Value& v = Storage("kind");
113  if (v == Json::Value::null) return StringPiece("");
114  return StringPiece(v.asCString());
115  }
116 
121  void set_kind(const StringPiece& value) {
122  *MutableStorage("kind") = value.data();
123  }
124 
130  bool has_notification() const {
131  return Storage().isMember("notification");
132  }
133 
138  MutableStorage()->removeMember("notification");
139  }
140 
141 
145  const client::JsonCppArray<Notification > get_notification() const;
146 
155  client::JsonCppArray<Notification > mutable_notification();
156 
162  bool has_notification_set_id() const {
163  return Storage().isMember("notificationSetId");
164  }
165 
170  MutableStorage()->removeMember("notificationSetId");
171  }
172 
173 
177  const StringPiece get_notification_set_id() const {
178  const Json::Value& v = Storage("notificationSetId");
179  if (v == Json::Value::null) return StringPiece("");
180  return StringPiece(v.asCString());
181  }
182 
192  void set_notification_set_id(const StringPiece& value) {
193  *MutableStorage("notificationSetId") = value.data();
194  }
195 
196  private:
197  void operator=(const NotificationSet&);
198 }; // NotificationSet
199 } // namespace google_androidenterprise_api
200 #endif // GOOGLE_ANDROIDENTERPRISE_API_NOTIFICATION_SET_H_
const StringPiece get_notification_set_id() const
Definition: notification_set.h:177
void clear_notification_set_id()
Definition: notification_set.h:169
bool has_kind() const
Definition: notification_set.h:96
bool has_notification() const
Definition: notification_set.h:130
bool has_notification_set_id() const
Definition: notification_set.h:162
Definition: notification_set.h:54
Definition: administrator.h:38
Definition: administrator.cc:40
void clear_notification()
Definition: notification_set.h:137
const StringPiece GetTypeName() const
Definition: notification_set.h:87
void set_kind(const StringPiece &value)
Definition: notification_set.h:121
void set_notification_set_id(const StringPiece &value)
Definition: notification_set.h:192
const StringPiece get_kind() const
Definition: notification_set.h:111
void clear_kind()
Definition: notification_set.h:103