androidenterprise  v1
store_cluster.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_STORE_CLUSTER_H_
31 #define GOOGLE_ANDROIDENTERPRISE_API_STORE_CLUSTER_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/localized_text.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
45 using namespace googleapis;
46 
53 class StoreCluster : public client::JsonCppData {
54  public:
60  static StoreCluster* New();
61 
67  explicit StoreCluster(const Json::Value& storage);
68 
74  explicit StoreCluster(Json::Value* storage);
75 
79  virtual ~StoreCluster();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_androidenterprise_api::StoreCluster");
88  }
89 
95  bool has_id() const {
96  return Storage().isMember("id");
97  }
98 
102  void clear_id() {
103  MutableStorage()->removeMember("id");
104  }
105 
106 
110  const StringPiece get_id() const {
111  const Json::Value& v = Storage("id");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
123  void set_id(const StringPiece& value) {
124  *MutableStorage("id") = value.data();
125  }
126 
132  bool has_kind() const {
133  return Storage().isMember("kind");
134  }
135 
139  void clear_kind() {
140  MutableStorage()->removeMember("kind");
141  }
142 
143 
147  const StringPiece get_kind() const {
148  const Json::Value& v = Storage("kind");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
157  void set_kind(const StringPiece& value) {
158  *MutableStorage("kind") = value.data();
159  }
160 
166  bool has_name() const {
167  return Storage().isMember("name");
168  }
169 
173  void clear_name() {
174  MutableStorage()->removeMember("name");
175  }
176 
177 
181  const client::JsonCppArray<LocalizedText > get_name() const;
182 
192  client::JsonCppArray<LocalizedText > mutable_name();
193 
199  bool has_order_in_page() const {
200  return Storage().isMember("orderInPage");
201  }
202 
207  MutableStorage()->removeMember("orderInPage");
208  }
209 
210 
214  const StringPiece get_order_in_page() const {
215  const Json::Value& v = Storage("orderInPage");
216  if (v == Json::Value::null) return StringPiece("");
217  return StringPiece(v.asCString());
218  }
219 
233  void set_order_in_page(const StringPiece& value) {
234  *MutableStorage("orderInPage") = value.data();
235  }
236 
242  bool has_product_id() const {
243  return Storage().isMember("productId");
244  }
245 
250  MutableStorage()->removeMember("productId");
251  }
252 
253 
257  const client::JsonCppArray<string > get_product_id() const {
258  const Json::Value& storage = Storage("productId");
259  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
260  }
261 
271  client::JsonCppArray<string > mutable_productId() {
272  Json::Value* storage = MutableStorage("productId");
273  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
274  }
275 
276  private:
277  void operator=(const StoreCluster&);
278 }; // StoreCluster
279 } // namespace google_androidenterprise_api
280 #endif // GOOGLE_ANDROIDENTERPRISE_API_STORE_CLUSTER_H_
bool has_kind() const
Definition: store_cluster.h:132
bool has_id() const
Definition: store_cluster.h:95
const client::JsonCppArray< string > get_product_id() const
Definition: store_cluster.h:257
Definition: store_cluster.h:53
const StringPiece get_order_in_page() const
Definition: store_cluster.h:214
void set_order_in_page(const StringPiece &value)
Definition: store_cluster.h:233
void clear_product_id()
Definition: store_cluster.h:249
const StringPiece get_kind() const
Definition: store_cluster.h:147
void set_id(const StringPiece &value)
Definition: store_cluster.h:123
bool has_order_in_page() const
Definition: store_cluster.h:199
Definition: administrator.h:38
Definition: administrator.cc:40
void clear_id()
Definition: store_cluster.h:102
void set_kind(const StringPiece &value)
Definition: store_cluster.h:157
const StringPiece GetTypeName() const
Definition: store_cluster.h:86
bool has_name() const
Definition: store_cluster.h:166
bool has_product_id() const
Definition: store_cluster.h:242
void clear_order_in_page()
Definition: store_cluster.h:206
client::JsonCppArray< string > mutable_productId()
Definition: store_cluster.h:271
void clear_kind()
Definition: store_cluster.h:139
const StringPiece get_id() const
Definition: store_cluster.h:110
void clear_name()
Definition: store_cluster.h:173