dataflow  v1b3
list_jobs_response.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, 02:23:49 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Dataflow API (dataflow/v1b3)
24 // Generated from:
25 // Version: v1b3
26 // Revision: 302
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_DATAFLOW_API_LIST_JOBS_RESPONSE_H_
31 #define GOOGLE_DATAFLOW_API_LIST_JOBS_RESPONSE_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/dataflow_api/failed_location.h"
39 #include "google/dataflow_api/job.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_dataflow_api {
46 using namespace googleapis;
47 
57 class ListJobsResponse : public client::JsonCppData {
58  public:
64  static ListJobsResponse* New();
65 
71  explicit ListJobsResponse(const Json::Value& storage);
72 
78  explicit ListJobsResponse(Json::Value* storage);
79 
83  virtual ~ListJobsResponse();
84 
90  const StringPiece GetTypeName() const {
91  return StringPiece("google_dataflow_api::ListJobsResponse");
92  }
93 
99  bool has_failed_location() const {
100  return Storage().isMember("failedLocation");
101  }
102 
107  MutableStorage()->removeMember("failedLocation");
108  }
109 
110 
115  const client::JsonCppArray<FailedLocation > get_failed_location() const;
116 
127  client::JsonCppArray<FailedLocation > mutable_failedLocation();
128 
134  bool has_jobs() const {
135  return Storage().isMember("jobs");
136  }
137 
141  void clear_jobs() {
142  MutableStorage()->removeMember("jobs");
143  }
144 
145 
149  const client::JsonCppArray<Job > get_jobs() const;
150 
158  client::JsonCppArray<Job > mutable_jobs();
159 
165  bool has_next_page_token() const {
166  return Storage().isMember("nextPageToken");
167  }
168 
173  MutableStorage()->removeMember("nextPageToken");
174  }
175 
176 
180  const StringPiece get_next_page_token() const {
181  const Json::Value& v = Storage("nextPageToken");
182  if (v == Json::Value::null) return StringPiece("");
183  return StringPiece(v.asCString());
184  }
185 
193  void set_next_page_token(const StringPiece& value) {
194  *MutableStorage("nextPageToken") = value.data();
195  }
196 
197  private:
198  void operator=(const ListJobsResponse&);
199 }; // ListJobsResponse
200 } // namespace google_dataflow_api
201 #endif // GOOGLE_DATAFLOW_API_LIST_JOBS_RESPONSE_H_
void clear_jobs()
Definition: list_jobs_response.h:141
bool has_next_page_token() const
Definition: list_jobs_response.h:165
bool has_failed_location() const
Definition: list_jobs_response.h:99
void set_next_page_token(const StringPiece &value)
Definition: list_jobs_response.h:193
const StringPiece get_next_page_token() const
Definition: list_jobs_response.h:180
const StringPiece GetTypeName() const
Definition: list_jobs_response.h:90
bool has_jobs() const
Definition: list_jobs_response.h:134
Definition: approximate_progress.h:40
void clear_next_page_token()
Definition: list_jobs_response.h:172
void clear_failed_location()
Definition: list_jobs_response.h:106
Definition: list_jobs_response.h:57
Definition: approximate_progress.cc:42