DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
queue.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: iomanager/opmon/queue.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 iomanager {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR QueueInfo::QueueInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.capacity_)*/ ::uint64_t{0u},
30 /*decltype(_impl_.number_of_elements_)*/ ::uint64_t{0u},
31 /*decltype(_impl_._cached_size_)*/ {},
32 } {}
34 PROTOBUF_CONSTEXPR QueueInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
36 union {
38 };
39};
40
41PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
42 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueueInfoDefaultTypeInternal _QueueInfo_default_instance_;
43} // namespace opmon
44} // namespace iomanager
45} // namespace dunedaq
47static constexpr const ::_pb::EnumDescriptor**
49static constexpr const ::_pb::ServiceDescriptor**
52 protodesc_cold) = {
53 ~0u, // no _has_bits_
54 PROTOBUF_FIELD_OFFSET(::dunedaq::iomanager::opmon::QueueInfo, _internal_metadata_),
55 ~0u, // no _extensions_
56 ~0u, // no _oneof_case_
57 ~0u, // no _weak_field_map_
58 ~0u, // no _inlined_string_donated_
59 ~0u, // no _split_
60 ~0u, // no sizeof(Split)
61 PROTOBUF_FIELD_OFFSET(::dunedaq::iomanager::opmon::QueueInfo, _impl_.capacity_),
62 PROTOBUF_FIELD_OFFSET(::dunedaq::iomanager::opmon::QueueInfo, _impl_.number_of_elements_),
63};
64
65static const ::_pbi::MigrationSchema
66 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
67 {0, -1, -1, sizeof(::dunedaq::iomanager::opmon::QueueInfo)},
68};
69
73const char descriptor_table_protodef_iomanager_2fopmon_2fqueue_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
74 "\n\033iomanager/opmon/queue.proto\022\027dunedaq.i"
75 "omanager.opmon\"9\n\tQueueInfo\022\020\n\010capacity\030"
76 "\001 \001(\004\022\032\n\022number_of_elements\030\002 \001(\004b\006proto"
77 "3"
78};
97
98// This function exists to be marked as weak.
99// It can significantly speed up compilation by breaking up LLVM's SCC
100// in the .pb.cc translation units. Large translation units see a
101// reduction of more than 35% of walltime for optimized builds. Without
102// the weak attribute all the messages in the file, including all the
103// vtables and everything they use become part of the same SCC through
104// a cycle like:
105// GetMetadata -> descriptor table -> default instances ->
106// vtables -> GetMetadata
107// By adding a weak function here we break the connection from the
108// individual vtables back into the descriptor table.
109PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_iomanager_2fopmon_2fqueue_2eproto_getter() {
111}
112// Force running AddDescriptors() at dynamic initialization time.
113PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
114static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_iomanager_2fopmon_2fqueue_2eproto(&descriptor_table_iomanager_2fopmon_2fqueue_2eproto);
115namespace dunedaq {
116namespace iomanager {
117namespace opmon {
118// ===================================================================
119
121 public:
122};
123
124QueueInfo::QueueInfo(::google::protobuf::Arena* arena)
125 : ::google::protobuf::Message(arena) {
126 SharedCtor(arena);
127 // @@protoc_insertion_point(arena_constructor:dunedaq.iomanager.opmon.QueueInfo)
128}
130 : ::google::protobuf::Message(), _impl_(from._impl_) {
131 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
132 from._internal_metadata_);
133 // @@protoc_insertion_point(copy_constructor:dunedaq.iomanager.opmon.QueueInfo)
134}
135inline void QueueInfo::SharedCtor(::_pb::Arena* arena) {
136 (void)arena;
137 new (&_impl_) Impl_{
138 decltype(_impl_.capacity_){::uint64_t{0u}},
139 decltype(_impl_.number_of_elements_){::uint64_t{0u}},
140 /*decltype(_impl_._cached_size_)*/ {},
141 };
142}
144 // @@protoc_insertion_point(destructor:dunedaq.iomanager.opmon.QueueInfo)
145 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
146 SharedDtor();
147}
149 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
150}
153}
154
155PROTOBUF_NOINLINE void QueueInfo::Clear() {
156// @@protoc_insertion_point(message_clear_start:dunedaq.iomanager.opmon.QueueInfo)
157 ::uint32_t cached_has_bits = 0;
158 // Prevent compiler warnings about cached_has_bits being unused
159 (void) cached_has_bits;
160
161 ::memset(&_impl_.capacity_, 0, static_cast<::size_t>(
162 reinterpret_cast<char*>(&_impl_.number_of_elements_) -
163 reinterpret_cast<char*>(&_impl_.capacity_)) + sizeof(_impl_.number_of_elements_));
164 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
165}
166
167const char* QueueInfo::_InternalParse(
168 const char* ptr, ::_pbi::ParseContext* ctx) {
169 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
170 return ptr;
171}
172
173
174PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
175const ::_pbi::TcParseTable<1, 2, 0, 0, 2> QueueInfo::_table_ = {
176 {
177 0, // no _has_bits_
178 0, // no _extensions_
179 2, 8, // max_field_number, fast_idx_mask
180 offsetof(decltype(_table_), field_lookup_table),
181 4294967292, // skipmap
182 offsetof(decltype(_table_), field_entries),
183 2, // num_field_entries
184 0, // num_aux_entries
185 offsetof(decltype(_table_), field_names), // no aux_entries
187 ::_pbi::TcParser::GenericFallback, // fallback
188 }, {{
189 // uint64 number_of_elements = 2;
190 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(QueueInfo, _impl_.number_of_elements_), 63>(),
191 {16, 63, 0, PROTOBUF_FIELD_OFFSET(QueueInfo, _impl_.number_of_elements_)}},
192 // uint64 capacity = 1;
193 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(QueueInfo, _impl_.capacity_), 63>(),
194 {8, 63, 0, PROTOBUF_FIELD_OFFSET(QueueInfo, _impl_.capacity_)}},
195 }}, {{
196 65535, 65535
197 }}, {{
198 // uint64 capacity = 1;
199 {PROTOBUF_FIELD_OFFSET(QueueInfo, _impl_.capacity_), 0, 0,
200 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
201 // uint64 number_of_elements = 2;
202 {PROTOBUF_FIELD_OFFSET(QueueInfo, _impl_.number_of_elements_), 0, 0,
203 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
204 }},
205 // no aux_entries
206 {{
207 }},
208};
209
211 ::uint8_t* target,
212 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
213 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.iomanager.opmon.QueueInfo)
214 ::uint32_t cached_has_bits = 0;
215 (void)cached_has_bits;
216
217 // uint64 capacity = 1;
218 if (this->_internal_capacity() != 0) {
219 target = stream->EnsureSpace(target);
220 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
221 1, this->_internal_capacity(), target);
222 }
223
224 // uint64 number_of_elements = 2;
225 if (this->_internal_number_of_elements() != 0) {
226 target = stream->EnsureSpace(target);
227 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
228 2, this->_internal_number_of_elements(), target);
229 }
230
231 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
232 target =
233 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
234 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
235 }
236 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.iomanager.opmon.QueueInfo)
237 return target;
238}
239
240::size_t QueueInfo::ByteSizeLong() const {
241// @@protoc_insertion_point(message_byte_size_start:dunedaq.iomanager.opmon.QueueInfo)
242 ::size_t total_size = 0;
243
244 ::uint32_t cached_has_bits = 0;
245 // Prevent compiler warnings about cached_has_bits being unused
246 (void) cached_has_bits;
247
248 // uint64 capacity = 1;
249 if (this->_internal_capacity() != 0) {
250 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
251 this->_internal_capacity());
252 }
253
254 // uint64 number_of_elements = 2;
255 if (this->_internal_number_of_elements() != 0) {
256 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
258 }
259
260 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
261}
262
263const ::google::protobuf::Message::ClassData QueueInfo::_class_data_ = {
264 ::google::protobuf::Message::CopyWithSourceCheck,
266};
267const ::google::protobuf::Message::ClassData*QueueInfo::GetClassData() const { return &_class_data_; }
268
269
270void QueueInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
271 auto* const _this = static_cast<QueueInfo*>(&to_msg);
272 auto& from = static_cast<const QueueInfo&>(from_msg);
273 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.iomanager.opmon.QueueInfo)
274 ABSL_DCHECK_NE(&from, _this);
275 ::uint32_t cached_has_bits = 0;
276 (void) cached_has_bits;
277
278 if (from._internal_capacity() != 0) {
279 _this->_internal_set_capacity(from._internal_capacity());
280 }
281 if (from._internal_number_of_elements() != 0) {
282 _this->_internal_set_number_of_elements(from._internal_number_of_elements());
283 }
284 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
285}
286
288// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.iomanager.opmon.QueueInfo)
289 if (&from == this) return;
290 Clear();
291 MergeFrom(from);
292}
293
294PROTOBUF_NOINLINE bool QueueInfo::IsInitialized() const {
295 return true;
296}
297
299 using std::swap;
300 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
301 ::google::protobuf::internal::memswap<
302 PROTOBUF_FIELD_OFFSET(QueueInfo, _impl_.number_of_elements_)
304 - PROTOBUF_FIELD_OFFSET(QueueInfo, _impl_.capacity_)>(
305 reinterpret_cast<char*>(&_impl_.capacity_),
306 reinterpret_cast<char*>(&other->_impl_.capacity_));
307}
308
314// @@protoc_insertion_point(namespace_scope)
315} // namespace opmon
316} // namespace iomanager
317} // namespace dunedaq
318namespace google {
319namespace protobuf {
320} // namespace protobuf
321} // namespace google
322// @@protoc_insertion_point(global_scope)
323#include "google/protobuf/port_undef.inc"
::uint64_t _internal_number_of_elements() const
Definition queue.pb.h:299
void InternalSwap(QueueInfo *other)
Definition queue.pb.cc:298
::uint64_t _internal_capacity() const
Definition queue.pb.h:277
void SharedCtor(::google::protobuf::Arena *arena)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Definition queue.pb.cc:155
::google::protobuf::Metadata GetMetadata() const final
Definition queue.pb.cc:309
void MergeFrom(const QueueInfo &from)
Definition queue.pb.h:167
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
Definition queue.pb.cc:210
static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 0, 2 > _table_
Definition queue.pb.h:235
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
Definition queue.pb.cc:270
const ::google::protobuf::Message::ClassData * GetClassData() const final
Definition queue.pb.cc:267
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
static const ClassData _class_data_
Definition queue.pb.h:197
::size_t ByteSizeLong() const final
Definition queue.pb.cc:240
void CopyFrom(const QueueInfo &from)
Definition queue.pb.cc:287
void SetCachedSize(int size) const final
Definition queue.pb.cc:151
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueueInfoDefaultTypeInternal _QueueInfo_default_instance_
Definition queue.pb.cc:42
Including Qt Headers.
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_iomanager_2fopmon_2fqueue_2eproto
Definition queue.pb.cc:50
const ::uint32_t TableStruct_iomanager_2fopmon_2fqueue_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_iomanager_2fopmon_2fqueue_2eproto
Definition queue.pb.cc:48
::absl::once_flag descriptor_table_iomanager_2fopmon_2fqueue_2eproto_once
Definition queue.pb.cc:79
::_pb::Metadata file_level_metadata_iomanager_2fopmon_2fqueue_2eproto[1]
Definition queue.pb.cc:46
const ::_pbi::DescriptorTable descriptor_table_iomanager_2fopmon_2fqueue_2eproto
Definition queue.pb.cc:80
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_iomanager_2fopmon_2fqueue_2eproto_getter()
Definition queue.pb.cc:109
static const ::_pb::Message *const file_default_instances[]
Definition queue.pb.cc:70
mutable::google::protobuf::internal::CachedSize _cached_size_
Definition queue.pb.h:242