Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // NO CHECKED-IN PROTOBUF GENCODE
3 : // source: pinconnection.proto
4 : // Protobuf C++ Version: 6.33.4
5 :
6 : #include "pinconnection.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 PinConnection::Impl_::Impl_(
33 : ::_pbi::ConstantInitialized) noexcept
34 : : _cached_size_{0},
35 : name_(
36 : &::google::protobuf::internal::fixed_address_empty_string,
37 : ::_pbi::ConstantInitialized()),
38 : component_{nullptr},
39 : pin_{nullptr} {}
40 :
41 : template <typename>
42 : PROTOBUF_CONSTEXPR PinConnection::PinConnection(::_pbi::ConstantInitialized)
43 : #if defined(PROTOBUF_CUSTOM_VTABLE)
44 : : ::google::protobuf::Message(PinConnection_class_data_.base()),
45 : #else // PROTOBUF_CUSTOM_VTABLE
46 : : ::google::protobuf::Message(),
47 : #endif // PROTOBUF_CUSTOM_VTABLE
48 : _impl_(::_pbi::ConstantInitialized()) {
49 : }
50 : struct PinConnectionDefaultTypeInternal {
51 : PROTOBUF_CONSTEXPR PinConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
52 319 : ~PinConnectionDefaultTypeInternal() {}
53 : union {
54 : PinConnection _instance;
55 : };
56 : };
57 :
58 : PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT
59 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PinConnectionDefaultTypeInternal _PinConnection_default_instance_;
60 : } // namespace ProductModel
61 : } // namespace Protobuf
62 : } // namespace Lib
63 : } // namespace Odb
64 : static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
65 : file_level_enum_descriptors_pinconnection_2eproto = nullptr;
66 : static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
67 : file_level_service_descriptors_pinconnection_2eproto = nullptr;
68 : const ::uint32_t
69 : TableStruct_pinconnection_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
70 : protodesc_cold) = {
71 : 0x081, // bitmap
72 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_._has_bits_),
73 : 6, // hasbit index offset
74 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_.name_),
75 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_.component_),
76 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_.pin_),
77 : 0,
78 : 1,
79 : 2,
80 : };
81 :
82 : static const ::_pbi::MigrationSchema
83 : schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
84 : {0, sizeof(::Odb::Lib::Protobuf::ProductModel::PinConnection)},
85 : };
86 : static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
87 : &::Odb::Lib::Protobuf::ProductModel::_PinConnection_default_instance_._instance,
88 : };
89 : const char descriptor_table_protodef_pinconnection_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
90 : protodesc_cold) = {
91 : "\n\023pinconnection.proto\022\035Odb.Lib.Protobuf."
92 : "ProductModel\032\017component.proto\032\tpin.proto"
93 : "\"\271\001\n\rPinConnection\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022@\n"
94 : "\tcomponent\030\002 \001(\0132(.Odb.Lib.Protobuf.Prod"
95 : "uctModel.ComponentH\001\210\001\001\0224\n\003pin\030\003 \001(\0132\".O"
96 : "db.Lib.Protobuf.ProductModel.PinH\002\210\001\001B\007\n"
97 : "\005_nameB\014\n\n_componentB\006\n\004_pinB\003\370\001\001b\006proto"
98 : "3"
99 : };
100 : static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
101 : descriptor_table_pinconnection_2eproto_deps[2] = {
102 : &::descriptor_table_component_2eproto,
103 : &::descriptor_table_pin_2eproto,
104 : };
105 : static ::absl::once_flag descriptor_table_pinconnection_2eproto_once;
106 : PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_pinconnection_2eproto = {
107 : false,
108 : false,
109 : 281,
110 : descriptor_table_protodef_pinconnection_2eproto,
111 : "pinconnection.proto",
112 : &descriptor_table_pinconnection_2eproto_once,
113 : descriptor_table_pinconnection_2eproto_deps,
114 : 2,
115 : 1,
116 : schemas,
117 : file_default_instances,
118 : TableStruct_pinconnection_2eproto::offsets,
119 : file_level_enum_descriptors_pinconnection_2eproto,
120 : file_level_service_descriptors_pinconnection_2eproto,
121 : };
122 : namespace Odb {
123 : namespace Lib {
124 : namespace Protobuf {
125 : namespace ProductModel {
126 : // ===================================================================
127 :
128 : class PinConnection::_Internal {
129 : public:
130 : using HasBits =
131 : decltype(::std::declval<PinConnection>()._impl_._has_bits_);
132 : static constexpr ::int32_t kHasBitsOffset =
133 : 8 * PROTOBUF_FIELD_OFFSET(PinConnection, _impl_._has_bits_);
134 : };
135 :
136 0 : void PinConnection::clear_component() {
137 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
138 0 : if (_impl_.component_ != nullptr) _impl_.component_->Clear();
139 0 : ClearHasBit(_impl_._has_bits_[0],
140 : 0x00000002U);
141 0 : }
142 0 : void PinConnection::clear_pin() {
143 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
144 0 : if (_impl_.pin_ != nullptr) _impl_.pin_->Clear();
145 0 : ClearHasBit(_impl_._has_bits_[0],
146 : 0x00000004U);
147 0 : }
148 132016 : PinConnection::PinConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
149 : #if defined(PROTOBUF_CUSTOM_VTABLE)
150 : : ::google::protobuf::Message(arena, PinConnection_class_data_.base()) {
151 : #else // PROTOBUF_CUSTOM_VTABLE
152 132016 : : ::google::protobuf::Message(arena) {
153 : #endif // PROTOBUF_CUSTOM_VTABLE
154 132016 : SharedCtor(arena);
155 : // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.PinConnection)
156 132016 : }
157 101823 : PROTOBUF_NDEBUG_INLINE PinConnection::Impl_::Impl_(
158 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
159 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
160 101823 : [[maybe_unused]] const ::Odb::Lib::Protobuf::ProductModel::PinConnection& from_msg)
161 101823 : : _has_bits_{from._has_bits_},
162 101823 : _cached_size_{0},
163 101823 : name_(arena, from.name_) {}
164 :
165 101823 : PinConnection::PinConnection(
166 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
167 101823 : const PinConnection& from)
168 : #if defined(PROTOBUF_CUSTOM_VTABLE)
169 : : ::google::protobuf::Message(arena, PinConnection_class_data_.base()) {
170 : #else // PROTOBUF_CUSTOM_VTABLE
171 101823 : : ::google::protobuf::Message(arena) {
172 : #endif // PROTOBUF_CUSTOM_VTABLE
173 101823 : PinConnection* const _this = this;
174 : (void)_this;
175 101823 : _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
176 101823 : from._internal_metadata_);
177 101823 : new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
178 101823 : ::uint32_t cached_has_bits = _impl_._has_bits_[0];
179 101823 : _impl_.component_ = (CheckHasBit(cached_has_bits, 0x00000002U))
180 203646 : ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.component_)
181 : : nullptr;
182 203646 : _impl_.pin_ = (CheckHasBit(cached_has_bits, 0x00000004U))
183 203646 : ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.pin_)
184 : : nullptr;
185 :
186 : // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.PinConnection)
187 101823 : }
188 132016 : PROTOBUF_NDEBUG_INLINE PinConnection::Impl_::Impl_(
189 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
190 132016 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
191 132016 : : _cached_size_{0},
192 264032 : name_(arena) {}
193 :
194 132016 : inline void PinConnection::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
195 132016 : new (&_impl_) Impl_(internal_visibility(), arena);
196 132016 : ::memset(reinterpret_cast<char*>(&_impl_) +
197 : offsetof(Impl_, component_),
198 : 0,
199 : offsetof(Impl_, pin_) -
200 : offsetof(Impl_, component_) +
201 : sizeof(Impl_::pin_));
202 132016 : }
203 467678 : PinConnection::~PinConnection() {
204 : // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.PinConnection)
205 233839 : SharedDtor(*this);
206 467678 : }
207 233839 : inline void PinConnection::SharedDtor(MessageLite& self) {
208 233839 : PinConnection& this_ = static_cast<PinConnection&>(self);
209 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
210 233839 : this_.CheckHasBitConsistency();
211 : }
212 233839 : this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
213 233839 : ABSL_DCHECK(this_.GetArena() == nullptr);
214 233839 : this_._impl_.name_.Destroy();
215 233839 : delete this_._impl_.component_;
216 233839 : delete this_._impl_.pin_;
217 233839 : this_._impl_.~Impl_();
218 233839 : }
219 :
220 11244 : inline void* PROTOBUF_NONNULL PinConnection::PlacementNew_(
221 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
222 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
223 11244 : return ::new (mem) PinConnection(arena);
224 : }
225 : constexpr auto PinConnection::InternalNewImpl_() {
226 : return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PinConnection),
227 : alignof(PinConnection));
228 : }
229 : constexpr auto PinConnection::InternalGenerateClassData_() {
230 : return ::google::protobuf::internal::ClassDataFull{
231 : ::google::protobuf::internal::ClassData{
232 : &_PinConnection_default_instance_._instance,
233 : &_table_.header,
234 : nullptr, // OnDemandRegisterArenaDtor
235 : nullptr, // IsInitialized
236 : &PinConnection::MergeImpl,
237 : ::google::protobuf::Message::GetNewImpl<PinConnection>(),
238 : #if defined(PROTOBUF_CUSTOM_VTABLE)
239 : &PinConnection::SharedDtor,
240 : ::google::protobuf::Message::GetClearImpl<PinConnection>(), &PinConnection::ByteSizeLong,
241 : &PinConnection::_InternalSerialize,
242 : #endif // PROTOBUF_CUSTOM_VTABLE
243 : PROTOBUF_FIELD_OFFSET(PinConnection, _impl_._cached_size_),
244 : false,
245 : },
246 : &PinConnection::kDescriptorMethods,
247 : &descriptor_table_pinconnection_2eproto,
248 : nullptr, // tracker
249 : };
250 : }
251 :
252 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
253 : ::google::protobuf::internal::ClassDataFull PinConnection_class_data_ =
254 : PinConnection::InternalGenerateClassData_();
255 :
256 : PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
257 721100 : PinConnection::GetClassData() const {
258 721100 : ::google::protobuf::internal::PrefetchToLocalCache(&PinConnection_class_data_);
259 721100 : ::google::protobuf::internal::PrefetchToLocalCache(PinConnection_class_data_.tc_table);
260 721100 : return PinConnection_class_data_.base();
261 : }
262 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
263 : const ::_pbi::TcParseTable<2, 3, 2, 56, 2>
264 : PinConnection::_table_ = {
265 : {
266 : PROTOBUF_FIELD_OFFSET(PinConnection, _impl_._has_bits_),
267 : 0, // no _extensions_
268 : 3, 24, // max_field_number, fast_idx_mask
269 : offsetof(decltype(_table_), field_lookup_table),
270 : 4294967288, // skipmap
271 : offsetof(decltype(_table_), field_entries),
272 : 3, // num_field_entries
273 : 2, // num_aux_entries
274 : offsetof(decltype(_table_), aux_entries),
275 : PinConnection_class_data_.base(),
276 : nullptr, // post_loop_handler
277 : ::_pbi::TcParser::GenericFallback, // fallback
278 : #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
279 : ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::PinConnection>(), // to_prefetch
280 : #endif // PROTOBUF_PREFETCH_PARSE_TABLE
281 : }, {{
282 : {::_pbi::TcParser::MiniParse, {}},
283 : // optional string name = 1;
284 : {::_pbi::TcParser::FastUS1,
285 : {10, 0, 0,
286 : PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.name_)}},
287 : // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2;
288 : {::_pbi::TcParser::FastMtS1,
289 : {18, 1, 0,
290 : PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.component_)}},
291 : // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3;
292 : {::_pbi::TcParser::FastMtS1,
293 : {26, 2, 1,
294 : PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.pin_)}},
295 : }}, {{
296 : 65535, 65535
297 : }}, {{
298 : // optional string name = 1;
299 : {PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
300 : // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2;
301 : {PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.component_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
302 : // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3;
303 : {PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.pin_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
304 : }},
305 : {{
306 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Component>()},
307 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>()},
308 : }},
309 : {{
310 : "\53\4\0\0\0\0\0\0"
311 : "Odb.Lib.Protobuf.ProductModel.PinConnection"
312 : "name"
313 : }},
314 : };
315 60386 : PROTOBUF_NOINLINE void PinConnection::Clear() {
316 : // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.PinConnection)
317 60386 : ::google::protobuf::internal::TSanWrite(&_impl_);
318 60386 : ::uint32_t cached_has_bits = 0;
319 : // Prevent compiler warnings about cached_has_bits being unused
320 : (void) cached_has_bits;
321 :
322 60386 : cached_has_bits = _impl_._has_bits_[0];
323 60386 : if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
324 0 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
325 0 : _impl_.name_.ClearNonDefaultToEmpty();
326 : }
327 0 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
328 0 : ABSL_DCHECK(_impl_.component_ != nullptr);
329 0 : _impl_.component_->Clear();
330 : }
331 0 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
332 0 : ABSL_DCHECK(_impl_.pin_ != nullptr);
333 0 : _impl_.pin_->Clear();
334 : }
335 : }
336 60386 : _impl_._has_bits_.Clear();
337 60386 : _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
338 60386 : }
339 :
340 : #if defined(PROTOBUF_CUSTOM_VTABLE)
341 : ::uint8_t* PROTOBUF_NONNULL PinConnection::_InternalSerialize(
342 : const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
343 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
344 : const PinConnection& this_ = static_cast<const PinConnection&>(base);
345 : #else // PROTOBUF_CUSTOM_VTABLE
346 33732 : ::uint8_t* PROTOBUF_NONNULL PinConnection::_InternalSerialize(
347 : ::uint8_t* PROTOBUF_NONNULL target,
348 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
349 33732 : const PinConnection& this_ = *this;
350 : #endif // PROTOBUF_CUSTOM_VTABLE
351 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
352 33732 : this_.CheckHasBitConsistency();
353 : }
354 : // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.PinConnection)
355 33732 : ::uint32_t cached_has_bits = 0;
356 : (void)cached_has_bits;
357 :
358 33732 : cached_has_bits = this_._impl_._has_bits_[0];
359 : // optional string name = 1;
360 33732 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
361 33732 : const ::std::string& _s = this_._internal_name();
362 67464 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
363 33732 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.PinConnection.name");
364 33732 : target = stream->WriteStringMaybeAliased(1, _s, target);
365 : }
366 :
367 : // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2;
368 33732 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
369 33732 : target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
370 33732 : 2, *this_._impl_.component_, this_._impl_.component_->GetCachedSize(), target,
371 : stream);
372 : }
373 :
374 : // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3;
375 33732 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
376 33732 : target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
377 33732 : 3, *this_._impl_.pin_, this_._impl_.pin_->GetCachedSize(), target,
378 : stream);
379 : }
380 :
381 33732 : if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
382 : target =
383 0 : ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
384 : this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
385 : }
386 : // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.PinConnection)
387 33732 : return target;
388 : }
389 :
390 : #if defined(PROTOBUF_CUSTOM_VTABLE)
391 : ::size_t PinConnection::ByteSizeLong(const MessageLite& base) {
392 : const PinConnection& this_ = static_cast<const PinConnection&>(base);
393 : #else // PROTOBUF_CUSTOM_VTABLE
394 61114 : ::size_t PinConnection::ByteSizeLong() const {
395 61114 : const PinConnection& this_ = *this;
396 : #endif // PROTOBUF_CUSTOM_VTABLE
397 : // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.PinConnection)
398 61114 : ::size_t total_size = 0;
399 :
400 61114 : ::uint32_t cached_has_bits = 0;
401 : // Prevent compiler warnings about cached_has_bits being unused
402 : (void)cached_has_bits;
403 :
404 : ::_pbi::Prefetch5LinesFrom7Lines(&this_);
405 61114 : cached_has_bits = this_._impl_._has_bits_[0];
406 61114 : if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
407 : // optional string name = 1;
408 61114 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
409 61114 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
410 : this_._internal_name());
411 : }
412 : // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2;
413 61114 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
414 61114 : total_size += 1 +
415 61114 : ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.component_);
416 : }
417 : // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3;
418 61114 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
419 61114 : total_size += 1 +
420 61114 : ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.pin_);
421 : }
422 : }
423 61114 : return this_.MaybeComputeUnknownFieldsSize(total_size,
424 61114 : &this_._impl_._cached_size_);
425 : }
426 :
427 60386 : void PinConnection::MergeImpl(::google::protobuf::MessageLite& to_msg,
428 : const ::google::protobuf::MessageLite& from_msg) {
429 60386 : auto* const _this =
430 : static_cast<PinConnection*>(&to_msg);
431 60386 : auto& from = static_cast<const PinConnection&>(from_msg);
432 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
433 60386 : from.CheckHasBitConsistency();
434 : }
435 60386 : ::google::protobuf::Arena* arena = _this->GetArena();
436 : // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.PinConnection)
437 60386 : ABSL_DCHECK_NE(&from, _this);
438 60386 : ::uint32_t cached_has_bits = 0;
439 : (void)cached_has_bits;
440 :
441 60386 : cached_has_bits = from._impl_._has_bits_[0];
442 60386 : if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
443 60386 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
444 60386 : _this->_internal_set_name(from._internal_name());
445 : }
446 60386 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
447 60386 : ABSL_DCHECK(from._impl_.component_ != nullptr);
448 60386 : if (_this->_impl_.component_ == nullptr) {
449 120772 : _this->_impl_.component_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.component_);
450 : } else {
451 0 : _this->_impl_.component_->MergeFrom(*from._impl_.component_);
452 : }
453 : }
454 60386 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
455 60386 : ABSL_DCHECK(from._impl_.pin_ != nullptr);
456 60386 : if (_this->_impl_.pin_ == nullptr) {
457 120772 : _this->_impl_.pin_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.pin_);
458 : } else {
459 0 : _this->_impl_.pin_->MergeFrom(*from._impl_.pin_);
460 : }
461 : }
462 : }
463 60386 : _this->_impl_._has_bits_[0] |= cached_has_bits;
464 60386 : _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
465 60386 : from._internal_metadata_);
466 60386 : }
467 :
468 60386 : void PinConnection::CopyFrom(const PinConnection& from) {
469 : // @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.ProductModel.PinConnection)
470 60386 : if (&from == this) return;
471 60386 : Clear();
472 60386 : MergeFrom(from);
473 : }
474 :
475 :
476 0 : void PinConnection::InternalSwap(PinConnection* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
477 : using ::std::swap;
478 0 : auto* arena = GetArena();
479 0 : ABSL_DCHECK_EQ(arena, other->GetArena());
480 0 : _internal_metadata_.InternalSwap(&other->_internal_metadata_);
481 0 : swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
482 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
483 : ::google::protobuf::internal::memswap<
484 : PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.pin_)
485 : + sizeof(PinConnection::_impl_.pin_)
486 0 : - PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.component_)>(
487 0 : reinterpret_cast<char*>(&_impl_.component_),
488 0 : reinterpret_cast<char*>(&other->_impl_.component_));
489 0 : }
490 :
491 0 : ::google::protobuf::Metadata PinConnection::GetMetadata() const {
492 0 : return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
493 : }
494 : // @@protoc_insertion_point(namespace_scope)
495 : } // namespace ProductModel
496 : } // namespace Protobuf
497 : } // namespace Lib
498 : } // namespace Odb
499 : namespace google {
500 : namespace protobuf {
501 : } // namespace protobuf
502 : } // namespace google
503 : // @@protoc_insertion_point(global_scope)
504 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
505 : _static_init2_ [[maybe_unused]] =
506 : (::_pbi::AddDescriptors(&descriptor_table_pinconnection_2eproto),
507 : ::std::false_type{});
508 : #include "google/protobuf/port_undef.inc"
|