Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:sysflow-telemetry/sf-apis into dev
Browse files Browse the repository at this point in the history
Signed-off-by: Frederico Araujo <[email protected]>
  • Loading branch information
araujof committed Oct 17, 2022
2 parents e73eaf7 + 4162ccd commit 57438e8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions c++/sysflow/sysflow.hh
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ struct SysFlow {
inline
std::string _SysFlow_avsc_Union__0__::get_string() const {
if (idx_ != 1) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected string index, got index ") + std::to_string(idx_));
}
return boost::any_cast<std::string >(value_);
}
Expand All @@ -523,7 +523,7 @@ void _SysFlow_avsc_Union__0__::set_string(const std::string& v) {
inline
OID _SysFlow_avsc_Union__1__::get_OID() const {
if (idx_ != 1) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected OID index, got index ") + std::to_string(idx_));
}
return boost::any_cast<OID >(value_);
}
Expand All @@ -537,7 +537,7 @@ void _SysFlow_avsc_Union__1__::set_OID(const OID& v) {
inline
std::string _SysFlow_avsc_Union__2__::get_string() const {
if (idx_ != 1) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected string index, got index ") + std::to_string(idx_));
}
return boost::any_cast<std::string >(value_);
}
Expand All @@ -551,7 +551,7 @@ void _SysFlow_avsc_Union__2__::set_string(const std::string& v) {
inline
std::string _SysFlow_avsc_Union__3__::get_string() const {
if (idx_ != 1) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected string index, got index ") + std::to_string(idx_));
}
return boost::any_cast<std::string >(value_);
}
Expand All @@ -565,7 +565,7 @@ void _SysFlow_avsc_Union__3__::set_string(const std::string& v) {
inline
std::array<uint8_t, 20> _SysFlow_avsc_Union__4__::get_FOID() const {
if (idx_ != 1) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected FOID index, got index ") + std::to_string(idx_));
}
return boost::any_cast<std::array<uint8_t, 20> >(value_);
}
Expand All @@ -579,7 +579,7 @@ void _SysFlow_avsc_Union__4__::set_FOID(const std::array<uint8_t, 20>& v) {
inline
SFHeader _SysFlow_avsc_Union__5__::get_SFHeader() const {
if (idx_ != 0) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected header index, got index ") + std::to_string(idx_));
}
return boost::any_cast<SFHeader >(value_);
}
Expand All @@ -593,7 +593,7 @@ void _SysFlow_avsc_Union__5__::set_SFHeader(const SFHeader& v) {
inline
Container _SysFlow_avsc_Union__5__::get_Container() const {
if (idx_ != 1) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected container index, got index ") + std::to_string(idx_));
}
return boost::any_cast<Container >(value_);
}
Expand All @@ -607,7 +607,7 @@ void _SysFlow_avsc_Union__5__::set_Container(const Container& v) {
inline
Process _SysFlow_avsc_Union__5__::get_Process() const {
if (idx_ != 2) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected process index, got index ") + std::to_string(idx_));
}
return boost::any_cast<Process >(value_);
}
Expand All @@ -621,7 +621,7 @@ void _SysFlow_avsc_Union__5__::set_Process(const Process& v) {
inline
File _SysFlow_avsc_Union__5__::get_File() const {
if (idx_ != 3) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected file index, got index ") + std::to_string(idx_));
}
return boost::any_cast<File >(value_);
}
Expand All @@ -635,7 +635,7 @@ void _SysFlow_avsc_Union__5__::set_File(const File& v) {
inline
ProcessEvent _SysFlow_avsc_Union__5__::get_ProcessEvent() const {
if (idx_ != 4) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected PE index, got index ") + std::to_string(idx_));
}
return boost::any_cast<ProcessEvent >(value_);
}
Expand All @@ -649,7 +649,7 @@ void _SysFlow_avsc_Union__5__::set_ProcessEvent(const ProcessEvent& v) {
inline
NetworkFlow _SysFlow_avsc_Union__5__::get_NetworkFlow() const {
if (idx_ != 5) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected NF index, got index ") + std::to_string(idx_));
}
return boost::any_cast<NetworkFlow >(value_);
}
Expand All @@ -663,7 +663,7 @@ void _SysFlow_avsc_Union__5__::set_NetworkFlow(const NetworkFlow& v) {
inline
FileFlow _SysFlow_avsc_Union__5__::get_FileFlow() const {
if (idx_ != 6) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected FF index, got index ") + std::to_string(idx_));
}
return boost::any_cast<FileFlow >(value_);
}
Expand All @@ -677,7 +677,7 @@ void _SysFlow_avsc_Union__5__::set_FileFlow(const FileFlow& v) {
inline
FileEvent _SysFlow_avsc_Union__5__::get_FileEvent() const {
if (idx_ != 7) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected FE index, got index ") + std::to_string(idx_));
}
return boost::any_cast<FileEvent >(value_);
}
Expand All @@ -691,7 +691,7 @@ void _SysFlow_avsc_Union__5__::set_FileEvent(const FileEvent& v) {
inline
NetworkEvent _SysFlow_avsc_Union__5__::get_NetworkEvent() const {
if (idx_ != 8) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected NE index, got index ") + std::to_string(idx_));
}
return boost::any_cast<NetworkEvent >(value_);
}
Expand All @@ -705,7 +705,7 @@ void _SysFlow_avsc_Union__5__::set_NetworkEvent(const NetworkEvent& v) {
inline
ProcessFlow _SysFlow_avsc_Union__5__::get_ProcessFlow() const {
if (idx_ != 9) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected PF index, got index ") + std::to_string(idx_));
}
return boost::any_cast<ProcessFlow >(value_);
}
Expand All @@ -719,7 +719,7 @@ void _SysFlow_avsc_Union__5__::set_ProcessFlow(const ProcessFlow& v) {
inline
Pod _SysFlow_avsc_Union__5__::get_Pod() const {
if (idx_ != 10) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected pod index, got index ") + std::to_string(idx_));
}
return boost::any_cast<Pod >(value_);
}
Expand All @@ -733,7 +733,7 @@ void _SysFlow_avsc_Union__5__::set_Pod(const Pod& v) {
inline
K8sEvent _SysFlow_avsc_Union__5__::get_K8sEvent() const {
if (idx_ != 11) {
throw avro::Exception("Invalid type for union");
throw avro::Exception(std::string("Invalid type for union. Expected KE index, got index ") + std::to_string(idx_));
}
return boost::any_cast<K8sEvent >(value_);
}
Expand Down

0 comments on commit 57438e8

Please sign in to comment.