DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ElinkModel.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: flxlibs/opmon/ElinkModel.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 flxlibs {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR CardReaderInfo::CardReaderInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.num_short_chunks_processed_)*/ ::uint64_t{0u},
30 /*decltype(_impl_.num_chunks_processed_)*/ ::uint64_t{0u},
31 /*decltype(_impl_.num_subchunks_processed_)*/ ::uint64_t{0u},
32 /*decltype(_impl_.num_blocks_processed_)*/ ::uint64_t{0u},
33 /*decltype(_impl_.num_short_chunks_processed_with_error_)*/ ::uint64_t{0u},
34 /*decltype(_impl_.num_chunks_processed_with_error_)*/ ::uint64_t{0u},
35 /*decltype(_impl_.num_subchunks_processed_with_error_)*/ ::uint64_t{0u},
36 /*decltype(_impl_.num_blocks_processed_with_error_)*/ ::uint64_t{0u},
37 /*decltype(_impl_.num_subchunk_crc_errors_)*/ ::uint64_t{0u},
38 /*decltype(_impl_.num_subchunk_trunc_errors_)*/ ::uint64_t{0u},
39 /*decltype(_impl_.num_subchunk_errors_)*/ ::uint64_t{0u},
40 /*decltype(_impl_.rate_blocks_processed_)*/ 0,
41 /*decltype(_impl_.rate_chunks_processed_)*/ 0,
42 /*decltype(_impl_._cached_size_)*/ {},
43 } {}
45 PROTOBUF_CONSTEXPR CardReaderInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
47 union {
49 };
50};
51
52PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
54} // namespace opmon
55} // namespace flxlibs
56} // namespace dunedaq
58static constexpr const ::_pb::EnumDescriptor**
60static constexpr const ::_pb::ServiceDescriptor**
63 protodesc_cold) = {
64 ~0u, // no _has_bits_
65 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _internal_metadata_),
66 ~0u, // no _extensions_
67 ~0u, // no _oneof_case_
68 ~0u, // no _weak_field_map_
69 ~0u, // no _inlined_string_donated_
70 ~0u, // no _split_
71 ~0u, // no sizeof(Split)
72 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_short_chunks_processed_),
73 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_chunks_processed_),
74 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_subchunks_processed_),
75 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_blocks_processed_),
76 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_short_chunks_processed_with_error_),
77 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_chunks_processed_with_error_),
78 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_subchunks_processed_with_error_),
79 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_blocks_processed_with_error_),
80 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_subchunk_crc_errors_),
81 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_subchunk_trunc_errors_),
82 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.num_subchunk_errors_),
83 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.rate_blocks_processed_),
84 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::CardReaderInfo, _impl_.rate_chunks_processed_),
85};
86
87static const ::_pbi::MigrationSchema
88 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
90};
91
95const char descriptor_table_protodef_flxlibs_2fopmon_2fElinkModel_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
96 "\n\036flxlibs/opmon/ElinkModel.proto\022\025duneda"
97 "q.flxlibs.opmon\"\335\003\n\016CardReaderInfo\022\"\n\032nu"
98 "m_short_chunks_processed\030\001 \001(\004\022\034\n\024num_ch"
99 "unks_processed\030\002 \001(\004\022\037\n\027num_subchunks_pr"
100 "ocessed\030\003 \001(\004\022\034\n\024num_blocks_processed\030\004 "
101 "\001(\004\022-\n%num_short_chunks_processed_with_e"
102 "rror\030\n \001(\004\022\'\n\037num_chunks_processed_with_"
103 "error\030\013 \001(\004\022*\n\"num_subchunks_processed_w"
104 "ith_error\030\014 \001(\004\022\'\n\037num_blocks_processed_"
105 "with_error\030\r \001(\004\022\037\n\027num_subchunk_crc_err"
106 "ors\030\017 \001(\004\022!\n\031num_subchunk_trunc_errors\030\020"
107 " \001(\004\022\033\n\023num_subchunk_errors\030\021 \001(\004\022\035\n\025rat"
108 "e_blocks_processed\030\024 \001(\001\022\035\n\025rate_chunks_"
109 "processed\030\025 \001(\001b\006proto3"
110};
113 false,
114 false,
115 543,
116 descriptor_table_protodef_flxlibs_2fopmon_2fElinkModel_2eproto,
117 "flxlibs/opmon/ElinkModel.proto",
119 nullptr,
120 0,
121 1,
122 schemas,
128};
129
130// This function exists to be marked as weak.
131// It can significantly speed up compilation by breaking up LLVM's SCC
132// in the .pb.cc translation units. Large translation units see a
133// reduction of more than 35% of walltime for optimized builds. Without
134// the weak attribute all the messages in the file, including all the
135// vtables and everything they use become part of the same SCC through
136// a cycle like:
137// GetMetadata -> descriptor table -> default instances ->
138// vtables -> GetMetadata
139// By adding a weak function here we break the connection from the
140// individual vtables back into the descriptor table.
141PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_flxlibs_2fopmon_2fElinkModel_2eproto_getter() {
143}
144// Force running AddDescriptors() at dynamic initialization time.
145PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
146static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_flxlibs_2fopmon_2fElinkModel_2eproto(&descriptor_table_flxlibs_2fopmon_2fElinkModel_2eproto);
147namespace dunedaq {
148namespace flxlibs {
149namespace opmon {
150// ===================================================================
151
153 public:
154};
155
156CardReaderInfo::CardReaderInfo(::google::protobuf::Arena* arena)
157 : ::google::protobuf::Message(arena) {
158 SharedCtor(arena);
159 // @@protoc_insertion_point(arena_constructor:dunedaq.flxlibs.opmon.CardReaderInfo)
160}
162 : ::google::protobuf::Message(), _impl_(from._impl_) {
163 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
164 from._internal_metadata_);
165 // @@protoc_insertion_point(copy_constructor:dunedaq.flxlibs.opmon.CardReaderInfo)
166}
167inline void CardReaderInfo::SharedCtor(::_pb::Arena* arena) {
168 (void)arena;
169 new (&_impl_) Impl_{
170 decltype(_impl_.num_short_chunks_processed_){::uint64_t{0u}},
171 decltype(_impl_.num_chunks_processed_){::uint64_t{0u}},
172 decltype(_impl_.num_subchunks_processed_){::uint64_t{0u}},
173 decltype(_impl_.num_blocks_processed_){::uint64_t{0u}},
174 decltype(_impl_.num_short_chunks_processed_with_error_){::uint64_t{0u}},
175 decltype(_impl_.num_chunks_processed_with_error_){::uint64_t{0u}},
176 decltype(_impl_.num_subchunks_processed_with_error_){::uint64_t{0u}},
177 decltype(_impl_.num_blocks_processed_with_error_){::uint64_t{0u}},
178 decltype(_impl_.num_subchunk_crc_errors_){::uint64_t{0u}},
179 decltype(_impl_.num_subchunk_trunc_errors_){::uint64_t{0u}},
180 decltype(_impl_.num_subchunk_errors_){::uint64_t{0u}},
181 decltype(_impl_.rate_blocks_processed_){0},
182 decltype(_impl_.rate_chunks_processed_){0},
183 /*decltype(_impl_._cached_size_)*/ {},
184 };
185}
187 // @@protoc_insertion_point(destructor:dunedaq.flxlibs.opmon.CardReaderInfo)
188 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
189 SharedDtor();
190}
192 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
193}
197
198PROTOBUF_NOINLINE void CardReaderInfo::Clear() {
199// @@protoc_insertion_point(message_clear_start:dunedaq.flxlibs.opmon.CardReaderInfo)
200 ::uint32_t cached_has_bits = 0;
201 // Prevent compiler warnings about cached_has_bits being unused
202 (void) cached_has_bits;
203
204 ::memset(&_impl_.num_short_chunks_processed_, 0, static_cast<::size_t>(
205 reinterpret_cast<char*>(&_impl_.rate_chunks_processed_) -
206 reinterpret_cast<char*>(&_impl_.num_short_chunks_processed_)) + sizeof(_impl_.rate_chunks_processed_));
207 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
208}
209
211 const char* ptr, ::_pbi::ParseContext* ctx) {
212 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
213 return ptr;
214}
215
216
217PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
218const ::_pbi::TcParseTable<4, 13, 0, 0, 2> CardReaderInfo::_table_ = {
219 {
220 0, // no _has_bits_
221 0, // no _extensions_
222 21, 120, // max_field_number, fast_idx_mask
223 offsetof(decltype(_table_), field_lookup_table),
224 4293272048, // skipmap
225 offsetof(decltype(_table_), field_entries),
226 13, // num_field_entries
227 0, // num_aux_entries
228 offsetof(decltype(_table_), field_names), // no aux_entries
230 ::_pbi::TcParser::GenericFallback, // fallback
231 }, {{
232 // uint64 num_subchunk_trunc_errors = 16;
233 {::_pbi::TcParser::FastV64S2,
234 {384, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_subchunk_trunc_errors_)}},
235 // uint64 num_short_chunks_processed = 1;
236 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CardReaderInfo, _impl_.num_short_chunks_processed_), 63>(),
237 {8, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_short_chunks_processed_)}},
238 // uint64 num_chunks_processed = 2;
239 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CardReaderInfo, _impl_.num_chunks_processed_), 63>(),
240 {16, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_chunks_processed_)}},
241 // uint64 num_subchunks_processed = 3;
242 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CardReaderInfo, _impl_.num_subchunks_processed_), 63>(),
243 {24, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_subchunks_processed_)}},
244 // uint64 num_blocks_processed = 4;
245 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CardReaderInfo, _impl_.num_blocks_processed_), 63>(),
246 {32, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_blocks_processed_)}},
247 // double rate_chunks_processed = 21;
248 {::_pbi::TcParser::FastF64S2,
249 {425, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.rate_chunks_processed_)}},
250 {::_pbi::TcParser::MiniParse, {}},
251 {::_pbi::TcParser::MiniParse, {}},
252 {::_pbi::TcParser::MiniParse, {}},
253 {::_pbi::TcParser::MiniParse, {}},
254 // uint64 num_short_chunks_processed_with_error = 10;
255 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CardReaderInfo, _impl_.num_short_chunks_processed_with_error_), 63>(),
256 {80, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_short_chunks_processed_with_error_)}},
257 // uint64 num_chunks_processed_with_error = 11;
258 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CardReaderInfo, _impl_.num_chunks_processed_with_error_), 63>(),
259 {88, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_chunks_processed_with_error_)}},
260 // uint64 num_subchunks_processed_with_error = 12;
261 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CardReaderInfo, _impl_.num_subchunks_processed_with_error_), 63>(),
262 {96, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_subchunks_processed_with_error_)}},
263 // uint64 num_blocks_processed_with_error = 13;
264 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CardReaderInfo, _impl_.num_blocks_processed_with_error_), 63>(),
265 {104, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_blocks_processed_with_error_)}},
266 {::_pbi::TcParser::MiniParse, {}},
267 // uint64 num_subchunk_crc_errors = 15;
268 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CardReaderInfo, _impl_.num_subchunk_crc_errors_), 63>(),
269 {120, 63, 0, PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_subchunk_crc_errors_)}},
270 }}, {{
271 65535, 65535
272 }}, {{
273 // uint64 num_short_chunks_processed = 1;
274 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_short_chunks_processed_), 0, 0,
275 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
276 // uint64 num_chunks_processed = 2;
277 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_chunks_processed_), 0, 0,
278 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
279 // uint64 num_subchunks_processed = 3;
280 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_subchunks_processed_), 0, 0,
281 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
282 // uint64 num_blocks_processed = 4;
283 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_blocks_processed_), 0, 0,
284 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
285 // uint64 num_short_chunks_processed_with_error = 10;
286 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_short_chunks_processed_with_error_), 0, 0,
287 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
288 // uint64 num_chunks_processed_with_error = 11;
289 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_chunks_processed_with_error_), 0, 0,
290 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
291 // uint64 num_subchunks_processed_with_error = 12;
292 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_subchunks_processed_with_error_), 0, 0,
293 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
294 // uint64 num_blocks_processed_with_error = 13;
295 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_blocks_processed_with_error_), 0, 0,
296 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
297 // uint64 num_subchunk_crc_errors = 15;
298 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_subchunk_crc_errors_), 0, 0,
299 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
300 // uint64 num_subchunk_trunc_errors = 16;
301 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_subchunk_trunc_errors_), 0, 0,
302 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
303 // uint64 num_subchunk_errors = 17;
304 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_subchunk_errors_), 0, 0,
305 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
306 // double rate_blocks_processed = 20;
307 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.rate_blocks_processed_), 0, 0,
308 (0 | ::_fl::kFcSingular | ::_fl::kDouble)},
309 // double rate_chunks_processed = 21;
310 {PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.rate_chunks_processed_), 0, 0,
311 (0 | ::_fl::kFcSingular | ::_fl::kDouble)},
312 }},
313 // no aux_entries
314 {{
315 }},
316};
317
319 ::uint8_t* target,
320 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
321 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.flxlibs.opmon.CardReaderInfo)
322 ::uint32_t cached_has_bits = 0;
323 (void)cached_has_bits;
324
325 // uint64 num_short_chunks_processed = 1;
326 if (this->_internal_num_short_chunks_processed() != 0) {
327 target = stream->EnsureSpace(target);
328 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
329 1, this->_internal_num_short_chunks_processed(), target);
330 }
331
332 // uint64 num_chunks_processed = 2;
333 if (this->_internal_num_chunks_processed() != 0) {
334 target = stream->EnsureSpace(target);
335 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
336 2, this->_internal_num_chunks_processed(), target);
337 }
338
339 // uint64 num_subchunks_processed = 3;
340 if (this->_internal_num_subchunks_processed() != 0) {
341 target = stream->EnsureSpace(target);
342 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
343 3, this->_internal_num_subchunks_processed(), target);
344 }
345
346 // uint64 num_blocks_processed = 4;
347 if (this->_internal_num_blocks_processed() != 0) {
348 target = stream->EnsureSpace(target);
349 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
350 4, this->_internal_num_blocks_processed(), target);
351 }
352
353 // uint64 num_short_chunks_processed_with_error = 10;
355 target = stream->EnsureSpace(target);
356 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
358 }
359
360 // uint64 num_chunks_processed_with_error = 11;
362 target = stream->EnsureSpace(target);
363 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
365 }
366
367 // uint64 num_subchunks_processed_with_error = 12;
369 target = stream->EnsureSpace(target);
370 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
372 }
373
374 // uint64 num_blocks_processed_with_error = 13;
376 target = stream->EnsureSpace(target);
377 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
379 }
380
381 // uint64 num_subchunk_crc_errors = 15;
382 if (this->_internal_num_subchunk_crc_errors() != 0) {
383 target = stream->EnsureSpace(target);
384 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
385 15, this->_internal_num_subchunk_crc_errors(), target);
386 }
387
388 // uint64 num_subchunk_trunc_errors = 16;
389 if (this->_internal_num_subchunk_trunc_errors() != 0) {
390 target = stream->EnsureSpace(target);
391 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
392 16, this->_internal_num_subchunk_trunc_errors(), target);
393 }
394
395 // uint64 num_subchunk_errors = 17;
396 if (this->_internal_num_subchunk_errors() != 0) {
397 target = stream->EnsureSpace(target);
398 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
399 17, this->_internal_num_subchunk_errors(), target);
400 }
401
402 // double rate_blocks_processed = 20;
403 static_assert(sizeof(::uint64_t) == sizeof(double),
404 "Code assumes ::uint64_t and double are the same size.");
405 double tmp_rate_blocks_processed = this->_internal_rate_blocks_processed();
406 ::uint64_t raw_rate_blocks_processed;
407 memcpy(&raw_rate_blocks_processed, &tmp_rate_blocks_processed, sizeof(tmp_rate_blocks_processed));
408 if (raw_rate_blocks_processed != 0) {
409 target = stream->EnsureSpace(target);
410 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
411 20, this->_internal_rate_blocks_processed(), target);
412 }
413
414 // double rate_chunks_processed = 21;
415 static_assert(sizeof(::uint64_t) == sizeof(double),
416 "Code assumes ::uint64_t and double are the same size.");
417 double tmp_rate_chunks_processed = this->_internal_rate_chunks_processed();
418 ::uint64_t raw_rate_chunks_processed;
419 memcpy(&raw_rate_chunks_processed, &tmp_rate_chunks_processed, sizeof(tmp_rate_chunks_processed));
420 if (raw_rate_chunks_processed != 0) {
421 target = stream->EnsureSpace(target);
422 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
423 21, this->_internal_rate_chunks_processed(), target);
424 }
425
426 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
427 target =
428 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
429 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
430 }
431 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.flxlibs.opmon.CardReaderInfo)
432 return target;
433}
434
436// @@protoc_insertion_point(message_byte_size_start:dunedaq.flxlibs.opmon.CardReaderInfo)
437 ::size_t total_size = 0;
438
439 ::uint32_t cached_has_bits = 0;
440 // Prevent compiler warnings about cached_has_bits being unused
441 (void) cached_has_bits;
442
443 // uint64 num_short_chunks_processed = 1;
444 if (this->_internal_num_short_chunks_processed() != 0) {
445 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
447 }
448
449 // uint64 num_chunks_processed = 2;
450 if (this->_internal_num_chunks_processed() != 0) {
451 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
453 }
454
455 // uint64 num_subchunks_processed = 3;
456 if (this->_internal_num_subchunks_processed() != 0) {
457 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
459 }
460
461 // uint64 num_blocks_processed = 4;
462 if (this->_internal_num_blocks_processed() != 0) {
463 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
465 }
466
467 // uint64 num_short_chunks_processed_with_error = 10;
469 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
471 }
472
473 // uint64 num_chunks_processed_with_error = 11;
475 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
477 }
478
479 // uint64 num_subchunks_processed_with_error = 12;
481 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
483 }
484
485 // uint64 num_blocks_processed_with_error = 13;
487 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
489 }
490
491 // uint64 num_subchunk_crc_errors = 15;
492 if (this->_internal_num_subchunk_crc_errors() != 0) {
493 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
495 }
496
497 // uint64 num_subchunk_trunc_errors = 16;
498 if (this->_internal_num_subchunk_trunc_errors() != 0) {
499 total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
501 }
502
503 // uint64 num_subchunk_errors = 17;
504 if (this->_internal_num_subchunk_errors() != 0) {
505 total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
507 }
508
509 // double rate_blocks_processed = 20;
510 static_assert(sizeof(::uint64_t) == sizeof(double),
511 "Code assumes ::uint64_t and double are the same size.");
512 double tmp_rate_blocks_processed = this->_internal_rate_blocks_processed();
513 ::uint64_t raw_rate_blocks_processed;
514 memcpy(&raw_rate_blocks_processed, &tmp_rate_blocks_processed, sizeof(tmp_rate_blocks_processed));
515 if (raw_rate_blocks_processed != 0) {
516 total_size += 10;
517 }
518
519 // double rate_chunks_processed = 21;
520 static_assert(sizeof(::uint64_t) == sizeof(double),
521 "Code assumes ::uint64_t and double are the same size.");
522 double tmp_rate_chunks_processed = this->_internal_rate_chunks_processed();
523 ::uint64_t raw_rate_chunks_processed;
524 memcpy(&raw_rate_chunks_processed, &tmp_rate_chunks_processed, sizeof(tmp_rate_chunks_processed));
525 if (raw_rate_chunks_processed != 0) {
526 total_size += 10;
527 }
528
529 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
530}
531
532const ::google::protobuf::Message::ClassData CardReaderInfo::_class_data_ = {
533 ::google::protobuf::Message::CopyWithSourceCheck,
535};
536const ::google::protobuf::Message::ClassData*CardReaderInfo::GetClassData() const { return &_class_data_; }
537
538
539void CardReaderInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
540 auto* const _this = static_cast<CardReaderInfo*>(&to_msg);
541 auto& from = static_cast<const CardReaderInfo&>(from_msg);
542 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.flxlibs.opmon.CardReaderInfo)
543 ABSL_DCHECK_NE(&from, _this);
544 ::uint32_t cached_has_bits = 0;
545 (void) cached_has_bits;
546
547 if (from._internal_num_short_chunks_processed() != 0) {
548 _this->_internal_set_num_short_chunks_processed(from._internal_num_short_chunks_processed());
549 }
550 if (from._internal_num_chunks_processed() != 0) {
551 _this->_internal_set_num_chunks_processed(from._internal_num_chunks_processed());
552 }
553 if (from._internal_num_subchunks_processed() != 0) {
554 _this->_internal_set_num_subchunks_processed(from._internal_num_subchunks_processed());
555 }
556 if (from._internal_num_blocks_processed() != 0) {
557 _this->_internal_set_num_blocks_processed(from._internal_num_blocks_processed());
558 }
559 if (from._internal_num_short_chunks_processed_with_error() != 0) {
560 _this->_internal_set_num_short_chunks_processed_with_error(from._internal_num_short_chunks_processed_with_error());
561 }
562 if (from._internal_num_chunks_processed_with_error() != 0) {
563 _this->_internal_set_num_chunks_processed_with_error(from._internal_num_chunks_processed_with_error());
564 }
565 if (from._internal_num_subchunks_processed_with_error() != 0) {
566 _this->_internal_set_num_subchunks_processed_with_error(from._internal_num_subchunks_processed_with_error());
567 }
568 if (from._internal_num_blocks_processed_with_error() != 0) {
569 _this->_internal_set_num_blocks_processed_with_error(from._internal_num_blocks_processed_with_error());
570 }
571 if (from._internal_num_subchunk_crc_errors() != 0) {
572 _this->_internal_set_num_subchunk_crc_errors(from._internal_num_subchunk_crc_errors());
573 }
574 if (from._internal_num_subchunk_trunc_errors() != 0) {
575 _this->_internal_set_num_subchunk_trunc_errors(from._internal_num_subchunk_trunc_errors());
576 }
577 if (from._internal_num_subchunk_errors() != 0) {
578 _this->_internal_set_num_subchunk_errors(from._internal_num_subchunk_errors());
579 }
580 static_assert(sizeof(::uint64_t) == sizeof(double),
581 "Code assumes ::uint64_t and double are the same size.");
582 double tmp_rate_blocks_processed = from._internal_rate_blocks_processed();
583 ::uint64_t raw_rate_blocks_processed;
584 memcpy(&raw_rate_blocks_processed, &tmp_rate_blocks_processed, sizeof(tmp_rate_blocks_processed));
585 if (raw_rate_blocks_processed != 0) {
586 _this->_internal_set_rate_blocks_processed(from._internal_rate_blocks_processed());
587 }
588 static_assert(sizeof(::uint64_t) == sizeof(double),
589 "Code assumes ::uint64_t and double are the same size.");
590 double tmp_rate_chunks_processed = from._internal_rate_chunks_processed();
591 ::uint64_t raw_rate_chunks_processed;
592 memcpy(&raw_rate_chunks_processed, &tmp_rate_chunks_processed, sizeof(tmp_rate_chunks_processed));
593 if (raw_rate_chunks_processed != 0) {
594 _this->_internal_set_rate_chunks_processed(from._internal_rate_chunks_processed());
595 }
596 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
597}
598
600// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.flxlibs.opmon.CardReaderInfo)
601 if (&from == this) return;
602 Clear();
603 MergeFrom(from);
604}
605
606PROTOBUF_NOINLINE bool CardReaderInfo::IsInitialized() const {
607 return true;
608}
609
611 using std::swap;
612 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
613 ::google::protobuf::internal::memswap<
614 PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.rate_chunks_processed_)
616 - PROTOBUF_FIELD_OFFSET(CardReaderInfo, _impl_.num_short_chunks_processed_)>(
617 reinterpret_cast<char*>(&_impl_.num_short_chunks_processed_),
618 reinterpret_cast<char*>(&other->_impl_.num_short_chunks_processed_));
619}
620
626// @@protoc_insertion_point(namespace_scope)
627} // namespace opmon
628} // namespace flxlibs
629} // namespace dunedaq
630namespace google {
631namespace protobuf {
632} // namespace protobuf
633} // namespace google
634// @@protoc_insertion_point(global_scope)
635#include "google/protobuf/port_undef.inc"
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_flxlibs_2fopmon_2fElinkModel_2eproto
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_flxlibs_2fopmon_2fElinkModel_2eproto
::_pb::Metadata file_level_metadata_flxlibs_2fopmon_2fElinkModel_2eproto[1]
const ::_pbi::DescriptorTable descriptor_table_flxlibs_2fopmon_2fElinkModel_2eproto
::absl::once_flag descriptor_table_flxlibs_2fopmon_2fElinkModel_2eproto_once
const ::uint32_t TableStruct_flxlibs_2fopmon_2fElinkModel_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_flxlibs_2fopmon_2fElinkModel_2eproto_getter()
static const ::_pb::Message *const file_default_instances[]
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::uint64_t _internal_num_short_chunks_processed() const
::uint64_t _internal_num_blocks_processed_with_error() const
void MergeFrom(const CardReaderInfo &from)
void SharedCtor(::google::protobuf::Arena *arena)
const ::google::protobuf::Message::ClassData * GetClassData() const final
::uint64_t _internal_num_short_chunks_processed_with_error() const
void SetCachedSize(int size) const final
::uint64_t _internal_num_subchunks_processed_with_error() const
::uint64_t _internal_num_chunks_processed_with_error() const
::uint64_t _internal_num_subchunks_processed() const
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
::uint64_t _internal_num_blocks_processed() const
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
::uint64_t _internal_num_subchunk_trunc_errors() const
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
void InternalSwap(CardReaderInfo *other)
static const ::google::protobuf::internal::TcParseTable< 4, 13, 0, 0, 2 > _table_
::uint64_t _internal_num_chunks_processed() const
void CopyFrom(const CardReaderInfo &from)
::google::protobuf::Metadata GetMetadata() const final
::uint64_t _internal_num_subchunk_crc_errors() const
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CardReaderInfoDefaultTypeInternal _CardReaderInfo_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_