DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
DataWriter.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: dfmodules/opmon/DataWriter.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 dfmodules {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR DataWriterInfo::DataWriterInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.records_received_)*/ ::uint64_t{0u},
30 /*decltype(_impl_.records_written_)*/ ::uint64_t{0u},
31 /*decltype(_impl_.new_records_written_)*/ ::uint64_t{0u},
32 /*decltype(_impl_.writing_time_us_)*/ ::uint64_t{0u},
33 /*decltype(_impl_._cached_size_)*/ {},
34 } {}
36 PROTOBUF_CONSTEXPR DataWriterInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
38 union {
40 };
41};
42
43PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
45} // namespace opmon
46} // namespace dfmodules
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::dfmodules::opmon::DataWriterInfo, _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::dfmodules::opmon::DataWriterInfo, _impl_.records_received_),
64 PROTOBUF_FIELD_OFFSET(::dunedaq::dfmodules::opmon::DataWriterInfo, _impl_.records_written_),
65 PROTOBUF_FIELD_OFFSET(::dunedaq::dfmodules::opmon::DataWriterInfo, _impl_.new_records_written_),
66 PROTOBUF_FIELD_OFFSET(::dunedaq::dfmodules::opmon::DataWriterInfo, _impl_.writing_time_us_),
67};
68
69static const ::_pbi::MigrationSchema
70 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
72};
73
77const char descriptor_table_protodef_dfmodules_2fopmon_2fDataWriter_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
78 "\n dfmodules/opmon/DataWriter.proto\022\027dune"
79 "daq.dfmodules.opmon\"y\n\016DataWriterInfo\022\030\n"
80 "\020records_received\030\001 \001(\004\022\027\n\017records_writt"
81 "en\030\002 \001(\004\022\033\n\023new_records_written\030\003 \001(\004\022\027\n"
82 "\017writing_time_us\030\n \001(\004b\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_dfmodules_2fopmon_2fDataWriter_2eproto(&descriptor_table_dfmodules_2fopmon_2fDataWriter_2eproto);
120namespace dunedaq {
121namespace dfmodules {
122namespace opmon {
123// ===================================================================
124
126 public:
127};
128
129DataWriterInfo::DataWriterInfo(::google::protobuf::Arena* arena)
130 : ::google::protobuf::Message(arena) {
131 SharedCtor(arena);
132 // @@protoc_insertion_point(arena_constructor:dunedaq.dfmodules.opmon.DataWriterInfo)
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.dfmodules.opmon.DataWriterInfo)
139}
140inline void DataWriterInfo::SharedCtor(::_pb::Arena* arena) {
141 (void)arena;
142 new (&_impl_) Impl_{
143 decltype(_impl_.records_received_){::uint64_t{0u}},
144 decltype(_impl_.records_written_){::uint64_t{0u}},
145 decltype(_impl_.new_records_written_){::uint64_t{0u}},
146 decltype(_impl_.writing_time_us_){::uint64_t{0u}},
147 /*decltype(_impl_._cached_size_)*/ {},
148 };
149}
151 // @@protoc_insertion_point(destructor:dunedaq.dfmodules.opmon.DataWriterInfo)
152 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
153 SharedDtor();
154}
156 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
157}
161
162PROTOBUF_NOINLINE void DataWriterInfo::Clear() {
163// @@protoc_insertion_point(message_clear_start:dunedaq.dfmodules.opmon.DataWriterInfo)
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_.records_received_, 0, static_cast<::size_t>(
169 reinterpret_cast<char*>(&_impl_.writing_time_us_) -
170 reinterpret_cast<char*>(&_impl_.records_received_)) + sizeof(_impl_.writing_time_us_));
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> DataWriterInfo::_table_ = {
183 {
184 0, // no _has_bits_
185 0, // no _extensions_
186 10, 24, // max_field_number, fast_idx_mask
187 offsetof(decltype(_table_), field_lookup_table),
188 4294966776, // 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 {::_pbi::TcParser::MiniParse, {}},
197 // uint64 records_received = 1;
198 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(DataWriterInfo, _impl_.records_received_), 63>(),
199 {8, 63, 0, PROTOBUF_FIELD_OFFSET(DataWriterInfo, _impl_.records_received_)}},
200 // uint64 records_written = 2;
201 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(DataWriterInfo, _impl_.records_written_), 63>(),
202 {16, 63, 0, PROTOBUF_FIELD_OFFSET(DataWriterInfo, _impl_.records_written_)}},
203 // uint64 new_records_written = 3;
204 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(DataWriterInfo, _impl_.new_records_written_), 63>(),
205 {24, 63, 0, PROTOBUF_FIELD_OFFSET(DataWriterInfo, _impl_.new_records_written_)}},
206 }}, {{
207 65535, 65535
208 }}, {{
209 // uint64 records_received = 1;
210 {PROTOBUF_FIELD_OFFSET(DataWriterInfo, _impl_.records_received_), 0, 0,
211 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
212 // uint64 records_written = 2;
213 {PROTOBUF_FIELD_OFFSET(DataWriterInfo, _impl_.records_written_), 0, 0,
214 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
215 // uint64 new_records_written = 3;
216 {PROTOBUF_FIELD_OFFSET(DataWriterInfo, _impl_.new_records_written_), 0, 0,
217 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
218 // uint64 writing_time_us = 10;
219 {PROTOBUF_FIELD_OFFSET(DataWriterInfo, _impl_.writing_time_us_), 0, 0,
220 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
221 }},
222 // no aux_entries
223 {{
224 }},
225};
226
228 ::uint8_t* target,
229 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
230 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.dfmodules.opmon.DataWriterInfo)
231 ::uint32_t cached_has_bits = 0;
232 (void)cached_has_bits;
233
234 // uint64 records_received = 1;
235 if (this->_internal_records_received() != 0) {
236 target = stream->EnsureSpace(target);
237 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
238 1, this->_internal_records_received(), target);
239 }
240
241 // uint64 records_written = 2;
242 if (this->_internal_records_written() != 0) {
243 target = stream->EnsureSpace(target);
244 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
245 2, this->_internal_records_written(), target);
246 }
247
248 // uint64 new_records_written = 3;
249 if (this->_internal_new_records_written() != 0) {
250 target = stream->EnsureSpace(target);
251 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
252 3, this->_internal_new_records_written(), target);
253 }
254
255 // uint64 writing_time_us = 10;
256 if (this->_internal_writing_time_us() != 0) {
257 target = stream->EnsureSpace(target);
258 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
259 10, this->_internal_writing_time_us(), target);
260 }
261
262 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
263 target =
264 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
265 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
266 }
267 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.dfmodules.opmon.DataWriterInfo)
268 return target;
269}
270
272// @@protoc_insertion_point(message_byte_size_start:dunedaq.dfmodules.opmon.DataWriterInfo)
273 ::size_t total_size = 0;
274
275 ::uint32_t cached_has_bits = 0;
276 // Prevent compiler warnings about cached_has_bits being unused
277 (void) cached_has_bits;
278
279 // uint64 records_received = 1;
280 if (this->_internal_records_received() != 0) {
281 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
283 }
284
285 // uint64 records_written = 2;
286 if (this->_internal_records_written() != 0) {
287 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
289 }
290
291 // uint64 new_records_written = 3;
292 if (this->_internal_new_records_written() != 0) {
293 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
295 }
296
297 // uint64 writing_time_us = 10;
298 if (this->_internal_writing_time_us() != 0) {
299 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
301 }
302
303 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
304}
305
306const ::google::protobuf::Message::ClassData DataWriterInfo::_class_data_ = {
307 ::google::protobuf::Message::CopyWithSourceCheck,
309};
310const ::google::protobuf::Message::ClassData*DataWriterInfo::GetClassData() const { return &_class_data_; }
311
312
313void DataWriterInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
314 auto* const _this = static_cast<DataWriterInfo*>(&to_msg);
315 auto& from = static_cast<const DataWriterInfo&>(from_msg);
316 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.dfmodules.opmon.DataWriterInfo)
317 ABSL_DCHECK_NE(&from, _this);
318 ::uint32_t cached_has_bits = 0;
319 (void) cached_has_bits;
320
321 if (from._internal_records_received() != 0) {
322 _this->_internal_set_records_received(from._internal_records_received());
323 }
324 if (from._internal_records_written() != 0) {
325 _this->_internal_set_records_written(from._internal_records_written());
326 }
327 if (from._internal_new_records_written() != 0) {
328 _this->_internal_set_new_records_written(from._internal_new_records_written());
329 }
330 if (from._internal_writing_time_us() != 0) {
331 _this->_internal_set_writing_time_us(from._internal_writing_time_us());
332 }
333 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
334}
335
337// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.dfmodules.opmon.DataWriterInfo)
338 if (&from == this) return;
339 Clear();
340 MergeFrom(from);
341}
342
343PROTOBUF_NOINLINE bool DataWriterInfo::IsInitialized() const {
344 return true;
345}
346
348 using std::swap;
349 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
350 ::google::protobuf::internal::memswap<
351 PROTOBUF_FIELD_OFFSET(DataWriterInfo, _impl_.writing_time_us_)
353 - PROTOBUF_FIELD_OFFSET(DataWriterInfo, _impl_.records_received_)>(
354 reinterpret_cast<char*>(&_impl_.records_received_),
355 reinterpret_cast<char*>(&other->_impl_.records_received_));
356}
357
363// @@protoc_insertion_point(namespace_scope)
364} // namespace opmon
365} // namespace dfmodules
366} // namespace dunedaq
367namespace google {
368namespace protobuf {
369} // namespace protobuf
370} // namespace google
371// @@protoc_insertion_point(global_scope)
372#include "google/protobuf/port_undef.inc"
::_pb::Metadata file_level_metadata_dfmodules_2fopmon_2fDataWriter_2eproto[1]
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_dfmodules_2fopmon_2fDataWriter_2eproto
const ::_pbi::DescriptorTable descriptor_table_dfmodules_2fopmon_2fDataWriter_2eproto
const ::uint32_t TableStruct_dfmodules_2fopmon_2fDataWriter_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_dfmodules_2fopmon_2fDataWriter_2eproto
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_dfmodules_2fopmon_2fDataWriter_2eproto_getter()
static const ::_pb::Message *const file_default_instances[]
::absl::once_flag descriptor_table_dfmodules_2fopmon_2fDataWriter_2eproto_once
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
::google::protobuf::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::google::protobuf::Message::ClassData * GetClassData() const final
void MergeFrom(const DataWriterInfo &from)
void InternalSwap(DataWriterInfo *other)
void CopyFrom(const DataWriterInfo &from)
static const ::google::protobuf::internal::TcParseTable< 2, 4, 0, 0, 2 > _table_
::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 SetCachedSize(int size) const final
void SharedCtor(::google::protobuf::Arena *arena)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataWriterInfoDefaultTypeInternal _DataWriterInfo_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_