androidenterprise  v1
app_version.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_APP_VERSION_H_
31 #define GOOGLE_ANDROIDENTERPRISE_API_APP_VERSION_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 
51 class AppVersion : public client::JsonCppData {
52  public:
58  static AppVersion* New();
59 
65  explicit AppVersion(const Json::Value& storage);
66 
72  explicit AppVersion(Json::Value* storage);
73 
77  virtual ~AppVersion();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_androidenterprise_api::AppVersion");
86  }
87 
93  bool has_is_production() const {
94  return Storage().isMember("isProduction");
95  }
96 
101  MutableStorage()->removeMember("isProduction");
102  }
103 
104 
108  bool get_is_production() const {
109  const Json::Value& storage = Storage("isProduction");
110  return client::JsonValueToCppValueHelper<bool >(storage);
111  }
112 
120  void set_is_production(bool value) {
121  client::SetJsonValueFromCppValueHelper<bool >(
122  value, MutableStorage("isProduction"));
123  }
124 
130  bool has_track() const {
131  return Storage().isMember("track");
132  }
133 
137  void clear_track() {
138  MutableStorage()->removeMember("track");
139  }
140 
141 
145  const StringPiece get_track() const {
146  const Json::Value& v = Storage("track");
147  if (v == Json::Value::null) return StringPiece("");
148  return StringPiece(v.asCString());
149  }
150 
160  void set_track(const StringPiece& value) {
161  *MutableStorage("track") = value.data();
162  }
163 
169  bool has_track_id() const {
170  return Storage().isMember("trackId");
171  }
172 
176  void clear_track_id() {
177  MutableStorage()->removeMember("trackId");
178  }
179 
180 
184  const client::JsonCppArray<string > get_track_id() const {
185  const Json::Value& storage = Storage("trackId");
186  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
187  }
188 
198  client::JsonCppArray<string > mutable_trackId() {
199  Json::Value* storage = MutableStorage("trackId");
200  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
201  }
202 
208  bool has_version_code() const {
209  return Storage().isMember("versionCode");
210  }
211 
216  MutableStorage()->removeMember("versionCode");
217  }
218 
219 
223  int32 get_version_code() const {
224  const Json::Value& storage = Storage("versionCode");
225  return client::JsonValueToCppValueHelper<int32 >(storage);
226  }
227 
235  void set_version_code(int32 value) {
236  client::SetJsonValueFromCppValueHelper<int32 >(
237  value, MutableStorage("versionCode"));
238  }
239 
245  bool has_version_string() const {
246  return Storage().isMember("versionString");
247  }
248 
253  MutableStorage()->removeMember("versionString");
254  }
255 
256 
260  const StringPiece get_version_string() const {
261  const Json::Value& v = Storage("versionString");
262  if (v == Json::Value::null) return StringPiece("");
263  return StringPiece(v.asCString());
264  }
265 
275  void set_version_string(const StringPiece& value) {
276  *MutableStorage("versionString") = value.data();
277  }
278 
279  private:
280  void operator=(const AppVersion&);
281 }; // AppVersion
282 } // namespace google_androidenterprise_api
283 #endif // GOOGLE_ANDROIDENTERPRISE_API_APP_VERSION_H_
bool has_track() const
Definition: app_version.h:130
bool has_is_production() const
Definition: app_version.h:93
const StringPiece get_track() const
Definition: app_version.h:145
void set_version_string(const StringPiece &value)
Definition: app_version.h:275
void clear_version_string()
Definition: app_version.h:252
void set_is_production(bool value)
Definition: app_version.h:120
void set_version_code(int32 value)
Definition: app_version.h:235
Definition: app_version.h:51
bool has_version_code() const
Definition: app_version.h:208
void clear_is_production()
Definition: app_version.h:100
bool get_is_production() const
Definition: app_version.h:108
Definition: administrator.h:38
Definition: administrator.cc:40
const StringPiece GetTypeName() const
Definition: app_version.h:84
bool has_version_string() const
Definition: app_version.h:245
const client::JsonCppArray< string > get_track_id() const
Definition: app_version.h:184
void clear_version_code()
Definition: app_version.h:215
void clear_track()
Definition: app_version.h:137
client::JsonCppArray< string > mutable_trackId()
Definition: app_version.h:198
void set_track(const StringPiece &value)
Definition: app_version.h:160
bool has_track_id() const
Definition: app_version.h:169
void clear_track_id()
Definition: app_version.h:176
int32 get_version_code() const
Definition: app_version.h:223
const StringPiece get_version_string() const
Definition: app_version.h:260