30 #ifndef GOOGLE_SQLADMIN_API_EXPORT_CONTEXT_H_ 31 #define GOOGLE_SQLADMIN_API_EXPORT_CONTEXT_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" 92 return StringPiece(
"google_sqladmin_api::ExportContextCsvExportOptions");
101 return Storage().isMember(
"selectQuery");
108 MutableStorage()->removeMember(
"selectQuery");
116 const Json::Value& v = Storage(
"selectQuery");
117 if (v == Json::Value::null)
return StringPiece(
"");
118 return StringPiece(v.asCString());
129 *MutableStorage(
"selectQuery") = value.data();
182 return StringPiece(
"google_sqladmin_api::ExportContextSqlExportOptionsMysqlExportOptions");
191 return Storage().isMember(
"masterData");
198 MutableStorage()->removeMember(
"masterData");
206 const Json::Value& storage = Storage(
"masterData");
207 return client::JsonValueToCppValueHelper<int32 >(storage);
222 client::SetJsonValueFromCppValueHelper<int32 >(
223 value, MutableStorage(
"masterData"));
261 return StringPiece(
"google_sqladmin_api::ExportContextSqlExportOptions");
270 return Storage().isMember(
"mysqlExportOptions");
277 MutableStorage()->removeMember(
"mysqlExportOptions");
286 const Json::Value& storage = Storage(
"mysqlExportOptions");
287 return client::JsonValueToCppValueHelper<ExportContextSqlExportOptionsMysqlExportOptions >(storage);
299 Json::Value* storage = MutableStorage(
"mysqlExportOptions");
300 return client::JsonValueToMutableCppValueHelper<ExportContextSqlExportOptionsMysqlExportOptions >(storage);
309 return Storage().isMember(
"schemaOnly");
316 MutableStorage()->removeMember(
"schemaOnly");
324 const Json::Value& storage = Storage(
"schemaOnly");
325 return client::JsonValueToCppValueHelper<bool >(storage);
336 client::SetJsonValueFromCppValueHelper<bool >(
337 value, MutableStorage(
"schemaOnly"));
346 return Storage().isMember(
"tables");
353 MutableStorage()->removeMember(
"tables");
361 const Json::Value& storage = Storage(
"tables");
362 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
376 Json::Value* storage = MutableStorage(
"tables");
377 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
415 return StringPiece(
"google_sqladmin_api::ExportContext");
424 return Storage().isMember(
"csvExportOptions");
431 MutableStorage()->removeMember(
"csvExportOptions");
440 const Json::Value& storage = Storage(
"csvExportOptions");
441 return client::JsonValueToCppValueHelper<ExportContextCsvExportOptions >(storage);
453 Json::Value* storage = MutableStorage(
"csvExportOptions");
454 return client::JsonValueToMutableCppValueHelper<ExportContextCsvExportOptions >(storage);
463 return Storage().isMember(
"databases");
470 MutableStorage()->removeMember(
"databases");
478 const Json::Value& storage = Storage(
"databases");
479 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
499 Json::Value* storage = MutableStorage(
"databases");
500 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
509 return Storage().isMember(
"fileType");
516 MutableStorage()->removeMember(
"fileType");
524 const Json::Value& v = Storage(
"fileType");
525 if (v == Json::Value::null)
return StringPiece(
"");
526 return StringPiece(v.asCString());
544 *MutableStorage(
"fileType") = value.data();
553 return Storage().isMember(
"kind");
560 MutableStorage()->removeMember(
"kind");
568 const Json::Value& v = Storage(
"kind");
569 if (v == Json::Value::null)
return StringPiece(
"");
570 return StringPiece(v.asCString());
581 *MutableStorage(
"kind") = value.data();
590 return Storage().isMember(
"sqlExportOptions");
597 MutableStorage()->removeMember(
"sqlExportOptions");
606 const Json::Value& storage = Storage(
"sqlExportOptions");
607 return client::JsonValueToCppValueHelper<ExportContextSqlExportOptions >(storage);
619 Json::Value* storage = MutableStorage(
"sqlExportOptions");
620 return client::JsonValueToMutableCppValueHelper<ExportContextSqlExportOptions >(storage);
629 return Storage().isMember(
"uri");
636 MutableStorage()->removeMember(
"uri");
644 const Json::Value& v = Storage(
"uri");
645 if (v == Json::Value::null)
return StringPiece(
"");
646 return StringPiece(v.asCString());
660 *MutableStorage(
"uri") = value.data();
667 #endif // GOOGLE_SQLADMIN_API_EXPORT_CONTEXT_H_ void set_master_data(int32 value)
Definition: export_context.h:221
bool has_tables() const
Definition: export_context.h:345
void clear_mysql_export_options()
Definition: export_context.h:276
const StringPiece get_select_query() const
Definition: export_context.h:115
void set_schema_only(bool value)
Definition: export_context.h:335
bool has_master_data() const
Definition: export_context.h:190
void set_uri(const StringPiece &value)
Definition: export_context.h:659
const StringPiece get_file_type() const
Definition: export_context.h:523
Definition: export_context.h:147
ExportContextCsvExportOptions mutable_csvExportOptions()
Definition: export_context.h:452
bool has_databases() const
Definition: export_context.h:462
const StringPiece GetTypeName() const
Definition: export_context.h:181
client::JsonCppArray< string > mutable_databases()
Definition: export_context.h:498
bool has_mysql_export_options() const
Definition: export_context.h:269
void clear_csv_export_options()
Definition: export_context.h:430
const ExportContextCsvExportOptions get_csv_export_options() const
Definition: export_context.h:439
void clear_tables()
Definition: export_context.h:352
void clear_uri()
Definition: export_context.h:635
bool has_csv_export_options() const
Definition: export_context.h:423
ExportContextSqlExportOptions mutable_sqlExportOptions()
Definition: export_context.h:618
ExportContextSqlExportOptionsMysqlExportOptions mutable_mysqlExportOptions()
Definition: export_context.h:298
bool has_sql_export_options() const
Definition: export_context.h:589
const StringPiece GetTypeName() const
Definition: export_context.h:414
void clear_databases()
Definition: export_context.h:469
void clear_sql_export_options()
Definition: export_context.h:596
const StringPiece get_uri() const
Definition: export_context.h:643
void clear_master_data()
Definition: export_context.h:197
Definition: export_context.h:51
bool get_schema_only() const
Definition: export_context.h:323
const StringPiece GetTypeName() const
Definition: export_context.h:260
const ExportContextSqlExportOptions get_sql_export_options() const
Definition: export_context.h:605
Definition: acl_entry.cc:41
bool has_kind() const
Definition: export_context.h:552
Definition: acl_entry.h:39
void set_file_type(const StringPiece &value)
Definition: export_context.h:543
Definition: export_context.h:140
bool has_uri() const
Definition: export_context.h:628
void clear_schema_only()
Definition: export_context.h:315
const StringPiece GetTypeName() const
Definition: export_context.h:91
void set_select_query(const StringPiece &value)
Definition: export_context.h:128
const ExportContextSqlExportOptionsMysqlExportOptions get_mysql_export_options() const
Definition: export_context.h:285
void clear_file_type()
Definition: export_context.h:515
void set_kind(const StringPiece &value)
Definition: export_context.h:580
client::JsonCppArray< string > mutable_tables()
Definition: export_context.h:375
bool has_file_type() const
Definition: export_context.h:508
const client::JsonCppArray< string > get_tables() const
Definition: export_context.h:360
void clear_kind()
Definition: export_context.h:559
int32 get_master_data() const
Definition: export_context.h:205
const client::JsonCppArray< string > get_databases() const
Definition: export_context.h:477
const StringPiece get_kind() const
Definition: export_context.h:567
Definition: export_context.h:58
bool has_schema_only() const
Definition: export_context.h:308
void clear_select_query()
Definition: export_context.h:107
bool has_select_query() const
Definition: export_context.h:100