androidenterprise  v1
install.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_INSTALL_H_
31 #define GOOGLE_ANDROIDENTERPRISE_API_INSTALL_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 namespace Json {
40 class Value;
41 } // namespace Json
42 
44 using namespace googleapis;
45 
75 class Install : public client::JsonCppData {
76  public:
82  static Install* New();
83 
89  explicit Install(const Json::Value& storage);
90 
96  explicit Install(Json::Value* storage);
97 
101  virtual ~Install();
102 
108  const StringPiece GetTypeName() const {
109  return StringPiece("google_androidenterprise_api::Install");
110  }
111 
117  bool has_install_state() const {
118  return Storage().isMember("installState");
119  }
120 
125  MutableStorage()->removeMember("installState");
126  }
127 
128 
132  const StringPiece get_install_state() const {
133  const Json::Value& v = Storage("installState");
134  if (v == Json::Value::null) return StringPiece("");
135  return StringPiece(v.asCString());
136  }
137 
147  void set_install_state(const StringPiece& value) {
148  *MutableStorage("installState") = value.data();
149  }
150 
156  bool has_kind() const {
157  return Storage().isMember("kind");
158  }
159 
163  void clear_kind() {
164  MutableStorage()->removeMember("kind");
165  }
166 
167 
171  const StringPiece get_kind() const {
172  const Json::Value& v = Storage("kind");
173  if (v == Json::Value::null) return StringPiece("");
174  return StringPiece(v.asCString());
175  }
176 
181  void set_kind(const StringPiece& value) {
182  *MutableStorage("kind") = value.data();
183  }
184 
190  bool has_product_id() const {
191  return Storage().isMember("productId");
192  }
193 
198  MutableStorage()->removeMember("productId");
199  }
200 
201 
205  const StringPiece get_product_id() const {
206  const Json::Value& v = Storage("productId");
207  if (v == Json::Value::null) return StringPiece("");
208  return StringPiece(v.asCString());
209  }
210 
219  void set_product_id(const StringPiece& value) {
220  *MutableStorage("productId") = value.data();
221  }
222 
228  bool has_version_code() const {
229  return Storage().isMember("versionCode");
230  }
231 
236  MutableStorage()->removeMember("versionCode");
237  }
238 
239 
243  int32 get_version_code() const {
244  const Json::Value& storage = Storage("versionCode");
245  return client::JsonValueToCppValueHelper<int32 >(storage);
246  }
247 
256  void set_version_code(int32 value) {
257  client::SetJsonValueFromCppValueHelper<int32 >(
258  value, MutableStorage("versionCode"));
259  }
260 
261  private:
262  void operator=(const Install&);
263 }; // Install
264 } // namespace google_androidenterprise_api
265 #endif // GOOGLE_ANDROIDENTERPRISE_API_INSTALL_H_
const StringPiece get_product_id() const
Definition: install.h:205
const StringPiece get_kind() const
Definition: install.h:171
void set_version_code(int32 value)
Definition: install.h:256
void clear_install_state()
Definition: install.h:124
const StringPiece get_install_state() const
Definition: install.h:132
bool has_version_code() const
Definition: install.h:228
bool has_product_id() const
Definition: install.h:190
const StringPiece GetTypeName() const
Definition: install.h:108
bool has_install_state() const
Definition: install.h:117
void set_kind(const StringPiece &value)
Definition: install.h:181
Definition: administrator.h:38
void clear_product_id()
Definition: install.h:197
Definition: administrator.cc:40
bool has_kind() const
Definition: install.h:156
void set_install_state(const StringPiece &value)
Definition: install.h:147
void clear_kind()
Definition: install.h:163
int32 get_version_code() const
Definition: install.h:243
void clear_version_code()
Definition: install.h:235
void set_product_id(const StringPiece &value)
Definition: install.h:219