books  v1
books_cloudloading_resource.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-14, 18:51:48 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Books API (books/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 114
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_BOOKS_API_BOOKS_CLOUDLOADING_RESOURCE_H_
31 #define GOOGLE_BOOKS_API_BOOKS_CLOUDLOADING_RESOURCE_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 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_books_api {
43 using namespace googleapis;
44 
50 class BooksCloudloadingResource : public client::JsonCppData {
51  public:
57  static BooksCloudloadingResource* New();
58 
64  explicit BooksCloudloadingResource(const Json::Value& storage);
65 
71  explicit BooksCloudloadingResource(Json::Value* storage);
72 
76  virtual ~BooksCloudloadingResource();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_books_api::BooksCloudloadingResource");
85  }
86 
92  bool has_author() const {
93  return Storage().isMember("author");
94  }
95 
99  void clear_author() {
100  MutableStorage()->removeMember("author");
101  }
102 
103 
107  const StringPiece get_author() const {
108  const Json::Value& v = Storage("author");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
117  void set_author(const StringPiece& value) {
118  *MutableStorage("author") = value.data();
119  }
120 
126  bool has_processing_state() const {
127  return Storage().isMember("processingState");
128  }
129 
134  MutableStorage()->removeMember("processingState");
135  }
136 
137 
141  const StringPiece get_processing_state() const {
142  const Json::Value& v = Storage("processingState");
143  if (v == Json::Value::null) return StringPiece("");
144  return StringPiece(v.asCString());
145  }
146 
151  void set_processing_state(const StringPiece& value) {
152  *MutableStorage("processingState") = value.data();
153  }
154 
160  bool has_title() const {
161  return Storage().isMember("title");
162  }
163 
167  void clear_title() {
168  MutableStorage()->removeMember("title");
169  }
170 
171 
175  const StringPiece get_title() const {
176  const Json::Value& v = Storage("title");
177  if (v == Json::Value::null) return StringPiece("");
178  return StringPiece(v.asCString());
179  }
180 
185  void set_title(const StringPiece& value) {
186  *MutableStorage("title") = value.data();
187  }
188 
194  bool has_volume_id() const {
195  return Storage().isMember("volumeId");
196  }
197 
202  MutableStorage()->removeMember("volumeId");
203  }
204 
205 
209  const StringPiece get_volume_id() const {
210  const Json::Value& v = Storage("volumeId");
211  if (v == Json::Value::null) return StringPiece("");
212  return StringPiece(v.asCString());
213  }
214 
219  void set_volume_id(const StringPiece& value) {
220  *MutableStorage("volumeId") = value.data();
221  }
222 
223  private:
224  void operator=(const BooksCloudloadingResource&);
225 }; // BooksCloudloadingResource
226 } // namespace google_books_api
227 #endif // GOOGLE_BOOKS_API_BOOKS_CLOUDLOADING_RESOURCE_H_
void set_volume_id(const StringPiece &value)
Definition: books_cloudloading_resource.h:219
void set_author(const StringPiece &value)
Definition: books_cloudloading_resource.h:117
void clear_title()
Definition: books_cloudloading_resource.h:167
void clear_volume_id()
Definition: books_cloudloading_resource.h:201
bool has_author() const
Definition: books_cloudloading_resource.h:92
const StringPiece GetTypeName() const
Definition: books_cloudloading_resource.h:83
bool has_volume_id() const
Definition: books_cloudloading_resource.h:194
const StringPiece get_author() const
Definition: books_cloudloading_resource.h:107
const StringPiece get_processing_state() const
Definition: books_cloudloading_resource.h:141
Definition: annotation.h:42
void set_title(const StringPiece &value)
Definition: books_cloudloading_resource.h:185
bool has_processing_state() const
Definition: books_cloudloading_resource.h:126
const StringPiece get_volume_id() const
Definition: books_cloudloading_resource.h:209
bool has_title() const
Definition: books_cloudloading_resource.h:160
Definition: annotation.cc:44
const StringPiece get_title() const
Definition: books_cloudloading_resource.h:175
void clear_author()
Definition: books_cloudloading_resource.h:99
void set_processing_state(const StringPiece &value)
Definition: books_cloudloading_resource.h:151
Definition: books_cloudloading_resource.h:50
void clear_processing_state()
Definition: books_cloudloading_resource.h:133