games  v1
snapshot_image.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-03-07, 08:12:42 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 Game Services API (games/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 358
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_GAMES_API_SNAPSHOT_IMAGE_H_
31 #define GOOGLE_GAMES_API_SNAPSHOT_IMAGE_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 
43 namespace google_games_api {
44 using namespace googleapis;
45 
51 class SnapshotImage : public client::JsonCppData {
52  public:
58  static SnapshotImage* New();
59 
65  explicit SnapshotImage(const Json::Value& storage);
66 
72  explicit SnapshotImage(Json::Value* storage);
73 
77  virtual ~SnapshotImage();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_games_api::SnapshotImage");
86  }
87 
93  bool has_height() const {
94  return Storage().isMember("height");
95  }
96 
100  void clear_height() {
101  MutableStorage()->removeMember("height");
102  }
103 
104 
108  int32 get_height() const {
109  const Json::Value& storage = Storage("height");
110  return client::JsonValueToCppValueHelper<int32 >(storage);
111  }
112 
120  void set_height(int32 value) {
121  client::SetJsonValueFromCppValueHelper<int32 >(
122  value, MutableStorage("height"));
123  }
124 
130  bool has_kind() const {
131  return Storage().isMember("kind");
132  }
133 
137  void clear_kind() {
138  MutableStorage()->removeMember("kind");
139  }
140 
141 
145  const StringPiece get_kind() const {
146  const Json::Value& v = Storage("kind");
147  if (v == Json::Value::null) return StringPiece("");
148  return StringPiece(v.asCString());
149  }
150 
159  void set_kind(const StringPiece& value) {
160  *MutableStorage("kind") = value.data();
161  }
162 
168  bool has_mime_type() const {
169  return Storage().isMember("mime_type");
170  }
171 
176  MutableStorage()->removeMember("mime_type");
177  }
178 
179 
183  const StringPiece get_mime_type() const {
184  const Json::Value& v = Storage("mime_type");
185  if (v == Json::Value::null) return StringPiece("");
186  return StringPiece(v.asCString());
187  }
188 
196  void set_mime_type(const StringPiece& value) {
197  *MutableStorage("mime_type") = value.data();
198  }
199 
205  bool has_url() const {
206  return Storage().isMember("url");
207  }
208 
212  void clear_url() {
213  MutableStorage()->removeMember("url");
214  }
215 
216 
220  const StringPiece get_url() const {
221  const Json::Value& v = Storage("url");
222  if (v == Json::Value::null) return StringPiece("");
223  return StringPiece(v.asCString());
224  }
225 
234  void set_url(const StringPiece& value) {
235  *MutableStorage("url") = value.data();
236  }
237 
243  bool has_width() const {
244  return Storage().isMember("width");
245  }
246 
250  void clear_width() {
251  MutableStorage()->removeMember("width");
252  }
253 
254 
258  int32 get_width() const {
259  const Json::Value& storage = Storage("width");
260  return client::JsonValueToCppValueHelper<int32 >(storage);
261  }
262 
270  void set_width(int32 value) {
271  client::SetJsonValueFromCppValueHelper<int32 >(
272  value, MutableStorage("width"));
273  }
274 
275  private:
276  void operator=(const SnapshotImage&);
277 }; // SnapshotImage
278 } // namespace google_games_api
279 #endif // GOOGLE_GAMES_API_SNAPSHOT_IMAGE_H_
void set_width(int32 value)
Definition: snapshot_image.h:270
void clear_url()
Definition: snapshot_image.h:212
void set_kind(const StringPiece &value)
Definition: snapshot_image.h:159
bool has_mime_type() const
Definition: snapshot_image.h:168
int32 get_height() const
Definition: snapshot_image.h:108
const StringPiece get_mime_type() const
Definition: snapshot_image.h:183
bool has_width() const
Definition: snapshot_image.h:243
bool has_url() const
Definition: snapshot_image.h:205
void set_url(const StringPiece &value)
Definition: snapshot_image.h:234
const StringPiece get_kind() const
Definition: snapshot_image.h:145
void clear_height()
Definition: snapshot_image.h:100
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
void clear_width()
Definition: snapshot_image.h:250
void clear_kind()
Definition: snapshot_image.h:137
void clear_mime_type()
Definition: snapshot_image.h:175
bool has_kind() const
Definition: snapshot_image.h:130
int32 get_width() const
Definition: snapshot_image.h:258
Definition: snapshot_image.h:51
void set_height(int32 value)
Definition: snapshot_image.h:120
const StringPiece get_url() const
Definition: snapshot_image.h:220
void set_mime_type(const StringPiece &value)
Definition: snapshot_image.h:196
const StringPiece GetTypeName() const
Definition: snapshot_image.h:84
bool has_height() const
Definition: snapshot_image.h:93