DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CRTGrenobleReaderModule.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: crtmodules/opmon/CRTGrenobleReaderModule.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 CRTGrenobleReaderInfo::CRTGrenobleReaderInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.packet_rate_khz_)*/ 0,
30 /*decltype(_impl_._cached_size_)*/ {},
31 } {}
39
40PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
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::CRTGrenobleReaderInfo, _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::CRTGrenobleReaderInfo, _impl_.packet_rate_khz_),
61};
62
63static const ::_pbi::MigrationSchema
64 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
66};
67
71const char descriptor_table_protodef_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
72 "\n.crtmodules/opmon/CRTGrenobleReaderModu"
73 "le.proto\022\030dunedaq.crtmodules.opmon\"0\n\025CR"
74 "TGrenobleReaderInfo\022\027\n\017packet_rate_khz\030\001"
75 " \001(\001b\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_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto(&descriptor_table_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto);
113namespace dunedaq {
114namespace crtmodules {
115namespace opmon {
116// ===================================================================
117
119 public:
120};
121
122CRTGrenobleReaderInfo::CRTGrenobleReaderInfo(::google::protobuf::Arena* arena)
123 : ::google::protobuf::Message(arena) {
124 SharedCtor(arena);
125 // @@protoc_insertion_point(arena_constructor:dunedaq.crtmodules.opmon.CRTGrenobleReaderInfo)
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.crtmodules.opmon.CRTGrenobleReaderInfo)
132}
133inline void CRTGrenobleReaderInfo::SharedCtor(::_pb::Arena* arena) {
134 (void)arena;
135 new (&_impl_) Impl_{
136 decltype(_impl_.packet_rate_khz_){0},
137 /*decltype(_impl_._cached_size_)*/ {},
138 };
139}
141 // @@protoc_insertion_point(destructor:dunedaq.crtmodules.opmon.CRTGrenobleReaderInfo)
142 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
143 SharedDtor();
144}
146 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
147}
151
152PROTOBUF_NOINLINE void CRTGrenobleReaderInfo::Clear() {
153// @@protoc_insertion_point(message_clear_start:dunedaq.crtmodules.opmon.CRTGrenobleReaderInfo)
154 ::uint32_t cached_has_bits = 0;
155 // Prevent compiler warnings about cached_has_bits being unused
156 (void) cached_has_bits;
157
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> CRTGrenobleReaderInfo::_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 // double packet_rate_khz = 1;
185 {::_pbi::TcParser::FastF64S1,
186 {9, 63, 0, PROTOBUF_FIELD_OFFSET(CRTGrenobleReaderInfo, _impl_.packet_rate_khz_)}},
187 }}, {{
188 65535, 65535
189 }}, {{
190 // double packet_rate_khz = 1;
191 {PROTOBUF_FIELD_OFFSET(CRTGrenobleReaderInfo, _impl_.packet_rate_khz_), 0, 0,
192 (0 | ::_fl::kFcSingular | ::_fl::kDouble)},
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.crtmodules.opmon.CRTGrenobleReaderInfo)
203 ::uint32_t cached_has_bits = 0;
204 (void)cached_has_bits;
205
206 // double packet_rate_khz = 1;
207 static_assert(sizeof(::uint64_t) == sizeof(double),
208 "Code assumes ::uint64_t and double are the same size.");
209 double tmp_packet_rate_khz = this->_internal_packet_rate_khz();
210 ::uint64_t raw_packet_rate_khz;
211 memcpy(&raw_packet_rate_khz, &tmp_packet_rate_khz, sizeof(tmp_packet_rate_khz));
212 if (raw_packet_rate_khz != 0) {
213 target = stream->EnsureSpace(target);
214 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
215 1, this->_internal_packet_rate_khz(), target);
216 }
217
218 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
219 target =
220 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
221 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
222 }
223 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.crtmodules.opmon.CRTGrenobleReaderInfo)
224 return target;
225}
226
228// @@protoc_insertion_point(message_byte_size_start:dunedaq.crtmodules.opmon.CRTGrenobleReaderInfo)
229 ::size_t total_size = 0;
230
231 ::uint32_t cached_has_bits = 0;
232 // Prevent compiler warnings about cached_has_bits being unused
233 (void) cached_has_bits;
234
235 // double packet_rate_khz = 1;
236 static_assert(sizeof(::uint64_t) == sizeof(double),
237 "Code assumes ::uint64_t and double are the same size.");
238 double tmp_packet_rate_khz = this->_internal_packet_rate_khz();
239 ::uint64_t raw_packet_rate_khz;
240 memcpy(&raw_packet_rate_khz, &tmp_packet_rate_khz, sizeof(tmp_packet_rate_khz));
241 if (raw_packet_rate_khz != 0) {
242 total_size += 9;
243 }
244
245 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
246}
247
248const ::google::protobuf::Message::ClassData CRTGrenobleReaderInfo::_class_data_ = {
249 ::google::protobuf::Message::CopyWithSourceCheck,
251};
252const ::google::protobuf::Message::ClassData*CRTGrenobleReaderInfo::GetClassData() const { return &_class_data_; }
253
254
255void CRTGrenobleReaderInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
256 auto* const _this = static_cast<CRTGrenobleReaderInfo*>(&to_msg);
257 auto& from = static_cast<const CRTGrenobleReaderInfo&>(from_msg);
258 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.crtmodules.opmon.CRTGrenobleReaderInfo)
259 ABSL_DCHECK_NE(&from, _this);
260 ::uint32_t cached_has_bits = 0;
261 (void) cached_has_bits;
262
263 static_assert(sizeof(::uint64_t) == sizeof(double),
264 "Code assumes ::uint64_t and double are the same size.");
265 double tmp_packet_rate_khz = from._internal_packet_rate_khz();
266 ::uint64_t raw_packet_rate_khz;
267 memcpy(&raw_packet_rate_khz, &tmp_packet_rate_khz, sizeof(tmp_packet_rate_khz));
268 if (raw_packet_rate_khz != 0) {
269 _this->_internal_set_packet_rate_khz(from._internal_packet_rate_khz());
270 }
271 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
272}
273
275// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.crtmodules.opmon.CRTGrenobleReaderInfo)
276 if (&from == this) return;
277 Clear();
278 MergeFrom(from);
279}
280
281PROTOBUF_NOINLINE bool CRTGrenobleReaderInfo::IsInitialized() const {
282 return true;
283}
284
286 using std::swap;
287 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
289}
290
296// @@protoc_insertion_point(namespace_scope)
297} // namespace opmon
298} // namespace crtmodules
299} // namespace dunedaq
300namespace google {
301namespace protobuf {
302} // namespace protobuf
303} // namespace google
304// @@protoc_insertion_point(global_scope)
305#include "google/protobuf/port_undef.inc"
const ::_pbi::DescriptorTable descriptor_table_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto_getter()
const ::uint32_t TableStruct_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
::absl::once_flag descriptor_table_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto_once
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto
::_pb::Metadata file_level_metadata_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto[1]
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_crtmodules_2fopmon_2fCRTGrenobleReaderModule_2eproto
static const ::_pb::Message *const file_default_instances[]
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::google::protobuf::Metadata GetMetadata() const final
static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2 > _table_
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
friend void swap(CRTGrenobleReaderInfo &a, CRTGrenobleReaderInfo &b)
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
const ::google::protobuf::Message::ClassData * GetClassData() const final
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CRTGrenobleReaderInfoDefaultTypeInternal _CRTGrenobleReaderInfo_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_