DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
application.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: appfwk/opmon/application.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 appfwk {
25namespace opmon {
26 template <typename>
27PROTOBUF_CONSTEXPR AppInfo::AppInfo(::_pbi::ConstantInitialized)
28 : _impl_{
29 /*decltype(_impl_.state_)*/ {
30 &::_pbi::fixed_address_empty_string,
31 ::_pbi::ConstantInitialized{},
32 },
33 /*decltype(_impl_.host_)*/ {
34 &::_pbi::fixed_address_empty_string,
35 ::_pbi::ConstantInitialized{},
36 },
37 /*decltype(_impl_.busy_)*/ false,
38 /*decltype(_impl_.error_)*/ false,
39 /*decltype(_impl_._cached_size_)*/ {},
40 } {}
42 PROTOBUF_CONSTEXPR AppInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
44 union {
46 };
47};
48
49PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
50 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppInfoDefaultTypeInternal _AppInfo_default_instance_;
51} // namespace opmon
52} // namespace appfwk
53} // namespace dunedaq
55static constexpr const ::_pb::EnumDescriptor**
57static constexpr const ::_pb::ServiceDescriptor**
60 protodesc_cold) = {
61 ~0u, // no _has_bits_
62 PROTOBUF_FIELD_OFFSET(::dunedaq::appfwk::opmon::AppInfo, _internal_metadata_),
63 ~0u, // no _extensions_
64 ~0u, // no _oneof_case_
65 ~0u, // no _weak_field_map_
66 ~0u, // no _inlined_string_donated_
67 ~0u, // no _split_
68 ~0u, // no sizeof(Split)
69 PROTOBUF_FIELD_OFFSET(::dunedaq::appfwk::opmon::AppInfo, _impl_.state_),
70 PROTOBUF_FIELD_OFFSET(::dunedaq::appfwk::opmon::AppInfo, _impl_.host_),
71 PROTOBUF_FIELD_OFFSET(::dunedaq::appfwk::opmon::AppInfo, _impl_.busy_),
72 PROTOBUF_FIELD_OFFSET(::dunedaq::appfwk::opmon::AppInfo, _impl_.error_),
73};
74
75static const ::_pbi::MigrationSchema
76 schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
77 {0, -1, -1, sizeof(::dunedaq::appfwk::opmon::AppInfo)},
78};
79
83const char descriptor_table_protodef_appfwk_2fopmon_2fapplication_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
84 "\n\036appfwk/opmon/application.proto\022\024duneda"
85 "q.appfwk.opmon\"C\n\007AppInfo\022\r\n\005state\030\001 \001(\t"
86 "\022\014\n\004host\030\002 \001(\t\022\014\n\004busy\030\005 \001(\010\022\r\n\005error\030\006 "
87 "\001(\010b\006proto3"
88};
107
108// This function exists to be marked as weak.
109// It can significantly speed up compilation by breaking up LLVM's SCC
110// in the .pb.cc translation units. Large translation units see a
111// reduction of more than 35% of walltime for optimized builds. Without
112// the weak attribute all the messages in the file, including all the
113// vtables and everything they use become part of the same SCC through
114// a cycle like:
115// GetMetadata -> descriptor table -> default instances ->
116// vtables -> GetMetadata
117// By adding a weak function here we break the connection from the
118// individual vtables back into the descriptor table.
119PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_appfwk_2fopmon_2fapplication_2eproto_getter() {
121}
122// Force running AddDescriptors() at dynamic initialization time.
123PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
124static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_appfwk_2fopmon_2fapplication_2eproto(&descriptor_table_appfwk_2fopmon_2fapplication_2eproto);
125namespace dunedaq {
126namespace appfwk {
127namespace opmon {
128// ===================================================================
129
131 public:
132};
133
134AppInfo::AppInfo(::google::protobuf::Arena* arena)
135 : ::google::protobuf::Message(arena) {
136 SharedCtor(arena);
137 // @@protoc_insertion_point(arena_constructor:dunedaq.appfwk.opmon.AppInfo)
138}
139AppInfo::AppInfo(const AppInfo& from) : ::google::protobuf::Message() {
140 AppInfo* const _this = this;
141 (void)_this;
142 new (&_impl_) Impl_{
143 decltype(_impl_.state_){},
144 decltype(_impl_.host_){},
145 decltype(_impl_.busy_){},
146 decltype(_impl_.error_){},
147 /*decltype(_impl_._cached_size_)*/ {},
148 };
149 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
150 from._internal_metadata_);
151 _impl_.state_.InitDefault();
152 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
153 _impl_.state_.Set("", GetArenaForAllocation());
154 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
155 if (!from._internal_state().empty()) {
156 _this->_impl_.state_.Set(from._internal_state(), _this->GetArenaForAllocation());
157 }
158 _impl_.host_.InitDefault();
159 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
160 _impl_.host_.Set("", GetArenaForAllocation());
161 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
162 if (!from._internal_host().empty()) {
163 _this->_impl_.host_.Set(from._internal_host(), _this->GetArenaForAllocation());
164 }
165 ::memcpy(&_impl_.busy_, &from._impl_.busy_,
166 static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.error_) -
167 reinterpret_cast<char*>(&_impl_.busy_)) + sizeof(_impl_.error_));
168
169 // @@protoc_insertion_point(copy_constructor:dunedaq.appfwk.opmon.AppInfo)
170}
171inline void AppInfo::SharedCtor(::_pb::Arena* arena) {
172 (void)arena;
173 new (&_impl_) Impl_{
174 decltype(_impl_.state_){},
175 decltype(_impl_.host_){},
176 decltype(_impl_.busy_){false},
177 decltype(_impl_.error_){false},
178 /*decltype(_impl_._cached_size_)*/ {},
179 };
180 _impl_.state_.InitDefault();
181 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
182 _impl_.state_.Set("", GetArenaForAllocation());
183 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
184 _impl_.host_.InitDefault();
185 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
186 _impl_.host_.Set("", GetArenaForAllocation());
187 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
188}
190 // @@protoc_insertion_point(destructor:dunedaq.appfwk.opmon.AppInfo)
191 _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
192 SharedDtor();
193}
194inline void AppInfo::SharedDtor() {
195 ABSL_DCHECK(GetArenaForAllocation() == nullptr);
196 _impl_.state_.Destroy();
197 _impl_.host_.Destroy();
198}
201}
202
203PROTOBUF_NOINLINE void AppInfo::Clear() {
204// @@protoc_insertion_point(message_clear_start:dunedaq.appfwk.opmon.AppInfo)
205 ::uint32_t cached_has_bits = 0;
206 // Prevent compiler warnings about cached_has_bits being unused
207 (void) cached_has_bits;
208
209 _impl_.state_.ClearToEmpty();
210 _impl_.host_.ClearToEmpty();
211 ::memset(&_impl_.busy_, 0, static_cast<::size_t>(
212 reinterpret_cast<char*>(&_impl_.error_) -
213 reinterpret_cast<char*>(&_impl_.busy_)) + sizeof(_impl_.error_));
214 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
215}
216
218 const char* ptr, ::_pbi::ParseContext* ctx) {
219 ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
220 return ptr;
221}
222
223
224PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
225const ::_pbi::TcParseTable<3, 4, 0, 46, 2> AppInfo::_table_ = {
226 {
227 0, // no _has_bits_
228 0, // no _extensions_
229 6, 56, // max_field_number, fast_idx_mask
230 offsetof(decltype(_table_), field_lookup_table),
231 4294967244, // skipmap
232 offsetof(decltype(_table_), field_entries),
233 4, // num_field_entries
234 0, // num_aux_entries
235 offsetof(decltype(_table_), field_names), // no aux_entries
237 ::_pbi::TcParser::GenericFallback, // fallback
238 }, {{
239 {::_pbi::TcParser::MiniParse, {}},
240 // string state = 1;
241 {::_pbi::TcParser::FastUS1,
242 {10, 63, 0, PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.state_)}},
243 // string host = 2;
244 {::_pbi::TcParser::FastUS1,
245 {18, 63, 0, PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.host_)}},
246 {::_pbi::TcParser::MiniParse, {}},
247 {::_pbi::TcParser::MiniParse, {}},
248 // bool busy = 5;
249 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(AppInfo, _impl_.busy_), 63>(),
250 {40, 63, 0, PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.busy_)}},
251 // bool error = 6;
252 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(AppInfo, _impl_.error_), 63>(),
253 {48, 63, 0, PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.error_)}},
254 {::_pbi::TcParser::MiniParse, {}},
255 }}, {{
256 65535, 65535
257 }}, {{
258 // string state = 1;
259 {PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.state_), 0, 0,
260 (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
261 // string host = 2;
262 {PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.host_), 0, 0,
263 (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
264 // bool busy = 5;
265 {PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.busy_), 0, 0,
266 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
267 // bool error = 6;
268 {PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.error_), 0, 0,
269 (0 | ::_fl::kFcSingular | ::_fl::kBool)},
270 }},
271 // no aux_entries
272 {{
273 "\34\5\4\0\0\0\0\0"
274 "dunedaq.appfwk.opmon.AppInfo"
275 "state"
276 "host"
277 }},
278};
279
281 ::uint8_t* target,
282 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
283 // @@protoc_insertion_point(serialize_to_array_start:dunedaq.appfwk.opmon.AppInfo)
284 ::uint32_t cached_has_bits = 0;
285 (void)cached_has_bits;
286
287 // string state = 1;
288 if (!this->_internal_state().empty()) {
289 const std::string& _s = this->_internal_state();
290 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
291 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.appfwk.opmon.AppInfo.state");
292 target = stream->WriteStringMaybeAliased(1, _s, target);
293 }
294
295 // string host = 2;
296 if (!this->_internal_host().empty()) {
297 const std::string& _s = this->_internal_host();
298 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
299 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dunedaq.appfwk.opmon.AppInfo.host");
300 target = stream->WriteStringMaybeAliased(2, _s, target);
301 }
302
303 // bool busy = 5;
304 if (this->_internal_busy() != 0) {
305 target = stream->EnsureSpace(target);
306 target = ::_pbi::WireFormatLite::WriteBoolToArray(
307 5, this->_internal_busy(), target);
308 }
309
310 // bool error = 6;
311 if (this->_internal_error() != 0) {
312 target = stream->EnsureSpace(target);
313 target = ::_pbi::WireFormatLite::WriteBoolToArray(
314 6, this->_internal_error(), target);
315 }
316
317 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
318 target =
319 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
320 _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
321 }
322 // @@protoc_insertion_point(serialize_to_array_end:dunedaq.appfwk.opmon.AppInfo)
323 return target;
324}
325
326::size_t AppInfo::ByteSizeLong() const {
327// @@protoc_insertion_point(message_byte_size_start:dunedaq.appfwk.opmon.AppInfo)
328 ::size_t total_size = 0;
329
330 ::uint32_t cached_has_bits = 0;
331 // Prevent compiler warnings about cached_has_bits being unused
332 (void) cached_has_bits;
333
334 // string state = 1;
335 if (!this->_internal_state().empty()) {
336 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
337 this->_internal_state());
338 }
339
340 // string host = 2;
341 if (!this->_internal_host().empty()) {
342 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
343 this->_internal_host());
344 }
345
346 // bool busy = 5;
347 if (this->_internal_busy() != 0) {
348 total_size += 2;
349 }
350
351 // bool error = 6;
352 if (this->_internal_error() != 0) {
353 total_size += 2;
354 }
355
356 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
357}
358
359const ::google::protobuf::Message::ClassData AppInfo::_class_data_ = {
360 ::google::protobuf::Message::CopyWithSourceCheck,
362};
363const ::google::protobuf::Message::ClassData*AppInfo::GetClassData() const { return &_class_data_; }
364
365
366void AppInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
367 auto* const _this = static_cast<AppInfo*>(&to_msg);
368 auto& from = static_cast<const AppInfo&>(from_msg);
369 // @@protoc_insertion_point(class_specific_merge_from_start:dunedaq.appfwk.opmon.AppInfo)
370 ABSL_DCHECK_NE(&from, _this);
371 ::uint32_t cached_has_bits = 0;
372 (void) cached_has_bits;
373
374 if (!from._internal_state().empty()) {
375 _this->_internal_set_state(from._internal_state());
376 }
377 if (!from._internal_host().empty()) {
378 _this->_internal_set_host(from._internal_host());
379 }
380 if (from._internal_busy() != 0) {
381 _this->_internal_set_busy(from._internal_busy());
382 }
383 if (from._internal_error() != 0) {
384 _this->_internal_set_error(from._internal_error());
385 }
386 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
387}
388
389void AppInfo::CopyFrom(const AppInfo& from) {
390// @@protoc_insertion_point(class_specific_copy_from_start:dunedaq.appfwk.opmon.AppInfo)
391 if (&from == this) return;
392 Clear();
393 MergeFrom(from);
394}
395
396PROTOBUF_NOINLINE bool AppInfo::IsInitialized() const {
397 return true;
398}
399
401 using std::swap;
402 auto* lhs_arena = GetArenaForAllocation();
403 auto* rhs_arena = other->GetArenaForAllocation();
404 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
405 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.state_, lhs_arena,
406 &other->_impl_.state_, rhs_arena);
407 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_, lhs_arena,
408 &other->_impl_.host_, rhs_arena);
409 ::google::protobuf::internal::memswap<
410 PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.error_)
411 + sizeof(AppInfo::_impl_.error_)
412 - PROTOBUF_FIELD_OFFSET(AppInfo, _impl_.busy_)>(
413 reinterpret_cast<char*>(&_impl_.busy_),
414 reinterpret_cast<char*>(&other->_impl_.busy_));
415}
416
422// @@protoc_insertion_point(namespace_scope)
423} // namespace opmon
424} // namespace appfwk
425} // namespace dunedaq
426namespace google {
427namespace protobuf {
428} // namespace protobuf
429} // namespace google
430// @@protoc_insertion_point(global_scope)
431#include "google/protobuf/port_undef.inc"
::_pb::Metadata file_level_metadata_appfwk_2fopmon_2fapplication_2eproto[1]
static constexprconst ::_pb::EnumDescriptor ** file_level_enum_descriptors_appfwk_2fopmon_2fapplication_2eproto
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_appfwk_2fopmon_2fapplication_2eproto_getter()
const ::uint32_t TableStruct_appfwk_2fopmon_2fapplication_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
::absl::once_flag descriptor_table_appfwk_2fopmon_2fapplication_2eproto_once
static constexprconst ::_pb::ServiceDescriptor ** file_level_service_descriptors_appfwk_2fopmon_2fapplication_2eproto
const ::_pbi::DescriptorTable descriptor_table_appfwk_2fopmon_2fapplication_2eproto
static const ::_pb::Message *const file_default_instances[]
void SharedCtor(::google::protobuf::Arena *arena)
const std::string & _internal_host() const
const std::string & _internal_state() const
void MergeFrom(const AppInfo &from)
void SetCachedSize(int size) const final
::google::protobuf::Metadata GetMetadata() const final
static const ClassData _class_data_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static void MergeImpl(::google::protobuf::Message &to_msg, const ::google::protobuf::Message &from_msg)
::uint8_t * _InternalSerialize(::uint8_t *target, ::google::protobuf::io::EpsCopyOutputStream *stream) const final
void InternalSwap(AppInfo *other)
const char * _InternalParse(const char *ptr, ::google::protobuf::internal::ParseContext *ctx) final
void CopyFrom(const AppInfo &from)
const ::google::protobuf::Message::ClassData * GetClassData() const final
::size_t ByteSizeLong() const final
static const ::google::protobuf::internal::TcParseTable< 3, 4, 0, 46, 2 > _table_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppInfoDefaultTypeInternal _AppInfo_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_
::google::protobuf::internal::ArenaStringPtr state_
::google::protobuf::internal::ArenaStringPtr host_