DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SocketWriterModule.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: asiolibs/opmon/SocketWriterModule.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 asiolibs {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR SocketWriterStats::SocketWriterStats(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.sum_payloads_)*/ ::uint64_t{0u},
30 /*decltype(_impl_.num_payloads_)*/ ::uint64_t{0u},
31 /*decltype(_impl_.sum_bytes_)*/ ::uint64_t{0u},
32 /*decltype(_impl_.num_data_input_timeouts_)*/ ::uint64_t{0u},
33 /*decltype(_impl_.rate_payloads_consumed_)*/ 0,
34 /*decltype(_impl_._cached_size_)*/ {},
35 } {}
37 PROTOBUF_CONSTEXPR SocketWriterStatsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
39 union {
41 };
42};
43
44PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
46} // namespace opmon
47} // namespace asiolibs
48} // namespace dunedaq
50static constexpr const ::_pb::EnumDescriptor**
52static constexpr const ::_pb::ServiceDescriptor**
55 protodesc_cold) = {
56 ~0u, // no _has_bits_
57 PROTOBUF_FIELD_OFFSET(::dunedaq::asiolibs::opmon::SocketWriterStats, _internal_metadata_),
58 ~0u, // no _extensions_
59 ~0u, // no _oneof_case_
60 ~0u, // no _weak_field_map_
61 ~0u, // no _inlined_string_donated_
62 ~0u, // no _split_
63 ~0u, // no sizeof(Split)
64 PROTOBUF_FIELD_OFFSET(::dunedaq::asiolibs::opmon::SocketWriterStats, _impl_.sum_payloads_),
65 PROTOBUF_FIELD_OFFSET(::dunedaq::asiolibs::opmon::SocketWriterStats, _impl_.num_payloads_),
66 PROTOBUF_FIELD_OFFSET(::dunedaq::asiolibs::opmon::SocketWriterStats, _impl_.sum_bytes_),
67 PROTOBUF_FIELD_OFFSET(::dunedaq::asiolibs::opmon::SocketWriterStats, _impl_.num_data_input_timeouts_),
68 PROTOBUF_FIELD_OFFSET(::dunedaq::asiolibs::opmon::SocketWriterStats, _impl_.rate_payloads_consumed_),
69};
70
71static const ::_pbi::MigrationSchema
72 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
74};
75
79const char descriptor_table_protodef_asiolibs_2fopmon_2fSocketWriterModule_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
80 "\n\'asiolibs/opmon/SocketWriterModule.prot"
81 "o\022\026dunedaq.asiolibs.opmon\"\223\001\n\021SocketWrit"
82 "erStats\022\024\n\014sum_payloads\030\001 \001(\004\022\024\n\014num_pay"
83 "loads\030\002 \001(\004\022\021\n\tsum_bytes\030\003 \001(\004\022\037\n\027num_da"
84 "ta_input_timeouts\030\004 \001(\004\022\036\n\026rate_payloads"
85 "_consumed\030\005 \001(\001b\006proto3"
86};
105
106// This function exists to be marked as weak.
107// It can significantly speed up compilation by breaking up LLVM's SCC
108// in the .pb.cc translation units. Large translation units see a
109// reduction of more than 35% of walltime for optimized builds. Without
110// the weak attribute all the messages in the file, including all the
111// vtables and everything they use become part of the same SCC through
112// a cycle like:
113// GetMetadata -> descriptor table -> default instances ->
114// vtables -> GetMetadata
115// By adding a weak function here we break the connection from the
116// individual vtables back into the descriptor table.
120// Force running AddDescriptors() at dynamic initialization time.
121PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
122static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_asiolibs_2fopmon_2fSocketWriterModule_2eproto(&descriptor_table_asiolibs_2fopmon_2fSocketWriterModule_2eproto);
123namespace dunedaq {
124namespace asiolibs {
125namespace opmon {
126// ===================================================================
127
129 public:
130};
131
132SocketWriterStats::SocketWriterStats(::google::protobuf::Arena* arena)
133 : ::google::protobuf::Message(arena) {
134 SharedCtor(arena);
135 // @@protoc_insertion_point(arena_constructor:dunedaq.asiolibs.opmon.SocketWriterStats)
136}
138 : ::google::protobuf::Message(), _impl_(from._impl_) {
139 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
140 from._internal_metadata_);
141 // @@protoc_insertion_point(copy_constructor:dunedaq.asiolibs.opmon.SocketWriterStats)
142}
143inline void SocketWriterStats::SharedCtor(::_pb::Arena* arena) {
144 (void)arena;
145 new (&_impl_) Impl_{
146 decltype(_impl_.sum_payloads_){::uint64_t{0u}},
147 decltype(_impl_.num_payloads_){::uint64_t{0u}},
148 decltype(_impl_.sum_bytes_){::uint64_t{0u}},
149 decltype(_impl_.num_data_input_timeouts_){::uint64_t{0u}},
150 decltype(_impl_.rate_payloads_consumed_){0},
151 /*decltype(_impl_._cached_size_)*/ {},
152 };
153}
155 // @@protoc_insertion_point(destructor:dunedaq.asiolibs.opmon.SocketWriterStats)
156 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
157 SharedDtor();
158}
160 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
161}
165
166PROTOBUF_NOINLINE void SocketWriterStats::Clear() {
167// @@protoc_insertion_point(message_clear_start:dunedaq.asiolibs.opmon.SocketWriterStats)
168 ::uint32_t cached_has_bits = 0;
169 // Prevent compiler warnings about cached_has_bits being unused
170 (void) cached_has_bits;
171
172 ::memset(&_impl_.sum_payloads_, 0, static_cast<::size_t>(
173 reinterpret_cast<char*>(&_impl_.rate_payloads_consumed_) -
174 reinterpret_cast<char*>(&_impl_.sum_payloads_)) + sizeof(_impl_.rate_payloads_consumed_));
175 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
176}
177
179 const char* ptr, ::_pbi::ParseContext* ctx) {
180 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
181 return ptr;
182}
183
184
185PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
186const ::_pbi::TcParseTable<3, 5, 0, 0, 2> SocketWriterStats::_table_ = {
187 {
188 0, // no _has_bits_
189 0, // no _extensions_
190 5, 56, // max_field_number, fast_idx_mask
191 offsetof(decltype(_table_), field_lookup_table),
192 4294967264, // skipmap
193 offsetof(decltype(_table_), field_entries),
194 5, // num_field_entries
195 0, // num_aux_entries
196 offsetof(decltype(_table_), field_names), // no aux_entries
198 ::_pbi::TcParser::GenericFallback, // fallback
199 }, {{
200 {::_pbi::TcParser::MiniParse, {}},
201 // uint64 sum_payloads = 1;
202 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SocketWriterStats, _impl_.sum_payloads_), 63>(),
203 {8, 63, 0, PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.sum_payloads_)}},
204 // uint64 num_payloads = 2;
205 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SocketWriterStats, _impl_.num_payloads_), 63>(),
206 {16, 63, 0, PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.num_payloads_)}},
207 // uint64 sum_bytes = 3;
208 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SocketWriterStats, _impl_.sum_bytes_), 63>(),
209 {24, 63, 0, PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.sum_bytes_)}},
210 // uint64 num_data_input_timeouts = 4;
211 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SocketWriterStats, _impl_.num_data_input_timeouts_), 63>(),
212 {32, 63, 0, PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.num_data_input_timeouts_)}},
213 // double rate_payloads_consumed = 5;
214 {::_pbi::TcParser::FastF64S1,
215 {41, 63, 0, PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.rate_payloads_consumed_)}},
216 {::_pbi::TcParser::MiniParse, {}},
217 {::_pbi::TcParser::MiniParse, {}},
218 }}, {{
219 65535, 65535
220 }}, {{
221 // uint64 sum_payloads = 1;
222 {PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.sum_payloads_), 0, 0,
223 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
224 // uint64 num_payloads = 2;
225 {PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.num_payloads_), 0, 0,
226 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
227 // uint64 sum_bytes = 3;
228 {PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.sum_bytes_), 0, 0,
229 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
230 // uint64 num_data_input_timeouts = 4;
231 {PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.num_data_input_timeouts_), 0, 0,
232 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
233 // double rate_payloads_consumed = 5;
234 {PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.rate_payloads_consumed_), 0, 0,
235 (0 | ::_fl::kFcSingular | ::_fl::kDouble)},
236 }},
237 // no aux_entries
238 {{
239 }},
240};
241
243 ::uint8_t* target,
244 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
245 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.asiolibs.opmon.SocketWriterStats)
246 ::uint32_t cached_has_bits = 0;
247 (void)cached_has_bits;
248
249 // uint64 sum_payloads = 1;
250 if (this->_internal_sum_payloads() != 0) {
251 target = stream->EnsureSpace(target);
252 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
253 1, this->_internal_sum_payloads(), target);
254 }
255
256 // uint64 num_payloads = 2;
257 if (this->_internal_num_payloads() != 0) {
258 target = stream->EnsureSpace(target);
259 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
260 2, this->_internal_num_payloads(), target);
261 }
262
263 // uint64 sum_bytes = 3;
264 if (this->_internal_sum_bytes() != 0) {
265 target = stream->EnsureSpace(target);
266 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
267 3, this->_internal_sum_bytes(), target);
268 }
269
270 // uint64 num_data_input_timeouts = 4;
271 if (this->_internal_num_data_input_timeouts() != 0) {
272 target = stream->EnsureSpace(target);
273 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
274 4, this->_internal_num_data_input_timeouts(), target);
275 }
276
277 // double rate_payloads_consumed = 5;
278 static_assert(sizeof(::uint64_t) == sizeof(double),
279 "Code assumes ::uint64_t and double are the same size.");
280 double tmp_rate_payloads_consumed = this->_internal_rate_payloads_consumed();
281 ::uint64_t raw_rate_payloads_consumed;
282 memcpy(&raw_rate_payloads_consumed, &tmp_rate_payloads_consumed, sizeof(tmp_rate_payloads_consumed));
283 if (raw_rate_payloads_consumed != 0) {
284 target = stream->EnsureSpace(target);
285 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
286 5, this->_internal_rate_payloads_consumed(), target);
287 }
288
289 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
290 target =
291 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
292 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
293 }
294 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.asiolibs.opmon.SocketWriterStats)
295 return target;
296}
297
299// @@protoc_insertion_point(message_byte_size_start:dunedaq.asiolibs.opmon.SocketWriterStats)
300 ::size_t total_size = 0;
301
302 ::uint32_t cached_has_bits = 0;
303 // Prevent compiler warnings about cached_has_bits being unused
304 (void) cached_has_bits;
305
306 // uint64 sum_payloads = 1;
307 if (this->_internal_sum_payloads() != 0) {
308 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
309 this->_internal_sum_payloads());
310 }
311
312 // uint64 num_payloads = 2;
313 if (this->_internal_num_payloads() != 0) {
314 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
315 this->_internal_num_payloads());
316 }
317
318 // uint64 sum_bytes = 3;
319 if (this->_internal_sum_bytes() != 0) {
320 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
321 this->_internal_sum_bytes());
322 }
323
324 // uint64 num_data_input_timeouts = 4;
325 if (this->_internal_num_data_input_timeouts() != 0) {
326 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
328 }
329
330 // double rate_payloads_consumed = 5;
331 static_assert(sizeof(::uint64_t) == sizeof(double),
332 "Code assumes ::uint64_t and double are the same size.");
333 double tmp_rate_payloads_consumed = this->_internal_rate_payloads_consumed();
334 ::uint64_t raw_rate_payloads_consumed;
335 memcpy(&raw_rate_payloads_consumed, &tmp_rate_payloads_consumed, sizeof(tmp_rate_payloads_consumed));
336 if (raw_rate_payloads_consumed != 0) {
337 total_size += 9;
338 }
339
340 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
341}
342
343const ::google::protobuf::Message::ClassData SocketWriterStats::_class_data_ = {
344 ::google::protobuf::Message::CopyWithSourceCheck,
346};
347const ::google::protobuf::Message::ClassData*SocketWriterStats::GetClassData() const { return &_class_data_; }
348
349
350void SocketWriterStats::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
351 auto* const _this = static_cast<SocketWriterStats*>(&to_msg);
352 auto& from = static_cast<const SocketWriterStats&>(from_msg);
353 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.asiolibs.opmon.SocketWriterStats)
354 ABSL_DCHECK_NE(&from, _this);
355 ::uint32_t cached_has_bits = 0;
356 (void) cached_has_bits;
357
358 if (from._internal_sum_payloads() != 0) {
359 _this->_internal_set_sum_payloads(from._internal_sum_payloads());
360 }
361 if (from._internal_num_payloads() != 0) {
362 _this->_internal_set_num_payloads(from._internal_num_payloads());
363 }
364 if (from._internal_sum_bytes() != 0) {
365 _this->_internal_set_sum_bytes(from._internal_sum_bytes());
366 }
367 if (from._internal_num_data_input_timeouts() != 0) {
368 _this->_internal_set_num_data_input_timeouts(from._internal_num_data_input_timeouts());
369 }
370 static_assert(sizeof(::uint64_t) == sizeof(double),
371 "Code assumes ::uint64_t and double are the same size.");
372 double tmp_rate_payloads_consumed = from._internal_rate_payloads_consumed();
373 ::uint64_t raw_rate_payloads_consumed;
374 memcpy(&raw_rate_payloads_consumed, &tmp_rate_payloads_consumed, sizeof(tmp_rate_payloads_consumed));
375 if (raw_rate_payloads_consumed != 0) {
376 _this->_internal_set_rate_payloads_consumed(from._internal_rate_payloads_consumed());
377 }
378 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
379}
380
382// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.asiolibs.opmon.SocketWriterStats)
383 if (&from == this) return;
384 Clear();
385 MergeFrom(from);
386}
387
388PROTOBUF_NOINLINE bool SocketWriterStats::IsInitialized() const {
389 return true;
390}
391
393 using std::swap;
394 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
395 ::google::protobuf::internal::memswap<
396 PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.rate_payloads_consumed_)
398 - PROTOBUF_FIELD_OFFSET(SocketWriterStats, _impl_.sum_payloads_)>(
399 reinterpret_cast<char*>(&_impl_.sum_payloads_),
400 reinterpret_cast<char*>(&other->_impl_.sum_payloads_));
401}
402
408// @@protoc_insertion_point(namespace_scope)
409} // namespace opmon
410} // namespace asiolibs
411} // namespace dunedaq
412namespace google {
413namespace protobuf {
414} // namespace protobuf
415} // namespace google
416// @@protoc_insertion_point(global_scope)
417#include "google/protobuf/port_undef.inc"
::absl::once_flag descriptor_table_asiolibs_2fopmon_2fSocketWriterModule_2eproto_once
const ::uint32_t TableStruct_asiolibs_2fopmon_2fSocketWriterModule_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_asiolibs_2fopmon_2fSocketWriterModule_2eproto
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_asiolibs_2fopmon_2fSocketWriterModule_2eproto_getter()
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_asiolibs_2fopmon_2fSocketWriterModule_2eproto
::_pb::Metadata file_level_metadata_asiolibs_2fopmon_2fSocketWriterModule_2eproto[1]
static const ::_pb::Message *const file_default_instances[]
const ::_pbi::DescriptorTable descriptor_table_asiolibs_2fopmon_2fSocketWriterModule_2eproto
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
void SharedCtor(::google::protobuf::Arena *arena)
static const ::google::protobuf::internal::TcParseTable< 3, 5, 0, 0, 2 > _table_
void MergeFrom(const SocketWriterStats &from)
void CopyFrom(const SocketWriterStats &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::google::protobuf::Message::ClassData * GetClassData() const final
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) 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 SocketWriterStatsDefaultTypeInternal _SocketWriterStats_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_