storagetransfer  v1
time_of_day.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-19, 04:05:03 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Storage Transfer API (storagetransfer/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 145
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_STORAGETRANSFER_API_TIME_OF_DAY_H_
31 #define GOOGLE_STORAGETRANSFER_API_TIME_OF_DAY_H_
32 
33 #include "googleapis/base/integral_types.h"
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 
43 using namespace googleapis;
44 
52 class TimeOfDay : public client::JsonCppData {
53  public:
59  static TimeOfDay* New();
60 
66  explicit TimeOfDay(const Json::Value& storage);
67 
73  explicit TimeOfDay(Json::Value* storage);
74 
78  virtual ~TimeOfDay();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_storagetransfer_api::TimeOfDay");
87  }
88 
94  bool has_hours() const {
95  return Storage().isMember("hours");
96  }
97 
101  void clear_hours() {
102  MutableStorage()->removeMember("hours");
103  }
104 
105 
109  int32 get_hours() const {
110  const Json::Value& storage = Storage("hours");
111  return client::JsonValueToCppValueHelper<int32 >(storage);
112  }
113 
122  void set_hours(int32 value) {
123  client::SetJsonValueFromCppValueHelper<int32 >(
124  value, MutableStorage("hours"));
125  }
126 
132  bool has_minutes() const {
133  return Storage().isMember("minutes");
134  }
135 
139  void clear_minutes() {
140  MutableStorage()->removeMember("minutes");
141  }
142 
143 
147  int32 get_minutes() const {
148  const Json::Value& storage = Storage("minutes");
149  return client::JsonValueToCppValueHelper<int32 >(storage);
150  }
151 
159  void set_minutes(int32 value) {
160  client::SetJsonValueFromCppValueHelper<int32 >(
161  value, MutableStorage("minutes"));
162  }
163 
169  bool has_nanos() const {
170  return Storage().isMember("nanos");
171  }
172 
176  void clear_nanos() {
177  MutableStorage()->removeMember("nanos");
178  }
179 
180 
184  int32 get_nanos() const {
185  const Json::Value& storage = Storage("nanos");
186  return client::JsonValueToCppValueHelper<int32 >(storage);
187  }
188 
196  void set_nanos(int32 value) {
197  client::SetJsonValueFromCppValueHelper<int32 >(
198  value, MutableStorage("nanos"));
199  }
200 
206  bool has_seconds() const {
207  return Storage().isMember("seconds");
208  }
209 
213  void clear_seconds() {
214  MutableStorage()->removeMember("seconds");
215  }
216 
217 
221  int32 get_seconds() const {
222  const Json::Value& storage = Storage("seconds");
223  return client::JsonValueToCppValueHelper<int32 >(storage);
224  }
225 
234  void set_seconds(int32 value) {
235  client::SetJsonValueFromCppValueHelper<int32 >(
236  value, MutableStorage("seconds"));
237  }
238 
239  private:
240  void operator=(const TimeOfDay&);
241 }; // TimeOfDay
242 } // namespace google_storagetransfer_api
243 #endif // GOOGLE_STORAGETRANSFER_API_TIME_OF_DAY_H_
int32 get_seconds() const
Definition: time_of_day.h:221
void clear_nanos()
Definition: time_of_day.h:176
bool has_nanos() const
Definition: time_of_day.h:169
int32 get_hours() const
Definition: time_of_day.h:109
Definition: time_of_day.h:52
int32 get_minutes() const
Definition: time_of_day.h:147
bool has_minutes() const
Definition: time_of_day.h:132
void set_nanos(int32 value)
Definition: time_of_day.h:196
Definition: aws_access_key.h:38
bool has_seconds() const
Definition: time_of_day.h:206
void set_seconds(int32 value)
Definition: time_of_day.h:234
void clear_minutes()
Definition: time_of_day.h:139
int32 get_nanos() const
Definition: time_of_day.h:184
void set_minutes(int32 value)
Definition: time_of_day.h:159
Definition: aws_access_key.cc:40
void clear_hours()
Definition: time_of_day.h:101
void set_hours(int32 value)
Definition: time_of_day.h:122
bool has_hours() const
Definition: time_of_day.h:94
const StringPiece GetTypeName() const
Definition: time_of_day.h:85
void clear_seconds()
Definition: time_of_day.h:213