Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // NO CHECKED-IN PROTOBUF GENCODE
3 : // source: pin.proto
4 : // Protobuf C++ Version: 6.33.4
5 :
6 : #include "pin.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 : namespace ProductModel {
31 :
32 : inline constexpr Pin::Impl_::Impl_(
33 : ::_pbi::ConstantInitialized) noexcept
34 : : _cached_size_{0},
35 : name_(
36 : &::google::protobuf::internal::fixed_address_empty_string,
37 : ::_pbi::ConstantInitialized()),
38 : index_{0u} {}
39 :
40 : template <typename>
41 : PROTOBUF_CONSTEXPR Pin::Pin(::_pbi::ConstantInitialized)
42 : #if defined(PROTOBUF_CUSTOM_VTABLE)
43 : : ::google::protobuf::Message(Pin_class_data_.base()),
44 : #else // PROTOBUF_CUSTOM_VTABLE
45 : : ::google::protobuf::Message(),
46 : #endif // PROTOBUF_CUSTOM_VTABLE
47 : _impl_(::_pbi::ConstantInitialized()) {
48 : }
49 : struct PinDefaultTypeInternal {
50 : PROTOBUF_CONSTEXPR PinDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
51 319 : ~PinDefaultTypeInternal() {}
52 : union {
53 : Pin _instance;
54 : };
55 : };
56 :
57 : PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT
58 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PinDefaultTypeInternal _Pin_default_instance_;
59 : } // namespace ProductModel
60 : } // namespace Protobuf
61 : } // namespace Lib
62 : } // namespace Odb
63 : static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
64 : file_level_enum_descriptors_pin_2eproto = nullptr;
65 : static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
66 : file_level_service_descriptors_pin_2eproto = nullptr;
67 : const ::uint32_t
68 : TableStruct_pin_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
69 : protodesc_cold) = {
70 : 0x081, // bitmap
71 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _impl_._has_bits_),
72 : 5, // hasbit index offset
73 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _impl_.name_),
74 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _impl_.index_),
75 : 0,
76 : 1,
77 : };
78 :
79 : static const ::_pbi::MigrationSchema
80 : schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
81 : {0, sizeof(::Odb::Lib::Protobuf::ProductModel::Pin)},
82 : };
83 : static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
84 : &::Odb::Lib::Protobuf::ProductModel::_Pin_default_instance_._instance,
85 : };
86 : const char descriptor_table_protodef_pin_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
87 : protodesc_cold) = {
88 : "\n\tpin.proto\022\035Odb.Lib.Protobuf.ProductMod"
89 : "el\"\?\n\003Pin\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\022\n\005index\030\002 "
90 : "\001(\rH\001\210\001\001B\007\n\005_nameB\010\n\006_indexB\003\370\001\001b\006proto3"
91 : };
92 : static ::absl::once_flag descriptor_table_pin_2eproto_once;
93 : PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_pin_2eproto = {
94 : false,
95 : false,
96 : 120,
97 : descriptor_table_protodef_pin_2eproto,
98 : "pin.proto",
99 : &descriptor_table_pin_2eproto_once,
100 : nullptr,
101 : 0,
102 : 1,
103 : schemas,
104 : file_default_instances,
105 : TableStruct_pin_2eproto::offsets,
106 : file_level_enum_descriptors_pin_2eproto,
107 : file_level_service_descriptors_pin_2eproto,
108 : };
109 : namespace Odb {
110 : namespace Lib {
111 : namespace Protobuf {
112 : namespace ProductModel {
113 : // ===================================================================
114 :
115 : class Pin::_Internal {
116 : public:
117 : using HasBits =
118 : decltype(::std::declval<Pin>()._impl_._has_bits_);
119 : static constexpr ::int32_t kHasBitsOffset =
120 : 8 * PROTOBUF_FIELD_OFFSET(Pin, _impl_._has_bits_);
121 : };
122 :
123 17091978 : Pin::Pin(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
124 : #if defined(PROTOBUF_CUSTOM_VTABLE)
125 : : ::google::protobuf::Message(arena, Pin_class_data_.base()) {
126 : #else // PROTOBUF_CUSTOM_VTABLE
127 17091978 : : ::google::protobuf::Message(arena) {
128 : #endif // PROTOBUF_CUSTOM_VTABLE
129 17091978 : SharedCtor(arena);
130 : // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Pin)
131 17091978 : }
132 22605955 : PROTOBUF_NDEBUG_INLINE Pin::Impl_::Impl_(
133 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
134 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
135 22605955 : [[maybe_unused]] const ::Odb::Lib::Protobuf::ProductModel::Pin& from_msg)
136 22605955 : : _has_bits_{from._has_bits_},
137 22605955 : _cached_size_{0},
138 22605955 : name_(arena, from.name_) {}
139 :
140 22605955 : Pin::Pin(
141 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
142 22605955 : const Pin& from)
143 : #if defined(PROTOBUF_CUSTOM_VTABLE)
144 : : ::google::protobuf::Message(arena, Pin_class_data_.base()) {
145 : #else // PROTOBUF_CUSTOM_VTABLE
146 22605955 : : ::google::protobuf::Message(arena) {
147 : #endif // PROTOBUF_CUSTOM_VTABLE
148 22605955 : Pin* const _this = this;
149 : (void)_this;
150 22605955 : _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
151 22605955 : from._internal_metadata_);
152 22605955 : new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
153 22605955 : _impl_.index_ = from._impl_.index_;
154 :
155 : // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Pin)
156 22605955 : }
157 17091978 : PROTOBUF_NDEBUG_INLINE Pin::Impl_::Impl_(
158 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
159 17091978 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
160 17091978 : : _cached_size_{0},
161 34183956 : name_(arena) {}
162 :
163 17091978 : inline void Pin::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
164 17091978 : new (&_impl_) Impl_(internal_visibility(), arena);
165 17091978 : _impl_.index_ = {};
166 17091978 : }
167 63645709 : Pin::~Pin() {
168 : // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Pin)
169 39697933 : SharedDtor(*this);
170 63645709 : }
171 39697933 : inline void Pin::SharedDtor(MessageLite& self) {
172 39697933 : Pin& this_ = static_cast<Pin&>(self);
173 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
174 39697933 : this_.CheckHasBitConsistency();
175 : }
176 39697933 : this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
177 39697933 : ABSL_DCHECK(this_.GetArena() == nullptr);
178 39697933 : this_._impl_.name_.Destroy();
179 39697933 : this_._impl_.~Impl_();
180 39697933 : }
181 :
182 3151490 : inline void* PROTOBUF_NONNULL Pin::PlacementNew_(
183 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
184 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
185 3151490 : return ::new (mem) Pin(arena);
186 : }
187 : constexpr auto Pin::InternalNewImpl_() {
188 : return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Pin),
189 : alignof(Pin));
190 : }
191 : constexpr auto Pin::InternalGenerateClassData_() {
192 : return ::google::protobuf::internal::ClassDataFull{
193 : ::google::protobuf::internal::ClassData{
194 : &_Pin_default_instance_._instance,
195 : &_table_.header,
196 : nullptr, // OnDemandRegisterArenaDtor
197 : nullptr, // IsInitialized
198 : &Pin::MergeImpl,
199 : ::google::protobuf::Message::GetNewImpl<Pin>(),
200 : #if defined(PROTOBUF_CUSTOM_VTABLE)
201 : &Pin::SharedDtor,
202 : ::google::protobuf::Message::GetClearImpl<Pin>(), &Pin::ByteSizeLong,
203 : &Pin::_InternalSerialize,
204 : #endif // PROTOBUF_CUSTOM_VTABLE
205 : PROTOBUF_FIELD_OFFSET(Pin, _impl_._cached_size_),
206 : false,
207 : },
208 : &Pin::kDescriptorMethods,
209 : &descriptor_table_pin_2eproto,
210 : nullptr, // tracker
211 : };
212 : }
213 :
214 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
215 : ::google::protobuf::internal::ClassDataFull Pin_class_data_ =
216 : Pin::InternalGenerateClassData_();
217 :
218 : PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
219 86335186 : Pin::GetClassData() const {
220 86335186 : ::google::protobuf::internal::PrefetchToLocalCache(&Pin_class_data_);
221 86335186 : ::google::protobuf::internal::PrefetchToLocalCache(Pin_class_data_.tc_table);
222 86335186 : return Pin_class_data_.base();
223 : }
224 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
225 : const ::_pbi::TcParseTable<1, 2, 0, 46, 2>
226 : Pin::_table_ = {
227 : {
228 : PROTOBUF_FIELD_OFFSET(Pin, _impl_._has_bits_),
229 : 0, // no _extensions_
230 : 2, 8, // max_field_number, fast_idx_mask
231 : offsetof(decltype(_table_), field_lookup_table),
232 : 4294967292, // skipmap
233 : offsetof(decltype(_table_), field_entries),
234 : 2, // num_field_entries
235 : 0, // num_aux_entries
236 : offsetof(decltype(_table_), field_names), // no aux_entries
237 : Pin_class_data_.base(),
238 : nullptr, // post_loop_handler
239 : ::_pbi::TcParser::GenericFallback, // fallback
240 : #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
241 : ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>(), // to_prefetch
242 : #endif // PROTOBUF_PREFETCH_PARSE_TABLE
243 : }, {{
244 : // optional uint32 index = 2;
245 : {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Pin, _impl_.index_), 1>(),
246 : {16, 1, 0,
247 : PROTOBUF_FIELD_OFFSET(Pin, _impl_.index_)}},
248 : // optional string name = 1;
249 : {::_pbi::TcParser::FastUS1,
250 : {10, 0, 0,
251 : PROTOBUF_FIELD_OFFSET(Pin, _impl_.name_)}},
252 : }}, {{
253 : 65535, 65535
254 : }}, {{
255 : // optional string name = 1;
256 : {PROTOBUF_FIELD_OFFSET(Pin, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
257 : // optional uint32 index = 2;
258 : {PROTOBUF_FIELD_OFFSET(Pin, _impl_.index_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
259 : }},
260 : // no aux_entries
261 : {{
262 : "\41\4\0\0\0\0\0\0"
263 : "Odb.Lib.Protobuf.ProductModel.Pin"
264 : "name"
265 : }},
266 : };
267 10739840 : PROTOBUF_NOINLINE void Pin::Clear() {
268 : // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Pin)
269 10739840 : ::google::protobuf::internal::TSanWrite(&_impl_);
270 10739840 : ::uint32_t cached_has_bits = 0;
271 : // Prevent compiler warnings about cached_has_bits being unused
272 : (void) cached_has_bits;
273 :
274 10739840 : cached_has_bits = _impl_._has_bits_[0];
275 10739840 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
276 0 : _impl_.name_.ClearNonDefaultToEmpty();
277 : }
278 10739840 : _impl_.index_ = 0u;
279 10739840 : _impl_._has_bits_.Clear();
280 10739840 : _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
281 10739840 : }
282 :
283 : #if defined(PROTOBUF_CUSTOM_VTABLE)
284 : ::uint8_t* PROTOBUF_NONNULL Pin::_InternalSerialize(
285 : const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
286 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
287 : const Pin& this_ = static_cast<const Pin&>(base);
288 : #else // PROTOBUF_CUSTOM_VTABLE
289 2309772 : ::uint8_t* PROTOBUF_NONNULL Pin::_InternalSerialize(
290 : ::uint8_t* PROTOBUF_NONNULL target,
291 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
292 2309772 : const Pin& this_ = *this;
293 : #endif // PROTOBUF_CUSTOM_VTABLE
294 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
295 2309772 : this_.CheckHasBitConsistency();
296 : }
297 : // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Pin)
298 2309772 : ::uint32_t cached_has_bits = 0;
299 : (void)cached_has_bits;
300 :
301 2309772 : cached_has_bits = this_._impl_._has_bits_[0];
302 : // optional string name = 1;
303 2309772 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
304 2309772 : const ::std::string& _s = this_._internal_name();
305 4619544 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
306 2309772 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Pin.name");
307 2309772 : target = stream->WriteStringMaybeAliased(1, _s, target);
308 : }
309 :
310 : // optional uint32 index = 2;
311 2309772 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
312 2309772 : target = stream->EnsureSpace(target);
313 2309772 : target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
314 : 2, this_._internal_index(), target);
315 : }
316 :
317 2309772 : if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
318 : target =
319 0 : ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
320 : this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
321 : }
322 : // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Pin)
323 2309772 : return target;
324 : }
325 :
326 : #if defined(PROTOBUF_CUSTOM_VTABLE)
327 : ::size_t Pin::ByteSizeLong(const MessageLite& base) {
328 : const Pin& this_ = static_cast<const Pin&>(base);
329 : #else // PROTOBUF_CUSTOM_VTABLE
330 4908390 : ::size_t Pin::ByteSizeLong() const {
331 4908390 : const Pin& this_ = *this;
332 : #endif // PROTOBUF_CUSTOM_VTABLE
333 : // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Pin)
334 4908390 : ::size_t total_size = 0;
335 :
336 4908390 : ::uint32_t cached_has_bits = 0;
337 : // Prevent compiler warnings about cached_has_bits being unused
338 : (void)cached_has_bits;
339 :
340 : ::_pbi::Prefetch5LinesFrom7Lines(&this_);
341 4908390 : cached_has_bits = this_._impl_._has_bits_[0];
342 4908390 : if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
343 : // optional string name = 1;
344 4908390 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
345 4908390 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
346 : this_._internal_name());
347 : }
348 : // optional uint32 index = 2;
349 4908390 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
350 4908390 : total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
351 : this_._internal_index());
352 : }
353 : }
354 4908390 : return this_.MaybeComputeUnknownFieldsSize(total_size,
355 4908390 : &this_._impl_._cached_size_);
356 : }
357 :
358 10739840 : void Pin::MergeImpl(::google::protobuf::MessageLite& to_msg,
359 : const ::google::protobuf::MessageLite& from_msg) {
360 10739840 : auto* const _this =
361 : static_cast<Pin*>(&to_msg);
362 10739840 : auto& from = static_cast<const Pin&>(from_msg);
363 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
364 10739840 : from.CheckHasBitConsistency();
365 : }
366 : // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Pin)
367 10739840 : ABSL_DCHECK_NE(&from, _this);
368 10739840 : ::uint32_t cached_has_bits = 0;
369 : (void)cached_has_bits;
370 :
371 10739840 : cached_has_bits = from._impl_._has_bits_[0];
372 10739840 : if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
373 10739840 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
374 10739840 : _this->_internal_set_name(from._internal_name());
375 : }
376 10739840 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
377 10739840 : _this->_impl_.index_ = from._impl_.index_;
378 : }
379 : }
380 10739840 : _this->_impl_._has_bits_[0] |= cached_has_bits;
381 10739840 : _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
382 10739840 : from._internal_metadata_);
383 10739840 : }
384 :
385 8358274 : void Pin::CopyFrom(const Pin& from) {
386 : // @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.ProductModel.Pin)
387 8358274 : if (&from == this) return;
388 8358274 : Clear();
389 8358274 : MergeFrom(from);
390 : }
391 :
392 :
393 0 : void Pin::InternalSwap(Pin* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
394 : using ::std::swap;
395 0 : auto* arena = GetArena();
396 0 : ABSL_DCHECK_EQ(arena, other->GetArena());
397 0 : _internal_metadata_.InternalSwap(&other->_internal_metadata_);
398 0 : swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
399 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
400 0 : swap(_impl_.index_, other->_impl_.index_);
401 0 : }
402 :
403 0 : ::google::protobuf::Metadata Pin::GetMetadata() const {
404 0 : return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
405 : }
406 : // @@protoc_insertion_point(namespace_scope)
407 : } // namespace ProductModel
408 : } // namespace Protobuf
409 : } // namespace Lib
410 : } // namespace Odb
411 : namespace google {
412 : namespace protobuf {
413 : } // namespace protobuf
414 : } // namespace google
415 : // @@protoc_insertion_point(global_scope)
416 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
417 : _static_init2_ [[maybe_unused]] =
418 : (::_pbi::AddDescriptors(&descriptor_table_pin_2eproto),
419 : ::std::false_type{});
420 : #include "google/protobuf/port_undef.inc"
|