Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // NO CHECKED-IN PROTOBUF GENCODE
3 : // source: toolsfile.proto
4 : // Protobuf C++ Version: 6.33.4
5 :
6 : #include "toolsfile.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 ToolsFile_Tool::Impl_::Impl_(
32 : ::_pbi::ConstantInitialized) noexcept
33 : : _cached_size_{0},
34 : bit_(
35 : &::google::protobuf::internal::fixed_address_empty_string,
36 : ::_pbi::ConstantInitialized()),
37 : num_{0u},
38 : type_{static_cast< ::Odb::Lib::Protobuf::ToolsFile_ToolType >(0)},
39 : mintol_{0},
40 : maxtol_{0},
41 : finishsize_{0},
42 : drillsize_{0},
43 : subtype_{static_cast< ::Odb::Lib::Protobuf::ToolsFile_ToolSubType >(0)} {}
44 :
45 : template <typename>
46 : PROTOBUF_CONSTEXPR ToolsFile_Tool::ToolsFile_Tool(::_pbi::ConstantInitialized)
47 : #if defined(PROTOBUF_CUSTOM_VTABLE)
48 : : ::google::protobuf::Message(ToolsFile_Tool_class_data_.base()),
49 : #else // PROTOBUF_CUSTOM_VTABLE
50 : : ::google::protobuf::Message(),
51 : #endif // PROTOBUF_CUSTOM_VTABLE
52 : _impl_(::_pbi::ConstantInitialized()) {
53 : }
54 : struct ToolsFile_ToolDefaultTypeInternal {
55 : PROTOBUF_CONSTEXPR ToolsFile_ToolDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
56 319 : ~ToolsFile_ToolDefaultTypeInternal() {}
57 : union {
58 : ToolsFile_Tool _instance;
59 : };
60 : };
61 :
62 : PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT
63 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ToolsFile_ToolDefaultTypeInternal _ToolsFile_Tool_default_instance_;
64 :
65 : inline constexpr ToolsFile::Impl_::Impl_(
66 : ::_pbi::ConstantInitialized) noexcept
67 : : _cached_size_{0},
68 : userparams_{},
69 : tools_{},
70 : units_(
71 : &::google::protobuf::internal::fixed_address_empty_string,
72 : ::_pbi::ConstantInitialized()),
73 : directory_(
74 : &::google::protobuf::internal::fixed_address_empty_string,
75 : ::_pbi::ConstantInitialized()),
76 : path_(
77 : &::google::protobuf::internal::fixed_address_empty_string,
78 : ::_pbi::ConstantInitialized()),
79 : thickness_{0} {}
80 :
81 : template <typename>
82 : PROTOBUF_CONSTEXPR ToolsFile::ToolsFile(::_pbi::ConstantInitialized)
83 : #if defined(PROTOBUF_CUSTOM_VTABLE)
84 : : ::google::protobuf::Message(ToolsFile_class_data_.base()),
85 : #else // PROTOBUF_CUSTOM_VTABLE
86 : : ::google::protobuf::Message(),
87 : #endif // PROTOBUF_CUSTOM_VTABLE
88 : _impl_(::_pbi::ConstantInitialized()) {
89 : }
90 : struct ToolsFileDefaultTypeInternal {
91 : PROTOBUF_CONSTEXPR ToolsFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
92 319 : ~ToolsFileDefaultTypeInternal() {}
93 : union {
94 : ToolsFile _instance;
95 : };
96 : };
97 :
98 : PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT
99 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ToolsFileDefaultTypeInternal _ToolsFile_default_instance_;
100 : } // namespace Protobuf
101 : } // namespace Lib
102 : } // namespace Odb
103 : static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
104 : file_level_enum_descriptors_toolsfile_2eproto[2];
105 : static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
106 : file_level_service_descriptors_toolsfile_2eproto = nullptr;
107 : const ::uint32_t
108 : TableStruct_toolsfile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
109 : protodesc_cold) = {
110 : 0x081, // bitmap
111 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile_Tool, _impl_._has_bits_),
112 : 11, // hasbit index offset
113 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile_Tool, _impl_.num_),
114 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile_Tool, _impl_.type_),
115 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile_Tool, _impl_.subtype_),
116 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile_Tool, _impl_.mintol_),
117 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile_Tool, _impl_.maxtol_),
118 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile_Tool, _impl_.bit_),
119 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile_Tool, _impl_.finishsize_),
120 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile_Tool, _impl_.drillsize_),
121 : 1,
122 : 2,
123 : 7,
124 : 3,
125 : 4,
126 : 0,
127 : 5,
128 : 6,
129 : 0x081, // bitmap
130 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile, _impl_._has_bits_),
131 : 9, // hasbit index offset
132 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile, _impl_.units_),
133 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile, _impl_.thickness_),
134 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile, _impl_.userparams_),
135 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile, _impl_.tools_),
136 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile, _impl_.directory_),
137 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ToolsFile, _impl_.path_),
138 : 2,
139 : 5,
140 : 0,
141 : 1,
142 : 3,
143 : 4,
144 : };
145 :
146 : static const ::_pbi::MigrationSchema
147 : schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
148 : {0, sizeof(::Odb::Lib::Protobuf::ToolsFile_Tool)},
149 : {19, sizeof(::Odb::Lib::Protobuf::ToolsFile)},
150 : };
151 : static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
152 : &::Odb::Lib::Protobuf::_ToolsFile_Tool_default_instance_._instance,
153 : &::Odb::Lib::Protobuf::_ToolsFile_default_instance_._instance,
154 : };
155 : const char descriptor_table_protodef_toolsfile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
156 : protodesc_cold) = {
157 : "\n\017toolsfile.proto\022\020Odb.Lib.Protobuf\"\311\005\n\t"
158 : "ToolsFile\022\022\n\005units\030\001 \001(\tH\000\210\001\001\022\026\n\tthickne"
159 : "ss\030\002 \001(\001H\001\210\001\001\022\022\n\nuserParams\030\003 \003(\t\022/\n\005too"
160 : "ls\030\004 \003(\0132 .Odb.Lib.Protobuf.ToolsFile.To"
161 : "ol\022\026\n\tdirectory\030\005 \001(\tH\002\210\001\001\022\021\n\004path\030\006 \001(\t"
162 : "H\003\210\001\001\032\325\002\n\004Tool\022\020\n\003num\030\001 \001(\rH\000\210\001\001\0227\n\004type"
163 : "\030\002 \001(\0162$.Odb.Lib.Protobuf.ToolsFile.Tool"
164 : "TypeH\001\210\001\001\022=\n\007subType\030\003 \001(\0162\'.Odb.Lib.Pro"
165 : "tobuf.ToolsFile.ToolSubTypeH\002\210\001\001\022\023\n\006minT"
166 : "ol\030\004 \001(\001H\003\210\001\001\022\023\n\006maxTol\030\005 \001(\001H\004\210\001\001\022\020\n\003bi"
167 : "t\030\006 \001(\tH\005\210\001\001\022\027\n\nfinishSize\030\007 \001(\001H\006\210\001\001\022\026\n"
168 : "\tdrillSize\030\010 \001(\001H\007\210\001\001B\006\n\004_numB\007\n\005_typeB\n"
169 : "\n\010_subTypeB\t\n\007_minTolB\t\n\007_maxTolB\006\n\004_bit"
170 : "B\r\n\013_finishSizeB\014\n\n_drillSize\"A\n\010ToolTyp"
171 : "e\022\020\n\014UNKNOWN_TYPE\020\000\022\n\n\006PLATED\020\001\022\016\n\nNON_P"
172 : "LATED\020\002\022\007\n\003VIA\020\003\"V\n\013ToolSubType\022\024\n\020UNKNO"
173 : "WN_SUB_TYPE\020\000\022\014\n\010STANDARD\020\001\022\r\n\tPRESS_FIT"
174 : "\020\002\022\t\n\005PHOTO\020\003\022\t\n\005LASER\020\004B\010\n\006_unitsB\014\n\n_t"
175 : "hicknessB\014\n\n_directoryB\007\n\005_pathB\003\370\001\001b\006pr"
176 : "oto3"
177 : };
178 : static ::absl::once_flag descriptor_table_toolsfile_2eproto_once;
179 : PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_toolsfile_2eproto = {
180 : false,
181 : false,
182 : 764,
183 : descriptor_table_protodef_toolsfile_2eproto,
184 : "toolsfile.proto",
185 : &descriptor_table_toolsfile_2eproto_once,
186 : nullptr,
187 : 0,
188 : 2,
189 : schemas,
190 : file_default_instances,
191 : TableStruct_toolsfile_2eproto::offsets,
192 : file_level_enum_descriptors_toolsfile_2eproto,
193 : file_level_service_descriptors_toolsfile_2eproto,
194 : };
195 : namespace Odb {
196 : namespace Lib {
197 : namespace Protobuf {
198 0 : const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL ToolsFile_ToolType_descriptor() {
199 0 : ::google::protobuf::internal::AssignDescriptors(&descriptor_table_toolsfile_2eproto);
200 0 : return file_level_enum_descriptors_toolsfile_2eproto[0];
201 : }
202 : PROTOBUF_CONSTINIT const uint32_t ToolsFile_ToolType_internal_data_[] = {
203 : 262144u, 0u, };
204 0 : const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL ToolsFile_ToolSubType_descriptor() {
205 0 : ::google::protobuf::internal::AssignDescriptors(&descriptor_table_toolsfile_2eproto);
206 0 : return file_level_enum_descriptors_toolsfile_2eproto[1];
207 : }
208 : PROTOBUF_CONSTINIT const uint32_t ToolsFile_ToolSubType_internal_data_[] = {
209 : 327680u, 0u, };
210 : // ===================================================================
211 :
212 : class ToolsFile_Tool::_Internal {
213 : public:
214 : using HasBits =
215 : decltype(::std::declval<ToolsFile_Tool>()._impl_._has_bits_);
216 : static constexpr ::int32_t kHasBitsOffset =
217 : 8 * PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_._has_bits_);
218 : };
219 :
220 3280 : ToolsFile_Tool::ToolsFile_Tool(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
221 : #if defined(PROTOBUF_CUSTOM_VTABLE)
222 : : ::google::protobuf::Message(arena, ToolsFile_Tool_class_data_.base()) {
223 : #else // PROTOBUF_CUSTOM_VTABLE
224 3280 : : ::google::protobuf::Message(arena) {
225 : #endif // PROTOBUF_CUSTOM_VTABLE
226 3280 : SharedCtor(arena);
227 : // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ToolsFile.Tool)
228 3280 : }
229 10426 : PROTOBUF_NDEBUG_INLINE ToolsFile_Tool::Impl_::Impl_(
230 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
231 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
232 10426 : [[maybe_unused]] const ::Odb::Lib::Protobuf::ToolsFile_Tool& from_msg)
233 10426 : : _has_bits_{from._has_bits_},
234 10426 : _cached_size_{0},
235 10426 : bit_(arena, from.bit_) {}
236 :
237 10426 : ToolsFile_Tool::ToolsFile_Tool(
238 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
239 10426 : const ToolsFile_Tool& from)
240 : #if defined(PROTOBUF_CUSTOM_VTABLE)
241 : : ::google::protobuf::Message(arena, ToolsFile_Tool_class_data_.base()) {
242 : #else // PROTOBUF_CUSTOM_VTABLE
243 10426 : : ::google::protobuf::Message(arena) {
244 : #endif // PROTOBUF_CUSTOM_VTABLE
245 10426 : ToolsFile_Tool* const _this = this;
246 : (void)_this;
247 10426 : _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
248 10426 : from._internal_metadata_);
249 10426 : new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
250 10426 : ::memcpy(reinterpret_cast<char*>(&_impl_) +
251 : offsetof(Impl_, num_),
252 10426 : reinterpret_cast<const char*>(&from._impl_) +
253 : offsetof(Impl_, num_),
254 : offsetof(Impl_, subtype_) -
255 : offsetof(Impl_, num_) +
256 : sizeof(Impl_::subtype_));
257 :
258 : // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ToolsFile.Tool)
259 10426 : }
260 3280 : PROTOBUF_NDEBUG_INLINE ToolsFile_Tool::Impl_::Impl_(
261 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
262 3280 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
263 3280 : : _cached_size_{0},
264 6560 : bit_(arena) {}
265 :
266 3280 : inline void ToolsFile_Tool::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
267 3280 : new (&_impl_) Impl_(internal_visibility(), arena);
268 3280 : ::memset(reinterpret_cast<char*>(&_impl_) +
269 : offsetof(Impl_, num_),
270 : 0,
271 : offsetof(Impl_, subtype_) -
272 : offsetof(Impl_, num_) +
273 : sizeof(Impl_::subtype_));
274 3280 : }
275 27411 : ToolsFile_Tool::~ToolsFile_Tool() {
276 : // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ToolsFile.Tool)
277 13706 : SharedDtor(*this);
278 27411 : }
279 13706 : inline void ToolsFile_Tool::SharedDtor(MessageLite& self) {
280 13706 : ToolsFile_Tool& this_ = static_cast<ToolsFile_Tool&>(self);
281 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
282 13706 : this_.CheckHasBitConsistency();
283 : }
284 13706 : this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
285 13706 : ABSL_DCHECK(this_.GetArena() == nullptr);
286 13706 : this_._impl_.bit_.Destroy();
287 13706 : this_._impl_.~Impl_();
288 13706 : }
289 :
290 391 : inline void* PROTOBUF_NONNULL ToolsFile_Tool::PlacementNew_(
291 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
292 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
293 391 : return ::new (mem) ToolsFile_Tool(arena);
294 : }
295 : constexpr auto ToolsFile_Tool::InternalNewImpl_() {
296 : return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ToolsFile_Tool),
297 : alignof(ToolsFile_Tool));
298 : }
299 : constexpr auto ToolsFile_Tool::InternalGenerateClassData_() {
300 : return ::google::protobuf::internal::ClassDataFull{
301 : ::google::protobuf::internal::ClassData{
302 : &_ToolsFile_Tool_default_instance_._instance,
303 : &_table_.header,
304 : nullptr, // OnDemandRegisterArenaDtor
305 : nullptr, // IsInitialized
306 : &ToolsFile_Tool::MergeImpl,
307 : ::google::protobuf::Message::GetNewImpl<ToolsFile_Tool>(),
308 : #if defined(PROTOBUF_CUSTOM_VTABLE)
309 : &ToolsFile_Tool::SharedDtor,
310 : ::google::protobuf::Message::GetClearImpl<ToolsFile_Tool>(), &ToolsFile_Tool::ByteSizeLong,
311 : &ToolsFile_Tool::_InternalSerialize,
312 : #endif // PROTOBUF_CUSTOM_VTABLE
313 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_._cached_size_),
314 : false,
315 : },
316 : &ToolsFile_Tool::kDescriptorMethods,
317 : &descriptor_table_toolsfile_2eproto,
318 : nullptr, // tracker
319 : };
320 : }
321 :
322 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
323 : ::google::protobuf::internal::ClassDataFull ToolsFile_Tool_class_data_ =
324 : ToolsFile_Tool::InternalGenerateClassData_();
325 :
326 : PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
327 42668 : ToolsFile_Tool::GetClassData() const {
328 42668 : ::google::protobuf::internal::PrefetchToLocalCache(&ToolsFile_Tool_class_data_);
329 42668 : ::google::protobuf::internal::PrefetchToLocalCache(ToolsFile_Tool_class_data_.tc_table);
330 42668 : return ToolsFile_Tool_class_data_.base();
331 : }
332 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
333 : const ::_pbi::TcParseTable<3, 8, 0, 51, 2>
334 : ToolsFile_Tool::_table_ = {
335 : {
336 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_._has_bits_),
337 : 0, // no _extensions_
338 : 8, 56, // max_field_number, fast_idx_mask
339 : offsetof(decltype(_table_), field_lookup_table),
340 : 4294967040, // skipmap
341 : offsetof(decltype(_table_), field_entries),
342 : 8, // num_field_entries
343 : 0, // num_aux_entries
344 : offsetof(decltype(_table_), field_names), // no aux_entries
345 : ToolsFile_Tool_class_data_.base(),
346 : nullptr, // post_loop_handler
347 : ::_pbi::TcParser::GenericFallback, // fallback
348 : #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
349 : ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ToolsFile_Tool>(), // to_prefetch
350 : #endif // PROTOBUF_PREFETCH_PARSE_TABLE
351 : }, {{
352 : // optional double drillSize = 8;
353 : {::_pbi::TcParser::FastF64S1,
354 : {65, 6, 0,
355 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.drillsize_)}},
356 : // optional uint32 num = 1;
357 : {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ToolsFile_Tool, _impl_.num_), 1>(),
358 : {8, 1, 0,
359 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.num_)}},
360 : // optional .Odb.Lib.Protobuf.ToolsFile.ToolType type = 2;
361 : {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ToolsFile_Tool, _impl_.type_), 2>(),
362 : {16, 2, 0,
363 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.type_)}},
364 : // optional .Odb.Lib.Protobuf.ToolsFile.ToolSubType subType = 3;
365 : {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ToolsFile_Tool, _impl_.subtype_), 7>(),
366 : {24, 7, 0,
367 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.subtype_)}},
368 : // optional double minTol = 4;
369 : {::_pbi::TcParser::FastF64S1,
370 : {33, 3, 0,
371 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.mintol_)}},
372 : // optional double maxTol = 5;
373 : {::_pbi::TcParser::FastF64S1,
374 : {41, 4, 0,
375 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.maxtol_)}},
376 : // optional string bit = 6;
377 : {::_pbi::TcParser::FastUS1,
378 : {50, 0, 0,
379 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.bit_)}},
380 : // optional double finishSize = 7;
381 : {::_pbi::TcParser::FastF64S1,
382 : {57, 5, 0,
383 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.finishsize_)}},
384 : }}, {{
385 : 65535, 65535
386 : }}, {{
387 : // optional uint32 num = 1;
388 : {PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.num_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
389 : // optional .Odb.Lib.Protobuf.ToolsFile.ToolType type = 2;
390 : {PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.type_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
391 : // optional .Odb.Lib.Protobuf.ToolsFile.ToolSubType subType = 3;
392 : {PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.subtype_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
393 : // optional double minTol = 4;
394 : {PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.mintol_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
395 : // optional double maxTol = 5;
396 : {PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.maxtol_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
397 : // optional string bit = 6;
398 : {PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.bit_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
399 : // optional double finishSize = 7;
400 : {PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.finishsize_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
401 : // optional double drillSize = 8;
402 : {PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.drillsize_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
403 : }},
404 : // no aux_entries
405 : {{
406 : "\37\0\0\0\0\0\3\0\0\0\0\0\0\0\0\0"
407 : "Odb.Lib.Protobuf.ToolsFile.Tool"
408 : "bit"
409 : }},
410 : };
411 1441 : PROTOBUF_NOINLINE void ToolsFile_Tool::Clear() {
412 : // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ToolsFile.Tool)
413 1441 : ::google::protobuf::internal::TSanWrite(&_impl_);
414 1441 : ::uint32_t cached_has_bits = 0;
415 : // Prevent compiler warnings about cached_has_bits being unused
416 : (void) cached_has_bits;
417 :
418 1441 : cached_has_bits = _impl_._has_bits_[0];
419 1441 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
420 0 : _impl_.bit_.ClearNonDefaultToEmpty();
421 : }
422 1441 : if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) {
423 0 : ::memset(&_impl_.num_, 0, static_cast<::size_t>(
424 : reinterpret_cast<char*>(&_impl_.subtype_) -
425 : reinterpret_cast<char*>(&_impl_.num_)) + sizeof(_impl_.subtype_));
426 : }
427 1441 : _impl_._has_bits_.Clear();
428 1441 : _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
429 1441 : }
430 :
431 : #if defined(PROTOBUF_CUSTOM_VTABLE)
432 : ::uint8_t* PROTOBUF_NONNULL ToolsFile_Tool::_InternalSerialize(
433 : const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
434 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
435 : const ToolsFile_Tool& this_ = static_cast<const ToolsFile_Tool&>(base);
436 : #else // PROTOBUF_CUSTOM_VTABLE
437 1550 : ::uint8_t* PROTOBUF_NONNULL ToolsFile_Tool::_InternalSerialize(
438 : ::uint8_t* PROTOBUF_NONNULL target,
439 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
440 1550 : const ToolsFile_Tool& this_ = *this;
441 : #endif // PROTOBUF_CUSTOM_VTABLE
442 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
443 1550 : this_.CheckHasBitConsistency();
444 : }
445 : // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ToolsFile.Tool)
446 1550 : ::uint32_t cached_has_bits = 0;
447 : (void)cached_has_bits;
448 :
449 1550 : cached_has_bits = this_._impl_._has_bits_[0];
450 : // optional uint32 num = 1;
451 1550 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
452 1550 : target = stream->EnsureSpace(target);
453 1550 : target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
454 : 1, this_._internal_num(), target);
455 : }
456 :
457 : // optional .Odb.Lib.Protobuf.ToolsFile.ToolType type = 2;
458 1550 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
459 1550 : target = stream->EnsureSpace(target);
460 1550 : target = ::_pbi::WireFormatLite::WriteEnumToArray(
461 1550 : 2, this_._internal_type(), target);
462 : }
463 :
464 : // optional .Odb.Lib.Protobuf.ToolsFile.ToolSubType subType = 3;
465 1550 : if (CheckHasBit(cached_has_bits, 0x00000080U)) {
466 1550 : target = stream->EnsureSpace(target);
467 1550 : target = ::_pbi::WireFormatLite::WriteEnumToArray(
468 1550 : 3, this_._internal_subtype(), target);
469 : }
470 :
471 : // optional double minTol = 4;
472 1550 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
473 1550 : target = stream->EnsureSpace(target);
474 1550 : target = ::_pbi::WireFormatLite::WriteDoubleToArray(
475 : 4, this_._internal_mintol(), target);
476 : }
477 :
478 : // optional double maxTol = 5;
479 1550 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
480 1550 : target = stream->EnsureSpace(target);
481 1550 : target = ::_pbi::WireFormatLite::WriteDoubleToArray(
482 : 5, this_._internal_maxtol(), target);
483 : }
484 :
485 : // optional string bit = 6;
486 1550 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
487 1550 : const ::std::string& _s = this_._internal_bit();
488 3100 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
489 1550 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ToolsFile.Tool.bit");
490 1550 : target = stream->WriteStringMaybeAliased(6, _s, target);
491 : }
492 :
493 : // optional double finishSize = 7;
494 1550 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
495 1550 : target = stream->EnsureSpace(target);
496 1550 : target = ::_pbi::WireFormatLite::WriteDoubleToArray(
497 : 7, this_._internal_finishsize(), target);
498 : }
499 :
500 : // optional double drillSize = 8;
501 1550 : if (CheckHasBit(cached_has_bits, 0x00000040U)) {
502 1550 : target = stream->EnsureSpace(target);
503 1550 : target = ::_pbi::WireFormatLite::WriteDoubleToArray(
504 : 8, this_._internal_drillsize(), target);
505 : }
506 :
507 1550 : if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
508 : target =
509 0 : ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
510 : this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
511 : }
512 : // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ToolsFile.Tool)
513 1550 : return target;
514 : }
515 :
516 : #if defined(PROTOBUF_CUSTOM_VTABLE)
517 : ::size_t ToolsFile_Tool::ByteSizeLong(const MessageLite& base) {
518 : const ToolsFile_Tool& this_ = static_cast<const ToolsFile_Tool&>(base);
519 : #else // PROTOBUF_CUSTOM_VTABLE
520 2082 : ::size_t ToolsFile_Tool::ByteSizeLong() const {
521 2082 : const ToolsFile_Tool& this_ = *this;
522 : #endif // PROTOBUF_CUSTOM_VTABLE
523 : // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ToolsFile.Tool)
524 2082 : ::size_t total_size = 0;
525 :
526 2082 : ::uint32_t cached_has_bits = 0;
527 : // Prevent compiler warnings about cached_has_bits being unused
528 : (void)cached_has_bits;
529 :
530 : ::_pbi::Prefetch5LinesFrom7Lines(&this_);
531 2082 : cached_has_bits = this_._impl_._has_bits_[0];
532 2082 : total_size += ::absl::popcount(0x00000078U & cached_has_bits) * 9;
533 2082 : if (BatchCheckHasBit(cached_has_bits, 0x00000087U)) {
534 : // optional string bit = 6;
535 2082 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
536 2082 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
537 : this_._internal_bit());
538 : }
539 : // optional uint32 num = 1;
540 2082 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
541 2082 : total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
542 : this_._internal_num());
543 : }
544 : // optional .Odb.Lib.Protobuf.ToolsFile.ToolType type = 2;
545 2082 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
546 2082 : total_size += 1 +
547 2082 : ::_pbi::WireFormatLite::EnumSize(this_._internal_type());
548 : }
549 : // optional .Odb.Lib.Protobuf.ToolsFile.ToolSubType subType = 3;
550 2082 : if (CheckHasBit(cached_has_bits, 0x00000080U)) {
551 2082 : total_size += 1 +
552 2082 : ::_pbi::WireFormatLite::EnumSize(this_._internal_subtype());
553 : }
554 : }
555 2082 : return this_.MaybeComputeUnknownFieldsSize(total_size,
556 2082 : &this_._impl_._cached_size_);
557 : }
558 :
559 1441 : void ToolsFile_Tool::MergeImpl(::google::protobuf::MessageLite& to_msg,
560 : const ::google::protobuf::MessageLite& from_msg) {
561 1441 : auto* const _this =
562 : static_cast<ToolsFile_Tool*>(&to_msg);
563 1441 : auto& from = static_cast<const ToolsFile_Tool&>(from_msg);
564 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
565 1441 : from.CheckHasBitConsistency();
566 : }
567 : // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ToolsFile.Tool)
568 1441 : ABSL_DCHECK_NE(&from, _this);
569 1441 : ::uint32_t cached_has_bits = 0;
570 : (void)cached_has_bits;
571 :
572 1441 : cached_has_bits = from._impl_._has_bits_[0];
573 1441 : if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
574 1441 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
575 1441 : _this->_internal_set_bit(from._internal_bit());
576 : }
577 1441 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
578 1441 : _this->_impl_.num_ = from._impl_.num_;
579 : }
580 1441 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
581 1441 : _this->_impl_.type_ = from._impl_.type_;
582 : }
583 1441 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
584 1441 : _this->_impl_.mintol_ = from._impl_.mintol_;
585 : }
586 1441 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
587 1441 : _this->_impl_.maxtol_ = from._impl_.maxtol_;
588 : }
589 1441 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
590 1441 : _this->_impl_.finishsize_ = from._impl_.finishsize_;
591 : }
592 1441 : if (CheckHasBit(cached_has_bits, 0x00000040U)) {
593 1441 : _this->_impl_.drillsize_ = from._impl_.drillsize_;
594 : }
595 1441 : if (CheckHasBit(cached_has_bits, 0x00000080U)) {
596 1441 : _this->_impl_.subtype_ = from._impl_.subtype_;
597 : }
598 : }
599 1441 : _this->_impl_._has_bits_[0] |= cached_has_bits;
600 1441 : _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
601 1441 : from._internal_metadata_);
602 1441 : }
603 :
604 1441 : void ToolsFile_Tool::CopyFrom(const ToolsFile_Tool& from) {
605 : // @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.ToolsFile.Tool)
606 1441 : if (&from == this) return;
607 1441 : Clear();
608 1441 : MergeFrom(from);
609 : }
610 :
611 :
612 0 : void ToolsFile_Tool::InternalSwap(ToolsFile_Tool* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
613 : using ::std::swap;
614 0 : auto* arena = GetArena();
615 0 : ABSL_DCHECK_EQ(arena, other->GetArena());
616 0 : _internal_metadata_.InternalSwap(&other->_internal_metadata_);
617 0 : swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
618 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bit_, &other->_impl_.bit_, arena);
619 : ::google::protobuf::internal::memswap<
620 : PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.subtype_)
621 : + sizeof(ToolsFile_Tool::_impl_.subtype_)
622 0 : - PROTOBUF_FIELD_OFFSET(ToolsFile_Tool, _impl_.num_)>(
623 0 : reinterpret_cast<char*>(&_impl_.num_),
624 0 : reinterpret_cast<char*>(&other->_impl_.num_));
625 0 : }
626 :
627 0 : ::google::protobuf::Metadata ToolsFile_Tool::GetMetadata() const {
628 0 : return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
629 : }
630 : // ===================================================================
631 :
632 : class ToolsFile::_Internal {
633 : public:
634 : using HasBits =
635 : decltype(::std::declval<ToolsFile>()._impl_._has_bits_);
636 : static constexpr ::int32_t kHasBitsOffset =
637 : 8 * PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_._has_bits_);
638 : };
639 :
640 5965 : ToolsFile::ToolsFile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
641 : #if defined(PROTOBUF_CUSTOM_VTABLE)
642 : : ::google::protobuf::Message(arena, ToolsFile_class_data_.base()) {
643 : #else // PROTOBUF_CUSTOM_VTABLE
644 5965 : : ::google::protobuf::Message(arena) {
645 : #endif // PROTOBUF_CUSTOM_VTABLE
646 5965 : SharedCtor(arena);
647 : // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ToolsFile)
648 5965 : }
649 16986 : PROTOBUF_NDEBUG_INLINE ToolsFile::Impl_::Impl_(
650 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
651 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
652 16986 : [[maybe_unused]] const ::Odb::Lib::Protobuf::ToolsFile& from_msg)
653 16986 : : _has_bits_{from._has_bits_},
654 16986 : _cached_size_{0},
655 16986 : userparams_{visibility, arena, from.userparams_},
656 16986 : tools_{visibility, arena, from.tools_},
657 16986 : units_(arena, from.units_),
658 16986 : directory_(arena, from.directory_),
659 16986 : path_(arena, from.path_) {}
660 :
661 16986 : ToolsFile::ToolsFile(
662 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
663 16986 : const ToolsFile& from)
664 : #if defined(PROTOBUF_CUSTOM_VTABLE)
665 : : ::google::protobuf::Message(arena, ToolsFile_class_data_.base()) {
666 : #else // PROTOBUF_CUSTOM_VTABLE
667 16986 : : ::google::protobuf::Message(arena) {
668 : #endif // PROTOBUF_CUSTOM_VTABLE
669 16986 : ToolsFile* const _this = this;
670 : (void)_this;
671 16986 : _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
672 16986 : from._internal_metadata_);
673 16986 : new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
674 16986 : _impl_.thickness_ = from._impl_.thickness_;
675 :
676 : // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ToolsFile)
677 16986 : }
678 5965 : PROTOBUF_NDEBUG_INLINE ToolsFile::Impl_::Impl_(
679 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
680 5965 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
681 5965 : : _cached_size_{0},
682 5965 : userparams_{visibility, arena},
683 5965 : tools_{visibility, arena},
684 5965 : units_(arena),
685 5965 : directory_(arena),
686 11930 : path_(arena) {}
687 :
688 5965 : inline void ToolsFile::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
689 5965 : new (&_impl_) Impl_(internal_visibility(), arena);
690 5965 : _impl_.thickness_ = {};
691 5965 : }
692 45896 : ToolsFile::~ToolsFile() {
693 : // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ToolsFile)
694 22951 : SharedDtor(*this);
695 45896 : }
696 22951 : inline void ToolsFile::SharedDtor(MessageLite& self) {
697 22951 : ToolsFile& this_ = static_cast<ToolsFile&>(self);
698 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
699 22951 : this_.CheckHasBitConsistency();
700 : }
701 22951 : this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
702 22951 : ABSL_DCHECK(this_.GetArena() == nullptr);
703 22951 : this_._impl_.units_.Destroy();
704 22951 : this_._impl_.directory_.Destroy();
705 22951 : this_._impl_.path_.Destroy();
706 22951 : this_._impl_.~Impl_();
707 22951 : }
708 :
709 598 : inline void* PROTOBUF_NONNULL ToolsFile::PlacementNew_(
710 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
711 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
712 598 : return ::new (mem) ToolsFile(arena);
713 : }
714 : constexpr auto ToolsFile::InternalNewImpl_() {
715 : constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
716 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.userparams_) +
717 : decltype(ToolsFile::_impl_.userparams_)::
718 : InternalGetArenaOffset(
719 : ::google::protobuf::Message::internal_visibility()),
720 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.tools_) +
721 : decltype(ToolsFile::_impl_.tools_)::
722 : InternalGetArenaOffset(
723 : ::google::protobuf::Message::internal_visibility()),
724 : });
725 : if (arena_bits.has_value()) {
726 : return ::google::protobuf::internal::MessageCreator::CopyInit(
727 : sizeof(ToolsFile), alignof(ToolsFile), *arena_bits);
728 : } else {
729 : return ::google::protobuf::internal::MessageCreator(&ToolsFile::PlacementNew_,
730 : sizeof(ToolsFile),
731 : alignof(ToolsFile));
732 : }
733 : }
734 : constexpr auto ToolsFile::InternalGenerateClassData_() {
735 : return ::google::protobuf::internal::ClassDataFull{
736 : ::google::protobuf::internal::ClassData{
737 : &_ToolsFile_default_instance_._instance,
738 : &_table_.header,
739 : nullptr, // OnDemandRegisterArenaDtor
740 : nullptr, // IsInitialized
741 : &ToolsFile::MergeImpl,
742 : ::google::protobuf::Message::GetNewImpl<ToolsFile>(),
743 : #if defined(PROTOBUF_CUSTOM_VTABLE)
744 : &ToolsFile::SharedDtor,
745 : ::google::protobuf::Message::GetClearImpl<ToolsFile>(), &ToolsFile::ByteSizeLong,
746 : &ToolsFile::_InternalSerialize,
747 : #endif // PROTOBUF_CUSTOM_VTABLE
748 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_._cached_size_),
749 : false,
750 : },
751 : &ToolsFile::kDescriptorMethods,
752 : &descriptor_table_toolsfile_2eproto,
753 : nullptr, // tracker
754 : };
755 : }
756 :
757 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
758 : ::google::protobuf::internal::ClassDataFull ToolsFile_class_data_ =
759 : ToolsFile::InternalGenerateClassData_();
760 :
761 : PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
762 80551 : ToolsFile::GetClassData() const {
763 80551 : ::google::protobuf::internal::PrefetchToLocalCache(&ToolsFile_class_data_);
764 80551 : ::google::protobuf::internal::PrefetchToLocalCache(ToolsFile_class_data_.tc_table);
765 80551 : return ToolsFile_class_data_.base();
766 : }
767 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
768 : const ::_pbi::TcParseTable<3, 6, 1, 63, 2>
769 : ToolsFile::_table_ = {
770 : {
771 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_._has_bits_),
772 : 0, // no _extensions_
773 : 6, 56, // max_field_number, fast_idx_mask
774 : offsetof(decltype(_table_), field_lookup_table),
775 : 4294967232, // skipmap
776 : offsetof(decltype(_table_), field_entries),
777 : 6, // num_field_entries
778 : 1, // num_aux_entries
779 : offsetof(decltype(_table_), aux_entries),
780 : ToolsFile_class_data_.base(),
781 : nullptr, // post_loop_handler
782 : ::_pbi::TcParser::GenericFallback, // fallback
783 : #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
784 : ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ToolsFile>(), // to_prefetch
785 : #endif // PROTOBUF_PREFETCH_PARSE_TABLE
786 : }, {{
787 : {::_pbi::TcParser::MiniParse, {}},
788 : // optional string units = 1;
789 : {::_pbi::TcParser::FastUS1,
790 : {10, 2, 0,
791 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.units_)}},
792 : // optional double thickness = 2;
793 : {::_pbi::TcParser::FastF64S1,
794 : {17, 5, 0,
795 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.thickness_)}},
796 : // repeated string userParams = 3;
797 : {::_pbi::TcParser::FastUR1,
798 : {26, 0, 0,
799 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.userparams_)}},
800 : // repeated .Odb.Lib.Protobuf.ToolsFile.Tool tools = 4;
801 : {::_pbi::TcParser::FastMtR1,
802 : {34, 1, 0,
803 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.tools_)}},
804 : // optional string directory = 5;
805 : {::_pbi::TcParser::FastUS1,
806 : {42, 3, 0,
807 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.directory_)}},
808 : // optional string path = 6;
809 : {::_pbi::TcParser::FastUS1,
810 : {50, 4, 0,
811 : PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.path_)}},
812 : {::_pbi::TcParser::MiniParse, {}},
813 : }}, {{
814 : 65535, 65535
815 : }}, {{
816 : // optional string units = 1;
817 : {PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.units_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
818 : // optional double thickness = 2;
819 : {PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.thickness_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
820 : // repeated string userParams = 3;
821 : {PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.userparams_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
822 : // repeated .Odb.Lib.Protobuf.ToolsFile.Tool tools = 4;
823 : {PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.tools_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
824 : // optional string directory = 5;
825 : {PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.directory_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
826 : // optional string path = 6;
827 : {PROTOBUF_FIELD_OFFSET(ToolsFile, _impl_.path_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
828 : }},
829 : {{
830 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ToolsFile_Tool>()},
831 : }},
832 : {{
833 : "\32\5\0\12\0\11\4\0"
834 : "Odb.Lib.Protobuf.ToolsFile"
835 : "units"
836 : "userParams"
837 : "directory"
838 : "path"
839 : }},
840 : };
841 2682 : PROTOBUF_NOINLINE void ToolsFile::Clear() {
842 : // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ToolsFile)
843 2682 : ::google::protobuf::internal::TSanWrite(&_impl_);
844 2682 : ::uint32_t cached_has_bits = 0;
845 : // Prevent compiler warnings about cached_has_bits being unused
846 : (void) cached_has_bits;
847 :
848 2682 : cached_has_bits = _impl_._has_bits_[0];
849 2682 : if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
850 2 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
851 0 : _impl_.userparams_.Clear();
852 : }
853 2 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
854 0 : _impl_.tools_.Clear();
855 : }
856 2 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
857 2 : _impl_.units_.ClearNonDefaultToEmpty();
858 : }
859 2 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
860 2 : _impl_.directory_.ClearNonDefaultToEmpty();
861 : }
862 2 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
863 2 : _impl_.path_.ClearNonDefaultToEmpty();
864 : }
865 : }
866 2682 : _impl_.thickness_ = 0;
867 2682 : _impl_._has_bits_.Clear();
868 2682 : _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
869 2682 : }
870 :
871 : #if defined(PROTOBUF_CUSTOM_VTABLE)
872 : ::uint8_t* PROTOBUF_NONNULL ToolsFile::_InternalSerialize(
873 : const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
874 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
875 : const ToolsFile& this_ = static_cast<const ToolsFile&>(base);
876 : #else // PROTOBUF_CUSTOM_VTABLE
877 2740 : ::uint8_t* PROTOBUF_NONNULL ToolsFile::_InternalSerialize(
878 : ::uint8_t* PROTOBUF_NONNULL target,
879 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
880 2740 : const ToolsFile& this_ = *this;
881 : #endif // PROTOBUF_CUSTOM_VTABLE
882 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
883 2740 : this_.CheckHasBitConsistency();
884 : }
885 : // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ToolsFile)
886 2740 : ::uint32_t cached_has_bits = 0;
887 : (void)cached_has_bits;
888 :
889 2740 : cached_has_bits = this_._impl_._has_bits_[0];
890 : // optional string units = 1;
891 2740 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
892 2740 : const ::std::string& _s = this_._internal_units();
893 5480 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
894 2740 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ToolsFile.units");
895 2740 : target = stream->WriteStringMaybeAliased(1, _s, target);
896 : }
897 :
898 : // optional double thickness = 2;
899 2740 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
900 2740 : target = stream->EnsureSpace(target);
901 2740 : target = ::_pbi::WireFormatLite::WriteDoubleToArray(
902 : 2, this_._internal_thickness(), target);
903 : }
904 :
905 : // repeated string userParams = 3;
906 2740 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
907 0 : for (int i = 0, n = this_._internal_userparams_size(); i < n; ++i) {
908 0 : const auto& s = this_._internal_userparams().Get(i);
909 0 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
910 0 : s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ToolsFile.userParams");
911 0 : target = stream->WriteString(3, s, target);
912 : }
913 : }
914 :
915 : // repeated .Odb.Lib.Protobuf.ToolsFile.Tool tools = 4;
916 2740 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
917 2106 : for (unsigned i = 0, n = static_cast<unsigned>(
918 278 : this_._internal_tools_size());
919 1828 : i < n; i++) {
920 1550 : const auto& repfield = this_._internal_tools().Get(i);
921 : target =
922 1550 : ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
923 : 4, repfield, repfield.GetCachedSize(),
924 : target, stream);
925 : }
926 : }
927 :
928 : // optional string directory = 5;
929 2740 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
930 2738 : const ::std::string& _s = this_._internal_directory();
931 5476 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
932 2738 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ToolsFile.directory");
933 2738 : target = stream->WriteStringMaybeAliased(5, _s, target);
934 : }
935 :
936 : // optional string path = 6;
937 2740 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
938 2738 : const ::std::string& _s = this_._internal_path();
939 5476 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
940 2738 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ToolsFile.path");
941 2738 : target = stream->WriteStringMaybeAliased(6, _s, target);
942 : }
943 :
944 2740 : if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
945 : target =
946 0 : ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
947 : this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
948 : }
949 : // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ToolsFile)
950 2740 : return target;
951 : }
952 :
953 : #if defined(PROTOBUF_CUSTOM_VTABLE)
954 : ::size_t ToolsFile::ByteSizeLong(const MessageLite& base) {
955 : const ToolsFile& this_ = static_cast<const ToolsFile&>(base);
956 : #else // PROTOBUF_CUSTOM_VTABLE
957 3609 : ::size_t ToolsFile::ByteSizeLong() const {
958 3609 : const ToolsFile& this_ = *this;
959 : #endif // PROTOBUF_CUSTOM_VTABLE
960 : // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ToolsFile)
961 3609 : ::size_t total_size = 0;
962 :
963 3609 : ::uint32_t cached_has_bits = 0;
964 : // Prevent compiler warnings about cached_has_bits being unused
965 : (void)cached_has_bits;
966 :
967 : ::_pbi::Prefetch5LinesFrom7Lines(&this_);
968 3609 : cached_has_bits = this_._impl_._has_bits_[0];
969 3609 : total_size += static_cast<bool>(0x00000020U & cached_has_bits) * 9;
970 3609 : if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
971 : // repeated string userParams = 3;
972 3609 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
973 0 : total_size +=
974 0 : 1 * ::google::protobuf::internal::FromIntSize(this_._internal_userparams().size());
975 0 : for (int i = 0, n = this_._internal_userparams().size(); i < n; ++i) {
976 0 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
977 0 : this_._internal_userparams().Get(i));
978 : }
979 : }
980 : // repeated .Odb.Lib.Protobuf.ToolsFile.Tool tools = 4;
981 3609 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
982 354 : total_size += 1UL * this_._internal_tools_size();
983 2436 : for (const auto& msg : this_._internal_tools()) {
984 2082 : total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
985 : }
986 : }
987 : // optional string units = 1;
988 3609 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
989 3609 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
990 : this_._internal_units());
991 : }
992 : // optional string directory = 5;
993 3609 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
994 3607 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
995 : this_._internal_directory());
996 : }
997 : // optional string path = 6;
998 3609 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
999 3607 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1000 : this_._internal_path());
1001 : }
1002 : }
1003 3609 : return this_.MaybeComputeUnknownFieldsSize(total_size,
1004 3609 : &this_._impl_._cached_size_);
1005 : }
1006 :
1007 2682 : void ToolsFile::MergeImpl(::google::protobuf::MessageLite& to_msg,
1008 : const ::google::protobuf::MessageLite& from_msg) {
1009 2682 : auto* const _this =
1010 : static_cast<ToolsFile*>(&to_msg);
1011 2682 : auto& from = static_cast<const ToolsFile&>(from_msg);
1012 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1013 2682 : from.CheckHasBitConsistency();
1014 : }
1015 2682 : ::google::protobuf::Arena* arena = _this->GetArena();
1016 : // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ToolsFile)
1017 2682 : ABSL_DCHECK_NE(&from, _this);
1018 2682 : ::uint32_t cached_has_bits = 0;
1019 : (void)cached_has_bits;
1020 :
1021 2682 : cached_has_bits = from._impl_._has_bits_[0];
1022 2682 : if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1023 2682 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1024 0 : _this->_internal_mutable_userparams()->InternalMergeFromWithArena(
1025 0 : ::google::protobuf::MessageLite::internal_visibility(), arena,
1026 : from._internal_userparams());
1027 : }
1028 2682 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1029 580 : _this->_internal_mutable_tools()->InternalMergeFromWithArena(
1030 290 : ::google::protobuf::MessageLite::internal_visibility(), arena,
1031 : from._internal_tools());
1032 : }
1033 2682 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1034 2682 : _this->_internal_set_units(from._internal_units());
1035 : }
1036 2682 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1037 2682 : _this->_internal_set_directory(from._internal_directory());
1038 : }
1039 2682 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1040 2682 : _this->_internal_set_path(from._internal_path());
1041 : }
1042 2682 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1043 2682 : _this->_impl_.thickness_ = from._impl_.thickness_;
1044 : }
1045 : }
1046 2682 : _this->_impl_._has_bits_[0] |= cached_has_bits;
1047 2682 : _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1048 2682 : from._internal_metadata_);
1049 2682 : }
1050 :
1051 2680 : void ToolsFile::CopyFrom(const ToolsFile& from) {
1052 : // @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.ToolsFile)
1053 2680 : if (&from == this) return;
1054 2680 : Clear();
1055 2680 : MergeFrom(from);
1056 : }
1057 :
1058 :
1059 0 : void ToolsFile::InternalSwap(ToolsFile* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1060 : using ::std::swap;
1061 0 : auto* arena = GetArena();
1062 0 : ABSL_DCHECK_EQ(arena, other->GetArena());
1063 0 : _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1064 0 : swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1065 0 : _impl_.userparams_.InternalSwap(&other->_impl_.userparams_);
1066 0 : _impl_.tools_.InternalSwap(&other->_impl_.tools_);
1067 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.units_, &other->_impl_.units_, arena);
1068 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.directory_, &other->_impl_.directory_, arena);
1069 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena);
1070 0 : swap(_impl_.thickness_, other->_impl_.thickness_);
1071 0 : }
1072 :
1073 0 : ::google::protobuf::Metadata ToolsFile::GetMetadata() const {
1074 0 : return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1075 : }
1076 : // @@protoc_insertion_point(namespace_scope)
1077 : } // namespace Protobuf
1078 : } // namespace Lib
1079 : } // namespace Odb
1080 : namespace google {
1081 : namespace protobuf {
1082 : } // namespace protobuf
1083 : } // namespace google
1084 : // @@protoc_insertion_point(global_scope)
1085 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1086 : _static_init2_ [[maybe_unused]] =
1087 : (::_pbi::AddDescriptors(&descriptor_table_toolsfile_2eproto),
1088 : ::std::false_type{});
1089 : #include "google/protobuf/port_undef.inc"
|