DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
DataStore.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: dfmodules/opmon/DataStore.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 HDF5DataStoreInfo::HDF5DataStoreInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.new_bytes_output_)*/ ::uint64_t{0u},
30 /*decltype(_impl_.bytes_in_file_)*/ ::uint64_t{0u},
31 /*decltype(_impl_.new_written_object_)*/ ::uint64_t{0u},
32 /*decltype(_impl_.written_files_)*/ 0u,
33 /*decltype(_impl_._cached_size_)*/ {},
34 } {}
36 PROTOBUF_CONSTEXPR HDF5DataStoreInfoDefaultTypeInternal() : _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::HDF5DataStoreInfo, _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::HDF5DataStoreInfo, _impl_.new_bytes_output_),
64 PROTOBUF_FIELD_OFFSET(::dunedaq::dfmodules::opmon::HDF5DataStoreInfo, _impl_.bytes_in_file_),
65 PROTOBUF_FIELD_OFFSET(::dunedaq::dfmodules::opmon::HDF5DataStoreInfo, _impl_.written_files_),
66 PROTOBUF_FIELD_OFFSET(::dunedaq::dfmodules::opmon::HDF5DataStoreInfo, _impl_.new_written_object_),
67};
68
69static const ::_pbi::MigrationSchema
70 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
72};
73
77const char descriptor_table_protodef_dfmodules_2fopmon_2fDataStore_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
78 "\n\037dfmodules/opmon/DataStore.proto\022\027duned"
79 "aq.dfmodules.opmon\"w\n\021HDF5DataStoreInfo\022"
80 "\030\n\020new_bytes_output\030\001 \001(\004\022\025\n\rbytes_in_fi"
81 "le\030\002 \001(\004\022\025\n\rwritten_files\030\003 \001(\r\022\032\n\022new_w"
82 "ritten_object\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_2fDataStore_2eproto(&descriptor_table_dfmodules_2fopmon_2fDataStore_2eproto);
120namespace dunedaq {
121namespace dfmodules {
122namespace opmon {
123// ===================================================================
124
126 public:
127};
128
129HDF5DataStoreInfo::HDF5DataStoreInfo(::google::protobuf::Arena* arena)
130 : ::google::protobuf::Message(arena) {
131 SharedCtor(arena);
132 // @@protoc_insertion_point(arena_constructor:dunedaq.dfmodules.opmon.HDF5DataStoreInfo)
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.HDF5DataStoreInfo)
139}
140inline void HDF5DataStoreInfo::SharedCtor(::_pb::Arena* arena) {
141 (void)arena;
142 new (&_impl_) Impl_{
143 decltype(_impl_.new_bytes_output_){::uint64_t{0u}},
144 decltype(_impl_.bytes_in_file_){::uint64_t{0u}},
145 decltype(_impl_.new_written_object_){::uint64_t{0u}},
146 decltype(_impl_.written_files_){0u},
147 /*decltype(_impl_._cached_size_)*/ {},
148 };
149}
151 // @@protoc_insertion_point(destructor:dunedaq.dfmodules.opmon.HDF5DataStoreInfo)
152 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
153 SharedDtor();
154}
156 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
157}
161
162PROTOBUF_NOINLINE void HDF5DataStoreInfo::Clear() {
163// @@protoc_insertion_point(message_clear_start:dunedaq.dfmodules.opmon.HDF5DataStoreInfo)
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_.new_bytes_output_, 0, static_cast<::size_t>(
169 reinterpret_cast<char*>(&_impl_.written_files_) -
170 reinterpret_cast<char*>(&_impl_.new_bytes_output_)) + sizeof(_impl_.written_files_));
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> HDF5DataStoreInfo::_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 new_bytes_output = 1;
198 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HDF5DataStoreInfo, _impl_.new_bytes_output_), 63>(),
199 {8, 63, 0, PROTOBUF_FIELD_OFFSET(HDF5DataStoreInfo, _impl_.new_bytes_output_)}},
200 // uint64 bytes_in_file = 2;
201 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HDF5DataStoreInfo, _impl_.bytes_in_file_), 63>(),
202 {16, 63, 0, PROTOBUF_FIELD_OFFSET(HDF5DataStoreInfo, _impl_.bytes_in_file_)}},
203 // uint32 written_files = 3;
204 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(HDF5DataStoreInfo, _impl_.written_files_), 63>(),
205 {24, 63, 0, PROTOBUF_FIELD_OFFSET(HDF5DataStoreInfo, _impl_.written_files_)}},
206 }}, {{
207 65535, 65535
208 }}, {{
209 // uint64 new_bytes_output = 1;
210 {PROTOBUF_FIELD_OFFSET(HDF5DataStoreInfo, _impl_.new_bytes_output_), 0, 0,
211 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
212 // uint64 bytes_in_file = 2;
213 {PROTOBUF_FIELD_OFFSET(HDF5DataStoreInfo, _impl_.bytes_in_file_), 0, 0,
214 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
215 // uint32 written_files = 3;
216 {PROTOBUF_FIELD_OFFSET(HDF5DataStoreInfo, _impl_.written_files_), 0, 0,
217 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
218 // uint64 new_written_object = 10;
219 {PROTOBUF_FIELD_OFFSET(HDF5DataStoreInfo, _impl_.new_written_object_), 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.HDF5DataStoreInfo)
231 ::uint32_t cached_has_bits = 0;
232 (void)cached_has_bits;
233
234 // uint64 new_bytes_output = 1;
235 if (this->_internal_new_bytes_output() != 0) {
236 target = stream->EnsureSpace(target);
237 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
238 1, this->_internal_new_bytes_output(), target);
239 }
240
241 // uint64 bytes_in_file = 2;
242 if (this->_internal_bytes_in_file() != 0) {
243 target = stream->EnsureSpace(target);
244 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
245 2, this->_internal_bytes_in_file(), target);
246 }
247
248 // uint32 written_files = 3;
249 if (this->_internal_written_files() != 0) {
250 target = stream->EnsureSpace(target);
251 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
252 3, this->_internal_written_files(), target);
253 }
254
255 // uint64 new_written_object = 10;
256 if (this->_internal_new_written_object() != 0) {
257 target = stream->EnsureSpace(target);
258 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
259 10, this->_internal_new_written_object(), 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.HDF5DataStoreInfo)
268 return target;
269}
270
272// @@protoc_insertion_point(message_byte_size_start:dunedaq.dfmodules.opmon.HDF5DataStoreInfo)
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 new_bytes_output = 1;
280 if (this->_internal_new_bytes_output() != 0) {
281 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
283 }
284
285 // uint64 bytes_in_file = 2;
286 if (this->_internal_bytes_in_file() != 0) {
287 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
289 }
290
291 // uint64 new_written_object = 10;
292 if (this->_internal_new_written_object() != 0) {
293 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
295 }
296
297 // uint32 written_files = 3;
298 if (this->_internal_written_files() != 0) {
299 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
301 }
302
303 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
304}
305
306const ::google::protobuf::Message::ClassData HDF5DataStoreInfo::_class_data_ = {
307 ::google::protobuf::Message::CopyWithSourceCheck,
309};
310const ::google::protobuf::Message::ClassData*HDF5DataStoreInfo::GetClassData() const { return &_class_data_; }
311
312
313void HDF5DataStoreInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
314 auto* const _this = static_cast<HDF5DataStoreInfo*>(&to_msg);
315 auto& from = static_cast<const HDF5DataStoreInfo&>(from_msg);
316 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.dfmodules.opmon.HDF5DataStoreInfo)
317 ABSL_DCHECK_NE(&from, _this);
318 ::uint32_t cached_has_bits = 0;
319 (void) cached_has_bits;
320
321 if (from._internal_new_bytes_output() != 0) {
322 _this->_internal_set_new_bytes_output(from._internal_new_bytes_output());
323 }
324 if (from._internal_bytes_in_file() != 0) {
325 _this->_internal_set_bytes_in_file(from._internal_bytes_in_file());
326 }
327 if (from._internal_new_written_object() != 0) {
328 _this->_internal_set_new_written_object(from._internal_new_written_object());
329 }
330 if (from._internal_written_files() != 0) {
331 _this->_internal_set_written_files(from._internal_written_files());
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.HDF5DataStoreInfo)
338 if (&from == this) return;
339 Clear();
340 MergeFrom(from);
341}
342
343PROTOBUF_NOINLINE bool HDF5DataStoreInfo::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(HDF5DataStoreInfo, _impl_.written_files_)
353 - PROTOBUF_FIELD_OFFSET(HDF5DataStoreInfo, _impl_.new_bytes_output_)>(
354 reinterpret_cast<char*>(&_impl_.new_bytes_output_),
355 reinterpret_cast<char*>(&other->_impl_.new_bytes_output_));
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"
const ::uint32_t TableStruct_dfmodules_2fopmon_2fDataStore_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_dfmodules_2fopmon_2fDataStore_2eproto_getter()
::absl::once_flag descriptor_table_dfmodules_2fopmon_2fDataStore_2eproto_once
const ::_pbi::DescriptorTable descriptor_table_dfmodules_2fopmon_2fDataStore_2eproto
::_pb::Metadata file_level_metadata_dfmodules_2fopmon_2fDataStore_2eproto[1]
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_dfmodules_2fopmon_2fDataStore_2eproto
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_dfmodules_2fopmon_2fDataStore_2eproto
static const ::_pb::Message *const file_default_instances[]
void InternalSwap(HDF5DataStoreInfo *other)
::google::protobuf::Metadata GetMetadata() const final
void CopyFrom(const HDF5DataStoreInfo &from)
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
void MergeFrom(const HDF5DataStoreInfo &from)
const ::google::protobuf::Message::ClassData * GetClassData() const final
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
static const ::google::protobuf::internal::TcParseTable< 2, 4, 0, 0, 2 > _table_
void SharedCtor(::google::protobuf::Arena *arena)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HDF5DataStoreInfoDefaultTypeInternal _HDF5DataStoreInfo_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_