DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CTBModule.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ctbmodules/opmon/CTBModule.proto
3
5
6#include <algorithm>
7#include "google/protobuf/io/coded_stream.h"
8#include "google/protobuf/extension_set.h"
9#include "google/protobuf/wire_format_lite.h"
10#include "google/protobuf/descriptor.h"
11#include "google/protobuf/generated_message_reflection.h"
12#include "google/protobuf/reflection_ops.h"
13#include "google/protobuf/wire_format.h"
14#include "google/protobuf/generated_message_tctable_impl.h"
15// @@protoc_insertion_point(includes)
16
17// Must be included last.
18#include "google/protobuf/port_def.inc"
19PROTOBUF_PRAGMA_INIT_SEG
20namespace _pb = ::google::protobuf;
21namespace _pbi = ::google::protobuf::internal;
22namespace _fl = ::google::protobuf::internal::field_layout;
23namespace dunedaq {
24namespace ctbmodules {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR CTBModuleInfo::CTBModuleInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.num_control_messages_sent_)*/ 0u,
30 /*decltype(_impl_.num_control_responses_received_)*/ 0u,
31 /*decltype(_impl_.failed_to_send_hsi_events_counter_)*/ ::uint64_t{0u},
32 /*decltype(_impl_.last_sent_timestamp_)*/ ::uint64_t{0u},
33 /*decltype(_impl_.last_readout_timestamp_)*/ ::uint64_t{0u},
34 /*decltype(_impl_.average_buffer_occupancy_)*/ 0,
35 /*decltype(_impl_.total_hlt_count_)*/ ::uint64_t{0u},
36 /*decltype(_impl_.ts_word_count_)*/ ::uint64_t{0u},
37 /*decltype(_impl_.ctb_hardware_running_)*/ false,
38 /*decltype(_impl_.ctb_hardware_configured_)*/ false,
39 /*decltype(_impl_._cached_size_)*/ {},
40 } {}
42 PROTOBUF_CONSTEXPR CTBModuleInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
44 union {
46 };
47};
48
49PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
51 template <typename>
52PROTOBUF_CONSTEXPR TriggerInfo::TriggerInfo(::_pbi::ConstantInitialized)
53 : _impl_{
54 /*decltype(_impl_.count_)*/ ::uint64_t{0u},
55 /*decltype(_impl_._cached_size_)*/ {},
56 } {}
58 PROTOBUF_CONSTEXPR TriggerInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
60 union {
62 };
63};
64
65PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
67} // namespace opmon
68} // namespace ctbmodules
69} // namespace dunedaq
71static constexpr const ::_pb::EnumDescriptor**
73static constexpr const ::_pb::ServiceDescriptor**
76 protodesc_cold) = {
77 ~0u, // no _has_bits_
78 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _internal_metadata_),
79 ~0u, // no _extensions_
80 ~0u, // no _oneof_case_
81 ~0u, // no _weak_field_map_
82 ~0u, // no _inlined_string_donated_
83 ~0u, // no _split_
84 ~0u, // no sizeof(Split)
85 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.num_control_messages_sent_),
86 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.num_control_responses_received_),
87 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.ctb_hardware_running_),
88 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.ctb_hardware_configured_),
89 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.failed_to_send_hsi_events_counter_),
90 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.last_sent_timestamp_),
91 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.last_readout_timestamp_),
92 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.average_buffer_occupancy_),
93 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.total_hlt_count_),
94 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::CTBModuleInfo, _impl_.ts_word_count_),
95 ~0u, // no _has_bits_
96 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::TriggerInfo, _internal_metadata_),
97 ~0u, // no _extensions_
98 ~0u, // no _oneof_case_
99 ~0u, // no _weak_field_map_
100 ~0u, // no _inlined_string_donated_
101 ~0u, // no _split_
102 ~0u, // no sizeof(Split)
103 PROTOBUF_FIELD_OFFSET(::dunedaq::ctbmodules::opmon::TriggerInfo, _impl_.count_),
104};
105
106static const ::_pbi::MigrationSchema
107 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
109 {18, -1, -1, sizeof(::dunedaq::ctbmodules::opmon::TriggerInfo)},
110};
111
116const char descriptor_table_protodef_ctbmodules_2fopmon_2fCTBModule_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
117 "\n ctbmodules/opmon/CTBModule.proto\022\030dune"
118 "daq.ctbmodules.opmon\"\323\002\n\rCTBModuleInfo\022!"
119 "\n\031num_control_messages_sent\030\001 \001(\r\022&\n\036num"
120 "_control_responses_received\030\002 \001(\r\022\034\n\024ctb"
121 "_hardware_running\030\005 \001(\010\022\037\n\027ctb_hardware_"
122 "configured\030\006 \001(\010\022)\n!failed_to_send_hsi_e"
123 "vents_counter\030\014 \001(\004\022\033\n\023last_sent_timesta"
124 "mp\030\017 \001(\004\022\036\n\026last_readout_timestamp\030\020 \001(\004"
125 "\022 \n\030average_buffer_occupancy\030\025 \001(\001\022\027\n\017to"
126 "tal_hlt_count\030\031 \001(\004\022\025\n\rts_word_count\030\032 \001"
127 "(\004\"\034\n\013TriggerInfo\022\r\n\005count\030\001 \001(\004b\006proto3"
128};
147
148// This function exists to be marked as weak.
149// It can significantly speed up compilation by breaking up LLVM's SCC
150// in the .pb.cc translation units. Large translation units see a
151// reduction of more than 35% of walltime for optimized builds. Without
152// the weak attribute all the messages in the file, including all the
153// vtables and everything they use become part of the same SCC through
154// a cycle like:
155// GetMetadata -> descriptor table -> default instances ->
156// vtables -> GetMetadata
157// By adding a weak function here we break the connection from the
158// individual vtables back into the descriptor table.
162// Force running AddDescriptors() at dynamic initialization time.
163PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
164static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_ctbmodules_2fopmon_2fCTBModule_2eproto(&descriptor_table_ctbmodules_2fopmon_2fCTBModule_2eproto);
165namespace dunedaq {
166namespace ctbmodules {
167namespace opmon {
168// ===================================================================
169
171 public:
172};
173
174CTBModuleInfo::CTBModuleInfo(::google::protobuf::Arena* arena)
175 : ::google::protobuf::Message(arena) {
176 SharedCtor(arena);
177 // @@protoc_insertion_point(arena_constructor:dunedaq.ctbmodules.opmon.CTBModuleInfo)
178}
180 : ::google::protobuf::Message(), _impl_(from._impl_) {
181 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
182 from._internal_metadata_);
183 // @@protoc_insertion_point(copy_constructor:dunedaq.ctbmodules.opmon.CTBModuleInfo)
184}
185inline void CTBModuleInfo::SharedCtor(::_pb::Arena* arena) {
186 (void)arena;
187 new (&_impl_) Impl_{
190 decltype(_impl_.failed_to_send_hsi_events_counter_){::uint64_t{0u}},
191 decltype(_impl_.last_sent_timestamp_){::uint64_t{0u}},
192 decltype(_impl_.last_readout_timestamp_){::uint64_t{0u}},
194 decltype(_impl_.total_hlt_count_){::uint64_t{0u}},
195 decltype(_impl_.ts_word_count_){::uint64_t{0u}},
196 decltype(_impl_.ctb_hardware_running_){false},
197 decltype(_impl_.ctb_hardware_configured_){false},
198 /*decltype(_impl_._cached_size_)*/ {},
199 };
200}
202 // @@protoc_insertion_point(destructor:dunedaq.ctbmodules.opmon.CTBModuleInfo)
203 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
204 SharedDtor();
205}
207 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
208}
212
213PROTOBUF_NOINLINE void CTBModuleInfo::Clear() {
214// @@protoc_insertion_point(message_clear_start:dunedaq.ctbmodules.opmon.CTBModuleInfo)
215 ::uint32_t cached_has_bits = 0;
216 // Prevent compiler warnings about cached_has_bits being unused
217 (void) cached_has_bits;
218
219 ::memset(&_impl_.num_control_messages_sent_, 0, static_cast<::size_t>(
220 reinterpret_cast<char*>(&_impl_.ctb_hardware_configured_) -
221 reinterpret_cast<char*>(&_impl_.num_control_messages_sent_)) + sizeof(_impl_.ctb_hardware_configured_));
222 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
223}
224
226 const char* ptr, ::_pbi::ParseContext* ctx) {
227 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
228 return ptr;
229}
230
231
232PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
233const ::_pbi::TcParseTable<4, 10, 0, 0, 2> CTBModuleInfo::_table_ = {
234 {
235 0, // no _has_bits_
236 0, // no _extensions_
237 26, 120, // max_field_number, fast_idx_mask
238 offsetof(decltype(_table_), field_lookup_table),
239 4243535820, // skipmap
240 offsetof(decltype(_table_), field_entries),
241 10, // num_field_entries
242 0, // num_aux_entries
243 offsetof(decltype(_table_), field_names), // no aux_entries
245 ::_pbi::TcParser::GenericFallback, // fallback
246 }, {{
247 // uint64 last_readout_timestamp = 16;
248 {::_pbi::TcParser::FastV64S2,
249 {384, 63, 0, PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.last_readout_timestamp_)}},
250 // uint32 num_control_messages_sent = 1;
251 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CTBModuleInfo, _impl_.num_control_messages_sent_), 63>(),
252 {8, 63, 0, PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.num_control_messages_sent_)}},
253 // uint32 num_control_responses_received = 2;
254 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CTBModuleInfo, _impl_.num_control_responses_received_), 63>(),
255 {16, 63, 0, PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.num_control_responses_received_)}},
256 {::_pbi::TcParser::MiniParse, {}},
257 {::_pbi::TcParser::MiniParse, {}},
258 // bool ctb_hardware_running = 5;
259 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CTBModuleInfo, _impl_.ctb_hardware_running_), 63>(),
260 {40, 63, 0, PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.ctb_hardware_running_)}},
261 // bool ctb_hardware_configured = 6;
262 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CTBModuleInfo, _impl_.ctb_hardware_configured_), 63>(),
263 {48, 63, 0, PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.ctb_hardware_configured_)}},
264 {::_pbi::TcParser::MiniParse, {}},
265 {::_pbi::TcParser::MiniParse, {}},
266 // uint64 total_hlt_count = 25;
267 {::_pbi::TcParser::FastV64S2,
268 {456, 63, 0, PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.total_hlt_count_)}},
269 // uint64 ts_word_count = 26;
270 {::_pbi::TcParser::FastV64S2,
271 {464, 63, 0, PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.ts_word_count_)}},
272 {::_pbi::TcParser::MiniParse, {}},
273 // uint64 failed_to_send_hsi_events_counter = 12;
274 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CTBModuleInfo, _impl_.failed_to_send_hsi_events_counter_), 63>(),
275 {96, 63, 0, PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.failed_to_send_hsi_events_counter_)}},
276 {::_pbi::TcParser::MiniParse, {}},
277 {::_pbi::TcParser::MiniParse, {}},
278 // uint64 last_sent_timestamp = 15;
279 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CTBModuleInfo, _impl_.last_sent_timestamp_), 63>(),
280 {120, 63, 0, PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.last_sent_timestamp_)}},
281 }}, {{
282 65535, 65535
283 }}, {{
284 // uint32 num_control_messages_sent = 1;
285 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.num_control_messages_sent_), 0, 0,
286 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
287 // uint32 num_control_responses_received = 2;
288 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.num_control_responses_received_), 0, 0,
289 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
290 // bool ctb_hardware_running = 5;
291 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.ctb_hardware_running_), 0, 0,
292 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
293 // bool ctb_hardware_configured = 6;
294 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.ctb_hardware_configured_), 0, 0,
295 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
296 // uint64 failed_to_send_hsi_events_counter = 12;
297 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.failed_to_send_hsi_events_counter_), 0, 0,
298 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
299 // uint64 last_sent_timestamp = 15;
300 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.last_sent_timestamp_), 0, 0,
301 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
302 // uint64 last_readout_timestamp = 16;
303 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.last_readout_timestamp_), 0, 0,
304 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
305 // double average_buffer_occupancy = 21;
306 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.average_buffer_occupancy_), 0, 0,
307 (0 | ::_fl::kFcSingular | ::_fl::kDouble)},
308 // uint64 total_hlt_count = 25;
309 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.total_hlt_count_), 0, 0,
310 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
311 // uint64 ts_word_count = 26;
312 {PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.ts_word_count_), 0, 0,
313 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
314 }},
315 // no aux_entries
316 {{
317 }},
318};
319
321 ::uint8_t* target,
322 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
323 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.ctbmodules.opmon.CTBModuleInfo)
324 ::uint32_t cached_has_bits = 0;
325 (void)cached_has_bits;
326
327 // uint32 num_control_messages_sent = 1;
328 if (this->_internal_num_control_messages_sent() != 0) {
329 target = stream->EnsureSpace(target);
330 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
331 1, this->_internal_num_control_messages_sent(), target);
332 }
333
334 // uint32 num_control_responses_received = 2;
336 target = stream->EnsureSpace(target);
337 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
339 }
340
341 // bool ctb_hardware_running = 5;
342 if (this->_internal_ctb_hardware_running() != 0) {
343 target = stream->EnsureSpace(target);
344 target = ::_pbi::WireFormatLite::WriteBoolToArray(
345 5, this->_internal_ctb_hardware_running(), target);
346 }
347
348 // bool ctb_hardware_configured = 6;
349 if (this->_internal_ctb_hardware_configured() != 0) {
350 target = stream->EnsureSpace(target);
351 target = ::_pbi::WireFormatLite::WriteBoolToArray(
352 6, this->_internal_ctb_hardware_configured(), target);
353 }
354
355 // uint64 failed_to_send_hsi_events_counter = 12;
357 target = stream->EnsureSpace(target);
358 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
360 }
361
362 // uint64 last_sent_timestamp = 15;
363 if (this->_internal_last_sent_timestamp() != 0) {
364 target = stream->EnsureSpace(target);
365 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
366 15, this->_internal_last_sent_timestamp(), target);
367 }
368
369 // uint64 last_readout_timestamp = 16;
370 if (this->_internal_last_readout_timestamp() != 0) {
371 target = stream->EnsureSpace(target);
372 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
373 16, this->_internal_last_readout_timestamp(), target);
374 }
375
376 // double average_buffer_occupancy = 21;
377 static_assert(sizeof(::uint64_t) == sizeof(double),
378 "Code assumes ::uint64_t and double are the same size.");
379 double tmp_average_buffer_occupancy = this->_internal_average_buffer_occupancy();
380 ::uint64_t raw_average_buffer_occupancy;
381 memcpy(&raw_average_buffer_occupancy, &tmp_average_buffer_occupancy, sizeof(tmp_average_buffer_occupancy));
382 if (raw_average_buffer_occupancy != 0) {
383 target = stream->EnsureSpace(target);
384 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
385 21, this->_internal_average_buffer_occupancy(), target);
386 }
387
388 // uint64 total_hlt_count = 25;
389 if (this->_internal_total_hlt_count() != 0) {
390 target = stream->EnsureSpace(target);
391 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
392 25, this->_internal_total_hlt_count(), target);
393 }
394
395 // uint64 ts_word_count = 26;
396 if (this->_internal_ts_word_count() != 0) {
397 target = stream->EnsureSpace(target);
398 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
399 26, this->_internal_ts_word_count(), target);
400 }
401
402 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
403 target =
404 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
405 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
406 }
407 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.ctbmodules.opmon.CTBModuleInfo)
408 return target;
409}
410
412// @@protoc_insertion_point(message_byte_size_start:dunedaq.ctbmodules.opmon.CTBModuleInfo)
413 ::size_t total_size = 0;
414
415 ::uint32_t cached_has_bits = 0;
416 // Prevent compiler warnings about cached_has_bits being unused
417 (void) cached_has_bits;
418
419 // uint32 num_control_messages_sent = 1;
420 if (this->_internal_num_control_messages_sent() != 0) {
421 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
423 }
424
425 // uint32 num_control_responses_received = 2;
427 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
429 }
430
431 // uint64 failed_to_send_hsi_events_counter = 12;
433 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
435 }
436
437 // uint64 last_sent_timestamp = 15;
438 if (this->_internal_last_sent_timestamp() != 0) {
439 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
441 }
442
443 // uint64 last_readout_timestamp = 16;
444 if (this->_internal_last_readout_timestamp() != 0) {
445 total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
447 }
448
449 // double average_buffer_occupancy = 21;
450 static_assert(sizeof(::uint64_t) == sizeof(double),
451 "Code assumes ::uint64_t and double are the same size.");
452 double tmp_average_buffer_occupancy = this->_internal_average_buffer_occupancy();
453 ::uint64_t raw_average_buffer_occupancy;
454 memcpy(&raw_average_buffer_occupancy, &tmp_average_buffer_occupancy, sizeof(tmp_average_buffer_occupancy));
455 if (raw_average_buffer_occupancy != 0) {
456 total_size += 10;
457 }
458
459 // uint64 total_hlt_count = 25;
460 if (this->_internal_total_hlt_count() != 0) {
461 total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
463 }
464
465 // uint64 ts_word_count = 26;
466 if (this->_internal_ts_word_count() != 0) {
467 total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
469 }
470
471 // bool ctb_hardware_running = 5;
472 if (this->_internal_ctb_hardware_running() != 0) {
473 total_size += 2;
474 }
475
476 // bool ctb_hardware_configured = 6;
477 if (this->_internal_ctb_hardware_configured() != 0) {
478 total_size += 2;
479 }
480
481 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
482}
483
484const ::google::protobuf::Message::ClassData CTBModuleInfo::_class_data_ = {
485 ::google::protobuf::Message::CopyWithSourceCheck,
487};
488const ::google::protobuf::Message::ClassData*CTBModuleInfo::GetClassData() const { return &_class_data_; }
489
490
491void CTBModuleInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
492 auto* const _this = static_cast<CTBModuleInfo*>(&to_msg);
493 auto& from = static_cast<const CTBModuleInfo&>(from_msg);
494 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.ctbmodules.opmon.CTBModuleInfo)
495 ABSL_DCHECK_NE(&from, _this);
496 ::uint32_t cached_has_bits = 0;
497 (void) cached_has_bits;
498
499 if (from._internal_num_control_messages_sent() != 0) {
500 _this->_internal_set_num_control_messages_sent(from._internal_num_control_messages_sent());
501 }
502 if (from._internal_num_control_responses_received() != 0) {
503 _this->_internal_set_num_control_responses_received(from._internal_num_control_responses_received());
504 }
505 if (from._internal_failed_to_send_hsi_events_counter() != 0) {
506 _this->_internal_set_failed_to_send_hsi_events_counter(from._internal_failed_to_send_hsi_events_counter());
507 }
508 if (from._internal_last_sent_timestamp() != 0) {
509 _this->_internal_set_last_sent_timestamp(from._internal_last_sent_timestamp());
510 }
511 if (from._internal_last_readout_timestamp() != 0) {
512 _this->_internal_set_last_readout_timestamp(from._internal_last_readout_timestamp());
513 }
514 static_assert(sizeof(::uint64_t) == sizeof(double),
515 "Code assumes ::uint64_t and double are the same size.");
516 double tmp_average_buffer_occupancy = from._internal_average_buffer_occupancy();
517 ::uint64_t raw_average_buffer_occupancy;
518 memcpy(&raw_average_buffer_occupancy, &tmp_average_buffer_occupancy, sizeof(tmp_average_buffer_occupancy));
519 if (raw_average_buffer_occupancy != 0) {
520 _this->_internal_set_average_buffer_occupancy(from._internal_average_buffer_occupancy());
521 }
522 if (from._internal_total_hlt_count() != 0) {
523 _this->_internal_set_total_hlt_count(from._internal_total_hlt_count());
524 }
525 if (from._internal_ts_word_count() != 0) {
526 _this->_internal_set_ts_word_count(from._internal_ts_word_count());
527 }
528 if (from._internal_ctb_hardware_running() != 0) {
529 _this->_internal_set_ctb_hardware_running(from._internal_ctb_hardware_running());
530 }
531 if (from._internal_ctb_hardware_configured() != 0) {
532 _this->_internal_set_ctb_hardware_configured(from._internal_ctb_hardware_configured());
533 }
534 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
535}
536
538// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.ctbmodules.opmon.CTBModuleInfo)
539 if (&from == this) return;
540 Clear();
541 MergeFrom(from);
542}
543
544PROTOBUF_NOINLINE bool CTBModuleInfo::IsInitialized() const {
545 return true;
546}
547
549 using std::swap;
550 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
551 ::google::protobuf::internal::memswap<
552 PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.ctb_hardware_configured_)
554 - PROTOBUF_FIELD_OFFSET(CTBModuleInfo, _impl_.num_control_messages_sent_)>(
555 reinterpret_cast<char*>(&_impl_.num_control_messages_sent_),
556 reinterpret_cast<char*>(&other->_impl_.num_control_messages_sent_));
557}
558
564// ===================================================================
565
567 public:
568};
569
570TriggerInfo::TriggerInfo(::google::protobuf::Arena* arena)
571 : ::google::protobuf::Message(arena) {
572 SharedCtor(arena);
573 // @@protoc_insertion_point(arena_constructor:dunedaq.ctbmodules.opmon.TriggerInfo)
574}
576 : ::google::protobuf::Message(), _impl_(from._impl_) {
577 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
578 from._internal_metadata_);
579 // @@protoc_insertion_point(copy_constructor:dunedaq.ctbmodules.opmon.TriggerInfo)
580}
581inline void TriggerInfo::SharedCtor(::_pb::Arena* arena) {
582 (void)arena;
583 new (&_impl_) Impl_{
584 decltype(_impl_.count_){::uint64_t{0u}},
585 /*decltype(_impl_._cached_size_)*/ {},
586 };
587}
589 // @@protoc_insertion_point(destructor:dunedaq.ctbmodules.opmon.TriggerInfo)
590 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
591 SharedDtor();
592}
594 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
595}
598}
599
600PROTOBUF_NOINLINE void TriggerInfo::Clear() {
601// @@protoc_insertion_point(message_clear_start:dunedaq.ctbmodules.opmon.TriggerInfo)
602 ::uint32_t cached_has_bits = 0;
603 // Prevent compiler warnings about cached_has_bits being unused
604 (void) cached_has_bits;
605
606 _impl_.count_ = ::uint64_t{0u};
607 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
608}
609
611 const char* ptr, ::_pbi::ParseContext* ctx) {
612 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
613 return ptr;
614}
615
616
617PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
618const ::_pbi::TcParseTable<0, 1, 0, 0, 2> TriggerInfo::_table_ = {
619 {
620 0, // no _has_bits_
621 0, // no _extensions_
622 1, 0, // max_field_number, fast_idx_mask
623 offsetof(decltype(_table_), field_lookup_table),
624 4294967294, // skipmap
625 offsetof(decltype(_table_), field_entries),
626 1, // num_field_entries
627 0, // num_aux_entries
628 offsetof(decltype(_table_), field_names), // no aux_entries
630 ::_pbi::TcParser::GenericFallback, // fallback
631 }, {{
632 // uint64 count = 1;
633 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TriggerInfo, _impl_.count_), 63>(),
634 {8, 63, 0, PROTOBUF_FIELD_OFFSET(TriggerInfo, _impl_.count_)}},
635 }}, {{
636 65535, 65535
637 }}, {{
638 // uint64 count = 1;
639 {PROTOBUF_FIELD_OFFSET(TriggerInfo, _impl_.count_), 0, 0,
640 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
641 }},
642 // no aux_entries
643 {{
644 }},
645};
646
648 ::uint8_t* target,
649 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
650 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.ctbmodules.opmon.TriggerInfo)
651 ::uint32_t cached_has_bits = 0;
652 (void)cached_has_bits;
653
654 // uint64 count = 1;
655 if (this->_internal_count() != 0) {
656 target = stream->EnsureSpace(target);
657 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
658 1, this->_internal_count(), target);
659 }
660
661 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
662 target =
663 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
664 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
665 }
666 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.ctbmodules.opmon.TriggerInfo)
667 return target;
668}
669
671// @@protoc_insertion_point(message_byte_size_start:dunedaq.ctbmodules.opmon.TriggerInfo)
672 ::size_t total_size = 0;
673
674 ::uint32_t cached_has_bits = 0;
675 // Prevent compiler warnings about cached_has_bits being unused
676 (void) cached_has_bits;
677
678 // uint64 count = 1;
679 if (this->_internal_count() != 0) {
680 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
681 this->_internal_count());
682 }
683
684 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
685}
686
687const ::google::protobuf::Message::ClassData TriggerInfo::_class_data_ = {
688 ::google::protobuf::Message::CopyWithSourceCheck,
690};
691const ::google::protobuf::Message::ClassData*TriggerInfo::GetClassData() const { return &_class_data_; }
692
693
694void TriggerInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
695 auto* const _this = static_cast<TriggerInfo*>(&to_msg);
696 auto& from = static_cast<const TriggerInfo&>(from_msg);
697 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.ctbmodules.opmon.TriggerInfo)
698 ABSL_DCHECK_NE(&from, _this);
699 ::uint32_t cached_has_bits = 0;
700 (void) cached_has_bits;
701
702 if (from._internal_count() != 0) {
703 _this->_internal_set_count(from._internal_count());
704 }
705 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
706}
707
709// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.ctbmodules.opmon.TriggerInfo)
710 if (&from == this) return;
711 Clear();
712 MergeFrom(from);
713}
714
715PROTOBUF_NOINLINE bool TriggerInfo::IsInitialized() const {
716 return true;
717}
718
720 using std::swap;
721 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
722 swap(_impl_.count_, other->_impl_.count_);
723}
724
730// @@protoc_insertion_point(namespace_scope)
731} // namespace opmon
732} // namespace ctbmodules
733} // namespace dunedaq
734namespace google {
735namespace protobuf {
736} // namespace protobuf
737} // namespace google
738// @@protoc_insertion_point(global_scope)
739#include "google/protobuf/port_undef.inc"
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_ctbmodules_2fopmon_2fCTBModule_2eproto_getter()
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_ctbmodules_2fopmon_2fCTBModule_2eproto
::absl::once_flag descriptor_table_ctbmodules_2fopmon_2fCTBModule_2eproto_once
const ::_pbi::DescriptorTable descriptor_table_ctbmodules_2fopmon_2fCTBModule_2eproto
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_ctbmodules_2fopmon_2fCTBModule_2eproto
::_pb::Metadata file_level_metadata_ctbmodules_2fopmon_2fCTBModule_2eproto[2]
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
::uint64_t _internal_failed_to_send_hsi_events_counter() const
void CopyFrom(const CTBModuleInfo &from)
void InternalSwap(CTBModuleInfo *other)
::uint64_t _internal_last_readout_timestamp() const
void SharedCtor(::google::protobuf::Arena *arena)
static const ::google::protobuf::internal::TcParseTable< 4, 10, 0, 0, 2 > _table_
::uint32_t _internal_num_control_responses_received() const
::google::protobuf::Metadata GetMetadata() const final
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
void MergeFrom(const CTBModuleInfo &from)
const ::google::protobuf::Message::ClassData * GetClassData() const final
void SetCachedSize(int size) const final
::uint32_t _internal_num_control_messages_sent() const
static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2 > _table_
void MergeFrom(const TriggerInfo &from)
void SetCachedSize(int size) const final
const ::google::protobuf::Message::ClassData * GetClassData() const final
void SharedCtor(::google::protobuf::Arena *arena)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::google::protobuf::Metadata GetMetadata() const final
void CopyFrom(const TriggerInfo &from)
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
friend void swap(TriggerInfo &a, TriggerInfo &b)
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
void InternalSwap(TriggerInfo *other)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CTBModuleInfoDefaultTypeInternal _CTBModuleInfo_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TriggerInfoDefaultTypeInternal _TriggerInfo_default_instance_
Including Qt Headers.
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
mutable::google::protobuf::internal::CachedSize _cached_size_
mutable::google::protobuf::internal::CachedSize _cached_size_
const ::uint32_t TableStruct_wib_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::_pb::Message *const file_default_instances[]
Definition wib.pb.cc:1192