DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
hsisourcemodel_info.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: trigger/opmon/hsisourcemodel_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 trigger {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR HSISourceModelInfo::HSISourceModelInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.received_events_count_)*/ 0u,
30 /*decltype(_impl_.tcs_made_count_)*/ 0u,
31 /*decltype(_impl_.tcs_sent_count_)*/ 0u,
32 /*decltype(_impl_.tcs_dropped_count_)*/ 0u,
33 /*decltype(_impl_._cached_size_)*/ {},
34 } {}
36 PROTOBUF_CONSTEXPR HSISourceModelInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
38 union {
40 };
41};
42
43PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
45} // namespace opmon
46} // namespace trigger
47} // namespace dunedaq
49static constexpr const ::_pb::EnumDescriptor**
51static constexpr const ::_pb::ServiceDescriptor**
54 protodesc_cold) = {
55 ~0u, // no _has_bits_
56 PROTOBUF_FIELD_OFFSET(::dunedaq::trigger::opmon::HSISourceModelInfo, _internal_metadata_),
57 ~0u, // no _extensions_
58 ~0u, // no _oneof_case_
59 ~0u, // no _weak_field_map_
60 ~0u, // no _inlined_string_donated_
61 ~0u, // no _split_
62 ~0u, // no sizeof(Split)
63 PROTOBUF_FIELD_OFFSET(::dunedaq::trigger::opmon::HSISourceModelInfo, _impl_.received_events_count_),
64 PROTOBUF_FIELD_OFFSET(::dunedaq::trigger::opmon::HSISourceModelInfo, _impl_.tcs_made_count_),
65 PROTOBUF_FIELD_OFFSET(::dunedaq::trigger::opmon::HSISourceModelInfo, _impl_.tcs_sent_count_),
66 PROTOBUF_FIELD_OFFSET(::dunedaq::trigger::opmon::HSISourceModelInfo, _impl_.tcs_dropped_count_),
67};
68
69static const ::_pbi::MigrationSchema
70 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
72};
73
77const char descriptor_table_protodef_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
78 "\n\'trigger/opmon/hsisourcemodel_info.prot"
79 "o\022\025dunedaq.trigger.opmon\"~\n\022HSISourceMod"
80 "elInfo\022\035\n\025received_events_count\030\001 \001(\r\022\026\n"
81 "\016tcs_made_count\030\002 \001(\r\022\026\n\016tcs_sent_count\030"
82 "\003 \001(\r\022\031\n\021tcs_dropped_count\030\004 \001(\rb\006proto3"
83};
102
103// This function exists to be marked as weak.
104// It can significantly speed up compilation by breaking up LLVM's SCC
105// in the .pb.cc translation units. Large translation units see a
106// reduction of more than 35% of walltime for optimized builds. Without
107// the weak attribute all the messages in the file, including all the
108// vtables and everything they use become part of the same SCC through
109// a cycle like:
110// GetMetadata -> descriptor table -> default instances ->
111// vtables -> GetMetadata
112// By adding a weak function here we break the connection from the
113// individual vtables back into the descriptor table.
117// Force running AddDescriptors() at dynamic initialization time.
118PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
119static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto(&descriptor_table_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto);
120namespace dunedaq {
121namespace trigger {
122namespace opmon {
123// ===================================================================
124
126 public:
127};
128
129HSISourceModelInfo::HSISourceModelInfo(::google::protobuf::Arena* arena)
130 : ::google::protobuf::Message(arena) {
131 SharedCtor(arena);
132 // @@protoc_insertion_point(arena_constructor:dunedaq.trigger.opmon.HSISourceModelInfo)
133}
135 : ::google::protobuf::Message(), _impl_(from._impl_) {
136 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
137 from._internal_metadata_);
138 // @@protoc_insertion_point(copy_constructor:dunedaq.trigger.opmon.HSISourceModelInfo)
139}
140inline void HSISourceModelInfo::SharedCtor(::_pb::Arena* arena) {
141 (void)arena;
142 new (&_impl_) Impl_{
143 decltype(_impl_.received_events_count_){0u},
144 decltype(_impl_.tcs_made_count_){0u},
145 decltype(_impl_.tcs_sent_count_){0u},
146 decltype(_impl_.tcs_dropped_count_){0u},
147 /*decltype(_impl_._cached_size_)*/ {},
148 };
149}
151 // @@protoc_insertion_point(destructor:dunedaq.trigger.opmon.HSISourceModelInfo)
152 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
153 SharedDtor();
154}
156 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
157}
161
162PROTOBUF_NOINLINE void HSISourceModelInfo::Clear() {
163// @@protoc_insertion_point(message_clear_start:dunedaq.trigger.opmon.HSISourceModelInfo)
164 ::uint32_t cached_has_bits = 0;
165 // Prevent compiler warnings about cached_has_bits being unused
166 (void) cached_has_bits;
167
168 ::memset(&_impl_.received_events_count_, 0, static_cast<::size_t>(
169 reinterpret_cast<char*>(&_impl_.tcs_dropped_count_) -
170 reinterpret_cast<char*>(&_impl_.received_events_count_)) + sizeof(_impl_.tcs_dropped_count_));
171 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
172}
173
175 const char* ptr, ::_pbi::ParseContext* ctx) {
176 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
177 return ptr;
178}
179
180
181PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
182const ::_pbi::TcParseTable<2, 4, 0, 0, 2> HSISourceModelInfo::_table_ = {
183 {
184 0, // no _has_bits_
185 0, // no _extensions_
186 4, 24, // max_field_number, fast_idx_mask
187 offsetof(decltype(_table_), field_lookup_table),
188 4294967280, // skipmap
189 offsetof(decltype(_table_), field_entries),
190 4, // num_field_entries
191 0, // num_aux_entries
192 offsetof(decltype(_table_), field_names), // no aux_entries
194 ::_pbi::TcParser::GenericFallback, // fallback
195 }, {{
196 // uint32 tcs_dropped_count = 4;
197 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(HSISourceModelInfo, _impl_.tcs_dropped_count_), 63>(),
198 {32, 63, 0, PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.tcs_dropped_count_)}},
199 // uint32 received_events_count = 1;
200 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(HSISourceModelInfo, _impl_.received_events_count_), 63>(),
201 {8, 63, 0, PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.received_events_count_)}},
202 // uint32 tcs_made_count = 2;
203 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(HSISourceModelInfo, _impl_.tcs_made_count_), 63>(),
204 {16, 63, 0, PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.tcs_made_count_)}},
205 // uint32 tcs_sent_count = 3;
206 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(HSISourceModelInfo, _impl_.tcs_sent_count_), 63>(),
207 {24, 63, 0, PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.tcs_sent_count_)}},
208 }}, {{
209 65535, 65535
210 }}, {{
211 // uint32 received_events_count = 1;
212 {PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.received_events_count_), 0, 0,
213 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
214 // uint32 tcs_made_count = 2;
215 {PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.tcs_made_count_), 0, 0,
216 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
217 // uint32 tcs_sent_count = 3;
218 {PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.tcs_sent_count_), 0, 0,
219 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
220 // uint32 tcs_dropped_count = 4;
221 {PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.tcs_dropped_count_), 0, 0,
222 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
223 }},
224 // no aux_entries
225 {{
226 }},
227};
228
230 ::uint8_t* target,
231 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
232 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.trigger.opmon.HSISourceModelInfo)
233 ::uint32_t cached_has_bits = 0;
234 (void)cached_has_bits;
235
236 // uint32 received_events_count = 1;
237 if (this->_internal_received_events_count() != 0) {
238 target = stream->EnsureSpace(target);
239 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
240 1, this->_internal_received_events_count(), target);
241 }
242
243 // uint32 tcs_made_count = 2;
244 if (this->_internal_tcs_made_count() != 0) {
245 target = stream->EnsureSpace(target);
246 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
247 2, this->_internal_tcs_made_count(), target);
248 }
249
250 // uint32 tcs_sent_count = 3;
251 if (this->_internal_tcs_sent_count() != 0) {
252 target = stream->EnsureSpace(target);
253 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
254 3, this->_internal_tcs_sent_count(), target);
255 }
256
257 // uint32 tcs_dropped_count = 4;
258 if (this->_internal_tcs_dropped_count() != 0) {
259 target = stream->EnsureSpace(target);
260 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
261 4, this->_internal_tcs_dropped_count(), target);
262 }
263
264 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
265 target =
266 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
267 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
268 }
269 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.trigger.opmon.HSISourceModelInfo)
270 return target;
271}
272
274// @@protoc_insertion_point(message_byte_size_start:dunedaq.trigger.opmon.HSISourceModelInfo)
275 ::size_t total_size = 0;
276
277 ::uint32_t cached_has_bits = 0;
278 // Prevent compiler warnings about cached_has_bits being unused
279 (void) cached_has_bits;
280
281 // uint32 received_events_count = 1;
282 if (this->_internal_received_events_count() != 0) {
283 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
285 }
286
287 // uint32 tcs_made_count = 2;
288 if (this->_internal_tcs_made_count() != 0) {
289 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
291 }
292
293 // uint32 tcs_sent_count = 3;
294 if (this->_internal_tcs_sent_count() != 0) {
295 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
297 }
298
299 // uint32 tcs_dropped_count = 4;
300 if (this->_internal_tcs_dropped_count() != 0) {
301 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
303 }
304
305 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
306}
307
308const ::google::protobuf::Message::ClassData HSISourceModelInfo::_class_data_ = {
309 ::google::protobuf::Message::CopyWithSourceCheck,
311};
312const ::google::protobuf::Message::ClassData*HSISourceModelInfo::GetClassData() const { return &_class_data_; }
313
314
315void HSISourceModelInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
316 auto* const _this = static_cast<HSISourceModelInfo*>(&to_msg);
317 auto& from = static_cast<const HSISourceModelInfo&>(from_msg);
318 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.trigger.opmon.HSISourceModelInfo)
319 ABSL_DCHECK_NE(&from, _this);
320 ::uint32_t cached_has_bits = 0;
321 (void) cached_has_bits;
322
323 if (from._internal_received_events_count() != 0) {
324 _this->_internal_set_received_events_count(from._internal_received_events_count());
325 }
326 if (from._internal_tcs_made_count() != 0) {
327 _this->_internal_set_tcs_made_count(from._internal_tcs_made_count());
328 }
329 if (from._internal_tcs_sent_count() != 0) {
330 _this->_internal_set_tcs_sent_count(from._internal_tcs_sent_count());
331 }
332 if (from._internal_tcs_dropped_count() != 0) {
333 _this->_internal_set_tcs_dropped_count(from._internal_tcs_dropped_count());
334 }
335 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
336}
337
339// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.trigger.opmon.HSISourceModelInfo)
340 if (&from == this) return;
341 Clear();
342 MergeFrom(from);
343}
344
345PROTOBUF_NOINLINE bool HSISourceModelInfo::IsInitialized() const {
346 return true;
347}
348
350 using std::swap;
351 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
352 ::google::protobuf::internal::memswap<
353 PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.tcs_dropped_count_)
355 - PROTOBUF_FIELD_OFFSET(HSISourceModelInfo, _impl_.received_events_count_)>(
356 reinterpret_cast<char*>(&_impl_.received_events_count_),
357 reinterpret_cast<char*>(&other->_impl_.received_events_count_));
358}
359
365// @@protoc_insertion_point(namespace_scope)
366} // namespace opmon
367} // namespace trigger
368} // namespace dunedaq
369namespace google {
370namespace protobuf {
371} // namespace protobuf
372} // namespace google
373// @@protoc_insertion_point(global_scope)
374#include "google/protobuf/port_undef.inc"
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
void MergeFrom(const HSISourceModelInfo &from)
void SharedCtor(::google::protobuf::Arena *arena)
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
void CopyFrom(const HSISourceModelInfo &from)
static const ::google::protobuf::internal::TcParseTable< 2, 4, 0, 0, 2 > _table_
::google::protobuf::Metadata GetMetadata() const final
const ::google::protobuf::Message::ClassData * GetClassData() const final
::absl::once_flag descriptor_table_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto_once
const ::uint32_t TableStruct_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto_getter()
const ::_pbi::DescriptorTable descriptor_table_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto
::_pb::Metadata file_level_metadata_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto[1]
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_trigger_2fopmon_2fhsisourcemodel_5finfo_2eproto
static const ::_pb::Message *const file_default_instances[]
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HSISourceModelInfoDefaultTypeInternal _HSISourceModelInfo_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_