androidenterprise  v1
product.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_PRODUCT_H_
31 #define GOOGLE_ANDROIDENTERPRISE_API_PRODUCT_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 #include "google/androidenterprise_api/app_version.h"
40 #include "google/androidenterprise_api/product_permission.h"
41 #include "google/androidenterprise_api/product_signing_certificate.h"
42 #include "google/androidenterprise_api/track_info.h"
43 
44 namespace Json {
45 class Value;
46 } // namespace Json
47 
49 using namespace googleapis;
50 
63 class Product : public client::JsonCppData {
64  public:
70  static Product* New();
71 
77  explicit Product(const Json::Value& storage);
78 
84  explicit Product(Json::Value* storage);
85 
89  virtual ~Product();
90 
96  const StringPiece GetTypeName() const {
97  return StringPiece("google_androidenterprise_api::Product");
98  }
99 
105  bool has_app_tracks() const {
106  return Storage().isMember("appTracks");
107  }
108 
113  MutableStorage()->removeMember("appTracks");
114  }
115 
116 
120  const client::JsonCppArray<TrackInfo > get_app_tracks() const;
121 
130  client::JsonCppArray<TrackInfo > mutable_appTracks();
131 
137  bool has_app_version() const {
138  return Storage().isMember("appVersion");
139  }
140 
145  MutableStorage()->removeMember("appVersion");
146  }
147 
148 
152  const client::JsonCppArray<AppVersion > get_app_version() const;
153 
162  client::JsonCppArray<AppVersion > mutable_appVersion();
163 
169  bool has_author_name() const {
170  return Storage().isMember("authorName");
171  }
172 
177  MutableStorage()->removeMember("authorName");
178  }
179 
180 
184  const StringPiece get_author_name() const {
185  const Json::Value& v = Storage("authorName");
186  if (v == Json::Value::null) return StringPiece("");
187  return StringPiece(v.asCString());
188  }
189 
197  void set_author_name(const StringPiece& value) {
198  *MutableStorage("authorName") = value.data();
199  }
200 
206  bool has_available_countries() const {
207  return Storage().isMember("availableCountries");
208  }
209 
214  MutableStorage()->removeMember("availableCountries");
215  }
216 
217 
222  const client::JsonCppArray<string > get_available_countries() const {
223  const Json::Value& storage = Storage("availableCountries");
224  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
225  }
226 
235  client::JsonCppArray<string > mutable_availableCountries() {
236  Json::Value* storage = MutableStorage("availableCountries");
237  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
238  }
239 
245  bool has_available_tracks() const {
246  return Storage().isMember("availableTracks");
247  }
248 
253  MutableStorage()->removeMember("availableTracks");
254  }
255 
256 
261  const client::JsonCppArray<string > get_available_tracks() const {
262  const Json::Value& storage = Storage("availableTracks");
263  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
264  }
265 
276  client::JsonCppArray<string > mutable_availableTracks() {
277  Json::Value* storage = MutableStorage("availableTracks");
278  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
279  }
280 
286  bool has_category() const {
287  return Storage().isMember("category");
288  }
289 
293  void clear_category() {
294  MutableStorage()->removeMember("category");
295  }
296 
297 
301  const StringPiece get_category() const {
302  const Json::Value& v = Storage("category");
303  if (v == Json::Value::null) return StringPiece("");
304  return StringPiece(v.asCString());
305  }
306 
314  void set_category(const StringPiece& value) {
315  *MutableStorage("category") = value.data();
316  }
317 
323  bool has_content_rating() const {
324  return Storage().isMember("contentRating");
325  }
326 
331  MutableStorage()->removeMember("contentRating");
332  }
333 
334 
338  const StringPiece get_content_rating() const {
339  const Json::Value& v = Storage("contentRating");
340  if (v == Json::Value::null) return StringPiece("");
341  return StringPiece(v.asCString());
342  }
343 
351  void set_content_rating(const StringPiece& value) {
352  *MutableStorage("contentRating") = value.data();
353  }
354 
360  bool has_description() const {
361  return Storage().isMember("description");
362  }
363 
368  MutableStorage()->removeMember("description");
369  }
370 
371 
375  const StringPiece get_description() const {
376  const Json::Value& v = Storage("description");
377  if (v == Json::Value::null) return StringPiece("");
378  return StringPiece(v.asCString());
379  }
380 
388  void set_description(const StringPiece& value) {
389  *MutableStorage("description") = value.data();
390  }
391 
397  bool has_details_url() const {
398  return Storage().isMember("detailsUrl");
399  }
400 
405  MutableStorage()->removeMember("detailsUrl");
406  }
407 
408 
412  const StringPiece get_details_url() const {
413  const Json::Value& v = Storage("detailsUrl");
414  if (v == Json::Value::null) return StringPiece("");
415  return StringPiece(v.asCString());
416  }
417 
425  void set_details_url(const StringPiece& value) {
426  *MutableStorage("detailsUrl") = value.data();
427  }
428 
435  return Storage().isMember("distributionChannel");
436  }
437 
442  MutableStorage()->removeMember("distributionChannel");
443  }
444 
445 
449  const StringPiece get_distribution_channel() const {
450  const Json::Value& v = Storage("distributionChannel");
451  if (v == Json::Value::null) return StringPiece("");
452  return StringPiece(v.asCString());
453  }
454 
467  void set_distribution_channel(const StringPiece& value) {
468  *MutableStorage("distributionChannel") = value.data();
469  }
470 
476  bool has_features() const {
477  return Storage().isMember("features");
478  }
479 
483  void clear_features() {
484  MutableStorage()->removeMember("features");
485  }
486 
487 
491  const client::JsonCppArray<string > get_features() const {
492  const Json::Value& storage = Storage("features");
493  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
494  }
495 
504  client::JsonCppArray<string > mutable_features() {
505  Json::Value* storage = MutableStorage("features");
506  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
507  }
508 
514  bool has_icon_url() const {
515  return Storage().isMember("iconUrl");
516  }
517 
521  void clear_icon_url() {
522  MutableStorage()->removeMember("iconUrl");
523  }
524 
525 
529  const StringPiece get_icon_url() const {
530  const Json::Value& v = Storage("iconUrl");
531  if (v == Json::Value::null) return StringPiece("");
532  return StringPiece(v.asCString());
533  }
534 
543  void set_icon_url(const StringPiece& value) {
544  *MutableStorage("iconUrl") = value.data();
545  }
546 
552  bool has_kind() const {
553  return Storage().isMember("kind");
554  }
555 
559  void clear_kind() {
560  MutableStorage()->removeMember("kind");
561  }
562 
563 
567  const StringPiece get_kind() const {
568  const Json::Value& v = Storage("kind");
569  if (v == Json::Value::null) return StringPiece("");
570  return StringPiece(v.asCString());
571  }
572 
577  void set_kind(const StringPiece& value) {
578  *MutableStorage("kind") = value.data();
579  }
580 
589  return Storage().isMember("lastUpdatedTimestampMillis");
590  }
591 
596  MutableStorage()->removeMember("lastUpdatedTimestampMillis");
597  }
598 
599 
604  const Json::Value& storage = Storage("lastUpdatedTimestampMillis");
605  return client::JsonValueToCppValueHelper<int64 >(storage);
606  }
607 
617  client::SetJsonValueFromCppValueHelper<int64 >(
618  value, MutableStorage("lastUpdatedTimestampMillis"));
619  }
620 
627  return Storage().isMember("minAndroidSdkVersion");
628  }
629 
634  MutableStorage()->removeMember("minAndroidSdkVersion");
635  }
636 
637 
642  const Json::Value& storage = Storage("minAndroidSdkVersion");
643  return client::JsonValueToCppValueHelper<int32 >(storage);
644  }
645 
653  void set_min_android_sdk_version(int32 value) {
654  client::SetJsonValueFromCppValueHelper<int32 >(
655  value, MutableStorage("minAndroidSdkVersion"));
656  }
657 
663  bool has_permissions() const {
664  return Storage().isMember("permissions");
665  }
666 
671  MutableStorage()->removeMember("permissions");
672  }
673 
674 
678  const client::JsonCppArray<ProductPermission > get_permissions() const;
679 
688  client::JsonCppArray<ProductPermission > mutable_permissions();
689 
695  bool has_product_id() const {
696  return Storage().isMember("productId");
697  }
698 
703  MutableStorage()->removeMember("productId");
704  }
705 
706 
710  const StringPiece get_product_id() const {
711  const Json::Value& v = Storage("productId");
712  if (v == Json::Value::null) return StringPiece("");
713  return StringPiece(v.asCString());
714  }
715 
724  void set_product_id(const StringPiece& value) {
725  *MutableStorage("productId") = value.data();
726  }
727 
733  bool has_product_pricing() const {
734  return Storage().isMember("productPricing");
735  }
736 
741  MutableStorage()->removeMember("productPricing");
742  }
743 
744 
748  const StringPiece get_product_pricing() const {
749  const Json::Value& v = Storage("productPricing");
750  if (v == Json::Value::null) return StringPiece("");
751  return StringPiece(v.asCString());
752  }
753 
763  void set_product_pricing(const StringPiece& value) {
764  *MutableStorage("productPricing") = value.data();
765  }
766 
772  bool has_recent_changes() const {
773  return Storage().isMember("recentChanges");
774  }
775 
780  MutableStorage()->removeMember("recentChanges");
781  }
782 
783 
787  const StringPiece get_recent_changes() const {
788  const Json::Value& v = Storage("recentChanges");
789  if (v == Json::Value::null) return StringPiece("");
790  return StringPiece(v.asCString());
791  }
792 
800  void set_recent_changes(const StringPiece& value) {
801  *MutableStorage("recentChanges") = value.data();
802  }
803 
810  return Storage().isMember("requiresContainerApp");
811  }
812 
817  MutableStorage()->removeMember("requiresContainerApp");
818  }
819 
820 
825  const Json::Value& storage = Storage("requiresContainerApp");
826  return client::JsonValueToCppValueHelper<bool >(storage);
827  }
828 
838  void set_requires_container_app(bool value) {
839  client::SetJsonValueFromCppValueHelper<bool >(
840  value, MutableStorage("requiresContainerApp"));
841  }
842 
848  bool has_screenshot_urls() const {
849  return Storage().isMember("screenshotUrls");
850  }
851 
856  MutableStorage()->removeMember("screenshotUrls");
857  }
858 
859 
864  const client::JsonCppArray<string > get_screenshot_urls() const {
865  const Json::Value& storage = Storage("screenshotUrls");
866  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
867  }
868 
877  client::JsonCppArray<string > mutable_screenshotUrls() {
878  Json::Value* storage = MutableStorage("screenshotUrls");
879  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
880  }
881 
887  bool has_signing_certificate() const {
888  return Storage().isMember("signingCertificate");
889  }
890 
895  MutableStorage()->removeMember("signingCertificate");
896  }
897 
898 
903  const ProductSigningCertificate get_signing_certificate() const;
904 
913  ProductSigningCertificate mutable_signingCertificate();
914 
920  bool has_small_icon_url() const {
921  return Storage().isMember("smallIconUrl");
922  }
923 
928  MutableStorage()->removeMember("smallIconUrl");
929  }
930 
931 
935  const StringPiece get_small_icon_url() const {
936  const Json::Value& v = Storage("smallIconUrl");
937  if (v == Json::Value::null) return StringPiece("");
938  return StringPiece(v.asCString());
939  }
940 
949  void set_small_icon_url(const StringPiece& value) {
950  *MutableStorage("smallIconUrl") = value.data();
951  }
952 
958  bool has_title() const {
959  return Storage().isMember("title");
960  }
961 
965  void clear_title() {
966  MutableStorage()->removeMember("title");
967  }
968 
969 
973  const StringPiece get_title() const {
974  const Json::Value& v = Storage("title");
975  if (v == Json::Value::null) return StringPiece("");
976  return StringPiece(v.asCString());
977  }
978 
986  void set_title(const StringPiece& value) {
987  *MutableStorage("title") = value.data();
988  }
989 
995  bool has_work_details_url() const {
996  return Storage().isMember("workDetailsUrl");
997  }
998 
1003  MutableStorage()->removeMember("workDetailsUrl");
1004  }
1005 
1006 
1010  const StringPiece get_work_details_url() const {
1011  const Json::Value& v = Storage("workDetailsUrl");
1012  if (v == Json::Value::null) return StringPiece("");
1013  return StringPiece(v.asCString());
1014  }
1015 
1024  void set_work_details_url(const StringPiece& value) {
1025  *MutableStorage("workDetailsUrl") = value.data();
1026  }
1027 
1028  private:
1029  void operator=(const Product&);
1030 }; // Product
1031 } // namespace google_androidenterprise_api
1032 #endif // GOOGLE_ANDROIDENTERPRISE_API_PRODUCT_H_
void set_content_rating(const StringPiece &value)
Definition: product.h:351
const StringPiece get_product_pricing() const
Definition: product.h:748
bool has_available_tracks() const
Definition: product.h:245
void set_requires_container_app(bool value)
Definition: product.h:838
const StringPiece get_work_details_url() const
Definition: product.h:1010
void set_recent_changes(const StringPiece &value)
Definition: product.h:800
bool has_icon_url() const
Definition: product.h:514
const StringPiece get_title() const
Definition: product.h:973
void clear_last_updated_timestamp_millis()
Definition: product.h:595
void clear_app_version()
Definition: product.h:144
void set_small_icon_url(const StringPiece &value)
Definition: product.h:949
bool has_category() const
Definition: product.h:286
void set_details_url(const StringPiece &value)
Definition: product.h:425
const StringPiece get_distribution_channel() const
Definition: product.h:449
bool has_work_details_url() const
Definition: product.h:995
bool has_app_version() const
Definition: product.h:137
void clear_category()
Definition: product.h:293
void clear_author_name()
Definition: product.h:176
void clear_product_pricing()
Definition: product.h:740
void clear_product_id()
Definition: product.h:702
bool has_app_tracks() const
Definition: product.h:105
const client::JsonCppArray< string > get_screenshot_urls() const
Definition: product.h:864
void clear_features()
Definition: product.h:483
bool has_title() const
Definition: product.h:958
void clear_available_tracks()
Definition: product.h:252
const StringPiece get_details_url() const
Definition: product.h:412
void set_description(const StringPiece &value)
Definition: product.h:388
bool has_available_countries() const
Definition: product.h:206
const StringPiece get_recent_changes() const
Definition: product.h:787
void clear_title()
Definition: product.h:965
bool has_author_name() const
Definition: product.h:169
void set_min_android_sdk_version(int32 value)
Definition: product.h:653
bool has_features() const
Definition: product.h:476
bool has_screenshot_urls() const
Definition: product.h:848
const StringPiece get_small_icon_url() const
Definition: product.h:935
bool has_requires_container_app() const
Definition: product.h:809
int64 get_last_updated_timestamp_millis() const
Definition: product.h:603
void set_author_name(const StringPiece &value)
Definition: product.h:197
const StringPiece get_description() const
Definition: product.h:375
void clear_work_details_url()
Definition: product.h:1002
const client::JsonCppArray< string > get_available_countries() const
Definition: product.h:222
bool has_kind() const
Definition: product.h:552
const StringPiece get_content_rating() const
Definition: product.h:338
void set_icon_url(const StringPiece &value)
Definition: product.h:543
void set_last_updated_timestamp_millis(int64 value)
Definition: product.h:616
void clear_icon_url()
Definition: product.h:521
const StringPiece get_category() const
Definition: product.h:301
bool has_details_url() const
Definition: product.h:397
void clear_small_icon_url()
Definition: product.h:927
const StringPiece GetTypeName() const
Definition: product.h:96
void set_kind(const StringPiece &value)
Definition: product.h:577
Definition: administrator.h:38
Definition: administrator.cc:40
void clear_available_countries()
Definition: product.h:213
bool has_description() const
Definition: product.h:360
void clear_screenshot_urls()
Definition: product.h:855
client::JsonCppArray< string > mutable_availableTracks()
Definition: product.h:276
void set_product_pricing(const StringPiece &value)
Definition: product.h:763
bool has_product_pricing() const
Definition: product.h:733
bool has_permissions() const
Definition: product.h:663
const StringPiece get_author_name() const
Definition: product.h:184
bool has_product_id() const
Definition: product.h:695
void clear_content_rating()
Definition: product.h:330
bool has_signing_certificate() const
Definition: product.h:887
Definition: product_signing_certificate.h:50
void clear_app_tracks()
Definition: product.h:112
void clear_description()
Definition: product.h:367
void clear_details_url()
Definition: product.h:404
const StringPiece get_kind() const
Definition: product.h:567
bool has_distribution_channel() const
Definition: product.h:434
bool has_min_android_sdk_version() const
Definition: product.h:626
client::JsonCppArray< string > mutable_features()
Definition: product.h:504
const client::JsonCppArray< string > get_features() const
Definition: product.h:491
bool has_small_icon_url() const
Definition: product.h:920
bool has_content_rating() const
Definition: product.h:323
void set_category(const StringPiece &value)
Definition: product.h:314
void set_work_details_url(const StringPiece &value)
Definition: product.h:1024
void clear_signing_certificate()
Definition: product.h:894
void clear_min_android_sdk_version()
Definition: product.h:633
void clear_kind()
Definition: product.h:559
void clear_permissions()
Definition: product.h:670
bool has_recent_changes() const
Definition: product.h:772
bool get_requires_container_app() const
Definition: product.h:824
void set_distribution_channel(const StringPiece &value)
Definition: product.h:467
client::JsonCppArray< string > mutable_screenshotUrls()
Definition: product.h:877
void clear_distribution_channel()
Definition: product.h:441
void clear_recent_changes()
Definition: product.h:779
int32 get_min_android_sdk_version() const
Definition: product.h:641
client::JsonCppArray< string > mutable_availableCountries()
Definition: product.h:235
const StringPiece get_icon_url() const
Definition: product.h:529
void clear_requires_container_app()
Definition: product.h:816
const client::JsonCppArray< string > get_available_tracks() const
Definition: product.h:261
void set_product_id(const StringPiece &value)
Definition: product.h:724
bool has_last_updated_timestamp_millis() const
Definition: product.h:588
void set_title(const StringPiece &value)
Definition: product.h:986
const StringPiece get_product_id() const
Definition: product.h:710