DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
hermescontroller.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: hermesmodules/opmon/hermescontroller.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 hermesmodules {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR LinkInfo::LinkInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.err_)*/ false,
30 /*decltype(_impl_.eth_rdy_)*/ false,
31 /*decltype(_impl_.src_rdy_)*/ false,
32 /*decltype(_impl_.udp_rdy_)*/ false,
33 /*decltype(_impl_.sent_arp_count_)*/ 0u,
34 /*decltype(_impl_.sent_ping_count_)*/ 0u,
35 /*decltype(_impl_.sent_udp_count_)*/ 0u,
36 /*decltype(_impl_.rcvd_arp_count_)*/ 0u,
37 /*decltype(_impl_.rcvd_ping_count_)*/ 0u,
38 /*decltype(_impl_.rcvd_udp_count_)*/ 0u,
39 /*decltype(_impl_._cached_size_)*/ {},
40 } {}
42 PROTOBUF_CONSTEXPR LinkInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
44 union {
46 };
47};
48
49PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
51 template <typename>
52PROTOBUF_CONSTEXPR ControllerInfo::ControllerInfo(::_pbi::ConstantInitialized)
53 : _impl_{
54 /*decltype(_impl_.total_amount_)*/ ::uint64_t{0u},
55 /*decltype(_impl_.amount_since_last_get_info_call_)*/ 0u,
56 /*decltype(_impl_._cached_size_)*/ {},
57 } {}
59 PROTOBUF_CONSTEXPR ControllerInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
61 union {
63 };
64};
65
66PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
68} // namespace opmon
69} // namespace hermesmodules
70} // namespace dunedaq
72static constexpr const ::_pb::EnumDescriptor**
74static constexpr const ::_pb::ServiceDescriptor**
77 protodesc_cold) = {
78 ~0u, // no _has_bits_
79 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _internal_metadata_),
80 ~0u, // no _extensions_
81 ~0u, // no _oneof_case_
82 ~0u, // no _weak_field_map_
83 ~0u, // no _inlined_string_donated_
84 ~0u, // no _split_
85 ~0u, // no sizeof(Split)
86 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.err_),
87 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.eth_rdy_),
88 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.src_rdy_),
89 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.udp_rdy_),
90 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.sent_arp_count_),
91 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.sent_ping_count_),
92 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.sent_udp_count_),
93 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.rcvd_arp_count_),
94 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.rcvd_ping_count_),
95 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::LinkInfo, _impl_.rcvd_udp_count_),
96 ~0u, // no _has_bits_
97 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::ControllerInfo, _internal_metadata_),
98 ~0u, // no _extensions_
99 ~0u, // no _oneof_case_
100 ~0u, // no _weak_field_map_
101 ~0u, // no _inlined_string_donated_
102 ~0u, // no _split_
103 ~0u, // no sizeof(Split)
104 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::ControllerInfo, _impl_.total_amount_),
105 PROTOBUF_FIELD_OFFSET(::dunedaq::hermesmodules::opmon::ControllerInfo, _impl_.amount_since_last_get_info_call_),
106};
107
108static const ::_pbi::MigrationSchema
109 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
112};
113
118const char descriptor_table_protodef_hermesmodules_2fopmon_2fhermescontroller_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
119 "\n*hermesmodules/opmon/hermescontroller.p"
120 "roto\022\033dunedaq.hermesmodules.opmon\"\334\001\n\010Li"
121 "nkInfo\022\013\n\003err\030\001 \001(\010\022\017\n\007eth_rdy\030\002 \001(\010\022\017\n\007"
122 "src_rdy\030\003 \001(\010\022\017\n\007udp_rdy\030\004 \001(\010\022\026\n\016sent_a"
123 "rp_count\030\n \001(\r\022\027\n\017sent_ping_count\030\013 \001(\r\022"
124 "\026\n\016sent_udp_count\030\014 \001(\r\022\026\n\016rcvd_arp_coun"
125 "t\030\017 \001(\r\022\027\n\017rcvd_ping_count\030\020 \001(\r\022\026\n\016rcvd"
126 "_udp_count\030\021 \001(\r\"O\n\016ControllerInfo\022\024\n\014to"
127 "tal_amount\030\001 \001(\004\022\'\n\037amount_since_last_ge"
128 "t_info_call\030\002 \001(\rb\006proto3"
129};
148
149// This function exists to be marked as weak.
150// It can significantly speed up compilation by breaking up LLVM's SCC
151// in the .pb.cc translation units. Large translation units see a
152// reduction of more than 35% of walltime for optimized builds. Without
153// the weak attribute all the messages in the file, including all the
154// vtables and everything they use become part of the same SCC through
155// a cycle like:
156// GetMetadata -> descriptor table -> default instances ->
157// vtables -> GetMetadata
158// By adding a weak function here we break the connection from the
159// individual vtables back into the descriptor table.
163// Force running AddDescriptors() at dynamic initialization time.
164PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
165static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_hermesmodules_2fopmon_2fhermescontroller_2eproto(&descriptor_table_hermesmodules_2fopmon_2fhermescontroller_2eproto);
166namespace dunedaq {
167namespace hermesmodules {
168namespace opmon {
169// ===================================================================
170
172 public:
173};
174
175LinkInfo::LinkInfo(::google::protobuf::Arena* arena)
176 : ::google::protobuf::Message(arena) {
177 SharedCtor(arena);
178 // @@protoc_insertion_point(arena_constructor:dunedaq.hermesmodules.opmon.LinkInfo)
179}
181 : ::google::protobuf::Message(), _impl_(from._impl_) {
182 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
183 from._internal_metadata_);
184 // @@protoc_insertion_point(copy_constructor:dunedaq.hermesmodules.opmon.LinkInfo)
185}
186inline void LinkInfo::SharedCtor(::_pb::Arena* arena) {
187 (void)arena;
188 new (&_impl_) Impl_{
189 decltype(_impl_.err_){false},
190 decltype(_impl_.eth_rdy_){false},
191 decltype(_impl_.src_rdy_){false},
192 decltype(_impl_.udp_rdy_){false},
193 decltype(_impl_.sent_arp_count_){0u},
194 decltype(_impl_.sent_ping_count_){0u},
195 decltype(_impl_.sent_udp_count_){0u},
196 decltype(_impl_.rcvd_arp_count_){0u},
197 decltype(_impl_.rcvd_ping_count_){0u},
198 decltype(_impl_.rcvd_udp_count_){0u},
199 /*decltype(_impl_._cached_size_)*/ {},
200 };
201}
203 // @@protoc_insertion_point(destructor:dunedaq.hermesmodules.opmon.LinkInfo)
204 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
205 SharedDtor();
206}
207inline void LinkInfo::SharedDtor() {
208 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
209}
212}
213
214PROTOBUF_NOINLINE void LinkInfo::Clear() {
215// @@protoc_insertion_point(message_clear_start:dunedaq.hermesmodules.opmon.LinkInfo)
216 ::uint32_t cached_has_bits = 0;
217 // Prevent compiler warnings about cached_has_bits being unused
218 (void) cached_has_bits;
219
220 ::memset(&_impl_.err_, 0, static_cast<::size_t>(
221 reinterpret_cast<char*>(&_impl_.rcvd_udp_count_) -
222 reinterpret_cast<char*>(&_impl_.err_)) + sizeof(_impl_.rcvd_udp_count_));
223 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
224}
225
226const char* LinkInfo::_InternalParse(
227 const char* ptr, ::_pbi::ParseContext* ctx) {
228 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
229 return ptr;
230}
231
232
233PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
234const ::_pbi::TcParseTable<4, 10, 0, 0, 2> LinkInfo::_table_ = {
235 {
236 0, // no _has_bits_
237 0, // no _extensions_
238 17, 120, // max_field_number, fast_idx_mask
239 offsetof(decltype(_table_), field_lookup_table),
240 4294849008, // skipmap
241 offsetof(decltype(_table_), field_entries),
242 10, // num_field_entries
243 0, // num_aux_entries
244 offsetof(decltype(_table_), field_names), // no aux_entries
246 ::_pbi::TcParser::GenericFallback, // fallback
247 }, {{
248 // uint32 rcvd_ping_count = 16;
249 {::_pbi::TcParser::FastV32S2,
250 {384, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.rcvd_ping_count_)}},
251 // bool err = 1;
252 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(LinkInfo, _impl_.err_), 63>(),
253 {8, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.err_)}},
254 // bool eth_rdy = 2;
255 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(LinkInfo, _impl_.eth_rdy_), 63>(),
256 {16, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.eth_rdy_)}},
257 // bool src_rdy = 3;
258 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(LinkInfo, _impl_.src_rdy_), 63>(),
259 {24, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.src_rdy_)}},
260 // bool udp_rdy = 4;
261 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(LinkInfo, _impl_.udp_rdy_), 63>(),
262 {32, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.udp_rdy_)}},
263 {::_pbi::TcParser::MiniParse, {}},
264 {::_pbi::TcParser::MiniParse, {}},
265 {::_pbi::TcParser::MiniParse, {}},
266 {::_pbi::TcParser::MiniParse, {}},
267 {::_pbi::TcParser::MiniParse, {}},
268 // uint32 sent_arp_count = 10;
269 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LinkInfo, _impl_.sent_arp_count_), 63>(),
270 {80, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.sent_arp_count_)}},
271 // uint32 sent_ping_count = 11;
272 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LinkInfo, _impl_.sent_ping_count_), 63>(),
273 {88, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.sent_ping_count_)}},
274 // uint32 sent_udp_count = 12;
275 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LinkInfo, _impl_.sent_udp_count_), 63>(),
276 {96, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.sent_udp_count_)}},
277 {::_pbi::TcParser::MiniParse, {}},
278 {::_pbi::TcParser::MiniParse, {}},
279 // uint32 rcvd_arp_count = 15;
280 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LinkInfo, _impl_.rcvd_arp_count_), 63>(),
281 {120, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.rcvd_arp_count_)}},
282 }}, {{
283 65535, 65535
284 }}, {{
285 // bool err = 1;
286 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.err_), 0, 0,
287 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
288 // bool eth_rdy = 2;
289 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.eth_rdy_), 0, 0,
290 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
291 // bool src_rdy = 3;
292 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.src_rdy_), 0, 0,
293 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
294 // bool udp_rdy = 4;
295 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.udp_rdy_), 0, 0,
296 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
297 // uint32 sent_arp_count = 10;
298 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.sent_arp_count_), 0, 0,
299 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
300 // uint32 sent_ping_count = 11;
301 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.sent_ping_count_), 0, 0,
302 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
303 // uint32 sent_udp_count = 12;
304 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.sent_udp_count_), 0, 0,
305 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
306 // uint32 rcvd_arp_count = 15;
307 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.rcvd_arp_count_), 0, 0,
308 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
309 // uint32 rcvd_ping_count = 16;
310 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.rcvd_ping_count_), 0, 0,
311 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
312 // uint32 rcvd_udp_count = 17;
313 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.rcvd_udp_count_), 0, 0,
314 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
315 }},
316 // no aux_entries
317 {{
318 }},
319};
320
322 ::uint8_t* target,
323 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
324 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.hermesmodules.opmon.LinkInfo)
325 ::uint32_t cached_has_bits = 0;
326 (void)cached_has_bits;
327
328 // bool err = 1;
329 if (this->_internal_err() != 0) {
330 target = stream->EnsureSpace(target);
331 target = ::_pbi::WireFormatLite::WriteBoolToArray(
332 1, this->_internal_err(), target);
333 }
334
335 // bool eth_rdy = 2;
336 if (this->_internal_eth_rdy() != 0) {
337 target = stream->EnsureSpace(target);
338 target = ::_pbi::WireFormatLite::WriteBoolToArray(
339 2, this->_internal_eth_rdy(), target);
340 }
341
342 // bool src_rdy = 3;
343 if (this->_internal_src_rdy() != 0) {
344 target = stream->EnsureSpace(target);
345 target = ::_pbi::WireFormatLite::WriteBoolToArray(
346 3, this->_internal_src_rdy(), target);
347 }
348
349 // bool udp_rdy = 4;
350 if (this->_internal_udp_rdy() != 0) {
351 target = stream->EnsureSpace(target);
352 target = ::_pbi::WireFormatLite::WriteBoolToArray(
353 4, this->_internal_udp_rdy(), target);
354 }
355
356 // uint32 sent_arp_count = 10;
357 if (this->_internal_sent_arp_count() != 0) {
358 target = stream->EnsureSpace(target);
359 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
360 10, this->_internal_sent_arp_count(), target);
361 }
362
363 // uint32 sent_ping_count = 11;
364 if (this->_internal_sent_ping_count() != 0) {
365 target = stream->EnsureSpace(target);
366 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
367 11, this->_internal_sent_ping_count(), target);
368 }
369
370 // uint32 sent_udp_count = 12;
371 if (this->_internal_sent_udp_count() != 0) {
372 target = stream->EnsureSpace(target);
373 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
374 12, this->_internal_sent_udp_count(), target);
375 }
376
377 // uint32 rcvd_arp_count = 15;
378 if (this->_internal_rcvd_arp_count() != 0) {
379 target = stream->EnsureSpace(target);
380 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
381 15, this->_internal_rcvd_arp_count(), target);
382 }
383
384 // uint32 rcvd_ping_count = 16;
385 if (this->_internal_rcvd_ping_count() != 0) {
386 target = stream->EnsureSpace(target);
387 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
388 16, this->_internal_rcvd_ping_count(), target);
389 }
390
391 // uint32 rcvd_udp_count = 17;
392 if (this->_internal_rcvd_udp_count() != 0) {
393 target = stream->EnsureSpace(target);
394 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
395 17, this->_internal_rcvd_udp_count(), target);
396 }
397
398 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
399 target =
400 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
401 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
402 }
403 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.hermesmodules.opmon.LinkInfo)
404 return target;
405}
406
407::size_t LinkInfo::ByteSizeLong() const {
408// @@protoc_insertion_point(message_byte_size_start:dunedaq.hermesmodules.opmon.LinkInfo)
409 ::size_t total_size = 0;
410
411 ::uint32_t cached_has_bits = 0;
412 // Prevent compiler warnings about cached_has_bits being unused
413 (void) cached_has_bits;
414
415 // bool err = 1;
416 if (this->_internal_err() != 0) {
417 total_size += 2;
418 }
419
420 // bool eth_rdy = 2;
421 if (this->_internal_eth_rdy() != 0) {
422 total_size += 2;
423 }
424
425 // bool src_rdy = 3;
426 if (this->_internal_src_rdy() != 0) {
427 total_size += 2;
428 }
429
430 // bool udp_rdy = 4;
431 if (this->_internal_udp_rdy() != 0) {
432 total_size += 2;
433 }
434
435 // uint32 sent_arp_count = 10;
436 if (this->_internal_sent_arp_count() != 0) {
437 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
439 }
440
441 // uint32 sent_ping_count = 11;
442 if (this->_internal_sent_ping_count() != 0) {
443 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
445 }
446
447 // uint32 sent_udp_count = 12;
448 if (this->_internal_sent_udp_count() != 0) {
449 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
451 }
452
453 // uint32 rcvd_arp_count = 15;
454 if (this->_internal_rcvd_arp_count() != 0) {
455 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
457 }
458
459 // uint32 rcvd_ping_count = 16;
460 if (this->_internal_rcvd_ping_count() != 0) {
461 total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
463 }
464
465 // uint32 rcvd_udp_count = 17;
466 if (this->_internal_rcvd_udp_count() != 0) {
467 total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
469 }
470
471 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
472}
473
474const ::google::protobuf::Message::ClassData LinkInfo::_class_data_ = {
475 ::google::protobuf::Message::CopyWithSourceCheck,
477};
478const ::google::protobuf::Message::ClassData*LinkInfo::GetClassData() const { return &_class_data_; }
479
480
481void LinkInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
482 auto* const _this = static_cast<LinkInfo*>(&to_msg);
483 auto& from = static_cast<const LinkInfo&>(from_msg);
484 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.hermesmodules.opmon.LinkInfo)
485 ABSL_DCHECK_NE(&from, _this);
486 ::uint32_t cached_has_bits = 0;
487 (void) cached_has_bits;
488
489 if (from._internal_err() != 0) {
490 _this->_internal_set_err(from._internal_err());
491 }
492 if (from._internal_eth_rdy() != 0) {
493 _this->_internal_set_eth_rdy(from._internal_eth_rdy());
494 }
495 if (from._internal_src_rdy() != 0) {
496 _this->_internal_set_src_rdy(from._internal_src_rdy());
497 }
498 if (from._internal_udp_rdy() != 0) {
499 _this->_internal_set_udp_rdy(from._internal_udp_rdy());
500 }
501 if (from._internal_sent_arp_count() != 0) {
502 _this->_internal_set_sent_arp_count(from._internal_sent_arp_count());
503 }
504 if (from._internal_sent_ping_count() != 0) {
505 _this->_internal_set_sent_ping_count(from._internal_sent_ping_count());
506 }
507 if (from._internal_sent_udp_count() != 0) {
508 _this->_internal_set_sent_udp_count(from._internal_sent_udp_count());
509 }
510 if (from._internal_rcvd_arp_count() != 0) {
511 _this->_internal_set_rcvd_arp_count(from._internal_rcvd_arp_count());
512 }
513 if (from._internal_rcvd_ping_count() != 0) {
514 _this->_internal_set_rcvd_ping_count(from._internal_rcvd_ping_count());
515 }
516 if (from._internal_rcvd_udp_count() != 0) {
517 _this->_internal_set_rcvd_udp_count(from._internal_rcvd_udp_count());
518 }
519 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
520}
521
522void LinkInfo::CopyFrom(const LinkInfo& from) {
523// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.hermesmodules.opmon.LinkInfo)
524 if (&from == this) return;
525 Clear();
526 MergeFrom(from);
527}
528
529PROTOBUF_NOINLINE bool LinkInfo::IsInitialized() const {
530 return true;
531}
532
534 using std::swap;
535 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
536 ::google::protobuf::internal::memswap<
537 PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.rcvd_udp_count_)
539 - PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.err_)>(
540 reinterpret_cast<char*>(&_impl_.err_),
541 reinterpret_cast<char*>(&other->_impl_.err_));
542}
543
549// ===================================================================
550
552 public:
553};
554
555ControllerInfo::ControllerInfo(::google::protobuf::Arena* arena)
556 : ::google::protobuf::Message(arena) {
557 SharedCtor(arena);
558 // @@protoc_insertion_point(arena_constructor:dunedaq.hermesmodules.opmon.ControllerInfo)
559}
561 : ::google::protobuf::Message(), _impl_(from._impl_) {
562 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
563 from._internal_metadata_);
564 // @@protoc_insertion_point(copy_constructor:dunedaq.hermesmodules.opmon.ControllerInfo)
565}
566inline void ControllerInfo::SharedCtor(::_pb::Arena* arena) {
567 (void)arena;
568 new (&_impl_) Impl_{
569 decltype(_impl_.total_amount_){::uint64_t{0u}},
571 /*decltype(_impl_._cached_size_)*/ {},
572 };
573}
575 // @@protoc_insertion_point(destructor:dunedaq.hermesmodules.opmon.ControllerInfo)
576 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
577 SharedDtor();
578}
580 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
581}
585
586PROTOBUF_NOINLINE void ControllerInfo::Clear() {
587// @@protoc_insertion_point(message_clear_start:dunedaq.hermesmodules.opmon.ControllerInfo)
588 ::uint32_t cached_has_bits = 0;
589 // Prevent compiler warnings about cached_has_bits being unused
590 (void) cached_has_bits;
591
592 ::memset(&_impl_.total_amount_, 0, static_cast<::size_t>(
593 reinterpret_cast<char*>(&_impl_.amount_since_last_get_info_call_) -
594 reinterpret_cast<char*>(&_impl_.total_amount_)) + sizeof(_impl_.amount_since_last_get_info_call_));
595 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
596}
597
599 const char* ptr, ::_pbi::ParseContext* ctx) {
600 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
601 return ptr;
602}
603
604
605PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
606const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ControllerInfo::_table_ = {
607 {
608 0, // no _has_bits_
609 0, // no _extensions_
610 2, 8, // max_field_number, fast_idx_mask
611 offsetof(decltype(_table_), field_lookup_table),
612 4294967292, // skipmap
613 offsetof(decltype(_table_), field_entries),
614 2, // num_field_entries
615 0, // num_aux_entries
616 offsetof(decltype(_table_), field_names), // no aux_entries
618 ::_pbi::TcParser::GenericFallback, // fallback
619 }, {{
620 // uint32 amount_since_last_get_info_call = 2;
621 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ControllerInfo, _impl_.amount_since_last_get_info_call_), 63>(),
622 {16, 63, 0, PROTOBUF_FIELD_OFFSET(ControllerInfo, _impl_.amount_since_last_get_info_call_)}},
623 // uint64 total_amount = 1;
624 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ControllerInfo, _impl_.total_amount_), 63>(),
625 {8, 63, 0, PROTOBUF_FIELD_OFFSET(ControllerInfo, _impl_.total_amount_)}},
626 }}, {{
627 65535, 65535
628 }}, {{
629 // uint64 total_amount = 1;
630 {PROTOBUF_FIELD_OFFSET(ControllerInfo, _impl_.total_amount_), 0, 0,
631 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
632 // uint32 amount_since_last_get_info_call = 2;
633 {PROTOBUF_FIELD_OFFSET(ControllerInfo, _impl_.amount_since_last_get_info_call_), 0, 0,
634 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
635 }},
636 // no aux_entries
637 {{
638 }},
639};
640
642 ::uint8_t* target,
643 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
644 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.hermesmodules.opmon.ControllerInfo)
645 ::uint32_t cached_has_bits = 0;
646 (void)cached_has_bits;
647
648 // uint64 total_amount = 1;
649 if (this->_internal_total_amount() != 0) {
650 target = stream->EnsureSpace(target);
651 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
652 1, this->_internal_total_amount(), target);
653 }
654
655 // uint32 amount_since_last_get_info_call = 2;
657 target = stream->EnsureSpace(target);
658 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
660 }
661
662 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
663 target =
664 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
665 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
666 }
667 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.hermesmodules.opmon.ControllerInfo)
668 return target;
669}
670
672// @@protoc_insertion_point(message_byte_size_start:dunedaq.hermesmodules.opmon.ControllerInfo)
673 ::size_t total_size = 0;
674
675 ::uint32_t cached_has_bits = 0;
676 // Prevent compiler warnings about cached_has_bits being unused
677 (void) cached_has_bits;
678
679 // uint64 total_amount = 1;
680 if (this->_internal_total_amount() != 0) {
681 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
682 this->_internal_total_amount());
683 }
684
685 // uint32 amount_since_last_get_info_call = 2;
687 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
689 }
690
691 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
692}
693
694const ::google::protobuf::Message::ClassData ControllerInfo::_class_data_ = {
695 ::google::protobuf::Message::CopyWithSourceCheck,
697};
698const ::google::protobuf::Message::ClassData*ControllerInfo::GetClassData() const { return &_class_data_; }
699
700
701void ControllerInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
702 auto* const _this = static_cast<ControllerInfo*>(&to_msg);
703 auto& from = static_cast<const ControllerInfo&>(from_msg);
704 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.hermesmodules.opmon.ControllerInfo)
705 ABSL_DCHECK_NE(&from, _this);
706 ::uint32_t cached_has_bits = 0;
707 (void) cached_has_bits;
708
709 if (from._internal_total_amount() != 0) {
710 _this->_internal_set_total_amount(from._internal_total_amount());
711 }
712 if (from._internal_amount_since_last_get_info_call() != 0) {
713 _this->_internal_set_amount_since_last_get_info_call(from._internal_amount_since_last_get_info_call());
714 }
715 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
716}
717
719// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.hermesmodules.opmon.ControllerInfo)
720 if (&from == this) return;
721 Clear();
722 MergeFrom(from);
723}
724
725PROTOBUF_NOINLINE bool ControllerInfo::IsInitialized() const {
726 return true;
727}
728
730 using std::swap;
731 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
732 ::google::protobuf::internal::memswap<
735 - PROTOBUF_FIELD_OFFSET(ControllerInfo, _impl_.total_amount_)>(
736 reinterpret_cast<char*>(&_impl_.total_amount_),
737 reinterpret_cast<char*>(&other->_impl_.total_amount_));
738}
739
745// @@protoc_insertion_point(namespace_scope)
746} // namespace opmon
747} // namespace hermesmodules
748} // namespace dunedaq
749namespace google {
750namespace protobuf {
751} // namespace protobuf
752} // namespace google
753// @@protoc_insertion_point(global_scope)
754#include "google/protobuf/port_undef.inc"
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
const ::google::protobuf::Message::ClassData * GetClassData() const final
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
void SharedCtor(::google::protobuf::Arena *arena)
static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 0, 2 > _table_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
::google::protobuf::Metadata GetMetadata() const final
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
void SharedCtor(::google::protobuf::Arena *arena)
const ::google::protobuf::Message::ClassData * GetClassData() const final
static const ::google::protobuf::internal::TcParseTable< 4, 10, 0, 0, 2 > _table_
::google::protobuf::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::absl::once_flag descriptor_table_hermesmodules_2fopmon_2fhermescontroller_2eproto_once
::_pb::Metadata file_level_metadata_hermesmodules_2fopmon_2fhermescontroller_2eproto[2]
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_hermesmodules_2fopmon_2fhermescontroller_2eproto
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_hermesmodules_2fopmon_2fhermescontroller_2eproto_getter()
const ::_pbi::DescriptorTable descriptor_table_hermesmodules_2fopmon_2fhermescontroller_2eproto
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_hermesmodules_2fopmon_2fhermescontroller_2eproto
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinkInfoDefaultTypeInternal _LinkInfo_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ControllerInfoDefaultTypeInternal _ControllerInfo_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