30 #ifndef GOOGLE_ANDROIDENTERPRISE_API_APP_VERSION_H_ 31 #define GOOGLE_ANDROIDENTERPRISE_API_APP_VERSION_H_ 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" 65 explicit AppVersion(
const Json::Value& storage);
85 return StringPiece(
"google_androidenterprise_api::AppVersion");
94 return Storage().isMember(
"isProduction");
101 MutableStorage()->removeMember(
"isProduction");
109 const Json::Value& storage = Storage(
"isProduction");
110 return client::JsonValueToCppValueHelper<bool >(storage);
121 client::SetJsonValueFromCppValueHelper<bool >(
122 value, MutableStorage(
"isProduction"));
131 return Storage().isMember(
"track");
138 MutableStorage()->removeMember(
"track");
146 const Json::Value& v = Storage(
"track");
147 if (v == Json::Value::null)
return StringPiece(
"");
148 return StringPiece(v.asCString());
161 *MutableStorage(
"track") = value.data();
170 return Storage().isMember(
"trackId");
177 MutableStorage()->removeMember(
"trackId");
185 const Json::Value& storage = Storage(
"trackId");
186 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
199 Json::Value* storage = MutableStorage(
"trackId");
200 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
209 return Storage().isMember(
"versionCode");
216 MutableStorage()->removeMember(
"versionCode");
224 const Json::Value& storage = Storage(
"versionCode");
225 return client::JsonValueToCppValueHelper<int32 >(storage);
236 client::SetJsonValueFromCppValueHelper<int32 >(
237 value, MutableStorage(
"versionCode"));
246 return Storage().isMember(
"versionString");
253 MutableStorage()->removeMember(
"versionString");
261 const Json::Value& v = Storage(
"versionString");
262 if (v == Json::Value::null)
return StringPiece(
"");
263 return StringPiece(v.asCString());
276 *MutableStorage(
"versionString") = value.data();
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