DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dummy_consumer_info.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: fdreadoutmodules/opmon/dummy_consumer_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 fdreadoutlibs {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR DummyConsumerInfo::DummyConsumerInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.packets_processed_)*/ ::uint64_t{0u},
30 /*decltype(_impl_._cached_size_)*/ {},
31 } {}
33 PROTOBUF_CONSTEXPR DummyConsumerInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
35 union {
37 };
38};
39
40PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
42} // namespace opmon
43} // namespace fdreadoutlibs
44} // namespace dunedaq
46static constexpr const ::_pb::EnumDescriptor**
48static constexpr const ::_pb::ServiceDescriptor**
51 protodesc_cold) = {
52 ~0u, // no _has_bits_
53 PROTOBUF_FIELD_OFFSET(::dunedaq::fdreadoutlibs::opmon::DummyConsumerInfo, _internal_metadata_),
54 ~0u, // no _extensions_
55 ~0u, // no _oneof_case_
56 ~0u, // no _weak_field_map_
57 ~0u, // no _inlined_string_donated_
58 ~0u, // no _split_
59 ~0u, // no sizeof(Split)
60 PROTOBUF_FIELD_OFFSET(::dunedaq::fdreadoutlibs::opmon::DummyConsumerInfo, _impl_.packets_processed_),
61};
62
63static const ::_pbi::MigrationSchema
64 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
66};
67
71const char descriptor_table_protodef_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
72 "\n0fdreadoutmodules/opmon/dummy_consumer_"
73 "info.proto\022\033dunedaq.fdreadoutlibs.opmon\""
74 ".\n\021DummyConsumerInfo\022\031\n\021packets_processe"
75 "d\030\001 \001(\004b\006proto3"
76};
95
96// This function exists to be marked as weak.
97// It can significantly speed up compilation by breaking up LLVM's SCC
98// in the .pb.cc translation units. Large translation units see a
99// reduction of more than 35% of walltime for optimized builds. Without
100// the weak attribute all the messages in the file, including all the
101// vtables and everything they use become part of the same SCC through
102// a cycle like:
103// GetMetadata -> descriptor table -> default instances ->
104// vtables -> GetMetadata
105// By adding a weak function here we break the connection from the
106// individual vtables back into the descriptor table.
110// Force running AddDescriptors() at dynamic initialization time.
111PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
112static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto(&descriptor_table_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto);
113namespace dunedaq {
114namespace fdreadoutlibs {
115namespace opmon {
116// ===================================================================
117
119 public:
120};
121
122DummyConsumerInfo::DummyConsumerInfo(::google::protobuf::Arena* arena)
123 : ::google::protobuf::Message(arena) {
124 SharedCtor(arena);
125 // @@protoc_insertion_point(arena_constructor:dunedaq.fdreadoutlibs.opmon.DummyConsumerInfo)
126}
128 : ::google::protobuf::Message(), _impl_(from._impl_) {
129 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
130 from._internal_metadata_);
131 // @@protoc_insertion_point(copy_constructor:dunedaq.fdreadoutlibs.opmon.DummyConsumerInfo)
132}
133inline void DummyConsumerInfo::SharedCtor(::_pb::Arena* arena) {
134 (void)arena;
135 new (&_impl_) Impl_{
136 decltype(_impl_.packets_processed_){::uint64_t{0u}},
137 /*decltype(_impl_._cached_size_)*/ {},
138 };
139}
141 // @@protoc_insertion_point(destructor:dunedaq.fdreadoutlibs.opmon.DummyConsumerInfo)
142 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
143 SharedDtor();
144}
146 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
147}
151
152PROTOBUF_NOINLINE void DummyConsumerInfo::Clear() {
153// @@protoc_insertion_point(message_clear_start:dunedaq.fdreadoutlibs.opmon.DummyConsumerInfo)
154 ::uint32_t cached_has_bits = 0;
155 // Prevent compiler warnings about cached_has_bits being unused
156 (void) cached_has_bits;
157
158 _impl_.packets_processed_ = ::uint64_t{0u};
159 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
160}
161
163 const char* ptr, ::_pbi::ParseContext* ctx) {
164 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
165 return ptr;
166}
167
168
169PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
170const ::_pbi::TcParseTable<0, 1, 0, 0, 2> DummyConsumerInfo::_table_ = {
171 {
172 0, // no _has_bits_
173 0, // no _extensions_
174 1, 0, // max_field_number, fast_idx_mask
175 offsetof(decltype(_table_), field_lookup_table),
176 4294967294, // skipmap
177 offsetof(decltype(_table_), field_entries),
178 1, // num_field_entries
179 0, // num_aux_entries
180 offsetof(decltype(_table_), field_names), // no aux_entries
182 ::_pbi::TcParser::GenericFallback, // fallback
183 }, {{
184 // uint64 packets_processed = 1;
185 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(DummyConsumerInfo, _impl_.packets_processed_), 63>(),
186 {8, 63, 0, PROTOBUF_FIELD_OFFSET(DummyConsumerInfo, _impl_.packets_processed_)}},
187 }}, {{
188 65535, 65535
189 }}, {{
190 // uint64 packets_processed = 1;
191 {PROTOBUF_FIELD_OFFSET(DummyConsumerInfo, _impl_.packets_processed_), 0, 0,
192 (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
193 }},
194 // no aux_entries
195 {{
196 }},
197};
198
200 ::uint8_t* target,
201 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
202 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.fdreadoutlibs.opmon.DummyConsumerInfo)
203 ::uint32_t cached_has_bits = 0;
204 (void)cached_has_bits;
205
206 // uint64 packets_processed = 1;
207 if (this->_internal_packets_processed() != 0) {
208 target = stream->EnsureSpace(target);
209 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
210 1, this->_internal_packets_processed(), target);
211 }
212
213 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
214 target =
215 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
216 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
217 }
218 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.fdreadoutlibs.opmon.DummyConsumerInfo)
219 return target;
220}
221
223// @@protoc_insertion_point(message_byte_size_start:dunedaq.fdreadoutlibs.opmon.DummyConsumerInfo)
224 ::size_t total_size = 0;
225
226 ::uint32_t cached_has_bits = 0;
227 // Prevent compiler warnings about cached_has_bits being unused
228 (void) cached_has_bits;
229
230 // uint64 packets_processed = 1;
231 if (this->_internal_packets_processed() != 0) {
232 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
234 }
235
236 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
237}
238
239const ::google::protobuf::Message::ClassData DummyConsumerInfo::_class_data_ = {
240 ::google::protobuf::Message::CopyWithSourceCheck,
242};
243const ::google::protobuf::Message::ClassData*DummyConsumerInfo::GetClassData() const { return &_class_data_; }
244
245
246void DummyConsumerInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
247 auto* const _this = static_cast<DummyConsumerInfo*>(&to_msg);
248 auto& from = static_cast<const DummyConsumerInfo&>(from_msg);
249 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.fdreadoutlibs.opmon.DummyConsumerInfo)
250 ABSL_DCHECK_NE(&from, _this);
251 ::uint32_t cached_has_bits = 0;
252 (void) cached_has_bits;
253
254 if (from._internal_packets_processed() != 0) {
255 _this->_internal_set_packets_processed(from._internal_packets_processed());
256 }
257 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
258}
259
261// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.fdreadoutlibs.opmon.DummyConsumerInfo)
262 if (&from == this) return;
263 Clear();
264 MergeFrom(from);
265}
266
267PROTOBUF_NOINLINE bool DummyConsumerInfo::IsInitialized() const {
268 return true;
269}
270
272 using std::swap;
273 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
275}
276
282// @@protoc_insertion_point(namespace_scope)
283} // namespace opmon
284} // namespace fdreadoutlibs
285} // namespace dunedaq
286namespace google {
287namespace protobuf {
288} // namespace protobuf
289} // namespace google
290// @@protoc_insertion_point(global_scope)
291#include "google/protobuf/port_undef.inc"
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
void SharedCtor(::google::protobuf::Arena *arena)
::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
static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2 > _table_
friend void swap(DummyConsumerInfo &a, DummyConsumerInfo &b)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::google::protobuf::Message::ClassData * GetClassData() const final
::google::protobuf::Metadata GetMetadata() const final
::_pb::Metadata file_level_metadata_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto[1]
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto_getter()
const ::_pbi::DescriptorTable descriptor_table_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto
::absl::once_flag descriptor_table_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto_once
static const ::_pb::Message *const file_default_instances[]
const ::uint32_t TableStruct_fdreadoutmodules_2fopmon_2fdummy_5fconsumer_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DummyConsumerInfoDefaultTypeInternal _DummyConsumerInfo_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_