DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
run_info.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: rcif/opmon/run_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 rcif {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR RunInfo::RunInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.run_number_)*/ ::uint64_t{0u},
30 /*decltype(_impl_.running_)*/ false,
31 /*decltype(_impl_.run_time_)*/ 0u,
32 /*decltype(_impl_._cached_size_)*/ {},
33 } {}
35 PROTOBUF_CONSTEXPR RunInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
37 union {
39 };
40};
41
42PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
43 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RunInfoDefaultTypeInternal _RunInfo_default_instance_;
44} // namespace opmon
45} // namespace rcif
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::rcif::opmon::RunInfo, _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::rcif::opmon::RunInfo, _impl_.running_),
63 PROTOBUF_FIELD_OFFSET(::dunedaq::rcif::opmon::RunInfo, _impl_.run_number_),
64 PROTOBUF_FIELD_OFFSET(::dunedaq::rcif::opmon::RunInfo, _impl_.run_time_),
65};
66
67static const ::_pbi::MigrationSchema
68 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
69 {0, -1, -1, sizeof(::dunedaq::rcif::opmon::RunInfo)},
70};
71
75const char descriptor_table_protodef_rcif_2fopmon_2frun_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
76 "\n\031rcif/opmon/run_info.proto\022\022dunedaq.rci"
77 "f.opmon\"@\n\007RunInfo\022\017\n\007running\030\001 \001(\010\022\022\n\nr"
78 "un_number\030\002 \001(\004\022\020\n\010run_time\030\003 \001(\rb\006proto"
79 "3"
80};
99
100// This function exists to be marked as weak.
101// It can significantly speed up compilation by breaking up LLVM's SCC
102// in the .pb.cc translation units. Large translation units see a
103// reduction of more than 35% of walltime for optimized builds. Without
104// the weak attribute all the messages in the file, including all the
105// vtables and everything they use become part of the same SCC through
106// a cycle like:
107// GetMetadata -> descriptor table -> default instances ->
108// vtables -> GetMetadata
109// By adding a weak function here we break the connection from the
110// individual vtables back into the descriptor table.
111PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_rcif_2fopmon_2frun_5finfo_2eproto_getter() {
113}
114// Force running AddDescriptors() at dynamic initialization time.
115PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
116static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_rcif_2fopmon_2frun_5finfo_2eproto(&descriptor_table_rcif_2fopmon_2frun_5finfo_2eproto);
117namespace dunedaq {
118namespace rcif {
119namespace opmon {
120// ===================================================================
121
123 public:
124};
125
126RunInfo::RunInfo(::google::protobuf::Arena* arena)
127 : ::google::protobuf::Message(arena) {
128 SharedCtor(arena);
129 // @@protoc_insertion_point(arena_constructor:dunedaq.rcif.opmon.RunInfo)
130}
132 : ::google::protobuf::Message(), _impl_(from._impl_) {
133 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
134 from._internal_metadata_);
135 // @@protoc_insertion_point(copy_constructor:dunedaq.rcif.opmon.RunInfo)
136}
137inline void RunInfo::SharedCtor(::_pb::Arena* arena) {
138 (void)arena;
139 new (&_impl_) Impl_{
140 decltype(_impl_.run_number_){::uint64_t{0u}},
141 decltype(_impl_.running_){false},
142 decltype(_impl_.run_time_){0u},
143 /*decltype(_impl_._cached_size_)*/ {},
144 };
145}
147 // @@protoc_insertion_point(destructor:dunedaq.rcif.opmon.RunInfo)
148 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
149 SharedDtor();
150}
151inline void RunInfo::SharedDtor() {
152 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
153}
156}
157
158PROTOBUF_NOINLINE void RunInfo::Clear() {
159// @@protoc_insertion_point(message_clear_start:dunedaq.rcif.opmon.RunInfo)
160 ::uint32_t cached_has_bits = 0;
161 // Prevent compiler warnings about cached_has_bits being unused
162 (void) cached_has_bits;
163
164 ::memset(&_impl_.run_number_, 0, static_cast<::size_t>(
165 reinterpret_cast<char*>(&_impl_.run_time_) -
166 reinterpret_cast<char*>(&_impl_.run_number_)) + sizeof(_impl_.run_time_));
167 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
168}
169
171 const char* ptr, ::_pbi::ParseContext* ctx) {
172 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
173 return ptr;
174}
175
176
177PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
178const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RunInfo::_table_ = {
179 {
180 0, // no _has_bits_
181 0, // no _extensions_
182 3, 24, // max_field_number, fast_idx_mask
183 offsetof(decltype(_table_), field_lookup_table),
184 4294967288, // skipmap
185 offsetof(decltype(_table_), field_entries),
186 3, // num_field_entries
187 0, // num_aux_entries
188 offsetof(decltype(_table_), field_names), // no aux_entries
190 ::_pbi::TcParser::GenericFallback, // fallback
191 }, {{
192 {::_pbi::TcParser::MiniParse, {}},
193 // bool running = 1;
194 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(RunInfo, _impl_.running_), 63>(),
195 {8, 63, 0, PROTOBUF_FIELD_OFFSET(RunInfo, _impl_.running_)}},
196 // uint64 run_number = 2;
197 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RunInfo, _impl_.run_number_), 63>(),
198 {16, 63, 0, PROTOBUF_FIELD_OFFSET(RunInfo, _impl_.run_number_)}},
199 // uint32 run_time = 3;
200 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RunInfo, _impl_.run_time_), 63>(),
201 {24, 63, 0, PROTOBUF_FIELD_OFFSET(RunInfo, _impl_.run_time_)}},
202 }}, {{
203 65535, 65535
204 }}, {{
205 // bool running = 1;
206 {PROTOBUF_FIELD_OFFSET(RunInfo, _impl_.running_), 0, 0,
207 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
208 // uint64 run_number = 2;
209 {PROTOBUF_FIELD_OFFSET(RunInfo, _impl_.run_number_), 0, 0,
210 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
211 // uint32 run_time = 3;
212 {PROTOBUF_FIELD_OFFSET(RunInfo, _impl_.run_time_), 0, 0,
213 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
214 }},
215 // no aux_entries
216 {{
217 }},
218};
219
221 ::uint8_t* target,
222 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
223 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.rcif.opmon.RunInfo)
224 ::uint32_t cached_has_bits = 0;
225 (void)cached_has_bits;
226
227 // bool running = 1;
228 if (this->_internal_running() != 0) {
229 target = stream->EnsureSpace(target);
230 target = ::_pbi::WireFormatLite::WriteBoolToArray(
231 1, this->_internal_running(), target);
232 }
233
234 // uint64 run_number = 2;
235 if (this->_internal_run_number() != 0) {
236 target = stream->EnsureSpace(target);
237 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
238 2, this->_internal_run_number(), target);
239 }
240
241 // uint32 run_time = 3;
242 if (this->_internal_run_time() != 0) {
243 target = stream->EnsureSpace(target);
244 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
245 3, this->_internal_run_time(), target);
246 }
247
248 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
249 target =
250 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
251 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
252 }
253 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.rcif.opmon.RunInfo)
254 return target;
255}
256
257::size_t RunInfo::ByteSizeLong() const {
258// @@protoc_insertion_point(message_byte_size_start:dunedaq.rcif.opmon.RunInfo)
259 ::size_t total_size = 0;
260
261 ::uint32_t cached_has_bits = 0;
262 // Prevent compiler warnings about cached_has_bits being unused
263 (void) cached_has_bits;
264
265 // uint64 run_number = 2;
266 if (this->_internal_run_number() != 0) {
267 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
268 this->_internal_run_number());
269 }
270
271 // bool running = 1;
272 if (this->_internal_running() != 0) {
273 total_size += 2;
274 }
275
276 // uint32 run_time = 3;
277 if (this->_internal_run_time() != 0) {
278 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
279 this->_internal_run_time());
280 }
281
282 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
283}
284
285const ::google::protobuf::Message::ClassData RunInfo::_class_data_ = {
286 ::google::protobuf::Message::CopyWithSourceCheck,
288};
289const ::google::protobuf::Message::ClassData*RunInfo::GetClassData() const { return &_class_data_; }
290
291
292void RunInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
293 auto* const _this = static_cast<RunInfo*>(&to_msg);
294 auto& from = static_cast<const RunInfo&>(from_msg);
295 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.rcif.opmon.RunInfo)
296 ABSL_DCHECK_NE(&from, _this);
297 ::uint32_t cached_has_bits = 0;
298 (void) cached_has_bits;
299
300 if (from._internal_run_number() != 0) {
301 _this->_internal_set_run_number(from._internal_run_number());
302 }
303 if (from._internal_running() != 0) {
304 _this->_internal_set_running(from._internal_running());
305 }
306 if (from._internal_run_time() != 0) {
307 _this->_internal_set_run_time(from._internal_run_time());
308 }
309 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
310}
311
312void RunInfo::CopyFrom(const RunInfo& from) {
313// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.rcif.opmon.RunInfo)
314 if (&from == this) return;
315 Clear();
316 MergeFrom(from);
317}
318
319PROTOBUF_NOINLINE bool RunInfo::IsInitialized() const {
320 return true;
321}
322
324 using std::swap;
325 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
326 ::google::protobuf::internal::memswap<
327 PROTOBUF_FIELD_OFFSET(RunInfo, _impl_.run_time_)
328 + sizeof(RunInfo::_impl_.run_time_)
329 - PROTOBUF_FIELD_OFFSET(RunInfo, _impl_.run_number_)>(
330 reinterpret_cast<char*>(&_impl_.run_number_),
331 reinterpret_cast<char*>(&other->_impl_.run_number_));
332}
333
339// @@protoc_insertion_point(namespace_scope)
340} // namespace opmon
341} // namespace rcif
342} // namespace dunedaq
343namespace google {
344namespace protobuf {
345} // namespace protobuf
346} // namespace google
347// @@protoc_insertion_point(global_scope)
348#include "google/protobuf/port_undef.inc"
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
void CopyFrom(const RunInfo &from)
::uint64_t _internal_run_number() const
::size_t ByteSizeLong() const final
const ::google::protobuf::Message::ClassData * GetClassData() const final
void MergeFrom(const RunInfo &from)
::uint32_t _internal_run_time() const
void InternalSwap(RunInfo *other)
void SharedCtor(::google::protobuf::Arena *arena)
bool IsInitialized() const final
static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, 0, 2 > _table_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
void SetCachedSize(int size) const final
static const ClassData _class_data_
::google::protobuf::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RunInfoDefaultTypeInternal _RunInfo_default_instance_
Including Qt Headers.
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
const ::uint32_t TableStruct_rcif_2fopmon_2frun_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_rcif_2fopmon_2frun_5finfo_2eproto_getter()
::absl::once_flag descriptor_table_rcif_2fopmon_2frun_5finfo_2eproto_once
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_rcif_2fopmon_2frun_5finfo_2eproto
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_rcif_2fopmon_2frun_5finfo_2eproto
const ::_pbi::DescriptorTable descriptor_table_rcif_2fopmon_2frun_5finfo_2eproto
static const ::_pb::Message *const file_default_instances[]
::_pb::Metadata file_level_metadata_rcif_2fopmon_2frun_5finfo_2eproto[1]
mutable::google::protobuf::internal::CachedSize _cached_size_