DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CardControllerWrapper.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: flxlibs/opmon/CardControllerWrapper.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 flxlibs {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR LinkInfo::LinkInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.enabled_)*/ false,
30 /*decltype(_impl_.aligned_)*/ false,
31 /*decltype(_impl_._cached_size_)*/ {},
32 } {}
34 PROTOBUF_CONSTEXPR LinkInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
36 union {
38 };
39};
40
41PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
42 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinkInfoDefaultTypeInternal _LinkInfo_default_instance_;
43} // namespace opmon
44} // namespace flxlibs
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::flxlibs::opmon::LinkInfo, _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::flxlibs::opmon::LinkInfo, _impl_.enabled_),
62 PROTOBUF_FIELD_OFFSET(::dunedaq::flxlibs::opmon::LinkInfo, _impl_.aligned_),
63};
64
65static const ::_pbi::MigrationSchema
66 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
67 {0, -1, -1, sizeof(::dunedaq::flxlibs::opmon::LinkInfo)},
68};
69
73const char descriptor_table_protodef_flxlibs_2fopmon_2fCardControllerWrapper_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
74 "\n)flxlibs/opmon/CardControllerWrapper.pr"
75 "oto\022\025dunedaq.flxlibs.opmon\",\n\010LinkInfo\022\017"
76 "\n\007enabled\030\001 \001(\010\022\017\n\007aligned\030\002 \001(\010b\006proto3"
77};
96
97// This function exists to be marked as weak.
98// It can significantly speed up compilation by breaking up LLVM's SCC
99// in the .pb.cc translation units. Large translation units see a
100// reduction of more than 35% of walltime for optimized builds. Without
101// the weak attribute all the messages in the file, including all the
102// vtables and everything they use become part of the same SCC through
103// a cycle like:
104// GetMetadata -> descriptor table -> default instances ->
105// vtables -> GetMetadata
106// By adding a weak function here we break the connection from the
107// individual vtables back into the descriptor table.
111// Force running AddDescriptors() at dynamic initialization time.
112PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
113static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_flxlibs_2fopmon_2fCardControllerWrapper_2eproto(&descriptor_table_flxlibs_2fopmon_2fCardControllerWrapper_2eproto);
114namespace dunedaq {
115namespace flxlibs {
116namespace opmon {
117// ===================================================================
118
120 public:
121};
122
123LinkInfo::LinkInfo(::google::protobuf::Arena* arena)
124 : ::google::protobuf::Message(arena) {
125 SharedCtor(arena);
126 // @@protoc_insertion_point(arena_constructor:dunedaq.flxlibs.opmon.LinkInfo)
127}
129 : ::google::protobuf::Message(), _impl_(from._impl_) {
130 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
131 from._internal_metadata_);
132 // @@protoc_insertion_point(copy_constructor:dunedaq.flxlibs.opmon.LinkInfo)
133}
134inline void LinkInfo::SharedCtor(::_pb::Arena* arena) {
135 (void)arena;
136 new (&_impl_) Impl_{
137 decltype(_impl_.enabled_){false},
138 decltype(_impl_.aligned_){false},
139 /*decltype(_impl_._cached_size_)*/ {},
140 };
141}
143 // @@protoc_insertion_point(destructor:dunedaq.flxlibs.opmon.LinkInfo)
144 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
145 SharedDtor();
146}
147inline void LinkInfo::SharedDtor() {
148 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
149}
152}
153
154PROTOBUF_NOINLINE void LinkInfo::Clear() {
155// @@protoc_insertion_point(message_clear_start:dunedaq.flxlibs.opmon.LinkInfo)
156 ::uint32_t cached_has_bits = 0;
157 // Prevent compiler warnings about cached_has_bits being unused
158 (void) cached_has_bits;
159
160 ::memset(&_impl_.enabled_, 0, static_cast<::size_t>(
161 reinterpret_cast<char*>(&_impl_.aligned_) -
162 reinterpret_cast<char*>(&_impl_.enabled_)) + sizeof(_impl_.aligned_));
163 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
164}
165
166const char* LinkInfo::_InternalParse(
167 const char* ptr, ::_pbi::ParseContext* ctx) {
168 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
169 return ptr;
170}
171
172
173PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
174const ::_pbi::TcParseTable<1, 2, 0, 0, 2> LinkInfo::_table_ = {
175 {
176 0, // no _has_bits_
177 0, // no _extensions_
178 2, 8, // max_field_number, fast_idx_mask
179 offsetof(decltype(_table_), field_lookup_table),
180 4294967292, // skipmap
181 offsetof(decltype(_table_), field_entries),
182 2, // num_field_entries
183 0, // num_aux_entries
184 offsetof(decltype(_table_), field_names), // no aux_entries
186 ::_pbi::TcParser::GenericFallback, // fallback
187 }, {{
188 // bool aligned = 2;
189 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(LinkInfo, _impl_.aligned_), 63>(),
190 {16, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.aligned_)}},
191 // bool enabled = 1;
192 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(LinkInfo, _impl_.enabled_), 63>(),
193 {8, 63, 0, PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.enabled_)}},
194 }}, {{
195 65535, 65535
196 }}, {{
197 // bool enabled = 1;
198 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.enabled_), 0, 0,
199 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
200 // bool aligned = 2;
201 {PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.aligned_), 0, 0,
202 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
203 }},
204 // no aux_entries
205 {{
206 }},
207};
208
210 ::uint8_t* target,
211 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
212 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.flxlibs.opmon.LinkInfo)
213 ::uint32_t cached_has_bits = 0;
214 (void)cached_has_bits;
215
216 // bool enabled = 1;
217 if (this->_internal_enabled() != 0) {
218 target = stream->EnsureSpace(target);
219 target = ::_pbi::WireFormatLite::WriteBoolToArray(
220 1, this->_internal_enabled(), target);
221 }
222
223 // bool aligned = 2;
224 if (this->_internal_aligned() != 0) {
225 target = stream->EnsureSpace(target);
226 target = ::_pbi::WireFormatLite::WriteBoolToArray(
227 2, this->_internal_aligned(), target);
228 }
229
230 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
231 target =
232 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
233 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
234 }
235 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.flxlibs.opmon.LinkInfo)
236 return target;
237}
238
239::size_t LinkInfo::ByteSizeLong() const {
240// @@protoc_insertion_point(message_byte_size_start:dunedaq.flxlibs.opmon.LinkInfo)
241 ::size_t total_size = 0;
242
243 ::uint32_t cached_has_bits = 0;
244 // Prevent compiler warnings about cached_has_bits being unused
245 (void) cached_has_bits;
246
247 // bool enabled = 1;
248 if (this->_internal_enabled() != 0) {
249 total_size += 2;
250 }
251
252 // bool aligned = 2;
253 if (this->_internal_aligned() != 0) {
254 total_size += 2;
255 }
256
257 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
258}
259
260const ::google::protobuf::Message::ClassData LinkInfo::_class_data_ = {
261 ::google::protobuf::Message::CopyWithSourceCheck,
263};
264const ::google::protobuf::Message::ClassData*LinkInfo::GetClassData() const { return &_class_data_; }
265
266
267void LinkInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
268 auto* const _this = static_cast<LinkInfo*>(&to_msg);
269 auto& from = static_cast<const LinkInfo&>(from_msg);
270 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.flxlibs.opmon.LinkInfo)
271 ABSL_DCHECK_NE(&from, _this);
272 ::uint32_t cached_has_bits = 0;
273 (void) cached_has_bits;
274
275 if (from._internal_enabled() != 0) {
276 _this->_internal_set_enabled(from._internal_enabled());
277 }
278 if (from._internal_aligned() != 0) {
279 _this->_internal_set_aligned(from._internal_aligned());
280 }
281 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
282}
283
284void LinkInfo::CopyFrom(const LinkInfo& from) {
285// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.flxlibs.opmon.LinkInfo)
286 if (&from == this) return;
287 Clear();
288 MergeFrom(from);
289}
290
291PROTOBUF_NOINLINE bool LinkInfo::IsInitialized() const {
292 return true;
293}
294
296 using std::swap;
297 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
298 ::google::protobuf::internal::memswap<
299 PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.aligned_)
300 + sizeof(LinkInfo::_impl_.aligned_)
301 - PROTOBUF_FIELD_OFFSET(LinkInfo, _impl_.enabled_)>(
302 reinterpret_cast<char*>(&_impl_.enabled_),
303 reinterpret_cast<char*>(&other->_impl_.enabled_));
304}
305
311// @@protoc_insertion_point(namespace_scope)
312} // namespace opmon
313} // namespace flxlibs
314} // namespace dunedaq
315namespace google {
316namespace protobuf {
317} // namespace protobuf
318} // namespace google
319// @@protoc_insertion_point(global_scope)
320#include "google/protobuf/port_undef.inc"
const ::_pbi::DescriptorTable descriptor_table_flxlibs_2fopmon_2fCardControllerWrapper_2eproto
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_flxlibs_2fopmon_2fCardControllerWrapper_2eproto_getter()
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_flxlibs_2fopmon_2fCardControllerWrapper_2eproto
::_pb::Metadata file_level_metadata_flxlibs_2fopmon_2fCardControllerWrapper_2eproto[1]
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_flxlibs_2fopmon_2fCardControllerWrapper_2eproto
const ::uint32_t TableStruct_flxlibs_2fopmon_2fCardControllerWrapper_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::_pb::Message *const file_default_instances[]
::absl::once_flag descriptor_table_flxlibs_2fopmon_2fCardControllerWrapper_2eproto_once
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
void SharedCtor(::google::protobuf::Arena *arena)
const ::google::protobuf::Message::ClassData * GetClassData() const final
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 0, 2 > _table_
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
::google::protobuf::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinkInfoDefaultTypeInternal _LinkInfo_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_