bigquery  v2
script_stack_frame.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, 23:51:40 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // BigQuery API (bigquery/v2)
24 // Generated from:
25 // Version: v2
26 // Revision: 459
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_BIGQUERY_API_SCRIPT_STACK_FRAME_H_
31 #define GOOGLE_BIGQUERY_API_SCRIPT_STACK_FRAME_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_bigquery_api {
44 using namespace googleapis;
45 
51 class ScriptStackFrame : public client::JsonCppData {
52  public:
58  static ScriptStackFrame* New();
59 
65  explicit ScriptStackFrame(const Json::Value& storage);
66 
72  explicit ScriptStackFrame(Json::Value* storage);
73 
77  virtual ~ScriptStackFrame();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_bigquery_api::ScriptStackFrame");
86  }
87 
93  bool has_end_column() const {
94  return Storage().isMember("endColumn");
95  }
96 
101  MutableStorage()->removeMember("endColumn");
102  }
103 
104 
108  int32 get_end_column() const {
109  const Json::Value& storage = Storage("endColumn");
110  return client::JsonValueToCppValueHelper<int32 >(storage);
111  }
112 
120  void set_end_column(int32 value) {
121  client::SetJsonValueFromCppValueHelper<int32 >(
122  value, MutableStorage("endColumn"));
123  }
124 
130  bool has_end_line() const {
131  return Storage().isMember("endLine");
132  }
133 
137  void clear_end_line() {
138  MutableStorage()->removeMember("endLine");
139  }
140 
141 
145  int32 get_end_line() const {
146  const Json::Value& storage = Storage("endLine");
147  return client::JsonValueToCppValueHelper<int32 >(storage);
148  }
149 
157  void set_end_line(int32 value) {
158  client::SetJsonValueFromCppValueHelper<int32 >(
159  value, MutableStorage("endLine"));
160  }
161 
167  bool has_procedure_id() const {
168  return Storage().isMember("procedureId");
169  }
170 
175  MutableStorage()->removeMember("procedureId");
176  }
177 
178 
182  const StringPiece get_procedure_id() const {
183  const Json::Value& v = Storage("procedureId");
184  if (v == Json::Value::null) return StringPiece("");
185  return StringPiece(v.asCString());
186  }
187 
195  void set_procedure_id(const StringPiece& value) {
196  *MutableStorage("procedureId") = value.data();
197  }
198 
204  bool has_start_column() const {
205  return Storage().isMember("startColumn");
206  }
207 
212  MutableStorage()->removeMember("startColumn");
213  }
214 
215 
219  int32 get_start_column() const {
220  const Json::Value& storage = Storage("startColumn");
221  return client::JsonValueToCppValueHelper<int32 >(storage);
222  }
223 
231  void set_start_column(int32 value) {
232  client::SetJsonValueFromCppValueHelper<int32 >(
233  value, MutableStorage("startColumn"));
234  }
235 
241  bool has_start_line() const {
242  return Storage().isMember("startLine");
243  }
244 
249  MutableStorage()->removeMember("startLine");
250  }
251 
252 
256  int32 get_start_line() const {
257  const Json::Value& storage = Storage("startLine");
258  return client::JsonValueToCppValueHelper<int32 >(storage);
259  }
260 
268  void set_start_line(int32 value) {
269  client::SetJsonValueFromCppValueHelper<int32 >(
270  value, MutableStorage("startLine"));
271  }
272 
278  bool has_text() const {
279  return Storage().isMember("text");
280  }
281 
285  void clear_text() {
286  MutableStorage()->removeMember("text");
287  }
288 
289 
293  const StringPiece get_text() const {
294  const Json::Value& v = Storage("text");
295  if (v == Json::Value::null) return StringPiece("");
296  return StringPiece(v.asCString());
297  }
298 
306  void set_text(const StringPiece& value) {
307  *MutableStorage("text") = value.data();
308  }
309 
310  private:
311  void operator=(const ScriptStackFrame&);
312 }; // ScriptStackFrame
313 } // namespace google_bigquery_api
314 #endif // GOOGLE_BIGQUERY_API_SCRIPT_STACK_FRAME_H_
int32 get_end_column() const
Definition: script_stack_frame.h:108
void clear_end_line()
Definition: script_stack_frame.h:137
const StringPiece get_text() const
Definition: script_stack_frame.h:293
void set_text(const StringPiece &value)
Definition: script_stack_frame.h:306
Definition: aggregate_classification_metrics.cc:39
void set_end_column(int32 value)
Definition: script_stack_frame.h:120
int32 get_end_line() const
Definition: script_stack_frame.h:145
bool has_end_line() const
Definition: script_stack_frame.h:130
void clear_text()
Definition: script_stack_frame.h:285
void clear_start_line()
Definition: script_stack_frame.h:248
bool has_procedure_id() const
Definition: script_stack_frame.h:167
Definition: aggregate_classification_metrics.h:37
int32 get_start_column() const
Definition: script_stack_frame.h:219
bool has_end_column() const
Definition: script_stack_frame.h:93
void clear_end_column()
Definition: script_stack_frame.h:100
void clear_procedure_id()
Definition: script_stack_frame.h:174
void clear_start_column()
Definition: script_stack_frame.h:211
void set_start_column(int32 value)
Definition: script_stack_frame.h:231
const StringPiece get_procedure_id() const
Definition: script_stack_frame.h:182
bool has_start_line() const
Definition: script_stack_frame.h:241
const StringPiece GetTypeName() const
Definition: script_stack_frame.h:84
int32 get_start_line() const
Definition: script_stack_frame.h:256
Definition: script_stack_frame.h:51
bool has_text() const
Definition: script_stack_frame.h:278
void set_start_line(int32 value)
Definition: script_stack_frame.h:268
bool has_start_column() const
Definition: script_stack_frame.h:204
void set_procedure_id(const StringPiece &value)
Definition: script_stack_frame.h:195
void set_end_line(int32 value)
Definition: script_stack_frame.h:157