DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
test.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: opmonlib/opmon/test.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 opmon {
25 template <typename>
26PROTOBUF_CONSTEXPR TestInfo::TestInfo(::_pbi::ConstantInitialized)
27 : _impl_{
28 /*decltype(_impl_.string_example_)*/ {
29 &::_pbi::fixed_address_empty_string,
30 ::_pbi::ConstantInitialized{},
31 },
32 /*decltype(_impl_.float_example_)*/ 0,
33 /*decltype(_impl_.int_example_)*/ ::int64_t{0},
34 /*decltype(_impl_.bool_example_)*/ false,
35 /*decltype(_impl_._cached_size_)*/ {},
36 } {}
38 PROTOBUF_CONSTEXPR TestInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
40 union {
42 };
43};
44
45PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
47 template <typename>
48PROTOBUF_CONSTEXPR ComplexInfo::ComplexInfo(::_pbi::ConstantInitialized)
49 : _impl_{
50 /*decltype(_impl_._has_bits_)*/ {},
51 /*decltype(_impl_._cached_size_)*/ {},
52 /*decltype(_impl_.r_field_)*/ {},
53 /* _impl_._r_field_cached_byte_size_ = */ {0},
54 /*decltype(_impl_.sub_message_)*/ nullptr,
55 /*decltype(_impl_.another_float_)*/ 0,
56 } {}
58 PROTOBUF_CONSTEXPR ComplexInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
60 union {
62 };
63};
64
65PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
67} // namespace opmon
68} // namespace dunedaq
70static constexpr const ::_pb::EnumDescriptor**
72static constexpr const ::_pb::ServiceDescriptor**
75 protodesc_cold) = {
76 ~0u, // no _has_bits_
77 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::TestInfo, _internal_metadata_),
78 ~0u, // no _extensions_
79 ~0u, // no _oneof_case_
80 ~0u, // no _weak_field_map_
81 ~0u, // no _inlined_string_donated_
82 ~0u, // no _split_
83 ~0u, // no sizeof(Split)
84 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::TestInfo, _impl_.string_example_),
85 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::TestInfo, _impl_.float_example_),
86 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::TestInfo, _impl_.int_example_),
87 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::TestInfo, _impl_.bool_example_),
88 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::ComplexInfo, _impl_._has_bits_),
89 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::ComplexInfo, _internal_metadata_),
90 ~0u, // no _extensions_
91 ~0u, // no _oneof_case_
92 ~0u, // no _weak_field_map_
93 ~0u, // no _inlined_string_donated_
94 ~0u, // no _split_
95 ~0u, // no sizeof(Split)
96 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::ComplexInfo, _impl_.another_float_),
97 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::ComplexInfo, _impl_.sub_message_),
98 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::ComplexInfo, _impl_.r_field_),
99 ~0u,
100 0,
101 ~0u,
102};
103
104static const ::_pbi::MigrationSchema
105 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
106 {0, -1, -1, sizeof(::dunedaq::opmon::TestInfo)},
107 {12, 23, -1, sizeof(::dunedaq::opmon::ComplexInfo)},
108};
109
114const char descriptor_table_protodef_opmonlib_2fopmon_2ftest_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
115 "\n\031opmonlib/opmon/test.proto\022\rdunedaq.opm"
116 "on\"d\n\010TestInfo\022\026\n\016string_example\030\001 \001(\t\022\025"
117 "\n\rfloat_example\030\002 \001(\001\022\023\n\013int_example\030\003 \001"
118 "(\003\022\024\n\014bool_example\030\004 \001(\010\"c\n\013ComplexInfo\022"
119 "\025\n\ranother_float\030\001 \001(\002\022,\n\013sub_message\030\003 "
120 "\001(\0132\027.dunedaq.opmon.TestInfo\022\017\n\007r_field\030"
121 "\004 \003(\005b\006proto3"
122};
125 false,
126 false,
127 253,
128 descriptor_table_protodef_opmonlib_2fopmon_2ftest_2eproto,
129 "opmonlib/opmon/test.proto",
131 nullptr,
132 0,
133 2,
134 schemas,
140};
141
142// This function exists to be marked as weak.
143// It can significantly speed up compilation by breaking up LLVM's SCC
144// in the .pb.cc translation units. Large translation units see a
145// reduction of more than 35% of walltime for optimized builds. Without
146// the weak attribute all the messages in the file, including all the
147// vtables and everything they use become part of the same SCC through
148// a cycle like:
149// GetMetadata -> descriptor table -> default instances ->
150// vtables -> GetMetadata
151// By adding a weak function here we break the connection from the
152// individual vtables back into the descriptor table.
153PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_opmonlib_2fopmon_2ftest_2eproto_getter() {
155}
156// Force running AddDescriptors() at dynamic initialization time.
157PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
158static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_opmonlib_2fopmon_2ftest_2eproto(&descriptor_table_opmonlib_2fopmon_2ftest_2eproto);
159namespace dunedaq {
160namespace opmon {
161// ===================================================================
162
164 public:
165};
166
167TestInfo::TestInfo(::google::protobuf::Arena* arena)
168 : ::google::protobuf::Message(arena) {
169 SharedCtor(arena);
170 // @@protoc_insertion_point(arena_constructor:dunedaq.opmon.TestInfo)
171}
172TestInfo::TestInfo(const TestInfo& from) : ::google::protobuf::Message() {
173 TestInfo* const _this = this;
174 (void)_this;
175 new (&_impl_) Impl_{
176 decltype(_impl_.string_example_){},
177 decltype(_impl_.float_example_){},
178 decltype(_impl_.int_example_){},
179 decltype(_impl_.bool_example_){},
180 /*decltype(_impl_._cached_size_)*/ {},
181 };
182 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
183 from._internal_metadata_);
184 _impl_.string_example_.InitDefault();
185 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
186 _impl_.string_example_.Set("", GetArenaForAllocation());
187 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
188 if (!from._internal_string_example().empty()) {
189 _this->_impl_.string_example_.Set(from._internal_string_example(), _this->GetArenaForAllocation());
190 }
192 static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.bool_example_) -
193 reinterpret_cast<char*>(&_impl_.float_example_)) + sizeof(_impl_.bool_example_));
194
195 // @@protoc_insertion_point(copy_constructor:dunedaq.opmon.TestInfo)
196}
197inline void TestInfo::SharedCtor(::_pb::Arena* arena) {
198 (void)arena;
199 new (&_impl_) Impl_{
200 decltype(_impl_.string_example_){},
201 decltype(_impl_.float_example_){0},
202 decltype(_impl_.int_example_){::int64_t{0}},
203 decltype(_impl_.bool_example_){false},
204 /*decltype(_impl_._cached_size_)*/ {},
205 };
206 _impl_.string_example_.InitDefault();
207 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
208 _impl_.string_example_.Set("", GetArenaForAllocation());
209 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
210}
212 // @@protoc_insertion_point(destructor:dunedaq.opmon.TestInfo)
213 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
214 SharedDtor();
215}
216inline void TestInfo::SharedDtor() {
217 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
218 _impl_.string_example_.Destroy();
219}
222}
223
224PROTOBUF_NOINLINE void TestInfo::Clear() {
225// @@protoc_insertion_point(message_clear_start:dunedaq.opmon.TestInfo)
226 ::uint32_t cached_has_bits = 0;
227 // Prevent compiler warnings about cached_has_bits being unused
228 (void) cached_has_bits;
229
230 _impl_.string_example_.ClearToEmpty();
231 ::memset(&_impl_.float_example_, 0, static_cast<::size_t>(
232 reinterpret_cast<char*>(&_impl_.bool_example_) -
233 reinterpret_cast<char*>(&_impl_.float_example_)) + sizeof(_impl_.bool_example_));
234 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
235}
236
238 const char* ptr, ::_pbi::ParseContext* ctx) {
239 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
240 return ptr;
241}
242
243
244PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
245const ::_pbi::TcParseTable<2, 4, 0, 45, 2> TestInfo::_table_ = {
246 {
247 0, // no _has_bits_
248 0, // no _extensions_
249 4, 24, // max_field_number, fast_idx_mask
250 offsetof(decltype(_table_), field_lookup_table),
251 4294967280, // skipmap
252 offsetof(decltype(_table_), field_entries),
253 4, // num_field_entries
254 0, // num_aux_entries
255 offsetof(decltype(_table_), field_names), // no aux_entries
257 ::_pbi::TcParser::GenericFallback, // fallback
258 }, {{
259 // bool bool_example = 4;
260 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(TestInfo, _impl_.bool_example_), 63>(),
261 {32, 63, 0, PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.bool_example_)}},
262 // string string_example = 1;
263 {::_pbi::TcParser::FastUS1,
264 {10, 63, 0, PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.string_example_)}},
265 // double float_example = 2;
266 {::_pbi::TcParser::FastF64S1,
267 {17, 63, 0, PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.float_example_)}},
268 // int64 int_example = 3;
269 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TestInfo, _impl_.int_example_), 63>(),
270 {24, 63, 0, PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.int_example_)}},
271 }}, {{
272 65535, 65535
273 }}, {{
274 // string string_example = 1;
275 {PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.string_example_), 0, 0,
276 (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
277 // double float_example = 2;
278 {PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.float_example_), 0, 0,
279 (0 | ::_fl::kFcSingular | ::_fl::kDouble)},
280 // int64 int_example = 3;
281 {PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.int_example_), 0, 0,
282 (0 | ::_fl::kFcSingular | ::_fl::kInt64)},
283 // bool bool_example = 4;
284 {PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.bool_example_), 0, 0,
285 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
286 }},
287 // no aux_entries
288 {{
289 "\26\16\0\0\0\0\0\0"
290 "dunedaq.opmon.TestInfo"
291 "string_example"
292 }},
293};
294
296 ::uint8_t* target,
297 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
298 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.opmon.TestInfo)
299 ::uint32_t cached_has_bits = 0;
300 (void)cached_has_bits;
301
302 // string string_example = 1;
303 if (!this->_internal_string_example().empty()) {
304 const std::string& _s = this->_internal_string_example();
305 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
306 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.TestInfo.string_example");
307 target = stream->WriteStringMaybeAliased(1, _s, target);
308 }
309
310 // double float_example = 2;
311 static_assert(sizeof(::uint64_t) == sizeof(double),
312 "Code assumes ::uint64_t and double are the same size.");
313 double tmp_float_example = this->_internal_float_example();
314 ::uint64_t raw_float_example;
315 memcpy(&raw_float_example, &tmp_float_example, sizeof(tmp_float_example));
316 if (raw_float_example != 0) {
317 target = stream->EnsureSpace(target);
318 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
319 2, this->_internal_float_example(), target);
320 }
321
322 // int64 int_example = 3;
323 if (this->_internal_int_example() != 0) {
324 target = ::google::protobuf::internal::WireFormatLite::
325 WriteInt64ToArrayWithField<3>(
326 stream, this->_internal_int_example(), target);
327 }
328
329 // bool bool_example = 4;
330 if (this->_internal_bool_example() != 0) {
331 target = stream->EnsureSpace(target);
332 target = ::_pbi::WireFormatLite::WriteBoolToArray(
333 4, this->_internal_bool_example(), target);
334 }
335
336 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
337 target =
338 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
339 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
340 }
341 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.opmon.TestInfo)
342 return target;
343}
344
345::size_t TestInfo::ByteSizeLong() const {
346// @@protoc_insertion_point(message_byte_size_start:dunedaq.opmon.TestInfo)
347 ::size_t total_size = 0;
348
349 ::uint32_t cached_has_bits = 0;
350 // Prevent compiler warnings about cached_has_bits being unused
351 (void) cached_has_bits;
352
353 // string string_example = 1;
354 if (!this->_internal_string_example().empty()) {
355 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
357 }
358
359 // double float_example = 2;
360 static_assert(sizeof(::uint64_t) == sizeof(double),
361 "Code assumes ::uint64_t and double are the same size.");
362 double tmp_float_example = this->_internal_float_example();
363 ::uint64_t raw_float_example;
364 memcpy(&raw_float_example, &tmp_float_example, sizeof(tmp_float_example));
365 if (raw_float_example != 0) {
366 total_size += 9;
367 }
368
369 // int64 int_example = 3;
370 if (this->_internal_int_example() != 0) {
371 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
372 this->_internal_int_example());
373 }
374
375 // bool bool_example = 4;
376 if (this->_internal_bool_example() != 0) {
377 total_size += 2;
378 }
379
380 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
381}
382
383const ::google::protobuf::Message::ClassData TestInfo::_class_data_ = {
384 ::google::protobuf::Message::CopyWithSourceCheck,
386};
387const ::google::protobuf::Message::ClassData*TestInfo::GetClassData() const { return &_class_data_; }
388
389
390void TestInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
391 auto* const _this = static_cast<TestInfo*>(&to_msg);
392 auto& from = static_cast<const TestInfo&>(from_msg);
393 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.opmon.TestInfo)
394 ABSL_DCHECK_NE(&from, _this);
395 ::uint32_t cached_has_bits = 0;
396 (void) cached_has_bits;
397
398 if (!from._internal_string_example().empty()) {
399 _this->_internal_set_string_example(from._internal_string_example());
400 }
401 static_assert(sizeof(::uint64_t) == sizeof(double),
402 "Code assumes ::uint64_t and double are the same size.");
403 double tmp_float_example = from._internal_float_example();
404 ::uint64_t raw_float_example;
405 memcpy(&raw_float_example, &tmp_float_example, sizeof(tmp_float_example));
406 if (raw_float_example != 0) {
407 _this->_internal_set_float_example(from._internal_float_example());
408 }
409 if (from._internal_int_example() != 0) {
410 _this->_internal_set_int_example(from._internal_int_example());
411 }
412 if (from._internal_bool_example() != 0) {
413 _this->_internal_set_bool_example(from._internal_bool_example());
414 }
415 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
416}
417
418void TestInfo::CopyFrom(const TestInfo& from) {
419// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.opmon.TestInfo)
420 if (&from == this) return;
421 Clear();
422 MergeFrom(from);
423}
424
425PROTOBUF_NOINLINE bool TestInfo::IsInitialized() const {
426 return true;
427}
428
430 using std::swap;
431 auto* lhs_arena = GetArenaForAllocation();
432 auto* rhs_arena = other->GetArenaForAllocation();
433 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
434 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.string_example_, lhs_arena,
435 &other->_impl_.string_example_, rhs_arena);
436 ::google::protobuf::internal::memswap<
437 PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.bool_example_)
439 - PROTOBUF_FIELD_OFFSET(TestInfo, _impl_.float_example_)>(
440 reinterpret_cast<char*>(&_impl_.float_example_),
441 reinterpret_cast<char*>(&other->_impl_.float_example_));
442}
443
449// ===================================================================
450
452 public:
453 using HasBits = decltype(std::declval<ComplexInfo>()._impl_._has_bits_);
454 static constexpr ::int32_t kHasBitsOffset =
455 8 * PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_._has_bits_);
456 static const ::dunedaq::opmon::TestInfo& sub_message(const ComplexInfo* msg);
457 static void set_has_sub_message(HasBits* has_bits) {
458 (*has_bits)[0] |= 1u;
459 }
460};
461
462const ::dunedaq::opmon::TestInfo& ComplexInfo::_Internal::sub_message(const ComplexInfo* msg) {
463 return *msg->_impl_.sub_message_;
464}
465ComplexInfo::ComplexInfo(::google::protobuf::Arena* arena)
466 : ::google::protobuf::Message(arena) {
467 SharedCtor(arena);
468 // @@protoc_insertion_point(arena_constructor:dunedaq.opmon.ComplexInfo)
469}
470ComplexInfo::ComplexInfo(const ComplexInfo& from) : ::google::protobuf::Message() {
471 ComplexInfo* const _this = this;
472 (void)_this;
473 new (&_impl_) Impl_{
474 decltype(_impl_._has_bits_){from._impl_._has_bits_},
475 /*decltype(_impl_._cached_size_)*/ {},
476 decltype(_impl_.r_field_){from._impl_.r_field_},
477 /* _impl_._r_field_cached_byte_size_ = */ {0},
478 decltype(_impl_.sub_message_){nullptr},
479 decltype(_impl_.another_float_){},
480 };
481 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
482 from._internal_metadata_);
483 if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
484 _this->_impl_.sub_message_ = new ::dunedaq::opmon::TestInfo(*from._impl_.sub_message_);
485 }
487
488 // @@protoc_insertion_point(copy_constructor:dunedaq.opmon.ComplexInfo)
489}
490inline void ComplexInfo::SharedCtor(::_pb::Arena* arena) {
491 (void)arena;
492 new (&_impl_) Impl_{
493 decltype(_impl_._has_bits_){},
494 /*decltype(_impl_._cached_size_)*/ {},
495 decltype(_impl_.r_field_){arena},
496 /* _impl_._r_field_cached_byte_size_ = */ {0},
497 decltype(_impl_.sub_message_){nullptr},
498 decltype(_impl_.another_float_){0},
499 };
500}
502 // @@protoc_insertion_point(destructor:dunedaq.opmon.ComplexInfo)
503 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
504 SharedDtor();
505}
507 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
508 _impl_.r_field_.~RepeatedField();
509 if (this != internal_default_instance()) delete _impl_.sub_message_;
510}
513}
514
515PROTOBUF_NOINLINE void ComplexInfo::Clear() {
516// @@protoc_insertion_point(message_clear_start:dunedaq.opmon.ComplexInfo)
517 ::uint32_t cached_has_bits = 0;
518 // Prevent compiler warnings about cached_has_bits being unused
519 (void) cached_has_bits;
520
521 _internal_mutable_r_field()->Clear();
522 cached_has_bits = _impl_._has_bits_[0];
523 if (cached_has_bits & 0x00000001u) {
524 ABSL_DCHECK(_impl_.sub_message_ != nullptr);
526 }
528 _impl_._has_bits_.Clear();
529 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
530}
531
533 const char* ptr, ::_pbi::ParseContext* ctx) {
534 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
535 return ptr;
536}
537
538
539PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
540const ::_pbi::TcParseTable<2, 3, 1, 0, 2> ComplexInfo::_table_ = {
541 {
542 PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_._has_bits_),
543 0, // no _extensions_
544 4, 24, // max_field_number, fast_idx_mask
545 offsetof(decltype(_table_), field_lookup_table),
546 4294967282, // skipmap
547 offsetof(decltype(_table_), field_entries),
548 3, // num_field_entries
549 1, // num_aux_entries
550 offsetof(decltype(_table_), aux_entries),
552 ::_pbi::TcParser::GenericFallback, // fallback
553 }, {{
554 // repeated int32 r_field = 4;
555 {::_pbi::TcParser::FastV32P1,
556 {34, 63, 0, PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_.r_field_)}},
557 // float another_float = 1;
558 {::_pbi::TcParser::FastF32S1,
559 {13, 63, 0, PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_.another_float_)}},
560 {::_pbi::TcParser::MiniParse, {}},
561 // .dunedaq.opmon.TestInfo sub_message = 3;
562 {::_pbi::TcParser::FastMtS1,
563 {26, 0, 0, PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_.sub_message_)}},
564 }}, {{
565 65535, 65535
566 }}, {{
567 // float another_float = 1;
568 {PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_.another_float_), -1, 0,
569 (0 | ::_fl::kFcSingular | ::_fl::kFloat)},
570 // .dunedaq.opmon.TestInfo sub_message = 3;
571 {PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_.sub_message_), _Internal::kHasBitsOffset + 0, 0,
572 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
573 // repeated int32 r_field = 4;
574 {PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_.r_field_), -1, 0,
575 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
576 }}, {{
577 {::_pbi::TcParser::GetTable<::dunedaq::opmon::TestInfo>()},
578 }}, {{
579 }},
580};
581
583 ::uint8_t* target,
584 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
585 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.opmon.ComplexInfo)
586 ::uint32_t cached_has_bits = 0;
587 (void)cached_has_bits;
588
589 // float another_float = 1;
590 static_assert(sizeof(::uint32_t) == sizeof(float),
591 "Code assumes ::uint32_t and float are the same size.");
592 float tmp_another_float = this->_internal_another_float();
593 ::uint32_t raw_another_float;
594 memcpy(&raw_another_float, &tmp_another_float, sizeof(tmp_another_float));
595 if (raw_another_float != 0) {
596 target = stream->EnsureSpace(target);
597 target = ::_pbi::WireFormatLite::WriteFloatToArray(
598 1, this->_internal_another_float(), target);
599 }
600
601 cached_has_bits = _impl_._has_bits_[0];
602 // .dunedaq.opmon.TestInfo sub_message = 3;
603 if (cached_has_bits & 0x00000001u) {
604 target = ::google::protobuf::internal::WireFormatLite::
605 InternalWriteMessage(3, _Internal::sub_message(this),
606 _Internal::sub_message(this).GetCachedSize(), target, stream);
607 }
608
609 // repeated int32 r_field = 4;
610 {
611 int byte_size = _impl_._r_field_cached_byte_size_.Get();
612 if (byte_size > 0) {
613 target = stream->WriteInt32Packed(4, _internal_r_field(),
614 byte_size, target);
615 }
616 }
617
618 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
619 target =
620 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
621 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
622 }
623 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.opmon.ComplexInfo)
624 return target;
625}
626
628// @@protoc_insertion_point(message_byte_size_start:dunedaq.opmon.ComplexInfo)
629 ::size_t total_size = 0;
630
631 ::uint32_t cached_has_bits = 0;
632 // Prevent compiler warnings about cached_has_bits being unused
633 (void) cached_has_bits;
634
635 // repeated int32 r_field = 4;
636 {
637 std::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
638 this->_internal_r_field())
639 ;
640 _impl_._r_field_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size));
641 std::size_t tag_size = data_size == 0
642 ? 0
643 : 1 + ::_pbi::WireFormatLite::Int32Size(
644 static_cast<int32_t>(data_size))
645 ;
646 total_size += tag_size + data_size;
647 }
648 // .dunedaq.opmon.TestInfo sub_message = 3;
649 cached_has_bits = _impl_._has_bits_[0];
650 if (cached_has_bits & 0x00000001u) {
651 total_size += 1 +
652 ::google::protobuf::internal::WireFormatLite::MessageSize(
654 }
655
656 // float another_float = 1;
657 static_assert(sizeof(::uint32_t) == sizeof(float),
658 "Code assumes ::uint32_t and float are the same size.");
659 float tmp_another_float = this->_internal_another_float();
660 ::uint32_t raw_another_float;
661 memcpy(&raw_another_float, &tmp_another_float, sizeof(tmp_another_float));
662 if (raw_another_float != 0) {
663 total_size += 5;
664 }
665
666 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
667}
668
669const ::google::protobuf::Message::ClassData ComplexInfo::_class_data_ = {
670 ::google::protobuf::Message::CopyWithSourceCheck,
672};
673const ::google::protobuf::Message::ClassData*ComplexInfo::GetClassData() const { return &_class_data_; }
674
675
676void ComplexInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
677 auto* const _this = static_cast<ComplexInfo*>(&to_msg);
678 auto& from = static_cast<const ComplexInfo&>(from_msg);
679 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.opmon.ComplexInfo)
680 ABSL_DCHECK_NE(&from, _this);
681 ::uint32_t cached_has_bits = 0;
682 (void) cached_has_bits;
683
684 _this->_internal_mutable_r_field()->MergeFrom(from._internal_r_field());
685 if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
686 _this->_internal_mutable_sub_message()->::dunedaq::opmon::TestInfo::MergeFrom(
687 from._internal_sub_message());
688 }
689 static_assert(sizeof(::uint32_t) == sizeof(float),
690 "Code assumes ::uint32_t and float are the same size.");
691 float tmp_another_float = from._internal_another_float();
692 ::uint32_t raw_another_float;
693 memcpy(&raw_another_float, &tmp_another_float, sizeof(tmp_another_float));
694 if (raw_another_float != 0) {
695 _this->_internal_set_another_float(from._internal_another_float());
696 }
697 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
698}
699
701// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.opmon.ComplexInfo)
702 if (&from == this) return;
703 Clear();
704 MergeFrom(from);
705}
706
707PROTOBUF_NOINLINE bool ComplexInfo::IsInitialized() const {
708 return true;
709}
710
712 using std::swap;
713 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
714 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
715 _impl_.r_field_.InternalSwap(&other->_impl_.r_field_);
716 ::google::protobuf::internal::memswap<
717 PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_.another_float_)
719 - PROTOBUF_FIELD_OFFSET(ComplexInfo, _impl_.sub_message_)>(
720 reinterpret_cast<char*>(&_impl_.sub_message_),
721 reinterpret_cast<char*>(&other->_impl_.sub_message_));
722}
723
729// @@protoc_insertion_point(namespace_scope)
730} // namespace opmon
731} // namespace dunedaq
732namespace google {
733namespace protobuf {
734} // namespace protobuf
735} // namespace google
736// @@protoc_insertion_point(global_scope)
737#include "google/protobuf/port_undef.inc"
static void set_has_sub_message(HasBits *has_bits)
Definition test.pb.cc:457
static const ::dunedaq::opmon::TestInfo & sub_message(const ComplexInfo *msg)
Definition test.pb.cc:462
decltype(std::declval< ComplexInfo >()._impl_._has_bits_) HasBits
Definition test.pb.cc:453
static constexpr ::int32_t kHasBitsOffset
Definition test.pb.cc:454
void SharedCtor(::google::protobuf::Arena *arena)
Definition test.pb.cc:490
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
Definition test.pb.cc:676
static const ClassData _class_data_
Definition test.pb.h:397
void InternalSwap(ComplexInfo *other)
Definition test.pb.cc:711
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
Definition test.pb.cc:582
void MergeFrom(const ComplexInfo &from)
Definition test.pb.h:367
friend void swap(ComplexInfo &a, ComplexInfo &b)
Definition test.pb.h:337
const ::dunedaq::opmon::TestInfo & sub_message() const
Definition test.pb.h:650
static const ComplexInfo * internal_default_instance()
Definition test.pb.h:330
::google::protobuf::RepeatedField<::int32_t > * _internal_mutable_r_field()
Definition test.pb.h:768
int GetCachedSize() const final
Definition test.pb.h:380
void SetCachedSize(int size) const final
Definition test.pb.cc:511
float _internal_another_float() const
Definition test.pb.h:625
::size_t ByteSizeLong() const final
Definition test.pb.cc:627
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
Definition test.pb.cc:532
const ::google::protobuf::RepeatedField<::int32_t > & _internal_r_field() const
Definition test.pb.h:764
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Definition test.pb.cc:515
bool IsInitialized() const final
Definition test.pb.cc:707
void CopyFrom(const ComplexInfo &from)
Definition test.pb.cc:700
const ::google::protobuf::Message::ClassData * GetClassData() const final
Definition test.pb.cc:673
static const ::google::protobuf::internal::TcParseTable< 2, 3, 1, 0, 2 > _table_
Definition test.pb.h:459
::google::protobuf::Metadata GetMetadata() const final
Definition test.pb.cc:724
const ::google::protobuf::Message::ClassData * GetClassData() const final
Definition test.pb.cc:387
void SharedCtor(::google::protobuf::Arena *arena)
Definition test.pb.cc:197
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
Definition test.pb.cc:295
bool _internal_bool_example() const
Definition test.pb.h:599
static const ::google::protobuf::internal::TcParseTable< 2, 4, 0, 45, 2 > _table_
Definition test.pb.h:263
void InternalSwap(TestInfo *other)
Definition test.pb.cc:429
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
Definition test.pb.cc:237
::size_t ByteSizeLong() const final
Definition test.pb.cc:345
void MergeFrom(const TestInfo &from)
Definition test.pb.h:167
void SetCachedSize(int size) const final
Definition test.pb.cc:220
bool IsInitialized() const final
Definition test.pb.cc:425
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Definition test.pb.cc:224
::google::protobuf::Metadata GetMetadata() const final
Definition test.pb.cc:444
const std::string & _internal_string_example() const
Definition test.pb.h:513
void CopyFrom(const TestInfo &from)
Definition test.pb.cc:418
static const ClassData _class_data_
Definition test.pb.h:197
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
Definition test.pb.cc:390
double _internal_float_example() const
Definition test.pb.h:555
::int64_t _internal_int_example() const
Definition test.pb.h:577
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComplexInfoDefaultTypeInternal _ComplexInfo_default_instance_
Definition test.pb.cc:66
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TestInfoDefaultTypeInternal _TestInfo_default_instance_
Definition test.pb.cc:46
Including Qt Headers.
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
static const ::uint32_t offsets[]
Definition test.pb.h:52
PROTOBUF_CONSTEXPR ComplexInfoDefaultTypeInternal()
Definition test.pb.cc:58
::dunedaq::opmon::TestInfo * sub_message_
Definition test.pb.h:468
mutable::google::protobuf::internal::CachedSize _r_field_cached_byte_size_
Definition test.pb.h:467
::google::protobuf::internal::HasBits< 1 > _has_bits_
Definition test.pb.h:464
mutable::google::protobuf::internal::CachedSize _cached_size_
Definition test.pb.h:465
::google::protobuf::RepeatedField<::int32_t > r_field_
Definition test.pb.h:466
PROTOBUF_CONSTEXPR TestInfoDefaultTypeInternal()
Definition test.pb.cc:38
::google::protobuf::internal::ArenaStringPtr string_example_
Definition test.pb.h:268
mutable::google::protobuf::internal::CachedSize _cached_size_
Definition test.pb.h:272
::absl::once_flag descriptor_table_opmonlib_2fopmon_2ftest_2eproto_once
Definition test.pb.cc:123
::_pb::Metadata file_level_metadata_opmonlib_2fopmon_2ftest_2eproto[2]
Definition test.pb.cc:69
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_opmonlib_2fopmon_2ftest_2eproto_getter()
Definition test.pb.cc:153
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_opmonlib_2fopmon_2ftest_2eproto
Definition test.pb.cc:71
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_opmonlib_2fopmon_2ftest_2eproto
Definition test.pb.cc:73
const ::_pbi::DescriptorTable descriptor_table_opmonlib_2fopmon_2ftest_2eproto
Definition test.pb.cc:124
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