30 #ifndef GOOGLE_BIGQUERY_API_SCRIPT_STACK_FRAME_H_ 31 #define GOOGLE_BIGQUERY_API_SCRIPT_STACK_FRAME_H_ 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" 85 return StringPiece(
"google_bigquery_api::ScriptStackFrame");
94 return Storage().isMember(
"endColumn");
101 MutableStorage()->removeMember(
"endColumn");
109 const Json::Value& storage = Storage(
"endColumn");
110 return client::JsonValueToCppValueHelper<int32 >(storage);
121 client::SetJsonValueFromCppValueHelper<int32 >(
122 value, MutableStorage(
"endColumn"));
131 return Storage().isMember(
"endLine");
138 MutableStorage()->removeMember(
"endLine");
146 const Json::Value& storage = Storage(
"endLine");
147 return client::JsonValueToCppValueHelper<int32 >(storage);
158 client::SetJsonValueFromCppValueHelper<int32 >(
159 value, MutableStorage(
"endLine"));
168 return Storage().isMember(
"procedureId");
175 MutableStorage()->removeMember(
"procedureId");
183 const Json::Value& v = Storage(
"procedureId");
184 if (v == Json::Value::null)
return StringPiece(
"");
185 return StringPiece(v.asCString());
196 *MutableStorage(
"procedureId") = value.data();
205 return Storage().isMember(
"startColumn");
212 MutableStorage()->removeMember(
"startColumn");
220 const Json::Value& storage = Storage(
"startColumn");
221 return client::JsonValueToCppValueHelper<int32 >(storage);
232 client::SetJsonValueFromCppValueHelper<int32 >(
233 value, MutableStorage(
"startColumn"));
242 return Storage().isMember(
"startLine");
249 MutableStorage()->removeMember(
"startLine");
257 const Json::Value& storage = Storage(
"startLine");
258 return client::JsonValueToCppValueHelper<int32 >(storage);
269 client::SetJsonValueFromCppValueHelper<int32 >(
270 value, MutableStorage(
"startLine"));
279 return Storage().isMember(
"text");
286 MutableStorage()->removeMember(
"text");
294 const Json::Value& v = Storage(
"text");
295 if (v == Json::Value::null)
return StringPiece(
"");
296 return StringPiece(v.asCString());
307 *MutableStorage(
"text") = value.data();
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