DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
opmon_entry.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: opmonlib/opmon_entry.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 OpMonValue::OpMonValue(::_pbi::ConstantInitialized)
27 : _impl_{
28 /*decltype(_impl_.kind_)*/ {},
29 /*decltype(_impl_._cached_size_)*/ {},
30 /*decltype(_impl_._oneof_case_)*/ {},
31 } {}
33 PROTOBUF_CONSTEXPR OpMonValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
35 union {
37 };
38};
39
40PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
42 template <typename>
43PROTOBUF_CONSTEXPR OpMonId::OpMonId(::_pbi::ConstantInitialized)
44 : _impl_{
45 /*decltype(_impl_.substructure_)*/ {},
46 /*decltype(_impl_.session_)*/ {
47 &::_pbi::fixed_address_empty_string,
48 ::_pbi::ConstantInitialized{},
49 },
50 /*decltype(_impl_.application_)*/ {
51 &::_pbi::fixed_address_empty_string,
52 ::_pbi::ConstantInitialized{},
53 },
54 /*decltype(_impl_._cached_size_)*/ {},
55 } {}
57 PROTOBUF_CONSTEXPR OpMonIdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
59 union {
61 };
62};
63
64PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
65 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpMonIdDefaultTypeInternal _OpMonId_default_instance_;
66 template <typename>
67PROTOBUF_CONSTEXPR OpMonEntry_CustomOriginEntry_DoNotUse::OpMonEntry_CustomOriginEntry_DoNotUse(::_pbi::ConstantInitialized) {}
75
76PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
78 template <typename>
79PROTOBUF_CONSTEXPR OpMonEntry_DataEntry_DoNotUse::OpMonEntry_DataEntry_DoNotUse(::_pbi::ConstantInitialized) {}
87
88PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
90 template <typename>
91PROTOBUF_CONSTEXPR OpMonEntry::OpMonEntry(::_pbi::ConstantInitialized)
92 : _impl_{
93 /*decltype(_impl_._has_bits_)*/ {},
94 /*decltype(_impl_._cached_size_)*/ {},
95 /* decltype(_impl_.custom_origin_) */ {},
96 /* decltype(_impl_.data_) */ {},
97 /*decltype(_impl_.measurement_)*/ {
98 &::_pbi::fixed_address_empty_string,
99 ::_pbi::ConstantInitialized{},
100 },
101 /*decltype(_impl_.time_)*/ nullptr,
102 /*decltype(_impl_.origin_)*/ nullptr,
103 } {}
105 PROTOBUF_CONSTEXPR OpMonEntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
107 union {
109 };
110};
111
112PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
114} // namespace opmon
115} // namespace dunedaq
118static constexpr const ::_pb::ServiceDescriptor**
121 protodesc_cold) = {
122 ~0u, // no _has_bits_
123 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonValue, _internal_metadata_),
124 ~0u, // no _extensions_
125 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonValue, _impl_._oneof_case_[0]),
126 ~0u, // no _weak_field_map_
127 ~0u, // no _inlined_string_donated_
128 ~0u, // no _split_
129 ~0u, // no sizeof(Split)
130 ::_pbi::kInvalidFieldOffsetTag,
131 ::_pbi::kInvalidFieldOffsetTag,
132 ::_pbi::kInvalidFieldOffsetTag,
133 ::_pbi::kInvalidFieldOffsetTag,
134 ::_pbi::kInvalidFieldOffsetTag,
135 ::_pbi::kInvalidFieldOffsetTag,
136 ::_pbi::kInvalidFieldOffsetTag,
137 ::_pbi::kInvalidFieldOffsetTag,
138 ::_pbi::kInvalidFieldOffsetTag,
139 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonValue, _impl_.kind_),
140 ~0u, // no _has_bits_
141 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonId, _internal_metadata_),
142 ~0u, // no _extensions_
143 ~0u, // no _oneof_case_
144 ~0u, // no _weak_field_map_
145 ~0u, // no _inlined_string_donated_
146 ~0u, // no _split_
147 ~0u, // no sizeof(Split)
148 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonId, _impl_.session_),
149 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonId, _impl_.application_),
150 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonId, _impl_.substructure_),
151 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry_CustomOriginEntry_DoNotUse, _has_bits_),
152 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry_CustomOriginEntry_DoNotUse, _internal_metadata_),
153 ~0u, // no _extensions_
154 ~0u, // no _oneof_case_
155 ~0u, // no _weak_field_map_
156 ~0u, // no _inlined_string_donated_
157 ~0u, // no _split_
158 ~0u, // no sizeof(Split)
160 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry_CustomOriginEntry_DoNotUse, value_),
161 0,
162 1,
163 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry_DataEntry_DoNotUse, _has_bits_),
164 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry_DataEntry_DoNotUse, _internal_metadata_),
165 ~0u, // no _extensions_
166 ~0u, // no _oneof_case_
167 ~0u, // no _weak_field_map_
168 ~0u, // no _inlined_string_donated_
169 ~0u, // no _split_
170 ~0u, // no sizeof(Split)
171 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry_DataEntry_DoNotUse, key_),
172 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry_DataEntry_DoNotUse, value_),
173 0,
174 1,
175 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry, _impl_._has_bits_),
176 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry, _internal_metadata_),
177 ~0u, // no _extensions_
178 ~0u, // no _oneof_case_
179 ~0u, // no _weak_field_map_
180 ~0u, // no _inlined_string_donated_
181 ~0u, // no _split_
182 ~0u, // no sizeof(Split)
183 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry, _impl_.time_),
184 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry, _impl_.origin_),
185 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry, _impl_.custom_origin_),
186 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry, _impl_.measurement_),
187 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonEntry, _impl_.data_),
188 0,
189 1,
190 ~0u,
191 ~0u,
192 ~0u,
193};
194
195static const ::_pbi::MigrationSchema
196 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
197 {0, -1, -1, sizeof(::dunedaq::opmon::OpMonValue)},
198 {18, -1, -1, sizeof(::dunedaq::opmon::OpMonId)},
201 {53, 66, -1, sizeof(::dunedaq::opmon::OpMonEntry)},
202};
203
211const char descriptor_table_protodef_opmonlib_2fopmon_5fentry_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
212 "\n\032opmonlib/opmon_entry.proto\022\rdunedaq.op"
213 "mon\032\037google/protobuf/timestamp.proto\"\376\001\n"
214 "\nOpMonValue\022.\n\nnull_value\030\001 \001(\0162\030.duneda"
215 "q.opmon.NullValueH\000\022\024\n\nint4_value\030\002 \001(\005H"
216 "\000\022\024\n\nint8_value\030\003 \001(\003H\000\022\025\n\013uint4_value\030\004"
217 " \001(\rH\000\022\025\n\013uint8_value\030\005 \001(\004H\000\022\026\n\014double_"
218 "value\030\n \001(\001H\000\022\025\n\013float_value\030\013 \001(\002H\000\022\027\n\r"
219 "boolean_value\030\017 \001(\010H\000\022\026\n\014string_value\030\024 "
220 "\001(\tH\000B\006\n\004kind\"E\n\007OpMonId\022\017\n\007session\030\001 \001("
221 "\t\022\023\n\013application\030\002 \001(\t\022\024\n\014substructure\030\n"
222 " \003(\t\"\347\002\n\nOpMonEntry\022(\n\004time\030\001 \001(\0132\032.goog"
223 "le.protobuf.Timestamp\022&\n\006origin\030\002 \001(\0132\026."
224 "dunedaq.opmon.OpMonId\022B\n\rcustom_origin\030\003"
225 " \003(\0132+.dunedaq.opmon.OpMonEntry.CustomOr"
226 "iginEntry\022\023\n\013measurement\030\005 \001(\t\0221\n\004data\030\n"
227 " \003(\0132#.dunedaq.opmon.OpMonEntry.DataEntr"
228 "y\0323\n\021CustomOriginEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
229 "alue\030\002 \001(\t:\0028\001\032F\n\tDataEntry\022\013\n\003key\030\001 \001(\t"
230 "\022(\n\005value\030\002 \001(\0132\031.dunedaq.opmon.OpMonVal"
231 "ue:\0028\001*\033\n\tNullValue\022\016\n\nNULL_VALUE\020\000b\006pro"
232 "to3"
233};
234static const ::_pbi::DescriptorTable* const descriptor_table_opmonlib_2fopmon_5fentry_2eproto_deps[1] =
235 {
236 &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
237};
256
257// This function exists to be marked as weak.
258// It can significantly speed up compilation by breaking up LLVM's SCC
259// in the .pb.cc translation units. Large translation units see a
260// reduction of more than 35% of walltime for optimized builds. Without
261// the weak attribute all the messages in the file, including all the
262// vtables and everything they use become part of the same SCC through
263// a cycle like:
264// GetMetadata -> descriptor table -> default instances ->
265// vtables -> GetMetadata
266// By adding a weak function here we break the connection from the
267// individual vtables back into the descriptor table.
268PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_opmonlib_2fopmon_5fentry_2eproto_getter() {
270}
271// Force running AddDescriptors() at dynamic initialization time.
272PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
273static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_opmonlib_2fopmon_5fentry_2eproto(&descriptor_table_opmonlib_2fopmon_5fentry_2eproto);
274namespace dunedaq {
275namespace opmon {
276const ::google::protobuf::EnumDescriptor* NullValue_descriptor() {
277 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_opmonlib_2fopmon_5fentry_2eproto);
279}
280bool NullValue_IsValid(int value) {
281 switch (value) {
282 case 0:
283 return true;
284 default:
285 return false;
286 }
287}
288// ===================================================================
289
291 public:
292 static constexpr ::int32_t kOneofCaseOffset =
293 PROTOBUF_FIELD_OFFSET(::dunedaq::opmon::OpMonValue, _impl_._oneof_case_);
294};
295
296OpMonValue::OpMonValue(::google::protobuf::Arena* arena)
297 : ::google::protobuf::Message(arena) {
298 SharedCtor(arena);
299 // @@protoc_insertion_point(arena_constructor:dunedaq.opmon.OpMonValue)
300}
301OpMonValue::OpMonValue(const OpMonValue& from) : ::google::protobuf::Message() {
302 OpMonValue* const _this = this;
303 (void)_this;
304 new (&_impl_) Impl_{
305 decltype(_impl_.kind_){},
306 /*decltype(_impl_._cached_size_)*/ {},
307 /*decltype(_impl_._oneof_case_)*/ {},
308 };
309 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
310 from._internal_metadata_);
312 switch (from.kind_case()) {
313 case kNullValue: {
315 break;
316 }
317 case kInt4Value: {
319 break;
320 }
321 case kInt8Value: {
323 break;
324 }
325 case kUint4Value: {
327 break;
328 }
329 case kUint8Value: {
331 break;
332 }
333 case kDoubleValue: {
335 break;
336 }
337 case kFloatValue: {
339 break;
340 }
341 case kBooleanValue: {
343 break;
344 }
345 case kStringValue: {
347 break;
348 }
349 case KIND_NOT_SET: {
350 break;
351 }
352 }
353
354 // @@protoc_insertion_point(copy_constructor:dunedaq.opmon.OpMonValue)
355}
356inline void OpMonValue::SharedCtor(::_pb::Arena* arena) {
357 (void)arena;
358 new (&_impl_) Impl_{
359 decltype(_impl_.kind_){},
360 /*decltype(_impl_._cached_size_)*/ {},
361 /*decltype(_impl_._oneof_case_)*/ {},
362 };
364}
366 // @@protoc_insertion_point(destructor:dunedaq.opmon.OpMonValue)
367 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
368 SharedDtor();
369}
371 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
372 if (has_kind()) {
373 clear_kind();
374 }
375}
378}
379
381// @@protoc_insertion_point(one_of_clear_start:dunedaq.opmon.OpMonValue)
382 switch (kind_case()) {
383 case kNullValue: {
384 // No need to clear
385 break;
386 }
387 case kInt4Value: {
388 // No need to clear
389 break;
390 }
391 case kInt8Value: {
392 // No need to clear
393 break;
394 }
395 case kUint4Value: {
396 // No need to clear
397 break;
398 }
399 case kUint8Value: {
400 // No need to clear
401 break;
402 }
403 case kDoubleValue: {
404 // No need to clear
405 break;
406 }
407 case kFloatValue: {
408 // No need to clear
409 break;
410 }
411 case kBooleanValue: {
412 // No need to clear
413 break;
414 }
415 case kStringValue: {
416 _impl_.kind_.string_value_.Destroy();
417 break;
418 }
419 case KIND_NOT_SET: {
420 break;
421 }
422 }
424}
425
426
427PROTOBUF_NOINLINE void OpMonValue::Clear() {
428// @@protoc_insertion_point(message_clear_start:dunedaq.opmon.OpMonValue)
429 ::uint32_t cached_has_bits = 0;
430 // Prevent compiler warnings about cached_has_bits being unused
431 (void) cached_has_bits;
432
433 clear_kind();
434 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
435}
436
438 const char* ptr, ::_pbi::ParseContext* ctx) {
439 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
440 return ptr;
441}
442
443
444PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
445const ::_pbi::TcParseTable<0, 9, 0, 53, 2> OpMonValue::_table_ = {
446 {
447 0, // no _has_bits_
448 0, // no _extensions_
449 20, 0, // max_field_number, fast_idx_mask
450 offsetof(decltype(_table_), field_lookup_table),
451 4294425056, // skipmap
452 offsetof(decltype(_table_), field_entries),
453 9, // num_field_entries
454 0, // num_aux_entries
455 offsetof(decltype(_table_), field_names), // no aux_entries
457 ::_pbi::TcParser::GenericFallback, // fallback
458 }, {{
459 {::_pbi::TcParser::MiniParse, {}},
460 }}, {{
461 65535, 65535
462 }}, {{
463 // .dunedaq.opmon.NullValue null_value = 1;
464 {PROTOBUF_FIELD_OFFSET(OpMonValue, _impl_.kind_.null_value_), _Internal::kOneofCaseOffset + 0, 0,
465 (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)},
466 // int32 int4_value = 2;
467 {PROTOBUF_FIELD_OFFSET(OpMonValue, _impl_.kind_.int4_value_), _Internal::kOneofCaseOffset + 0, 0,
468 (0 | ::_fl::kFcOneof | ::_fl::kInt32)},
469 // int64 int8_value = 3;
470 {PROTOBUF_FIELD_OFFSET(OpMonValue, _impl_.kind_.int8_value_), _Internal::kOneofCaseOffset + 0, 0,
471 (0 | ::_fl::kFcOneof | ::_fl::kInt64)},
472 // uint32 uint4_value = 4;
473 {PROTOBUF_FIELD_OFFSET(OpMonValue, _impl_.kind_.uint4_value_), _Internal::kOneofCaseOffset + 0, 0,
474 (0 | ::_fl::kFcOneof | ::_fl::kUInt32)},
475 // uint64 uint8_value = 5;
476 {PROTOBUF_FIELD_OFFSET(OpMonValue, _impl_.kind_.uint8_value_), _Internal::kOneofCaseOffset + 0, 0,
477 (0 | ::_fl::kFcOneof | ::_fl::kUInt64)},
478 // double double_value = 10;
479 {PROTOBUF_FIELD_OFFSET(OpMonValue, _impl_.kind_.double_value_), _Internal::kOneofCaseOffset + 0, 0,
480 (0 | ::_fl::kFcOneof | ::_fl::kDouble)},
481 // float float_value = 11;
482 {PROTOBUF_FIELD_OFFSET(OpMonValue, _impl_.kind_.float_value_), _Internal::kOneofCaseOffset + 0, 0,
483 (0 | ::_fl::kFcOneof | ::_fl::kFloat)},
484 // bool boolean_value = 15;
485 {PROTOBUF_FIELD_OFFSET(OpMonValue, _impl_.kind_.boolean_value_), _Internal::kOneofCaseOffset + 0, 0,
486 (0 | ::_fl::kFcOneof | ::_fl::kBool)},
487 // string string_value = 20;
488 {PROTOBUF_FIELD_OFFSET(OpMonValue, _impl_.kind_.string_value_), _Internal::kOneofCaseOffset + 0, 0,
489 (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
490 }},
491 // no aux_entries
492 {{
493 "\30\0\0\0\0\0\0\0\0\14\0\0\0\0\0\0"
494 "dunedaq.opmon.OpMonValue"
495 "string_value"
496 }},
497};
498
500 ::uint8_t* target,
501 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
502 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.opmon.OpMonValue)
503 ::uint32_t cached_has_bits = 0;
504 (void)cached_has_bits;
505
506 switch (kind_case()) {
507 case kNullValue: {
508 target = stream->EnsureSpace(target);
509 target = ::_pbi::WireFormatLite::WriteEnumToArray(
510 1, this->_internal_null_value(), target);
511 break;
512 }
513 case kInt4Value: {
514 target = ::google::protobuf::internal::WireFormatLite::
515 WriteInt32ToArrayWithField<2>(
516 stream, this->_internal_int4_value(), target);
517 break;
518 }
519 case kInt8Value: {
520 target = ::google::protobuf::internal::WireFormatLite::
521 WriteInt64ToArrayWithField<3>(
522 stream, this->_internal_int8_value(), target);
523 break;
524 }
525 case kUint4Value: {
526 target = stream->EnsureSpace(target);
527 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
528 4, this->_internal_uint4_value(), target);
529 break;
530 }
531 case kUint8Value: {
532 target = stream->EnsureSpace(target);
533 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
534 5, this->_internal_uint8_value(), target);
535 break;
536 }
537 case kDoubleValue: {
538 target = stream->EnsureSpace(target);
539 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
540 10, this->_internal_double_value(), target);
541 break;
542 }
543 case kFloatValue: {
544 target = stream->EnsureSpace(target);
545 target = ::_pbi::WireFormatLite::WriteFloatToArray(
546 11, this->_internal_float_value(), target);
547 break;
548 }
549 case kBooleanValue: {
550 target = stream->EnsureSpace(target);
551 target = ::_pbi::WireFormatLite::WriteBoolToArray(
552 15, this->_internal_boolean_value(), target);
553 break;
554 }
555 case kStringValue: {
556 const std::string& _s = this->_internal_string_value();
557 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
558 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonValue.string_value");
559 target = stream->WriteStringMaybeAliased(20, _s, target);
560 break;
561 }
562 default:
563 break;
564 }
565 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
566 target =
567 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
568 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
569 }
570 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.opmon.OpMonValue)
571 return target;
572}
573
574::size_t OpMonValue::ByteSizeLong() const {
575// @@protoc_insertion_point(message_byte_size_start:dunedaq.opmon.OpMonValue)
576 ::size_t total_size = 0;
577
578 ::uint32_t cached_has_bits = 0;
579 // Prevent compiler warnings about cached_has_bits being unused
580 (void) cached_has_bits;
581
582 switch (kind_case()) {
583 // .dunedaq.opmon.NullValue null_value = 1;
584 case kNullValue: {
585 total_size += 1 +
586 ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value());
587 break;
588 }
589 // int32 int4_value = 2;
590 case kInt4Value: {
591 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
592 this->_internal_int4_value());
593 break;
594 }
595 // int64 int8_value = 3;
596 case kInt8Value: {
597 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
598 this->_internal_int8_value());
599 break;
600 }
601 // uint32 uint4_value = 4;
602 case kUint4Value: {
603 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
604 this->_internal_uint4_value());
605 break;
606 }
607 // uint64 uint8_value = 5;
608 case kUint8Value: {
609 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
610 this->_internal_uint8_value());
611 break;
612 }
613 // double double_value = 10;
614 case kDoubleValue: {
615 total_size += 9;
616 break;
617 }
618 // float float_value = 11;
619 case kFloatValue: {
620 total_size += 5;
621 break;
622 }
623 // bool boolean_value = 15;
624 case kBooleanValue: {
625 total_size += 2;
626 break;
627 }
628 // string string_value = 20;
629 case kStringValue: {
630 total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
631 this->_internal_string_value());
632 break;
633 }
634 case KIND_NOT_SET: {
635 break;
636 }
637 }
638 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
639}
640
641const ::google::protobuf::Message::ClassData OpMonValue::_class_data_ = {
642 ::google::protobuf::Message::CopyWithSourceCheck,
644};
645const ::google::protobuf::Message::ClassData*OpMonValue::GetClassData() const { return &_class_data_; }
646
647
648void OpMonValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
649 auto* const _this = static_cast<OpMonValue*>(&to_msg);
650 auto& from = static_cast<const OpMonValue&>(from_msg);
651 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.opmon.OpMonValue)
652 ABSL_DCHECK_NE(&from, _this);
653 ::uint32_t cached_has_bits = 0;
654 (void) cached_has_bits;
655
656 switch (from.kind_case()) {
657 case kNullValue: {
658 _this->_internal_set_null_value(from._internal_null_value());
659 break;
660 }
661 case kInt4Value: {
662 _this->_internal_set_int4_value(from._internal_int4_value());
663 break;
664 }
665 case kInt8Value: {
666 _this->_internal_set_int8_value(from._internal_int8_value());
667 break;
668 }
669 case kUint4Value: {
670 _this->_internal_set_uint4_value(from._internal_uint4_value());
671 break;
672 }
673 case kUint8Value: {
674 _this->_internal_set_uint8_value(from._internal_uint8_value());
675 break;
676 }
677 case kDoubleValue: {
678 _this->_internal_set_double_value(from._internal_double_value());
679 break;
680 }
681 case kFloatValue: {
682 _this->_internal_set_float_value(from._internal_float_value());
683 break;
684 }
685 case kBooleanValue: {
686 _this->_internal_set_boolean_value(from._internal_boolean_value());
687 break;
688 }
689 case kStringValue: {
690 _this->_internal_set_string_value(from._internal_string_value());
691 break;
692 }
693 case KIND_NOT_SET: {
694 break;
695 }
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.OpMonValue)
702 if (&from == this) return;
703 Clear();
704 MergeFrom(from);
705}
706
707PROTOBUF_NOINLINE bool OpMonValue::IsInitialized() const {
708 return true;
709}
710
712 using std::swap;
713 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
714 swap(_impl_.kind_, other->_impl_.kind_);
716}
717
723// ===================================================================
724
726 public:
727};
728
729OpMonId::OpMonId(::google::protobuf::Arena* arena)
730 : ::google::protobuf::Message(arena) {
731 SharedCtor(arena);
732 // @@protoc_insertion_point(arena_constructor:dunedaq.opmon.OpMonId)
733}
734OpMonId::OpMonId(const OpMonId& from) : ::google::protobuf::Message() {
735 OpMonId* const _this = this;
736 (void)_this;
737 new (&_impl_) Impl_{
739 decltype(_impl_.session_){},
740 decltype(_impl_.application_){},
741 /*decltype(_impl_._cached_size_)*/ {},
742 };
743 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
744 from._internal_metadata_);
745 _impl_.session_.InitDefault();
746 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
747 _impl_.session_.Set("", GetArenaForAllocation());
748 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
749 if (!from._internal_session().empty()) {
750 _this->_impl_.session_.Set(from._internal_session(), _this->GetArenaForAllocation());
751 }
752 _impl_.application_.InitDefault();
753 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
754 _impl_.application_.Set("", GetArenaForAllocation());
755 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
756 if (!from._internal_application().empty()) {
757 _this->_impl_.application_.Set(from._internal_application(), _this->GetArenaForAllocation());
758 }
759
760 // @@protoc_insertion_point(copy_constructor:dunedaq.opmon.OpMonId)
761}
762inline void OpMonId::SharedCtor(::_pb::Arena* arena) {
763 (void)arena;
764 new (&_impl_) Impl_{
765 decltype(_impl_.substructure_){arena},
766 decltype(_impl_.session_){},
767 decltype(_impl_.application_){},
768 /*decltype(_impl_._cached_size_)*/ {},
769 };
770 _impl_.session_.InitDefault();
771 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
772 _impl_.session_.Set("", GetArenaForAllocation());
773 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
774 _impl_.application_.InitDefault();
775 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
776 _impl_.application_.Set("", GetArenaForAllocation());
777 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
778}
780 // @@protoc_insertion_point(destructor:dunedaq.opmon.OpMonId)
781 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
782 SharedDtor();
783}
784inline void OpMonId::SharedDtor() {
785 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
786 _internal_mutable_substructure()->~RepeatedPtrField();
787 _impl_.session_.Destroy();
788 _impl_.application_.Destroy();
789}
792}
793
794PROTOBUF_NOINLINE void OpMonId::Clear() {
795// @@protoc_insertion_point(message_clear_start:dunedaq.opmon.OpMonId)
796 ::uint32_t cached_has_bits = 0;
797 // Prevent compiler warnings about cached_has_bits being unused
798 (void) cached_has_bits;
799
801 _impl_.session_.ClearToEmpty();
802 _impl_.application_.ClearToEmpty();
803 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
804}
805
807 const char* ptr, ::_pbi::ParseContext* ctx) {
808 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
809 return ptr;
810}
811
812
813PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
814const ::_pbi::TcParseTable<1, 3, 0, 60, 2> OpMonId::_table_ = {
815 {
816 0, // no _has_bits_
817 0, // no _extensions_
818 10, 8, // max_field_number, fast_idx_mask
819 offsetof(decltype(_table_), field_lookup_table),
820 4294966780, // skipmap
821 offsetof(decltype(_table_), field_entries),
822 3, // num_field_entries
823 0, // num_aux_entries
824 offsetof(decltype(_table_), field_names), // no aux_entries
826 ::_pbi::TcParser::GenericFallback, // fallback
827 }, {{
828 // string application = 2;
829 {::_pbi::TcParser::FastUS1,
830 {18, 63, 0, PROTOBUF_FIELD_OFFSET(OpMonId, _impl_.application_)}},
831 // string session = 1;
832 {::_pbi::TcParser::FastUS1,
833 {10, 63, 0, PROTOBUF_FIELD_OFFSET(OpMonId, _impl_.session_)}},
834 }}, {{
835 65535, 65535
836 }}, {{
837 // string session = 1;
838 {PROTOBUF_FIELD_OFFSET(OpMonId, _impl_.session_), 0, 0,
839 (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
840 // string application = 2;
841 {PROTOBUF_FIELD_OFFSET(OpMonId, _impl_.application_), 0, 0,
842 (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
843 // repeated string substructure = 10;
844 {PROTOBUF_FIELD_OFFSET(OpMonId, _impl_.substructure_), 0, 0,
845 (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
846 }},
847 // no aux_entries
848 {{
849 "\25\7\13\14\0\0\0\0"
850 "dunedaq.opmon.OpMonId"
851 "session"
852 "application"
853 "substructure"
854 }},
855};
856
858 ::uint8_t* target,
859 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
860 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.opmon.OpMonId)
861 ::uint32_t cached_has_bits = 0;
862 (void)cached_has_bits;
863
864 // string session = 1;
865 if (!this->_internal_session().empty()) {
866 const std::string& _s = this->_internal_session();
867 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
868 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonId.session");
869 target = stream->WriteStringMaybeAliased(1, _s, target);
870 }
871
872 // string application = 2;
873 if (!this->_internal_application().empty()) {
874 const std::string& _s = this->_internal_application();
875 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
876 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonId.application");
877 target = stream->WriteStringMaybeAliased(2, _s, target);
878 }
879
880 // repeated string substructure = 10;
881 for (int i = 0, n = this->_internal_substructure_size(); i < n; ++i) {
882 const auto& s = this->_internal_substructure().Get(i);
883 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
884 s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonId.substructure");
885 target = stream->WriteString(10, s, target);
886 }
887
888 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
889 target =
890 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
891 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
892 }
893 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.opmon.OpMonId)
894 return target;
895}
896
897::size_t OpMonId::ByteSizeLong() const {
898// @@protoc_insertion_point(message_byte_size_start:dunedaq.opmon.OpMonId)
899 ::size_t total_size = 0;
900
901 ::uint32_t cached_has_bits = 0;
902 // Prevent compiler warnings about cached_has_bits being unused
903 (void) cached_has_bits;
904
905 // repeated string substructure = 10;
906 total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_substructure().size());
907 for (int i = 0, n = _internal_substructure().size(); i < n; ++i) {
908 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
909 _internal_substructure().Get(i));
910 }
911 // string session = 1;
912 if (!this->_internal_session().empty()) {
913 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
914 this->_internal_session());
915 }
916
917 // string application = 2;
918 if (!this->_internal_application().empty()) {
919 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
920 this->_internal_application());
921 }
922
923 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
924}
925
926const ::google::protobuf::Message::ClassData OpMonId::_class_data_ = {
927 ::google::protobuf::Message::CopyWithSourceCheck,
929};
930const ::google::protobuf::Message::ClassData*OpMonId::GetClassData() const { return &_class_data_; }
931
932
933void OpMonId::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
934 auto* const _this = static_cast<OpMonId*>(&to_msg);
935 auto& from = static_cast<const OpMonId&>(from_msg);
936 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.opmon.OpMonId)
937 ABSL_DCHECK_NE(&from, _this);
938 ::uint32_t cached_has_bits = 0;
939 (void) cached_has_bits;
940
941 _this->_internal_mutable_substructure()->MergeFrom(from._internal_substructure());
942 if (!from._internal_session().empty()) {
943 _this->_internal_set_session(from._internal_session());
944 }
945 if (!from._internal_application().empty()) {
946 _this->_internal_set_application(from._internal_application());
947 }
948 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
949}
950
951void OpMonId::CopyFrom(const OpMonId& from) {
952// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.opmon.OpMonId)
953 if (&from == this) return;
954 Clear();
955 MergeFrom(from);
956}
957
958PROTOBUF_NOINLINE bool OpMonId::IsInitialized() const {
959 return true;
960}
961
963 using std::swap;
964 auto* lhs_arena = GetArenaForAllocation();
965 auto* rhs_arena = other->GetArenaForAllocation();
966 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
967 _impl_.substructure_.InternalSwap(&other->_impl_.substructure_);
968 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.session_, lhs_arena,
969 &other->_impl_.session_, rhs_arena);
970 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_, lhs_arena,
971 &other->_impl_.application_, rhs_arena);
972}
973
979// ===================================================================
980
992// ===================================================================
993
996 : SuperType(arena) {}
998 MergeFromInternal(other);
999}
1005// ===================================================================
1006
1008 public:
1009 using HasBits = decltype(std::declval<OpMonEntry>()._impl_._has_bits_);
1010 static constexpr ::int32_t kHasBitsOffset =
1011 8 * PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_._has_bits_);
1012 static const ::google::protobuf::Timestamp& time(const OpMonEntry* msg);
1013 static void set_has_time(HasBits* has_bits) {
1014 (*has_bits)[0] |= 1u;
1015 }
1016 static const ::dunedaq::opmon::OpMonId& origin(const OpMonEntry* msg);
1017 static void set_has_origin(HasBits* has_bits) {
1018 (*has_bits)[0] |= 2u;
1019 }
1020};
1021
1022const ::google::protobuf::Timestamp& OpMonEntry::_Internal::time(const OpMonEntry* msg) {
1023 return *msg->_impl_.time_;
1024}
1025const ::dunedaq::opmon::OpMonId& OpMonEntry::_Internal::origin(const OpMonEntry* msg) {
1026 return *msg->_impl_.origin_;
1027}
1029 if (_impl_.time_ != nullptr) _impl_.time_->Clear();
1030 _impl_._has_bits_[0] &= ~0x00000001u;
1031}
1032OpMonEntry::OpMonEntry(::google::protobuf::Arena* arena)
1033 : ::google::protobuf::Message(arena) {
1034 SharedCtor(arena);
1035 // @@protoc_insertion_point(arena_constructor:dunedaq.opmon.OpMonEntry)
1036}
1037OpMonEntry::OpMonEntry(const OpMonEntry& from) : ::google::protobuf::Message() {
1038 OpMonEntry* const _this = this;
1039 (void)_this;
1040 new (&_impl_) Impl_{
1041 decltype(_impl_._has_bits_){from._impl_._has_bits_},
1042 /*decltype(_impl_._cached_size_)*/ {},
1043 /* decltype(_impl_.custom_origin_) */ {},
1044 /* decltype(_impl_.data_) */ {},
1045 decltype(_impl_.measurement_){},
1046 decltype(_impl_.time_){nullptr},
1047 decltype(_impl_.origin_){nullptr},
1048 };
1049 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1050 from._internal_metadata_);
1051 _this->_impl_.custom_origin_.MergeFrom(from._impl_.custom_origin_);
1052 _this->_impl_.data_.MergeFrom(from._impl_.data_);
1053 _impl_.measurement_.InitDefault();
1054 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1055 _impl_.measurement_.Set("", GetArenaForAllocation());
1056 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1057 if (!from._internal_measurement().empty()) {
1058 _this->_impl_.measurement_.Set(from._internal_measurement(), _this->GetArenaForAllocation());
1059 }
1060 if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
1061 _this->_impl_.time_ = new ::google::protobuf::Timestamp(*from._impl_.time_);
1062 }
1063 if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
1064 _this->_impl_.origin_ = new ::dunedaq::opmon::OpMonId(*from._impl_.origin_);
1065 }
1066
1067 // @@protoc_insertion_point(copy_constructor:dunedaq.opmon.OpMonEntry)
1068}
1069inline void OpMonEntry::SharedCtor(::_pb::Arena* arena) {
1070 (void)arena;
1071 new (&_impl_) Impl_{
1072 decltype(_impl_._has_bits_){},
1073 /*decltype(_impl_._cached_size_)*/ {},
1074 /* decltype(_impl_.custom_origin_) */ {::google::protobuf::internal::ArenaInitialized(), arena},
1075 /* decltype(_impl_.data_) */ {::google::protobuf::internal::ArenaInitialized(), arena},
1076 decltype(_impl_.measurement_){},
1077 decltype(_impl_.time_){nullptr},
1078 decltype(_impl_.origin_){nullptr},
1079 };
1080 _impl_.measurement_.InitDefault();
1081 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1082 _impl_.measurement_.Set("", GetArenaForAllocation());
1083 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1084}
1086 // @@protoc_insertion_point(destructor:dunedaq.opmon.OpMonEntry)
1087 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1088 SharedDtor();
1089}
1091 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
1092 _impl_.custom_origin_.~MapField();
1093 _impl_.data_.~MapField();
1094 _impl_.measurement_.Destroy();
1095 if (this != internal_default_instance()) delete _impl_.time_;
1096 if (this != internal_default_instance()) delete _impl_.origin_;
1097}
1100}
1101
1102PROTOBUF_NOINLINE void OpMonEntry::Clear() {
1103// @@protoc_insertion_point(message_clear_start:dunedaq.opmon.OpMonEntry)
1104 ::uint32_t cached_has_bits = 0;
1105 // Prevent compiler warnings about cached_has_bits being unused
1106 (void) cached_has_bits;
1107
1108 _impl_.custom_origin_.Clear();
1109 _impl_.data_.Clear();
1110 _impl_.measurement_.ClearToEmpty();
1111 cached_has_bits = _impl_._has_bits_[0];
1112 if (cached_has_bits & 0x00000003u) {
1113 if (cached_has_bits & 0x00000001u) {
1114 ABSL_DCHECK(_impl_.time_ != nullptr);
1115 _impl_.time_->Clear();
1116 }
1117 if (cached_has_bits & 0x00000002u) {
1118 ABSL_DCHECK(_impl_.origin_ != nullptr);
1119 _impl_.origin_->Clear();
1120 }
1121 }
1122 _impl_._has_bits_.Clear();
1123 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1124}
1125
1127 const char* ptr, ::_pbi::ParseContext* ctx) {
1128 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
1129 return ptr;
1130}
1131
1132
1133PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1134const ::_pbi::TcParseTable<3, 5, 5, 61, 2> OpMonEntry::_table_ = {
1135 {
1136 PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_._has_bits_),
1137 0, // no _extensions_
1138 10, 56, // max_field_number, fast_idx_mask
1139 offsetof(decltype(_table_), field_lookup_table),
1140 4294966760, // skipmap
1141 offsetof(decltype(_table_), field_entries),
1142 5, // num_field_entries
1143 5, // num_aux_entries
1144 offsetof(decltype(_table_), aux_entries),
1146 ::_pbi::TcParser::GenericFallback, // fallback
1147 }, {{
1148 {::_pbi::TcParser::MiniParse, {}},
1149 // .google.protobuf.Timestamp time = 1;
1150 {::_pbi::TcParser::FastMtS1,
1151 {10, 0, 0, PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.time_)}},
1152 // .dunedaq.opmon.OpMonId origin = 2;
1153 {::_pbi::TcParser::FastMtS1,
1154 {18, 1, 1, PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.origin_)}},
1155 {::_pbi::TcParser::MiniParse, {}},
1156 {::_pbi::TcParser::MiniParse, {}},
1157 // string measurement = 5;
1158 {::_pbi::TcParser::FastUS1,
1159 {42, 63, 0, PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.measurement_)}},
1160 {::_pbi::TcParser::MiniParse, {}},
1161 {::_pbi::TcParser::MiniParse, {}},
1162 }}, {{
1163 65535, 65535
1164 }}, {{
1165 // .google.protobuf.Timestamp time = 1;
1166 {PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.time_), _Internal::kHasBitsOffset + 0, 0,
1167 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1168 // .dunedaq.opmon.OpMonId origin = 2;
1169 {PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.origin_), _Internal::kHasBitsOffset + 1, 1,
1170 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1171 // map<string, string> custom_origin = 3;
1172 {PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.custom_origin_), -1, 2,
1173 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1174 // string measurement = 5;
1175 {PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.measurement_), -1, 0,
1176 (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
1177 // map<string, .dunedaq.opmon.OpMonValue> data = 10;
1178 {PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.data_), -1, 3,
1179 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1180 }}, {{
1181 {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
1182 {::_pbi::TcParser::GetTable<::dunedaq::opmon::OpMonId>()},
1183 {::_pbi::TcParser::GetMapAuxInfo<decltype(OpMonEntry()._impl_.custom_origin_)>(1, 0, 0)},
1184 {::_pbi::TcParser::GetMapAuxInfo<decltype(OpMonEntry()._impl_.data_)>(1, 0, 0)},
1185 {::_pbi::TcParser::CreateInArenaStorageCb<::dunedaq::opmon::OpMonValue>},
1186 }}, {{
1187 "\30\0\0\15\13\4\0\0"
1188 "dunedaq.opmon.OpMonEntry"
1189 "custom_origin"
1190 "measurement"
1191 "data"
1192 }},
1193};
1194
1196 ::uint8_t* target,
1197 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
1198 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.opmon.OpMonEntry)
1199 ::uint32_t cached_has_bits = 0;
1200 (void)cached_has_bits;
1201
1202 cached_has_bits = _impl_._has_bits_[0];
1203 // .google.protobuf.Timestamp time = 1;
1204 if (cached_has_bits & 0x00000001u) {
1205 target = ::google::protobuf::internal::WireFormatLite::
1206 InternalWriteMessage(1, _Internal::time(this),
1207 _Internal::time(this).GetCachedSize(), target, stream);
1208 }
1209
1210 // .dunedaq.opmon.OpMonId origin = 2;
1211 if (cached_has_bits & 0x00000002u) {
1212 target = ::google::protobuf::internal::WireFormatLite::
1213 InternalWriteMessage(2, _Internal::origin(this),
1214 _Internal::origin(this).GetCachedSize(), target, stream);
1215 }
1216
1217 // map<string, string> custom_origin = 3;
1218 if (!_internal_custom_origin().empty()) {
1219 using MapType = ::google::protobuf::Map<std::string, std::string>;
1220 using WireHelper = OpMonEntry_CustomOriginEntry_DoNotUse::Funcs;
1221 const auto& field = _internal_custom_origin();
1222
1223 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1224 for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
1225 target = WireHelper::InternalSerialize(
1226 3, entry.first, entry.second, target, stream);
1227 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1228 entry.first.data(), static_cast<int>(entry.first.length()),
1229 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonEntry.custom_origin");
1230 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1231 entry.second.data(), static_cast<int>(entry.second.length()),
1232 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonEntry.custom_origin");
1233 }
1234 } else {
1235 for (const auto& entry : field) {
1236 target = WireHelper::InternalSerialize(
1237 3, entry.first, entry.second, target, stream);
1238 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1239 entry.first.data(), static_cast<int>(entry.first.length()),
1240 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonEntry.custom_origin");
1241 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1242 entry.second.data(), static_cast<int>(entry.second.length()),
1243 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonEntry.custom_origin");
1244 }
1245 }
1246 }
1247
1248 // string measurement = 5;
1249 if (!this->_internal_measurement().empty()) {
1250 const std::string& _s = this->_internal_measurement();
1251 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1252 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonEntry.measurement");
1253 target = stream->WriteStringMaybeAliased(5, _s, target);
1254 }
1255
1256 // map<string, .dunedaq.opmon.OpMonValue> data = 10;
1257 if (!_internal_data().empty()) {
1258 using MapType = ::google::protobuf::Map<std::string, ::dunedaq::opmon::OpMonValue>;
1259 using WireHelper = OpMonEntry_DataEntry_DoNotUse::Funcs;
1260 const auto& field = _internal_data();
1261
1262 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1263 for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
1264 target = WireHelper::InternalSerialize(
1265 10, entry.first, entry.second, target, stream);
1266 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1267 entry.first.data(), static_cast<int>(entry.first.length()),
1268 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonEntry.data");
1269 }
1270 } else {
1271 for (const auto& entry : field) {
1272 target = WireHelper::InternalSerialize(
1273 10, entry.first, entry.second, target, stream);
1274 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1275 entry.first.data(), static_cast<int>(entry.first.length()),
1276 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.opmon.OpMonEntry.data");
1277 }
1278 }
1279 }
1280
1281 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1282 target =
1283 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1284 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1285 }
1286 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.opmon.OpMonEntry)
1287 return target;
1288}
1289
1291// @@protoc_insertion_point(message_byte_size_start:dunedaq.opmon.OpMonEntry)
1292 ::size_t total_size = 0;
1293
1294 ::uint32_t cached_has_bits = 0;
1295 // Prevent compiler warnings about cached_has_bits being unused
1296 (void) cached_has_bits;
1297
1298 // map<string, string> custom_origin = 3;
1299 total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_custom_origin_size());
1300 for (const auto& entry : _internal_custom_origin()) {
1301 total_size += OpMonEntry_CustomOriginEntry_DoNotUse::Funcs::ByteSizeLong(entry.first, entry.second);
1302 }
1303 // map<string, .dunedaq.opmon.OpMonValue> data = 10;
1304 total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_data_size());
1305 for (const auto& entry : _internal_data()) {
1306 total_size += OpMonEntry_DataEntry_DoNotUse::Funcs::ByteSizeLong(entry.first, entry.second);
1307 }
1308 // string measurement = 5;
1309 if (!this->_internal_measurement().empty()) {
1310 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1311 this->_internal_measurement());
1312 }
1313
1314 cached_has_bits = _impl_._has_bits_[0];
1315 if (cached_has_bits & 0x00000003u) {
1316 // .google.protobuf.Timestamp time = 1;
1317 if (cached_has_bits & 0x00000001u) {
1318 total_size += 1 +
1319 ::google::protobuf::internal::WireFormatLite::MessageSize(
1320 *_impl_.time_);
1321 }
1322
1323 // .dunedaq.opmon.OpMonId origin = 2;
1324 if (cached_has_bits & 0x00000002u) {
1325 total_size += 1 +
1326 ::google::protobuf::internal::WireFormatLite::MessageSize(
1327 *_impl_.origin_);
1328 }
1329
1330 }
1331 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1332}
1333
1334const ::google::protobuf::Message::ClassData OpMonEntry::_class_data_ = {
1335 ::google::protobuf::Message::CopyWithSourceCheck,
1337};
1338const ::google::protobuf::Message::ClassData*OpMonEntry::GetClassData() const { return &_class_data_; }
1339
1340
1341void OpMonEntry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
1342 auto* const _this = static_cast<OpMonEntry*>(&to_msg);
1343 auto& from = static_cast<const OpMonEntry&>(from_msg);
1344 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.opmon.OpMonEntry)
1345 ABSL_DCHECK_NE(&from, _this);
1346 ::uint32_t cached_has_bits = 0;
1347 (void) cached_has_bits;
1348
1349 _this->_impl_.custom_origin_.MergeFrom(from._impl_.custom_origin_);
1350 _this->_impl_.data_.MergeFrom(from._impl_.data_);
1351 if (!from._internal_measurement().empty()) {
1352 _this->_internal_set_measurement(from._internal_measurement());
1353 }
1354 cached_has_bits = from._impl_._has_bits_[0];
1355 if (cached_has_bits & 0x00000003u) {
1356 if (cached_has_bits & 0x00000001u) {
1357 _this->_internal_mutable_time()->::google::protobuf::Timestamp::MergeFrom(
1358 from._internal_time());
1359 }
1360 if (cached_has_bits & 0x00000002u) {
1361 _this->_internal_mutable_origin()->::dunedaq::opmon::OpMonId::MergeFrom(
1362 from._internal_origin());
1363 }
1364 }
1365 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1366}
1367
1369// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.opmon.OpMonEntry)
1370 if (&from == this) return;
1371 Clear();
1372 MergeFrom(from);
1373}
1374
1375PROTOBUF_NOINLINE bool OpMonEntry::IsInitialized() const {
1376 return true;
1377}
1378
1380 using std::swap;
1381 auto* lhs_arena = GetArenaForAllocation();
1382 auto* rhs_arena = other->GetArenaForAllocation();
1383 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1384 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1385 _impl_.custom_origin_.InternalSwap(&other->_impl_.custom_origin_);
1386 _impl_.data_.InternalSwap(&other->_impl_.data_);
1387 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.measurement_, lhs_arena,
1388 &other->_impl_.measurement_, rhs_arena);
1389 ::google::protobuf::internal::memswap<
1390 PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.origin_)
1391 + sizeof(OpMonEntry::_impl_.origin_)
1392 - PROTOBUF_FIELD_OFFSET(OpMonEntry, _impl_.time_)>(
1393 reinterpret_cast<char*>(&_impl_.time_),
1394 reinterpret_cast<char*>(&other->_impl_.time_));
1395}
1396
1402// @@protoc_insertion_point(namespace_scope)
1403} // namespace opmon
1404} // namespace dunedaq
1405namespace google {
1406namespace protobuf {
1407} // namespace protobuf
1408} // namespace google
1409// @@protoc_insertion_point(global_scope)
1410#include "google/protobuf/port_undef.inc"
decltype(std::declval< OpMonEntry >()._impl_._has_bits_) HasBits
void MergeFrom(const OpMonEntry_CustomOriginEntry_DoNotUse &other)
::google::protobuf::Metadata GetMetadata() const final
::google::protobuf::internal::MapEntry< OpMonEntry_CustomOriginEntry_DoNotUse, std::string, std::string, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_STRING > SuperType
void MergeFrom(const OpMonEntry_DataEntry_DoNotUse &other)
::google::protobuf::Metadata GetMetadata() const final
::google::protobuf::internal::MapEntry< OpMonEntry_DataEntry_DoNotUse, std::string, ::dunedaq::opmon::OpMonValue, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE > SuperType
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::google::protobuf::Metadata GetMetadata() const final
const ::google::protobuf::Message::ClassData * GetClassData() const final
static const OpMonEntry * internal_default_instance()
const std::string & _internal_measurement() const
static const ClassData _class_data_
void SetCachedSize(int size) const final
void CopyFrom(const OpMonEntry &from)
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
void SharedCtor(::google::protobuf::Arena *arena)
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
const ::google::protobuf::Map< std::string, std::string > & _internal_custom_origin() const
::size_t ByteSizeLong() const final
bool IsInitialized() const final
void InternalSwap(OpMonEntry *other)
void MergeFrom(const OpMonEntry &from)
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
static const ::google::protobuf::internal::TcParseTable< 3, 5, 5, 61, 2 > _table_
const ::google::protobuf::Map< std::string, ::dunedaq::opmon::OpMonValue > & _internal_data() const
int GetCachedSize() const final
friend void swap(OpMonEntry &a, OpMonEntry &b)
::google::protobuf::RepeatedPtrField< std::string > * _internal_mutable_substructure()
const std::string & _internal_session() const
void InternalSwap(OpMonId *other)
int _internal_substructure_size() const
void CopyFrom(const OpMonId &from)
const ::google::protobuf::RepeatedPtrField< std::string > & _internal_substructure() const
void SharedCtor(::google::protobuf::Arena *arena)
void MergeFrom(const OpMonId &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void SetCachedSize(int size) const final
::size_t ByteSizeLong() const final
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
static const ClassData _class_data_
static const ::google::protobuf::internal::TcParseTable< 1, 3, 0, 60, 2 > _table_
const std::string & _internal_application() const
bool IsInitialized() const final
::google::protobuf::Metadata GetMetadata() const final
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
const ::google::protobuf::Message::ClassData * GetClassData() const final
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 _internal_set_boolean_value(bool value)
void MergeFrom(const OpMonValue &from)
const ::google::protobuf::Message::ClassData * GetClassData() const final
void _internal_set_null_value(::dunedaq::opmon::NullValue value)
static const ClassData _class_data_
double _internal_double_value() const
void SetCachedSize(int size) const final
void _internal_set_uint8_value(::uint64_t value)
::dunedaq::opmon::NullValue _internal_null_value() const
void _internal_set_uint4_value(::uint32_t value)
void _internal_set_int4_value(::int32_t value)
static const ::google::protobuf::internal::TcParseTable< 0, 9, 0, 53, 2 > _table_
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
::uint32_t _internal_uint4_value() const
void _internal_set_double_value(double value)
bool IsInitialized() const final
::uint64_t _internal_uint8_value() const
void InternalSwap(OpMonValue *other)
::google::protobuf::Metadata GetMetadata() const final
void _internal_set_int8_value(::int64_t value)
::size_t ByteSizeLong() const final
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string &value)
::int64_t _internal_int8_value() const
friend void swap(OpMonValue &a, OpMonValue &b)
void SharedCtor(::google::protobuf::Arena *arena)
const std::string & _internal_string_value() const
void CopyFrom(const OpMonValue &from)
::int32_t _internal_int4_value() const
void _internal_set_float_value(float value)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpMonEntry_DataEntry_DoNotUseDefaultTypeInternal _OpMonEntry_DataEntry_DoNotUse_default_instance_
const ::google::protobuf::EnumDescriptor * NullValue_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpMonIdDefaultTypeInternal _OpMonId_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpMonEntry_CustomOriginEntry_DoNotUseDefaultTypeInternal _OpMonEntry_CustomOriginEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpMonValueDefaultTypeInternal _OpMonValue_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpMonEntryDefaultTypeInternal _OpMonEntry_default_instance_
bool NullValue_IsValid(int value)
Including Qt Headers.
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
static const ::_pbi::DescriptorTable *const descriptor_table_opmonlib_2fopmon_5fentry_2eproto_deps[1]
::absl::once_flag descriptor_table_opmonlib_2fopmon_5fentry_2eproto_once
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_opmonlib_2fopmon_5fentry_2eproto_getter()
const ::_pbi::DescriptorTable descriptor_table_opmonlib_2fopmon_5fentry_2eproto
static const ::_pb::EnumDescriptor * file_level_enum_descriptors_opmonlib_2fopmon_5fentry_2eproto[1]
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_opmonlib_2fopmon_5fentry_2eproto
::_pb::Metadata file_level_metadata_opmonlib_2fopmon_5fentry_2eproto[5]
mutable::google::protobuf::internal::CachedSize _cached_size_
::dunedaq::opmon::OpMonId * origin_
::google::protobuf::internal::MapField< OpMonEntry_DataEntry_DoNotUse, std::string, ::dunedaq::opmon::OpMonValue, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE > data_
::google::protobuf::Timestamp * time_
::google::protobuf::internal::ArenaStringPtr measurement_
::google::protobuf::internal::HasBits< 1 > _has_bits_
::google::protobuf::internal::MapField< OpMonEntry_CustomOriginEntry_DoNotUse, std::string, std::string, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_STRING > custom_origin_
::google::protobuf::internal::ArenaStringPtr application_
::google::protobuf::RepeatedPtrField< std::string > substructure_
mutable::google::protobuf::internal::CachedSize _cached_size_
::google::protobuf::internal::ArenaStringPtr session_
mutable::google::protobuf::internal::CachedSize _cached_size_
union dunedaq::opmon::OpMonValue::Impl_::KindUnion kind_
::google::protobuf::internal::ArenaStringPtr string_value_
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