games  v1
turn_based_match_rematch.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_TURN_BASED_MATCH_REMATCH_H_
31 #define GOOGLE_GAMES_API_TURN_BASED_MATCH_REMATCH_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/games_api/turn_based_match.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_games_api {
45 using namespace googleapis;
46 
52 class TurnBasedMatchRematch : public client::JsonCppData {
53  public:
59  static TurnBasedMatchRematch* New();
60 
66  explicit TurnBasedMatchRematch(const Json::Value& storage);
67 
73  explicit TurnBasedMatchRematch(Json::Value* storage);
74 
78  virtual ~TurnBasedMatchRematch();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_games_api::TurnBasedMatchRematch");
87  }
88 
94  bool has_kind() const {
95  return Storage().isMember("kind");
96  }
97 
101  void clear_kind() {
102  MutableStorage()->removeMember("kind");
103  }
104 
105 
109  const StringPiece get_kind() const {
110  const Json::Value& v = Storage("kind");
111  if (v == Json::Value::null) return StringPiece("");
112  return StringPiece(v.asCString());
113  }
114 
123  void set_kind(const StringPiece& value) {
124  *MutableStorage("kind") = value.data();
125  }
126 
132  bool has_previous_match() const {
133  return Storage().isMember("previousMatch");
134  }
135 
140  MutableStorage()->removeMember("previousMatch");
141  }
142 
143 
147  const TurnBasedMatch get_previous_match() const;
148 
158  TurnBasedMatch mutable_previousMatch();
159 
165  bool has_rematch() const {
166  return Storage().isMember("rematch");
167  }
168 
172  void clear_rematch() {
173  MutableStorage()->removeMember("rematch");
174  }
175 
176 
180  const TurnBasedMatch get_rematch() const;
181 
190  TurnBasedMatch mutable_rematch();
191 
192  private:
193  void operator=(const TurnBasedMatchRematch&);
194 }; // TurnBasedMatchRematch
195 } // namespace google_games_api
196 #endif // GOOGLE_GAMES_API_TURN_BASED_MATCH_REMATCH_H_
bool has_kind() const
Definition: turn_based_match_rematch.h:94
void set_kind(const StringPiece &value)
Definition: turn_based_match_rematch.h:123
void clear_previous_match()
Definition: turn_based_match_rematch.h:139
const StringPiece get_kind() const
Definition: turn_based_match_rematch.h:109
Definition: turn_based_match_rematch.h:52
Definition: turn_based_match.h:57
bool has_previous_match() const
Definition: turn_based_match_rematch.h:132
void clear_rematch()
Definition: turn_based_match_rematch.h:172
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
void clear_kind()
Definition: turn_based_match_rematch.h:101
const StringPiece GetTypeName() const
Definition: turn_based_match_rematch.h:85
bool has_rematch() const
Definition: turn_based_match_rematch.h:165