Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // NO CHECKED-IN PROTOBUF GENCODE
3 : // source: layerdirectory.proto
4 : // Protobuf C++ Version: 6.33.4
5 :
6 : #include "layerdirectory.pb.h"
7 :
8 : #include <algorithm>
9 : #include <type_traits>
10 : #include "google/protobuf/io/coded_stream.h"
11 : #include "google/protobuf/generated_message_tctable_impl.h"
12 : #include "google/protobuf/extension_set.h"
13 : #include "google/protobuf/generated_message_util.h"
14 : #include "google/protobuf/wire_format_lite.h"
15 : #include "google/protobuf/descriptor.h"
16 : #include "google/protobuf/generated_message_reflection.h"
17 : #include "google/protobuf/reflection_ops.h"
18 : #include "google/protobuf/wire_format.h"
19 : // @@protoc_insertion_point(includes)
20 :
21 : // Must be included last.
22 : #include "google/protobuf/port_def.inc"
23 : PROTOBUF_PRAGMA_INIT_SEG
24 : namespace _pb = ::google::protobuf;
25 : namespace _pbi = ::google::protobuf::internal;
26 : namespace _fl = ::google::protobuf::internal::field_layout;
27 : namespace Odb {
28 : namespace Lib {
29 : namespace Protobuf {
30 :
31 : inline constexpr LayerDirectory::Impl_::Impl_(
32 : ::_pbi::ConstantInitialized) noexcept
33 : : _cached_size_{0},
34 : name_(
35 : &::google::protobuf::internal::fixed_address_empty_string,
36 : ::_pbi::ConstantInitialized()),
37 : path_(
38 : &::google::protobuf::internal::fixed_address_empty_string,
39 : ::_pbi::ConstantInitialized()),
40 : components_{nullptr},
41 : attrlistfile_{nullptr},
42 : featurefile_{nullptr},
43 : tools_{nullptr} {}
44 :
45 : template <typename>
46 : PROTOBUF_CONSTEXPR LayerDirectory::LayerDirectory(::_pbi::ConstantInitialized)
47 : #if defined(PROTOBUF_CUSTOM_VTABLE)
48 : : ::google::protobuf::Message(LayerDirectory_class_data_.base()),
49 : #else // PROTOBUF_CUSTOM_VTABLE
50 : : ::google::protobuf::Message(),
51 : #endif // PROTOBUF_CUSTOM_VTABLE
52 : _impl_(::_pbi::ConstantInitialized()) {
53 : }
54 : struct LayerDirectoryDefaultTypeInternal {
55 : PROTOBUF_CONSTEXPR LayerDirectoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
56 319 : ~LayerDirectoryDefaultTypeInternal() {}
57 : union {
58 : LayerDirectory _instance;
59 : };
60 : };
61 :
62 : PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT
63 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerDirectoryDefaultTypeInternal _LayerDirectory_default_instance_;
64 : } // namespace Protobuf
65 : } // namespace Lib
66 : } // namespace Odb
67 : static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
68 : file_level_enum_descriptors_layerdirectory_2eproto = nullptr;
69 : static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
70 : file_level_service_descriptors_layerdirectory_2eproto = nullptr;
71 : const ::uint32_t
72 : TableStruct_layerdirectory_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
73 : protodesc_cold) = {
74 : 0x081, // bitmap
75 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_._has_bits_),
76 : 9, // hasbit index offset
77 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.name_),
78 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.path_),
79 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.components_),
80 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.attrlistfile_),
81 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.featurefile_),
82 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.tools_),
83 : 0,
84 : 1,
85 : 2,
86 : 3,
87 : 4,
88 : 5,
89 : };
90 :
91 : static const ::_pbi::MigrationSchema
92 : schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
93 : {0, sizeof(::Odb::Lib::Protobuf::LayerDirectory)},
94 : };
95 : static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
96 : &::Odb::Lib::Protobuf::_LayerDirectory_default_instance_._instance,
97 : };
98 : const char descriptor_table_protodef_layerdirectory_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
99 : protodesc_cold) = {
100 : "\n\024layerdirectory.proto\022\020Odb.Lib.Protobuf"
101 : "\032\024componentsfile.proto\032\022attrlistfile.pro"
102 : "to\032\022featuresfile.proto\032\017toolsfile.proto\""
103 : "\363\002\n\016LayerDirectory\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\021\n"
104 : "\004path\030\002 \001(\tH\001\210\001\001\0229\n\ncomponents\030\003 \001(\0132 .O"
105 : "db.Lib.Protobuf.ComponentsFileH\002\210\001\001\0229\n\014a"
106 : "ttrlistFile\030\004 \001(\0132\036.Odb.Lib.Protobuf.Att"
107 : "rListFileH\003\210\001\001\0228\n\013featureFile\030\005 \001(\0132\036.Od"
108 : "b.Lib.Protobuf.FeaturesFileH\004\210\001\001\022/\n\005tool"
109 : "s\030\007 \001(\0132\033.Odb.Lib.Protobuf.ToolsFileH\005\210\001"
110 : "\001B\007\n\005_nameB\007\n\005_pathB\r\n\013_componentsB\017\n\r_a"
111 : "ttrlistFileB\016\n\014_featureFileB\010\n\006_toolsJ\004\010"
112 : "\006\020\007R\010toolFileB\003\370\001\001b\006proto3"
113 : };
114 : static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
115 : descriptor_table_layerdirectory_2eproto_deps[4] = {
116 : &::descriptor_table_attrlistfile_2eproto,
117 : &::descriptor_table_componentsfile_2eproto,
118 : &::descriptor_table_featuresfile_2eproto,
119 : &::descriptor_table_toolsfile_2eproto,
120 : };
121 : static ::absl::once_flag descriptor_table_layerdirectory_2eproto_once;
122 : PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_layerdirectory_2eproto = {
123 : false,
124 : false,
125 : 506,
126 : descriptor_table_protodef_layerdirectory_2eproto,
127 : "layerdirectory.proto",
128 : &descriptor_table_layerdirectory_2eproto_once,
129 : descriptor_table_layerdirectory_2eproto_deps,
130 : 4,
131 : 1,
132 : schemas,
133 : file_default_instances,
134 : TableStruct_layerdirectory_2eproto::offsets,
135 : file_level_enum_descriptors_layerdirectory_2eproto,
136 : file_level_service_descriptors_layerdirectory_2eproto,
137 : };
138 : namespace Odb {
139 : namespace Lib {
140 : namespace Protobuf {
141 : // ===================================================================
142 :
143 : class LayerDirectory::_Internal {
144 : public:
145 : using HasBits =
146 : decltype(::std::declval<LayerDirectory>()._impl_._has_bits_);
147 : static constexpr ::int32_t kHasBitsOffset =
148 : 8 * PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_._has_bits_);
149 : };
150 :
151 0 : void LayerDirectory::clear_components() {
152 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
153 0 : if (_impl_.components_ != nullptr) _impl_.components_->Clear();
154 0 : ClearHasBit(_impl_._has_bits_[0],
155 : 0x00000004U);
156 0 : }
157 0 : void LayerDirectory::clear_attrlistfile() {
158 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
159 0 : if (_impl_.attrlistfile_ != nullptr) _impl_.attrlistfile_->Clear();
160 0 : ClearHasBit(_impl_._has_bits_[0],
161 : 0x00000008U);
162 0 : }
163 0 : void LayerDirectory::clear_featurefile() {
164 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
165 0 : if (_impl_.featurefile_ != nullptr) _impl_.featurefile_->Clear();
166 0 : ClearHasBit(_impl_._has_bits_[0],
167 : 0x00000010U);
168 0 : }
169 0 : void LayerDirectory::clear_tools() {
170 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
171 0 : if (_impl_.tools_ != nullptr) _impl_.tools_->Clear();
172 0 : ClearHasBit(_impl_._has_bits_[0],
173 : 0x00000020U);
174 0 : }
175 19955 : LayerDirectory::LayerDirectory(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
176 : #if defined(PROTOBUF_CUSTOM_VTABLE)
177 : : ::google::protobuf::Message(arena, LayerDirectory_class_data_.base()) {
178 : #else // PROTOBUF_CUSTOM_VTABLE
179 19955 : : ::google::protobuf::Message(arena) {
180 : #endif // PROTOBUF_CUSTOM_VTABLE
181 19955 : SharedCtor(arena);
182 : // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.LayerDirectory)
183 19955 : }
184 312 : PROTOBUF_NDEBUG_INLINE LayerDirectory::Impl_::Impl_(
185 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
186 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
187 312 : [[maybe_unused]] const ::Odb::Lib::Protobuf::LayerDirectory& from_msg)
188 312 : : _has_bits_{from._has_bits_},
189 312 : _cached_size_{0},
190 312 : name_(arena, from.name_),
191 312 : path_(arena, from.path_) {}
192 :
193 312 : LayerDirectory::LayerDirectory(
194 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
195 312 : const LayerDirectory& from)
196 : #if defined(PROTOBUF_CUSTOM_VTABLE)
197 : : ::google::protobuf::Message(arena, LayerDirectory_class_data_.base()) {
198 : #else // PROTOBUF_CUSTOM_VTABLE
199 312 : : ::google::protobuf::Message(arena) {
200 : #endif // PROTOBUF_CUSTOM_VTABLE
201 312 : LayerDirectory* const _this = this;
202 : (void)_this;
203 312 : _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
204 312 : from._internal_metadata_);
205 312 : new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
206 312 : ::uint32_t cached_has_bits = _impl_._has_bits_[0];
207 312 : _impl_.components_ = (CheckHasBit(cached_has_bits, 0x00000004U))
208 624 : ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.components_)
209 : : nullptr;
210 312 : _impl_.attrlistfile_ = (CheckHasBit(cached_has_bits, 0x00000008U))
211 624 : ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.attrlistfile_)
212 : : nullptr;
213 312 : _impl_.featurefile_ = (CheckHasBit(cached_has_bits, 0x00000010U))
214 624 : ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.featurefile_)
215 : : nullptr;
216 624 : _impl_.tools_ = (CheckHasBit(cached_has_bits, 0x00000020U))
217 624 : ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.tools_)
218 : : nullptr;
219 :
220 : // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.LayerDirectory)
221 312 : }
222 19955 : PROTOBUF_NDEBUG_INLINE LayerDirectory::Impl_::Impl_(
223 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
224 19955 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
225 19955 : : _cached_size_{0},
226 19955 : name_(arena),
227 39910 : path_(arena) {}
228 :
229 19955 : inline void LayerDirectory::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
230 19955 : new (&_impl_) Impl_(internal_visibility(), arena);
231 19955 : ::memset(reinterpret_cast<char*>(&_impl_) +
232 : offsetof(Impl_, components_),
233 : 0,
234 : offsetof(Impl_, tools_) -
235 : offsetof(Impl_, components_) +
236 : sizeof(Impl_::tools_));
237 19955 : }
238 27472 : LayerDirectory::~LayerDirectory() {
239 : // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.LayerDirectory)
240 20267 : SharedDtor(*this);
241 27472 : }
242 20267 : inline void LayerDirectory::SharedDtor(MessageLite& self) {
243 20267 : LayerDirectory& this_ = static_cast<LayerDirectory&>(self);
244 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
245 20267 : this_.CheckHasBitConsistency();
246 : }
247 20267 : this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
248 20267 : ABSL_DCHECK(this_.GetArena() == nullptr);
249 20267 : this_._impl_.name_.Destroy();
250 20267 : this_._impl_.path_.Destroy();
251 20267 : delete this_._impl_.components_;
252 20267 : delete this_._impl_.attrlistfile_;
253 20267 : delete this_._impl_.featurefile_;
254 20267 : delete this_._impl_.tools_;
255 20267 : this_._impl_.~Impl_();
256 20267 : }
257 :
258 5123 : inline void* PROTOBUF_NONNULL LayerDirectory::PlacementNew_(
259 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
260 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
261 5123 : return ::new (mem) LayerDirectory(arena);
262 : }
263 : constexpr auto LayerDirectory::InternalNewImpl_() {
264 : return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LayerDirectory),
265 : alignof(LayerDirectory));
266 : }
267 : constexpr auto LayerDirectory::InternalGenerateClassData_() {
268 : return ::google::protobuf::internal::ClassDataFull{
269 : ::google::protobuf::internal::ClassData{
270 : &_LayerDirectory_default_instance_._instance,
271 : &_table_.header,
272 : nullptr, // OnDemandRegisterArenaDtor
273 : nullptr, // IsInitialized
274 : &LayerDirectory::MergeImpl,
275 : ::google::protobuf::Message::GetNewImpl<LayerDirectory>(),
276 : #if defined(PROTOBUF_CUSTOM_VTABLE)
277 : &LayerDirectory::SharedDtor,
278 : ::google::protobuf::Message::GetClearImpl<LayerDirectory>(), &LayerDirectory::ByteSizeLong,
279 : &LayerDirectory::_InternalSerialize,
280 : #endif // PROTOBUF_CUSTOM_VTABLE
281 : PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_._cached_size_),
282 : false,
283 : },
284 : &LayerDirectory::kDescriptorMethods,
285 : &descriptor_table_layerdirectory_2eproto,
286 : nullptr, // tracker
287 : };
288 : }
289 :
290 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
291 : ::google::protobuf::internal::ClassDataFull LayerDirectory_class_data_ =
292 : LayerDirectory::InternalGenerateClassData_();
293 :
294 : PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
295 121174 : LayerDirectory::GetClassData() const {
296 121174 : ::google::protobuf::internal::PrefetchToLocalCache(&LayerDirectory_class_data_);
297 121174 : ::google::protobuf::internal::PrefetchToLocalCache(LayerDirectory_class_data_.tc_table);
298 121174 : return LayerDirectory_class_data_.base();
299 : }
300 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
301 : const ::_pbi::TcParseTable<3, 6, 4, 48, 2>
302 : LayerDirectory::_table_ = {
303 : {
304 : PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_._has_bits_),
305 : 0, // no _extensions_
306 : 7, 56, // max_field_number, fast_idx_mask
307 : offsetof(decltype(_table_), field_lookup_table),
308 : 4294967200, // skipmap
309 : offsetof(decltype(_table_), field_entries),
310 : 6, // num_field_entries
311 : 4, // num_aux_entries
312 : offsetof(decltype(_table_), aux_entries),
313 : LayerDirectory_class_data_.base(),
314 : nullptr, // post_loop_handler
315 : ::_pbi::TcParser::GenericFallback, // fallback
316 : #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
317 : ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::LayerDirectory>(), // to_prefetch
318 : #endif // PROTOBUF_PREFETCH_PARSE_TABLE
319 : }, {{
320 : {::_pbi::TcParser::MiniParse, {}},
321 : // optional string name = 1;
322 : {::_pbi::TcParser::FastUS1,
323 : {10, 0, 0,
324 : PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.name_)}},
325 : // optional string path = 2;
326 : {::_pbi::TcParser::FastUS1,
327 : {18, 1, 0,
328 : PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.path_)}},
329 : // optional .Odb.Lib.Protobuf.ComponentsFile components = 3;
330 : {::_pbi::TcParser::FastMtS1,
331 : {26, 2, 0,
332 : PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.components_)}},
333 : // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4;
334 : {::_pbi::TcParser::FastMtS1,
335 : {34, 3, 1,
336 : PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.attrlistfile_)}},
337 : // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5;
338 : {::_pbi::TcParser::FastMtS1,
339 : {42, 4, 2,
340 : PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.featurefile_)}},
341 : {::_pbi::TcParser::MiniParse, {}},
342 : // optional .Odb.Lib.Protobuf.ToolsFile tools = 7;
343 : {::_pbi::TcParser::FastMtS1,
344 : {58, 5, 3,
345 : PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.tools_)}},
346 : }}, {{
347 : 65535, 65535
348 : }}, {{
349 : // optional string name = 1;
350 : {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
351 : // optional string path = 2;
352 : {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
353 : // optional .Odb.Lib.Protobuf.ComponentsFile components = 3;
354 : {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.components_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
355 : // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4;
356 : {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.attrlistfile_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
357 : // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5;
358 : {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.featurefile_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
359 : // optional .Odb.Lib.Protobuf.ToolsFile tools = 7;
360 : {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.tools_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
361 : }},
362 : {{
363 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile>()},
364 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::AttrListFile>()},
365 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FeaturesFile>()},
366 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ToolsFile>()},
367 : }},
368 : {{
369 : "\37\4\4\0\0\0\0\0"
370 : "Odb.Lib.Protobuf.LayerDirectory"
371 : "name"
372 : "path"
373 : }},
374 : };
375 16675 : PROTOBUF_NOINLINE void LayerDirectory::Clear() {
376 : // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.LayerDirectory)
377 16675 : ::google::protobuf::internal::TSanWrite(&_impl_);
378 16675 : ::uint32_t cached_has_bits = 0;
379 : // Prevent compiler warnings about cached_has_bits being unused
380 : (void) cached_has_bits;
381 :
382 16675 : cached_has_bits = _impl_._has_bits_[0];
383 16675 : if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
384 2 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
385 2 : _impl_.name_.ClearNonDefaultToEmpty();
386 : }
387 2 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
388 2 : _impl_.path_.ClearNonDefaultToEmpty();
389 : }
390 2 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
391 2 : ABSL_DCHECK(_impl_.components_ != nullptr);
392 2 : _impl_.components_->Clear();
393 : }
394 2 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
395 2 : ABSL_DCHECK(_impl_.attrlistfile_ != nullptr);
396 2 : _impl_.attrlistfile_->Clear();
397 : }
398 2 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
399 2 : ABSL_DCHECK(_impl_.featurefile_ != nullptr);
400 2 : _impl_.featurefile_->Clear();
401 : }
402 2 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
403 2 : ABSL_DCHECK(_impl_.tools_ != nullptr);
404 2 : _impl_.tools_->Clear();
405 : }
406 : }
407 16675 : _impl_._has_bits_.Clear();
408 16675 : _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
409 16675 : }
410 :
411 : #if defined(PROTOBUF_CUSTOM_VTABLE)
412 : ::uint8_t* PROTOBUF_NONNULL LayerDirectory::_InternalSerialize(
413 : const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
414 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
415 : const LayerDirectory& this_ = static_cast<const LayerDirectory&>(base);
416 : #else // PROTOBUF_CUSTOM_VTABLE
417 2738 : ::uint8_t* PROTOBUF_NONNULL LayerDirectory::_InternalSerialize(
418 : ::uint8_t* PROTOBUF_NONNULL target,
419 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
420 2738 : const LayerDirectory& this_ = *this;
421 : #endif // PROTOBUF_CUSTOM_VTABLE
422 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
423 2738 : this_.CheckHasBitConsistency();
424 : }
425 : // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.LayerDirectory)
426 2738 : ::uint32_t cached_has_bits = 0;
427 : (void)cached_has_bits;
428 :
429 2738 : cached_has_bits = this_._impl_._has_bits_[0];
430 : // optional string name = 1;
431 2738 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
432 2738 : const ::std::string& _s = this_._internal_name();
433 5476 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
434 2738 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.LayerDirectory.name");
435 2738 : target = stream->WriteStringMaybeAliased(1, _s, target);
436 : }
437 :
438 : // optional string path = 2;
439 2738 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
440 2738 : const ::std::string& _s = this_._internal_path();
441 5476 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
442 2738 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.LayerDirectory.path");
443 2738 : target = stream->WriteStringMaybeAliased(2, _s, target);
444 : }
445 :
446 : // optional .Odb.Lib.Protobuf.ComponentsFile components = 3;
447 2738 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
448 2738 : target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
449 2738 : 3, *this_._impl_.components_, this_._impl_.components_->GetCachedSize(), target,
450 : stream);
451 : }
452 :
453 : // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4;
454 2738 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
455 2738 : target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
456 2738 : 4, *this_._impl_.attrlistfile_, this_._impl_.attrlistfile_->GetCachedSize(), target,
457 : stream);
458 : }
459 :
460 : // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5;
461 2738 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
462 2738 : target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
463 2738 : 5, *this_._impl_.featurefile_, this_._impl_.featurefile_->GetCachedSize(), target,
464 : stream);
465 : }
466 :
467 : // optional .Odb.Lib.Protobuf.ToolsFile tools = 7;
468 2738 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
469 2738 : target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
470 2738 : 7, *this_._impl_.tools_, this_._impl_.tools_->GetCachedSize(), target,
471 : stream);
472 : }
473 :
474 2738 : if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
475 : target =
476 0 : ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
477 : this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
478 : }
479 : // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.LayerDirectory)
480 2738 : return target;
481 : }
482 :
483 : #if defined(PROTOBUF_CUSTOM_VTABLE)
484 : ::size_t LayerDirectory::ByteSizeLong(const MessageLite& base) {
485 : const LayerDirectory& this_ = static_cast<const LayerDirectory&>(base);
486 : #else // PROTOBUF_CUSTOM_VTABLE
487 3607 : ::size_t LayerDirectory::ByteSizeLong() const {
488 3607 : const LayerDirectory& this_ = *this;
489 : #endif // PROTOBUF_CUSTOM_VTABLE
490 : // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.LayerDirectory)
491 3607 : ::size_t total_size = 0;
492 :
493 3607 : ::uint32_t cached_has_bits = 0;
494 : // Prevent compiler warnings about cached_has_bits being unused
495 : (void)cached_has_bits;
496 :
497 : ::_pbi::Prefetch5LinesFrom7Lines(&this_);
498 3607 : cached_has_bits = this_._impl_._has_bits_[0];
499 3607 : if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
500 : // optional string name = 1;
501 3607 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
502 3607 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
503 : this_._internal_name());
504 : }
505 : // optional string path = 2;
506 3607 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
507 3607 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
508 : this_._internal_path());
509 : }
510 : // optional .Odb.Lib.Protobuf.ComponentsFile components = 3;
511 3607 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
512 3607 : total_size += 1 +
513 3607 : ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.components_);
514 : }
515 : // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4;
516 3607 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
517 3607 : total_size += 1 +
518 3607 : ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attrlistfile_);
519 : }
520 : // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5;
521 3607 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
522 3607 : total_size += 1 +
523 3607 : ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.featurefile_);
524 : }
525 : // optional .Odb.Lib.Protobuf.ToolsFile tools = 7;
526 3607 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
527 3607 : total_size += 1 +
528 3607 : ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tools_);
529 : }
530 : }
531 3607 : return this_.MaybeComputeUnknownFieldsSize(total_size,
532 3607 : &this_._impl_._cached_size_);
533 : }
534 :
535 16675 : void LayerDirectory::MergeImpl(::google::protobuf::MessageLite& to_msg,
536 : const ::google::protobuf::MessageLite& from_msg) {
537 16675 : auto* const _this =
538 : static_cast<LayerDirectory*>(&to_msg);
539 16675 : auto& from = static_cast<const LayerDirectory&>(from_msg);
540 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
541 16675 : from.CheckHasBitConsistency();
542 : }
543 16675 : ::google::protobuf::Arena* arena = _this->GetArena();
544 : // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.LayerDirectory)
545 16675 : ABSL_DCHECK_NE(&from, _this);
546 16675 : ::uint32_t cached_has_bits = 0;
547 : (void)cached_has_bits;
548 :
549 16675 : cached_has_bits = from._impl_._has_bits_[0];
550 16675 : if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
551 16675 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
552 16675 : _this->_internal_set_name(from._internal_name());
553 : }
554 16675 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
555 16675 : _this->_internal_set_path(from._internal_path());
556 : }
557 16675 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
558 16675 : ABSL_DCHECK(from._impl_.components_ != nullptr);
559 16675 : if (_this->_impl_.components_ == nullptr) {
560 33346 : _this->_impl_.components_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.components_);
561 : } else {
562 2 : _this->_impl_.components_->MergeFrom(*from._impl_.components_);
563 : }
564 : }
565 16675 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
566 16675 : ABSL_DCHECK(from._impl_.attrlistfile_ != nullptr);
567 16675 : if (_this->_impl_.attrlistfile_ == nullptr) {
568 33346 : _this->_impl_.attrlistfile_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.attrlistfile_);
569 : } else {
570 2 : _this->_impl_.attrlistfile_->MergeFrom(*from._impl_.attrlistfile_);
571 : }
572 : }
573 16675 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
574 16675 : ABSL_DCHECK(from._impl_.featurefile_ != nullptr);
575 16675 : if (_this->_impl_.featurefile_ == nullptr) {
576 33346 : _this->_impl_.featurefile_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.featurefile_);
577 : } else {
578 2 : _this->_impl_.featurefile_->MergeFrom(*from._impl_.featurefile_);
579 : }
580 : }
581 16675 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
582 16675 : ABSL_DCHECK(from._impl_.tools_ != nullptr);
583 16675 : if (_this->_impl_.tools_ == nullptr) {
584 33346 : _this->_impl_.tools_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.tools_);
585 : } else {
586 2 : _this->_impl_.tools_->MergeFrom(*from._impl_.tools_);
587 : }
588 : }
589 : }
590 16675 : _this->_impl_._has_bits_[0] |= cached_has_bits;
591 16675 : _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
592 16675 : from._internal_metadata_);
593 16675 : }
594 :
595 12150 : void LayerDirectory::CopyFrom(const LayerDirectory& from) {
596 : // @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.LayerDirectory)
597 12150 : if (&from == this) return;
598 12150 : Clear();
599 12150 : MergeFrom(from);
600 : }
601 :
602 :
603 0 : void LayerDirectory::InternalSwap(LayerDirectory* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
604 : using ::std::swap;
605 0 : auto* arena = GetArena();
606 0 : ABSL_DCHECK_EQ(arena, other->GetArena());
607 0 : _internal_metadata_.InternalSwap(&other->_internal_metadata_);
608 0 : swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
609 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
610 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena);
611 : ::google::protobuf::internal::memswap<
612 : PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.tools_)
613 : + sizeof(LayerDirectory::_impl_.tools_)
614 0 : - PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.components_)>(
615 0 : reinterpret_cast<char*>(&_impl_.components_),
616 0 : reinterpret_cast<char*>(&other->_impl_.components_));
617 0 : }
618 :
619 0 : ::google::protobuf::Metadata LayerDirectory::GetMetadata() const {
620 0 : return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
621 : }
622 : // @@protoc_insertion_point(namespace_scope)
623 : } // namespace Protobuf
624 : } // namespace Lib
625 : } // namespace Odb
626 : namespace google {
627 : namespace protobuf {
628 : } // namespace protobuf
629 : } // namespace google
630 : // @@protoc_insertion_point(global_scope)
631 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
632 : _static_init2_ [[maybe_unused]] =
633 : (::_pbi::AddDescriptors(&descriptor_table_layerdirectory_2eproto),
634 : ::std::false_type{});
635 : #include "google/protobuf/port_undef.inc"
|