DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
hsi_readout_info.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: hsilibs/opmon/hsi_readout_info.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 hsilibs {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR HSIReadoutInfo::HSIReadoutInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.readout_hsi_events_counter_)*/ ::uint64_t{0u},
30 /*decltype(_impl_.sent_hsi_events_counter_)*/ ::uint64_t{0u},
31 /*decltype(_impl_.failed_to_send_hsi_events_counter_)*/ ::uint64_t{0u},
32 /*decltype(_impl_.last_readout_timestamp_)*/ ::uint64_t{0u},
33 /*decltype(_impl_.last_sent_timestamp_)*/ ::uint64_t{0u},
34 /*decltype(_impl_.average_buffer_occupancy_)*/ ::uint64_t{0u},
35 /*decltype(_impl_._cached_size_)*/ {},
36 } {}
38 PROTOBUF_CONSTEXPR HSIReadoutInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
40 union {
42 };
43};
44
45PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
47} // namespace opmon
48} // namespace hsilibs
49} // namespace dunedaq
51static constexpr const ::_pb::EnumDescriptor**
53static constexpr const ::_pb::ServiceDescriptor**
56 protodesc_cold) = {
57 ~0u, // no _has_bits_
58 PROTOBUF_FIELD_OFFSET(::dunedaq::hsilibs::opmon::HSIReadoutInfo, _internal_metadata_),
59 ~0u, // no _extensions_
60 ~0u, // no _oneof_case_
61 ~0u, // no _weak_field_map_
62 ~0u, // no _inlined_string_donated_
63 ~0u, // no _split_
64 ~0u, // no sizeof(Split)
65 PROTOBUF_FIELD_OFFSET(::dunedaq::hsilibs::opmon::HSIReadoutInfo, _impl_.readout_hsi_events_counter_),
66 PROTOBUF_FIELD_OFFSET(::dunedaq::hsilibs::opmon::HSIReadoutInfo, _impl_.sent_hsi_events_counter_),
67 PROTOBUF_FIELD_OFFSET(::dunedaq::hsilibs::opmon::HSIReadoutInfo, _impl_.failed_to_send_hsi_events_counter_),
68 PROTOBUF_FIELD_OFFSET(::dunedaq::hsilibs::opmon::HSIReadoutInfo, _impl_.last_readout_timestamp_),
69 PROTOBUF_FIELD_OFFSET(::dunedaq::hsilibs::opmon::HSIReadoutInfo, _impl_.last_sent_timestamp_),
70 PROTOBUF_FIELD_OFFSET(::dunedaq::hsilibs::opmon::HSIReadoutInfo, _impl_.average_buffer_occupancy_),
71};
72
73static const ::_pbi::MigrationSchema
74 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
76};
77
81const char descriptor_table_protodef_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
82 "\n$hsilibs/opmon/hsi_readout_info.proto\022\025"
83 "dunedaq.hsilibs.opmon\"\337\001\n\016HSIReadoutInfo"
84 "\022\"\n\032readout_hsi_events_counter\030\001 \001(\004\022\037\n\027"
85 "sent_hsi_events_counter\030\002 \001(\004\022)\n!failed_"
86 "to_send_hsi_events_counter\030\013 \001(\004\022\036\n\026last"
87 "_readout_timestamp\030\025 \001(\004\022\033\n\023last_sent_ti"
88 "mestamp\030\026 \001(\004\022 \n\030average_buffer_occupanc"
89 "y\030\037 \001(\004b\006proto3"
90};
109
110// This function exists to be marked as weak.
111// It can significantly speed up compilation by breaking up LLVM's SCC
112// in the .pb.cc translation units. Large translation units see a
113// reduction of more than 35% of walltime for optimized builds. Without
114// the weak attribute all the messages in the file, including all the
115// vtables and everything they use become part of the same SCC through
116// a cycle like:
117// GetMetadata -> descriptor table -> default instances ->
118// vtables -> GetMetadata
119// By adding a weak function here we break the connection from the
120// individual vtables back into the descriptor table.
124// Force running AddDescriptors() at dynamic initialization time.
125PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
126static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto(&descriptor_table_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto);
127namespace dunedaq {
128namespace hsilibs {
129namespace opmon {
130// ===================================================================
131
133 public:
134};
135
136HSIReadoutInfo::HSIReadoutInfo(::google::protobuf::Arena* arena)
137 : ::google::protobuf::Message(arena) {
138 SharedCtor(arena);
139 // @@protoc_insertion_point(arena_constructor:dunedaq.hsilibs.opmon.HSIReadoutInfo)
140}
142 : ::google::protobuf::Message(), _impl_(from._impl_) {
143 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
144 from._internal_metadata_);
145 // @@protoc_insertion_point(copy_constructor:dunedaq.hsilibs.opmon.HSIReadoutInfo)
146}
147inline void HSIReadoutInfo::SharedCtor(::_pb::Arena* arena) {
148 (void)arena;
149 new (&_impl_) Impl_{
150 decltype(_impl_.readout_hsi_events_counter_){::uint64_t{0u}},
151 decltype(_impl_.sent_hsi_events_counter_){::uint64_t{0u}},
152 decltype(_impl_.failed_to_send_hsi_events_counter_){::uint64_t{0u}},
153 decltype(_impl_.last_readout_timestamp_){::uint64_t{0u}},
154 decltype(_impl_.last_sent_timestamp_){::uint64_t{0u}},
155 decltype(_impl_.average_buffer_occupancy_){::uint64_t{0u}},
156 /*decltype(_impl_._cached_size_)*/ {},
157 };
158}
160 // @@protoc_insertion_point(destructor:dunedaq.hsilibs.opmon.HSIReadoutInfo)
161 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
162 SharedDtor();
163}
165 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
166}
170
171PROTOBUF_NOINLINE void HSIReadoutInfo::Clear() {
172// @@protoc_insertion_point(message_clear_start:dunedaq.hsilibs.opmon.HSIReadoutInfo)
173 ::uint32_t cached_has_bits = 0;
174 // Prevent compiler warnings about cached_has_bits being unused
175 (void) cached_has_bits;
176
177 ::memset(&_impl_.readout_hsi_events_counter_, 0, static_cast<::size_t>(
178 reinterpret_cast<char*>(&_impl_.average_buffer_occupancy_) -
179 reinterpret_cast<char*>(&_impl_.readout_hsi_events_counter_)) + sizeof(_impl_.average_buffer_occupancy_));
180 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
181}
182
184 const char* ptr, ::_pbi::ParseContext* ctx) {
185 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
186 return ptr;
187}
188
189
190PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
191const ::_pbi::TcParseTable<3, 6, 0, 0, 2> HSIReadoutInfo::_table_ = {
192 {
193 0, // no _has_bits_
194 0, // no _extensions_
195 31, 56, // max_field_number, fast_idx_mask
196 offsetof(decltype(_table_), field_lookup_table),
197 3218078716, // skipmap
198 offsetof(decltype(_table_), field_entries),
199 6, // num_field_entries
200 0, // num_aux_entries
201 offsetof(decltype(_table_), field_names), // no aux_entries
203 ::_pbi::TcParser::GenericFallback, // fallback
204 }, {{
205 {::_pbi::TcParser::MiniParse, {}},
206 // uint64 readout_hsi_events_counter = 1;
207 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HSIReadoutInfo, _impl_.readout_hsi_events_counter_), 63>(),
208 {8, 63, 0, PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.readout_hsi_events_counter_)}},
209 // uint64 sent_hsi_events_counter = 2;
210 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HSIReadoutInfo, _impl_.sent_hsi_events_counter_), 63>(),
211 {16, 63, 0, PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.sent_hsi_events_counter_)}},
212 // uint64 failed_to_send_hsi_events_counter = 11;
213 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HSIReadoutInfo, _impl_.failed_to_send_hsi_events_counter_), 63>(),
214 {88, 63, 0, PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.failed_to_send_hsi_events_counter_)}},
215 {::_pbi::TcParser::MiniParse, {}},
216 // uint64 last_readout_timestamp = 21;
217 {::_pbi::TcParser::FastV64S2,
218 {424, 63, 0, PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.last_readout_timestamp_)}},
219 // uint64 last_sent_timestamp = 22;
220 {::_pbi::TcParser::FastV64S2,
221 {432, 63, 0, PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.last_sent_timestamp_)}},
222 // uint64 average_buffer_occupancy = 31;
223 {::_pbi::TcParser::FastV64S2,
224 {504, 63, 0, PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.average_buffer_occupancy_)}},
225 }}, {{
226 65535, 65535
227 }}, {{
228 // uint64 readout_hsi_events_counter = 1;
229 {PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.readout_hsi_events_counter_), 0, 0,
230 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
231 // uint64 sent_hsi_events_counter = 2;
232 {PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.sent_hsi_events_counter_), 0, 0,
233 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
234 // uint64 failed_to_send_hsi_events_counter = 11;
235 {PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.failed_to_send_hsi_events_counter_), 0, 0,
236 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
237 // uint64 last_readout_timestamp = 21;
238 {PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.last_readout_timestamp_), 0, 0,
239 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
240 // uint64 last_sent_timestamp = 22;
241 {PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.last_sent_timestamp_), 0, 0,
242 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
243 // uint64 average_buffer_occupancy = 31;
244 {PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.average_buffer_occupancy_), 0, 0,
245 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
246 }},
247 // no aux_entries
248 {{
249 }},
250};
251
253 ::uint8_t* target,
254 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
255 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.hsilibs.opmon.HSIReadoutInfo)
256 ::uint32_t cached_has_bits = 0;
257 (void)cached_has_bits;
258
259 // uint64 readout_hsi_events_counter = 1;
260 if (this->_internal_readout_hsi_events_counter() != 0) {
261 target = stream->EnsureSpace(target);
262 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
263 1, this->_internal_readout_hsi_events_counter(), target);
264 }
265
266 // uint64 sent_hsi_events_counter = 2;
267 if (this->_internal_sent_hsi_events_counter() != 0) {
268 target = stream->EnsureSpace(target);
269 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
270 2, this->_internal_sent_hsi_events_counter(), target);
271 }
272
273 // uint64 failed_to_send_hsi_events_counter = 11;
275 target = stream->EnsureSpace(target);
276 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
278 }
279
280 // uint64 last_readout_timestamp = 21;
281 if (this->_internal_last_readout_timestamp() != 0) {
282 target = stream->EnsureSpace(target);
283 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
284 21, this->_internal_last_readout_timestamp(), target);
285 }
286
287 // uint64 last_sent_timestamp = 22;
288 if (this->_internal_last_sent_timestamp() != 0) {
289 target = stream->EnsureSpace(target);
290 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
291 22, this->_internal_last_sent_timestamp(), target);
292 }
293
294 // uint64 average_buffer_occupancy = 31;
295 if (this->_internal_average_buffer_occupancy() != 0) {
296 target = stream->EnsureSpace(target);
297 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
298 31, this->_internal_average_buffer_occupancy(), target);
299 }
300
301 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
302 target =
303 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
304 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
305 }
306 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.hsilibs.opmon.HSIReadoutInfo)
307 return target;
308}
309
311// @@protoc_insertion_point(message_byte_size_start:dunedaq.hsilibs.opmon.HSIReadoutInfo)
312 ::size_t total_size = 0;
313
314 ::uint32_t cached_has_bits = 0;
315 // Prevent compiler warnings about cached_has_bits being unused
316 (void) cached_has_bits;
317
318 // uint64 readout_hsi_events_counter = 1;
319 if (this->_internal_readout_hsi_events_counter() != 0) {
320 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
322 }
323
324 // uint64 sent_hsi_events_counter = 2;
325 if (this->_internal_sent_hsi_events_counter() != 0) {
326 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
328 }
329
330 // uint64 failed_to_send_hsi_events_counter = 11;
332 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
334 }
335
336 // uint64 last_readout_timestamp = 21;
337 if (this->_internal_last_readout_timestamp() != 0) {
338 total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
340 }
341
342 // uint64 last_sent_timestamp = 22;
343 if (this->_internal_last_sent_timestamp() != 0) {
344 total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
346 }
347
348 // uint64 average_buffer_occupancy = 31;
349 if (this->_internal_average_buffer_occupancy() != 0) {
350 total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
352 }
353
354 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
355}
356
357const ::google::protobuf::Message::ClassData HSIReadoutInfo::_class_data_ = {
358 ::google::protobuf::Message::CopyWithSourceCheck,
360};
361const ::google::protobuf::Message::ClassData*HSIReadoutInfo::GetClassData() const { return &_class_data_; }
362
363
364void HSIReadoutInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
365 auto* const _this = static_cast<HSIReadoutInfo*>(&to_msg);
366 auto& from = static_cast<const HSIReadoutInfo&>(from_msg);
367 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.hsilibs.opmon.HSIReadoutInfo)
368 ABSL_DCHECK_NE(&from, _this);
369 ::uint32_t cached_has_bits = 0;
370 (void) cached_has_bits;
371
372 if (from._internal_readout_hsi_events_counter() != 0) {
373 _this->_internal_set_readout_hsi_events_counter(from._internal_readout_hsi_events_counter());
374 }
375 if (from._internal_sent_hsi_events_counter() != 0) {
376 _this->_internal_set_sent_hsi_events_counter(from._internal_sent_hsi_events_counter());
377 }
378 if (from._internal_failed_to_send_hsi_events_counter() != 0) {
379 _this->_internal_set_failed_to_send_hsi_events_counter(from._internal_failed_to_send_hsi_events_counter());
380 }
381 if (from._internal_last_readout_timestamp() != 0) {
382 _this->_internal_set_last_readout_timestamp(from._internal_last_readout_timestamp());
383 }
384 if (from._internal_last_sent_timestamp() != 0) {
385 _this->_internal_set_last_sent_timestamp(from._internal_last_sent_timestamp());
386 }
387 if (from._internal_average_buffer_occupancy() != 0) {
388 _this->_internal_set_average_buffer_occupancy(from._internal_average_buffer_occupancy());
389 }
390 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
391}
392
394// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.hsilibs.opmon.HSIReadoutInfo)
395 if (&from == this) return;
396 Clear();
397 MergeFrom(from);
398}
399
400PROTOBUF_NOINLINE bool HSIReadoutInfo::IsInitialized() const {
401 return true;
402}
403
405 using std::swap;
406 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
407 ::google::protobuf::internal::memswap<
408 PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.average_buffer_occupancy_)
410 - PROTOBUF_FIELD_OFFSET(HSIReadoutInfo, _impl_.readout_hsi_events_counter_)>(
411 reinterpret_cast<char*>(&_impl_.readout_hsi_events_counter_),
412 reinterpret_cast<char*>(&other->_impl_.readout_hsi_events_counter_));
413}
414
420// @@protoc_insertion_point(namespace_scope)
421} // namespace opmon
422} // namespace hsilibs
423} // namespace dunedaq
424namespace google {
425namespace protobuf {
426} // namespace protobuf
427} // namespace google
428// @@protoc_insertion_point(global_scope)
429#include "google/protobuf/port_undef.inc"
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
::google::protobuf::Metadata GetMetadata() const final
const ::google::protobuf::Message::ClassData * GetClassData() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const HSIReadoutInfo &from)
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
static const ::google::protobuf::internal::TcParseTable< 3, 6, 0, 0, 2 > _table_
::uint64_t _internal_failed_to_send_hsi_events_counter() const
void SharedCtor(::google::protobuf::Arena *arena)
void CopyFrom(const HSIReadoutInfo &from)
const ::uint32_t TableStruct_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
::_pb::Metadata file_level_metadata_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto[1]
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto_getter()
const ::_pbi::DescriptorTable descriptor_table_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto
::absl::once_flag descriptor_table_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto_once
static const ::_pb::Message *const file_default_instances[]
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_hsilibs_2fopmon_2fhsi_5freadout_5finfo_2eproto
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HSIReadoutInfoDefaultTypeInternal _HSIReadoutInfo_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_