DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SourceModel.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: crtmodules/opmon/SourceModel.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 crtmodules {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR SourceInfo::SourceInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.dropped_frames_)*/ 0u,
30 /*decltype(_impl_._cached_size_)*/ {},
31 } {}
33 PROTOBUF_CONSTEXPR SourceInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
35 union {
37 };
38};
39
40PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
41 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfoDefaultTypeInternal _SourceInfo_default_instance_;
42} // namespace opmon
43} // namespace crtmodules
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::crtmodules::opmon::SourceInfo, _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::crtmodules::opmon::SourceInfo, _impl_.dropped_frames_),
61};
62
63static const ::_pbi::MigrationSchema
64 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
66};
67
71const char descriptor_table_protodef_crtmodules_2fopmon_2fSourceModel_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
72 "\n\"crtmodules/opmon/SourceModel.proto\022\030du"
73 "nedaq.crtmodules.opmon\"$\n\nSourceInfo\022\026\n\016"
74 "dropped_frames\030\001 \001(\rb\006proto3"
75};
94
95// This function exists to be marked as weak.
96// It can significantly speed up compilation by breaking up LLVM's SCC
97// in the .pb.cc translation units. Large translation units see a
98// reduction of more than 35% of walltime for optimized builds. Without
99// the weak attribute all the messages in the file, including all the
100// vtables and everything they use become part of the same SCC through
101// a cycle like:
102// GetMetadata -> descriptor table -> default instances ->
103// vtables -> GetMetadata
104// By adding a weak function here we break the connection from the
105// individual vtables back into the descriptor table.
109// Force running AddDescriptors() at dynamic initialization time.
110PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
111static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_crtmodules_2fopmon_2fSourceModel_2eproto(&descriptor_table_crtmodules_2fopmon_2fSourceModel_2eproto);
112namespace dunedaq {
113namespace crtmodules {
114namespace opmon {
115// ===================================================================
116
118 public:
119};
120
121SourceInfo::SourceInfo(::google::protobuf::Arena* arena)
122 : ::google::protobuf::Message(arena) {
123 SharedCtor(arena);
124 // @@protoc_insertion_point(arena_constructor:dunedaq.crtmodules.opmon.SourceInfo)
125}
127 : ::google::protobuf::Message(), _impl_(from._impl_) {
128 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
129 from._internal_metadata_);
130 // @@protoc_insertion_point(copy_constructor:dunedaq.crtmodules.opmon.SourceInfo)
131}
132inline void SourceInfo::SharedCtor(::_pb::Arena* arena) {
133 (void)arena;
134 new (&_impl_) Impl_{
135 decltype(_impl_.dropped_frames_){0u},
136 /*decltype(_impl_._cached_size_)*/ {},
137 };
138}
140 // @@protoc_insertion_point(destructor:dunedaq.crtmodules.opmon.SourceInfo)
141 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
142 SharedDtor();
143}
145 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
146}
149}
150
151PROTOBUF_NOINLINE void SourceInfo::Clear() {
152// @@protoc_insertion_point(message_clear_start:dunedaq.crtmodules.opmon.SourceInfo)
153 ::uint32_t cached_has_bits = 0;
154 // Prevent compiler warnings about cached_has_bits being unused
155 (void) cached_has_bits;
156
158 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
159}
160
162 const char* ptr, ::_pbi::ParseContext* ctx) {
163 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
164 return ptr;
165}
166
167
168PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
169const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SourceInfo::_table_ = {
170 {
171 0, // no _has_bits_
172 0, // no _extensions_
173 1, 0, // max_field_number, fast_idx_mask
174 offsetof(decltype(_table_), field_lookup_table),
175 4294967294, // skipmap
176 offsetof(decltype(_table_), field_entries),
177 1, // num_field_entries
178 0, // num_aux_entries
179 offsetof(decltype(_table_), field_names), // no aux_entries
181 ::_pbi::TcParser::GenericFallback, // fallback
182 }, {{
183 // uint32 dropped_frames = 1;
184 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SourceInfo, _impl_.dropped_frames_), 63>(),
185 {8, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.dropped_frames_)}},
186 }}, {{
187 65535, 65535
188 }}, {{
189 // uint32 dropped_frames = 1;
190 {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.dropped_frames_), 0, 0,
191 (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
192 }},
193 // no aux_entries
194 {{
195 }},
196};
197
199 ::uint8_t* target,
200 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
201 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.crtmodules.opmon.SourceInfo)
202 ::uint32_t cached_has_bits = 0;
203 (void)cached_has_bits;
204
205 // uint32 dropped_frames = 1;
206 if (this->_internal_dropped_frames() != 0) {
207 target = stream->EnsureSpace(target);
208 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
209 1, this->_internal_dropped_frames(), target);
210 }
211
212 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
213 target =
214 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
215 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
216 }
217 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.crtmodules.opmon.SourceInfo)
218 return target;
219}
220
221::size_t SourceInfo::ByteSizeLong() const {
222// @@protoc_insertion_point(message_byte_size_start:dunedaq.crtmodules.opmon.SourceInfo)
223 ::size_t total_size = 0;
224
225 ::uint32_t cached_has_bits = 0;
226 // Prevent compiler warnings about cached_has_bits being unused
227 (void) cached_has_bits;
228
229 // uint32 dropped_frames = 1;
230 if (this->_internal_dropped_frames() != 0) {
231 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
233 }
234
235 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
236}
237
238const ::google::protobuf::Message::ClassData SourceInfo::_class_data_ = {
239 ::google::protobuf::Message::CopyWithSourceCheck,
241};
242const ::google::protobuf::Message::ClassData*SourceInfo::GetClassData() const { return &_class_data_; }
243
244
245void SourceInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
246 auto* const _this = static_cast<SourceInfo*>(&to_msg);
247 auto& from = static_cast<const SourceInfo&>(from_msg);
248 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.crtmodules.opmon.SourceInfo)
249 ABSL_DCHECK_NE(&from, _this);
250 ::uint32_t cached_has_bits = 0;
251 (void) cached_has_bits;
252
253 if (from._internal_dropped_frames() != 0) {
254 _this->_internal_set_dropped_frames(from._internal_dropped_frames());
255 }
256 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
257}
258
260// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.crtmodules.opmon.SourceInfo)
261 if (&from == this) return;
262 Clear();
263 MergeFrom(from);
264}
265
266PROTOBUF_NOINLINE bool SourceInfo::IsInitialized() const {
267 return true;
268}
269
271 using std::swap;
272 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
274}
275
281// @@protoc_insertion_point(namespace_scope)
282} // namespace opmon
283} // namespace crtmodules
284} // namespace dunedaq
285namespace google {
286namespace protobuf {
287} // namespace protobuf
288} // namespace google
289// @@protoc_insertion_point(global_scope)
290#include "google/protobuf/port_undef.inc"
const ::uint32_t TableStruct_asiolibs_2fopmon_2fSourceModel_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::_pb::Message *const file_default_instances[]
friend void swap(SourceInfo &a, SourceInfo &b)
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
void CopyFrom(const SourceInfo &from)
void SharedCtor(::google::protobuf::Arena *arena)
void SetCachedSize(int size) const final
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2 > _table_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const SourceInfo &from)
const ::google::protobuf::Message::ClassData * GetClassData() const final
::google::protobuf::Metadata GetMetadata() const final
::_pb::Metadata file_level_metadata_crtmodules_2fopmon_2fSourceModel_2eproto[1]
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_crtmodules_2fopmon_2fSourceModel_2eproto
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_crtmodules_2fopmon_2fSourceModel_2eproto_getter()
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_crtmodules_2fopmon_2fSourceModel_2eproto
const ::_pbi::DescriptorTable descriptor_table_crtmodules_2fopmon_2fSourceModel_2eproto
::absl::once_flag descriptor_table_crtmodules_2fopmon_2fSourceModel_2eproto_once
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfoDefaultTypeInternal _SourceInfo_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_