DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
randomtcmaker_info.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: trigger/opmon/randomtcmaker_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 RandomTCMakerInfo::RandomTCMakerInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.tc_made_count_)*/ 0u,
30 /*decltype(_impl_.tc_sent_count_)*/ 0u,
31 /*decltype(_impl_.tc_failed_sent_count_)*/ 0u,
32 /*decltype(_impl_._cached_size_)*/ {},
33 } {}
35 PROTOBUF_CONSTEXPR RandomTCMakerInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
37 union {
39 };
40};
41
42PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
44} // namespace opmon
45} // namespace trigger
46} // namespace dunedaq
48static constexpr const ::_pb::EnumDescriptor**
50static constexpr const ::_pb::ServiceDescriptor**
53 protodesc_cold) = {
54 ~0u, // no _has_bits_
55 PROTOBUF_FIELD_OFFSET(::dunedaq::trigger::opmon::RandomTCMakerInfo, _internal_metadata_),
56 ~0u, // no _extensions_
57 ~0u, // no _oneof_case_
58 ~0u, // no _weak_field_map_
59 ~0u, // no _inlined_string_donated_
60 ~0u, // no _split_
61 ~0u, // no sizeof(Split)
62 PROTOBUF_FIELD_OFFSET(::dunedaq::trigger::opmon::RandomTCMakerInfo, _impl_.tc_made_count_),
63 PROTOBUF_FIELD_OFFSET(::dunedaq::trigger::opmon::RandomTCMakerInfo, _impl_.tc_sent_count_),
64 PROTOBUF_FIELD_OFFSET(::dunedaq::trigger::opmon::RandomTCMakerInfo, _impl_.tc_failed_sent_count_),
65};
66
67static const ::_pbi::MigrationSchema
68 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
70};
71
75const char descriptor_table_protodef_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
76 "\n&trigger/opmon/randomtcmaker_info.proto"
77 "\022\025dunedaq.trigger.opmon\"_\n\021RandomTCMaker"
78 "Info\022\025\n\rtc_made_count\030\001 \001(\r\022\025\n\rtc_sent_c"
79 "ount\030\002 \001(\r\022\034\n\024tc_failed_sent_count\030\003 \001(\r"
80 "b\006proto3"
81};
100
101// This function exists to be marked as weak.
102// It can significantly speed up compilation by breaking up LLVM's SCC
103// in the .pb.cc translation units. Large translation units see a
104// reduction of more than 35% of walltime for optimized builds. Without
105// the weak attribute all the messages in the file, including all the
106// vtables and everything they use become part of the same SCC through
107// a cycle like:
108// GetMetadata -> descriptor table -> default instances ->
109// vtables -> GetMetadata
110// By adding a weak function here we break the connection from the
111// individual vtables back into the descriptor table.
115// Force running AddDescriptors() at dynamic initialization time.
116PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
117static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto(&descriptor_table_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto);
118namespace dunedaq {
119namespace trigger {
120namespace opmon {
121// ===================================================================
122
124 public:
125};
126
127RandomTCMakerInfo::RandomTCMakerInfo(::google::protobuf::Arena* arena)
128 : ::google::protobuf::Message(arena) {
129 SharedCtor(arena);
130 // @@protoc_insertion_point(arena_constructor:dunedaq.trigger.opmon.RandomTCMakerInfo)
131}
133 : ::google::protobuf::Message(), _impl_(from._impl_) {
134 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
135 from._internal_metadata_);
136 // @@protoc_insertion_point(copy_constructor:dunedaq.trigger.opmon.RandomTCMakerInfo)
137}
138inline void RandomTCMakerInfo::SharedCtor(::_pb::Arena* arena) {
139 (void)arena;
140 new (&_impl_) Impl_{
141 decltype(_impl_.tc_made_count_){0u},
142 decltype(_impl_.tc_sent_count_){0u},
143 decltype(_impl_.tc_failed_sent_count_){0u},
144 /*decltype(_impl_._cached_size_)*/ {},
145 };
146}
148 // @@protoc_insertion_point(destructor:dunedaq.trigger.opmon.RandomTCMakerInfo)
149 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
150 SharedDtor();
151}
153 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
154}
158
159PROTOBUF_NOINLINE void RandomTCMakerInfo::Clear() {
160// @@protoc_insertion_point(message_clear_start:dunedaq.trigger.opmon.RandomTCMakerInfo)
161 ::uint32_t cached_has_bits = 0;
162 // Prevent compiler warnings about cached_has_bits being unused
163 (void) cached_has_bits;
164
165 ::memset(&_impl_.tc_made_count_, 0, static_cast<::size_t>(
166 reinterpret_cast<char*>(&_impl_.tc_failed_sent_count_) -
167 reinterpret_cast<char*>(&_impl_.tc_made_count_)) + sizeof(_impl_.tc_failed_sent_count_));
168 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
169}
170
172 const char* ptr, ::_pbi::ParseContext* ctx) {
173 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
174 return ptr;
175}
176
177
178PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
179const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RandomTCMakerInfo::_table_ = {
180 {
181 0, // no _has_bits_
182 0, // no _extensions_
183 3, 24, // max_field_number, fast_idx_mask
184 offsetof(decltype(_table_), field_lookup_table),
185 4294967288, // skipmap
186 offsetof(decltype(_table_), field_entries),
187 3, // num_field_entries
188 0, // num_aux_entries
189 offsetof(decltype(_table_), field_names), // no aux_entries
191 ::_pbi::TcParser::GenericFallback, // fallback
192 }, {{
193 {::_pbi::TcParser::MiniParse, {}},
194 // uint32 tc_made_count = 1;
195 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RandomTCMakerInfo, _impl_.tc_made_count_), 63>(),
196 {8, 63, 0, PROTOBUF_FIELD_OFFSET(RandomTCMakerInfo, _impl_.tc_made_count_)}},
197 // uint32 tc_sent_count = 2;
198 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RandomTCMakerInfo, _impl_.tc_sent_count_), 63>(),
199 {16, 63, 0, PROTOBUF_FIELD_OFFSET(RandomTCMakerInfo, _impl_.tc_sent_count_)}},
200 // uint32 tc_failed_sent_count = 3;
201 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RandomTCMakerInfo, _impl_.tc_failed_sent_count_), 63>(),
202 {24, 63, 0, PROTOBUF_FIELD_OFFSET(RandomTCMakerInfo, _impl_.tc_failed_sent_count_)}},
203 }}, {{
204 65535, 65535
205 }}, {{
206 // uint32 tc_made_count = 1;
207 {PROTOBUF_FIELD_OFFSET(RandomTCMakerInfo, _impl_.tc_made_count_), 0, 0,
208 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
209 // uint32 tc_sent_count = 2;
210 {PROTOBUF_FIELD_OFFSET(RandomTCMakerInfo, _impl_.tc_sent_count_), 0, 0,
211 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
212 // uint32 tc_failed_sent_count = 3;
213 {PROTOBUF_FIELD_OFFSET(RandomTCMakerInfo, _impl_.tc_failed_sent_count_), 0, 0,
214 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
215 }},
216 // no aux_entries
217 {{
218 }},
219};
220
222 ::uint8_t* target,
223 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
224 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.trigger.opmon.RandomTCMakerInfo)
225 ::uint32_t cached_has_bits = 0;
226 (void)cached_has_bits;
227
228 // uint32 tc_made_count = 1;
229 if (this->_internal_tc_made_count() != 0) {
230 target = stream->EnsureSpace(target);
231 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
232 1, this->_internal_tc_made_count(), target);
233 }
234
235 // uint32 tc_sent_count = 2;
236 if (this->_internal_tc_sent_count() != 0) {
237 target = stream->EnsureSpace(target);
238 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
239 2, this->_internal_tc_sent_count(), target);
240 }
241
242 // uint32 tc_failed_sent_count = 3;
243 if (this->_internal_tc_failed_sent_count() != 0) {
244 target = stream->EnsureSpace(target);
245 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
246 3, this->_internal_tc_failed_sent_count(), target);
247 }
248
249 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
250 target =
251 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
252 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
253 }
254 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.trigger.opmon.RandomTCMakerInfo)
255 return target;
256}
257
259// @@protoc_insertion_point(message_byte_size_start:dunedaq.trigger.opmon.RandomTCMakerInfo)
260 ::size_t total_size = 0;
261
262 ::uint32_t cached_has_bits = 0;
263 // Prevent compiler warnings about cached_has_bits being unused
264 (void) cached_has_bits;
265
266 // uint32 tc_made_count = 1;
267 if (this->_internal_tc_made_count() != 0) {
268 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
270 }
271
272 // uint32 tc_sent_count = 2;
273 if (this->_internal_tc_sent_count() != 0) {
274 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
276 }
277
278 // uint32 tc_failed_sent_count = 3;
279 if (this->_internal_tc_failed_sent_count() != 0) {
280 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
282 }
283
284 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
285}
286
287const ::google::protobuf::Message::ClassData RandomTCMakerInfo::_class_data_ = {
288 ::google::protobuf::Message::CopyWithSourceCheck,
290};
291const ::google::protobuf::Message::ClassData*RandomTCMakerInfo::GetClassData() const { return &_class_data_; }
292
293
294void RandomTCMakerInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
295 auto* const _this = static_cast<RandomTCMakerInfo*>(&to_msg);
296 auto& from = static_cast<const RandomTCMakerInfo&>(from_msg);
297 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.trigger.opmon.RandomTCMakerInfo)
298 ABSL_DCHECK_NE(&from, _this);
299 ::uint32_t cached_has_bits = 0;
300 (void) cached_has_bits;
301
302 if (from._internal_tc_made_count() != 0) {
303 _this->_internal_set_tc_made_count(from._internal_tc_made_count());
304 }
305 if (from._internal_tc_sent_count() != 0) {
306 _this->_internal_set_tc_sent_count(from._internal_tc_sent_count());
307 }
308 if (from._internal_tc_failed_sent_count() != 0) {
309 _this->_internal_set_tc_failed_sent_count(from._internal_tc_failed_sent_count());
310 }
311 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
312}
313
315// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.trigger.opmon.RandomTCMakerInfo)
316 if (&from == this) return;
317 Clear();
318 MergeFrom(from);
319}
320
321PROTOBUF_NOINLINE bool RandomTCMakerInfo::IsInitialized() const {
322 return true;
323}
324
326 using std::swap;
327 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
328 ::google::protobuf::internal::memswap<
329 PROTOBUF_FIELD_OFFSET(RandomTCMakerInfo, _impl_.tc_failed_sent_count_)
331 - PROTOBUF_FIELD_OFFSET(RandomTCMakerInfo, _impl_.tc_made_count_)>(
332 reinterpret_cast<char*>(&_impl_.tc_made_count_),
333 reinterpret_cast<char*>(&other->_impl_.tc_made_count_));
334}
335
341// @@protoc_insertion_point(namespace_scope)
342} // namespace opmon
343} // namespace trigger
344} // namespace dunedaq
345namespace google {
346namespace protobuf {
347} // namespace protobuf
348} // namespace google
349// @@protoc_insertion_point(global_scope)
350#include "google/protobuf/port_undef.inc"
void MergeFrom(const RandomTCMakerInfo &from)
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, 0, 2 > _table_
void CopyFrom(const RandomTCMakerInfo &from)
void SharedCtor(::google::protobuf::Arena *arena)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
const ::google::protobuf::Message::ClassData * GetClassData() const final
::google::protobuf::Metadata GetMetadata() const final
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RandomTCMakerInfoDefaultTypeInternal _RandomTCMakerInfo_default_instance_
Including Qt Headers.
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto
const ::uint32_t TableStruct_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto_getter()
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto
const ::_pbi::DescriptorTable descriptor_table_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto
static const ::_pb::Message *const file_default_instances[]
::absl::once_flag descriptor_table_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto_once
::_pb::Metadata file_level_metadata_trigger_2fopmon_2frandomtcmaker_5finfo_2eproto[1]
mutable::google::protobuf::internal::CachedSize _cached_size_