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 : #ifndef pinconnection_2eproto_2epb_2eh
7 : #define pinconnection_2eproto_2epb_2eh
8 :
9 : #include <limits>
10 : #include <string>
11 : #include <type_traits>
12 : #include <utility>
13 :
14 : #include "google/protobuf/runtime_version.h"
15 : #if PROTOBUF_VERSION != 6033004
16 : #error "Protobuf C++ gencode is built with an incompatible version of"
17 : #error "Protobuf C++ headers/runtime. See"
18 : #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
19 : #endif
20 : #include "google/protobuf/io/coded_stream.h"
21 : #include "google/protobuf/arena.h"
22 : #include "google/protobuf/arenastring.h"
23 : #include "google/protobuf/generated_message_tctable_decl.h"
24 : #include "google/protobuf/generated_message_util.h"
25 : #include "google/protobuf/metadata_lite.h"
26 : #include "google/protobuf/generated_message_reflection.h"
27 : #include "google/protobuf/message.h"
28 : #include "google/protobuf/message_lite.h"
29 : #include "google/protobuf/repeated_field.h" // IWYU pragma: export
30 : #include "google/protobuf/extension_set.h" // IWYU pragma: export
31 : #include "google/protobuf/unknown_field_set.h"
32 : #include "component.pb.h"
33 : #include "pin.pb.h"
34 : // @@protoc_insertion_point(includes)
35 :
36 : // Must be included last.
37 : #include "google/protobuf/port_def.inc"
38 :
39 : #define PROTOBUF_INTERNAL_EXPORT_pinconnection_2eproto ODBDESIGN_EXPORT
40 :
41 : namespace google {
42 : namespace protobuf {
43 : namespace internal {
44 : template <typename T>
45 : ::absl::string_view GetAnyMessageName();
46 : } // namespace internal
47 : } // namespace protobuf
48 : } // namespace google
49 :
50 : // Internal implementation detail -- do not use these members.
51 : struct ODBDESIGN_EXPORT TableStruct_pinconnection_2eproto {
52 : static const ::uint32_t offsets[];
53 : };
54 : extern "C" {
55 : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_pinconnection_2eproto;
56 : } // extern "C"
57 : namespace Odb {
58 : namespace Lib {
59 : namespace Protobuf {
60 : namespace ProductModel {
61 : class PinConnection;
62 : struct PinConnectionDefaultTypeInternal;
63 : ODBDESIGN_EXPORT extern PinConnectionDefaultTypeInternal _PinConnection_default_instance_;
64 : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::ClassDataFull PinConnection_class_data_;
65 : } // namespace ProductModel
66 : } // namespace Protobuf
67 : } // namespace Lib
68 : } // namespace Odb
69 : namespace google {
70 : namespace protobuf {
71 : } // namespace protobuf
72 : } // namespace google
73 :
74 : namespace Odb {
75 : namespace Lib {
76 : namespace Protobuf {
77 : namespace ProductModel {
78 :
79 : // ===================================================================
80 :
81 :
82 : // -------------------------------------------------------------------
83 :
84 : class ODBDESIGN_EXPORT PinConnection final : public ::google::protobuf::Message
85 : /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.PinConnection) */ {
86 : public:
87 60386 : inline PinConnection() : PinConnection(nullptr) {}
88 : ~PinConnection() PROTOBUF_FINAL;
89 :
90 : #if defined(PROTOBUF_CUSTOM_VTABLE)
91 : void operator delete(PinConnection* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
92 : SharedDtor(*msg);
93 : ::google::protobuf::internal::SizedDelete(msg, sizeof(PinConnection));
94 : }
95 : #endif
96 :
97 : template <typename = void>
98 : explicit PROTOBUF_CONSTEXPR PinConnection(::google::protobuf::internal::ConstantInitialized);
99 :
100 : inline PinConnection(const PinConnection& from) : PinConnection(nullptr, from) {}
101 : inline PinConnection(PinConnection&& from) noexcept
102 : : PinConnection(nullptr, ::std::move(from)) {}
103 : inline PinConnection& operator=(const PinConnection& from) {
104 : CopyFrom(from);
105 : return *this;
106 : }
107 : inline PinConnection& operator=(PinConnection&& from) noexcept {
108 : if (this == &from) return *this;
109 : if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
110 : InternalSwap(&from);
111 : } else {
112 : CopyFrom(from);
113 : }
114 : return *this;
115 : }
116 :
117 : inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
118 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
119 : return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
120 : }
121 : inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
122 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
123 : return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
124 : }
125 :
126 : static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
127 : return GetDescriptor();
128 : }
129 : static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
130 : return default_instance().GetMetadata().descriptor;
131 : }
132 : static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
133 : return default_instance().GetMetadata().reflection;
134 : }
135 : static const PinConnection& default_instance() {
136 : return *reinterpret_cast<const PinConnection*>(
137 : &_PinConnection_default_instance_);
138 : }
139 : static constexpr int kIndexInFileMessages = 0;
140 : friend void swap(PinConnection& a, PinConnection& b) { a.Swap(&b); }
141 : inline void Swap(PinConnection* PROTOBUF_NONNULL other) {
142 : if (other == this) return;
143 : if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
144 : InternalSwap(other);
145 : } else {
146 : ::google::protobuf::internal::GenericSwap(this, other);
147 : }
148 : }
149 : void UnsafeArenaSwap(PinConnection* PROTOBUF_NONNULL other) {
150 : if (other == this) return;
151 : ABSL_DCHECK(GetArena() == other->GetArena());
152 : InternalSwap(other);
153 : }
154 :
155 : // implements Message ----------------------------------------------
156 :
157 : PinConnection* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
158 : return ::google::protobuf::Message::DefaultConstruct<PinConnection>(arena);
159 : }
160 : using ::google::protobuf::Message::CopyFrom;
161 : void CopyFrom(const PinConnection& from);
162 : using ::google::protobuf::Message::MergeFrom;
163 60386 : void MergeFrom(const PinConnection& from) { PinConnection::MergeImpl(*this, from); }
164 :
165 : private:
166 : static void MergeImpl(::google::protobuf::MessageLite& to_msg,
167 : const ::google::protobuf::MessageLite& from_msg);
168 :
169 : public:
170 : bool IsInitialized() const {
171 : return true;
172 : }
173 : ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
174 : #if defined(PROTOBUF_CUSTOM_VTABLE)
175 : private:
176 : static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
177 : static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
178 : const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
179 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
180 :
181 : public:
182 : ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
183 : ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
184 : ::uint8_t* PROTOBUF_NONNULL target,
185 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
186 : return _InternalSerialize(*this, target, stream);
187 : }
188 : #else // PROTOBUF_CUSTOM_VTABLE
189 : ::size_t ByteSizeLong() const final;
190 : ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
191 : ::uint8_t* PROTOBUF_NONNULL target,
192 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
193 : #endif // PROTOBUF_CUSTOM_VTABLE
194 33732 : int GetCachedSize() const { return _impl_._cached_size_.Get(); }
195 :
196 : private:
197 : void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
198 : static void SharedDtor(MessageLite& self);
199 : void InternalSwap(PinConnection* PROTOBUF_NONNULL other);
200 : private:
201 : template <typename T>
202 : friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
203 : static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.PinConnection"; }
204 :
205 : explicit PinConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
206 : PinConnection(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PinConnection& from);
207 : PinConnection(
208 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PinConnection&& from) noexcept
209 : : PinConnection(arena) {
210 : *this = ::std::move(from);
211 : }
212 : const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
213 : static void* PROTOBUF_NONNULL PlacementNew_(
214 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
215 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
216 : static constexpr auto InternalNewImpl_();
217 :
218 : public:
219 : static constexpr auto InternalGenerateClassData_();
220 :
221 : ::google::protobuf::Metadata GetMetadata() const;
222 : // nested types ----------------------------------------------------
223 :
224 : // accessors -------------------------------------------------------
225 : enum : int {
226 : kNameFieldNumber = 1,
227 : kComponentFieldNumber = 2,
228 : kPinFieldNumber = 3,
229 : };
230 : // optional string name = 1;
231 : bool has_name() const;
232 : void clear_name() ;
233 : const ::std::string& name() const;
234 : template <typename Arg_ = const ::std::string&, typename... Args_>
235 : void set_name(Arg_&& arg, Args_... args);
236 : ::std::string* PROTOBUF_NONNULL mutable_name();
237 : [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
238 : void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
239 :
240 : private:
241 : const ::std::string& _internal_name() const;
242 : PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
243 : ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
244 :
245 : public:
246 : // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2;
247 : bool has_component() const;
248 : void clear_component() ;
249 : const ::Odb::Lib::Protobuf::ProductModel::Component& component() const;
250 : [[nodiscard]] ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NULLABLE release_component();
251 : ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NONNULL mutable_component();
252 : void set_allocated_component(::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NULLABLE value);
253 : void unsafe_arena_set_allocated_component(::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NULLABLE value);
254 : ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NULLABLE unsafe_arena_release_component();
255 :
256 : private:
257 : const ::Odb::Lib::Protobuf::ProductModel::Component& _internal_component() const;
258 : ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NONNULL _internal_mutable_component();
259 :
260 : public:
261 : // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3;
262 : bool has_pin() const;
263 : void clear_pin() ;
264 : const ::Odb::Lib::Protobuf::ProductModel::Pin& pin() const;
265 : [[nodiscard]] ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NULLABLE release_pin();
266 : ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NONNULL mutable_pin();
267 : void set_allocated_pin(::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NULLABLE value);
268 : void unsafe_arena_set_allocated_pin(::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NULLABLE value);
269 : ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NULLABLE unsafe_arena_release_pin();
270 :
271 : private:
272 : const ::Odb::Lib::Protobuf::ProductModel::Pin& _internal_pin() const;
273 : ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NONNULL _internal_mutable_pin();
274 :
275 : public:
276 : // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.PinConnection)
277 : private:
278 : class _Internal;
279 : friend class ::google::protobuf::internal::TcParser;
280 : static const ::google::protobuf::internal::TcParseTable<2, 3,
281 : 2, 56,
282 : 2>
283 : _table_;
284 :
285 : friend class ::google::protobuf::MessageLite;
286 : friend class ::google::protobuf::Arena;
287 : template <typename T>
288 : friend class ::google::protobuf::Arena::InternalHelper;
289 : using InternalArenaConstructable_ = void;
290 : using DestructorSkippable_ = void;
291 : struct Impl_ {
292 : inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
293 : inline explicit Impl_(
294 : ::google::protobuf::internal::InternalVisibility visibility,
295 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
296 : inline explicit Impl_(
297 : ::google::protobuf::internal::InternalVisibility visibility,
298 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
299 : const PinConnection& from_msg);
300 : ::google::protobuf::internal::HasBits<1> _has_bits_;
301 : ::google::protobuf::internal::CachedSize _cached_size_;
302 : ::google::protobuf::internal::ArenaStringPtr name_;
303 : ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NULLABLE component_;
304 : ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NULLABLE pin_;
305 : PROTOBUF_TSAN_DECLARE_MEMBER
306 : };
307 : union { Impl_ _impl_; };
308 : friend struct ::TableStruct_pinconnection_2eproto;
309 : };
310 :
311 : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::ClassDataFull PinConnection_class_data_;
312 :
313 : // ===================================================================
314 :
315 :
316 :
317 :
318 : // ===================================================================
319 :
320 :
321 : #ifdef __GNUC__
322 : #pragma GCC diagnostic push
323 : #pragma GCC diagnostic ignored "-Wstrict-aliasing"
324 : #endif // __GNUC__
325 : // -------------------------------------------------------------------
326 :
327 : // PinConnection
328 :
329 : // optional string name = 1;
330 : inline bool PinConnection::has_name() const {
331 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
332 : return value;
333 : }
334 : inline void PinConnection::clear_name() {
335 : ::google::protobuf::internal::TSanWrite(&_impl_);
336 : _impl_.name_.ClearToEmpty();
337 : ClearHasBit(_impl_._has_bits_[0],
338 : 0x00000001U);
339 : }
340 16138 : inline const ::std::string& PinConnection::name() const
341 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
342 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.PinConnection.name)
343 16138 : return _internal_name();
344 : }
345 : template <typename Arg_, typename... Args_>
346 : PROTOBUF_ALWAYS_INLINE void PinConnection::set_name(Arg_&& arg, Args_... args) {
347 60386 : ::google::protobuf::internal::TSanWrite(&_impl_);
348 60386 : SetHasBit(_impl_._has_bits_[0], 0x00000001U);
349 60386 : _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
350 : // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.PinConnection.name)
351 60386 : }
352 : inline ::std::string* PROTOBUF_NONNULL PinConnection::mutable_name()
353 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
354 : SetHasBit(_impl_._has_bits_[0], 0x00000001U);
355 : ::std::string* _s = _internal_mutable_name();
356 : // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.PinConnection.name)
357 : return _s;
358 : }
359 171370 : inline const ::std::string& PinConnection::_internal_name() const {
360 171370 : ::google::protobuf::internal::TSanRead(&_impl_);
361 171370 : return _impl_.name_.Get();
362 : }
363 : inline void PinConnection::_internal_set_name(const ::std::string& value) {
364 60386 : ::google::protobuf::internal::TSanWrite(&_impl_);
365 60386 : _impl_.name_.Set(value, GetArena());
366 60386 : }
367 : inline ::std::string* PROTOBUF_NONNULL PinConnection::_internal_mutable_name() {
368 : ::google::protobuf::internal::TSanWrite(&_impl_);
369 : return _impl_.name_.Mutable( GetArena());
370 : }
371 : inline ::std::string* PROTOBUF_NULLABLE PinConnection::release_name() {
372 : ::google::protobuf::internal::TSanWrite(&_impl_);
373 : // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.PinConnection.name)
374 : if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
375 : return nullptr;
376 : }
377 : ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
378 : auto* released = _impl_.name_.Release();
379 : if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
380 : _impl_.name_.Set("", GetArena());
381 : }
382 : return released;
383 : }
384 : inline void PinConnection::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
385 : ::google::protobuf::internal::TSanWrite(&_impl_);
386 : if (value != nullptr) {
387 : SetHasBit(_impl_._has_bits_[0], 0x00000001U);
388 : } else {
389 : ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
390 : }
391 : _impl_.name_.SetAllocated(value, GetArena());
392 : if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
393 : _impl_.name_.Set("", GetArena());
394 : }
395 : // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.name)
396 : }
397 :
398 : // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2;
399 : inline bool PinConnection::has_component() const {
400 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
401 : PROTOBUF_ASSUME(!value || _impl_.component_ != nullptr);
402 : return value;
403 : }
404 16138 : inline const ::Odb::Lib::Protobuf::ProductModel::Component& PinConnection::_internal_component() const {
405 16138 : ::google::protobuf::internal::TSanRead(&_impl_);
406 16138 : const ::Odb::Lib::Protobuf::ProductModel::Component* p = _impl_.component_;
407 16138 : return p != nullptr ? *p : reinterpret_cast<const ::Odb::Lib::Protobuf::ProductModel::Component&>(::Odb::Lib::Protobuf::ProductModel::_Component_default_instance_);
408 : }
409 16138 : inline const ::Odb::Lib::Protobuf::ProductModel::Component& PinConnection::component() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
410 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.PinConnection.component)
411 16138 : return _internal_component();
412 : }
413 : inline void PinConnection::unsafe_arena_set_allocated_component(
414 : ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NULLABLE value) {
415 : ::google::protobuf::internal::TSanWrite(&_impl_);
416 : if (GetArena() == nullptr) {
417 : delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_);
418 : }
419 : _impl_.component_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Component*>(value);
420 : if (value != nullptr) {
421 : SetHasBit(_impl_._has_bits_[0], 0x00000002U);
422 : } else {
423 : ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
424 : }
425 : // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.component)
426 : }
427 : inline ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NULLABLE PinConnection::release_component() {
428 : ::google::protobuf::internal::TSanWrite(&_impl_);
429 :
430 : ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
431 : ::Odb::Lib::Protobuf::ProductModel::Component* released = _impl_.component_;
432 : _impl_.component_ = nullptr;
433 : if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
434 : auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
435 : released = ::google::protobuf::internal::DuplicateIfNonNull(released);
436 : if (GetArena() == nullptr) {
437 : delete old;
438 : }
439 : } else {
440 : if (GetArena() != nullptr) {
441 : released = ::google::protobuf::internal::DuplicateIfNonNull(released);
442 : }
443 : }
444 : return released;
445 : }
446 : inline ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NULLABLE PinConnection::unsafe_arena_release_component() {
447 : ::google::protobuf::internal::TSanWrite(&_impl_);
448 : // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.PinConnection.component)
449 :
450 : ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
451 : ::Odb::Lib::Protobuf::ProductModel::Component* temp = _impl_.component_;
452 : _impl_.component_ = nullptr;
453 : return temp;
454 : }
455 60386 : inline ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NONNULL PinConnection::_internal_mutable_component() {
456 60386 : ::google::protobuf::internal::TSanWrite(&_impl_);
457 60386 : if (_impl_.component_ == nullptr) {
458 60386 : auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::ProductModel::Component>(GetArena());
459 60386 : _impl_.component_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Component*>(p);
460 : }
461 60386 : return _impl_.component_;
462 : }
463 60386 : inline ::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NONNULL PinConnection::mutable_component()
464 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
465 60386 : SetHasBit(_impl_._has_bits_[0], 0x00000002U);
466 60386 : ::Odb::Lib::Protobuf::ProductModel::Component* _msg = _internal_mutable_component();
467 : // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.PinConnection.component)
468 60386 : return _msg;
469 : }
470 : inline void PinConnection::set_allocated_component(::Odb::Lib::Protobuf::ProductModel::Component* PROTOBUF_NULLABLE value) {
471 : ::google::protobuf::Arena* message_arena = GetArena();
472 : ::google::protobuf::internal::TSanWrite(&_impl_);
473 : if (message_arena == nullptr) {
474 : delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_);
475 : }
476 :
477 : if (value != nullptr) {
478 : ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
479 : if (message_arena != submessage_arena) {
480 : value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
481 : }
482 : SetHasBit(_impl_._has_bits_[0], 0x00000002U);
483 : } else {
484 : ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
485 : }
486 :
487 : _impl_.component_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Component*>(value);
488 : // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.component)
489 : }
490 :
491 : // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3;
492 : inline bool PinConnection::has_pin() const {
493 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
494 : PROTOBUF_ASSUME(!value || _impl_.pin_ != nullptr);
495 : return value;
496 : }
497 16138 : inline const ::Odb::Lib::Protobuf::ProductModel::Pin& PinConnection::_internal_pin() const {
498 16138 : ::google::protobuf::internal::TSanRead(&_impl_);
499 16138 : const ::Odb::Lib::Protobuf::ProductModel::Pin* p = _impl_.pin_;
500 16138 : return p != nullptr ? *p : reinterpret_cast<const ::Odb::Lib::Protobuf::ProductModel::Pin&>(::Odb::Lib::Protobuf::ProductModel::_Pin_default_instance_);
501 : }
502 16138 : inline const ::Odb::Lib::Protobuf::ProductModel::Pin& PinConnection::pin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
503 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.PinConnection.pin)
504 16138 : return _internal_pin();
505 : }
506 : inline void PinConnection::unsafe_arena_set_allocated_pin(
507 : ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NULLABLE value) {
508 : ::google::protobuf::internal::TSanWrite(&_impl_);
509 : if (GetArena() == nullptr) {
510 : delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pin_);
511 : }
512 : _impl_.pin_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Pin*>(value);
513 : if (value != nullptr) {
514 : SetHasBit(_impl_._has_bits_[0], 0x00000004U);
515 : } else {
516 : ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
517 : }
518 : // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.pin)
519 : }
520 : inline ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NULLABLE PinConnection::release_pin() {
521 : ::google::protobuf::internal::TSanWrite(&_impl_);
522 :
523 : ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
524 : ::Odb::Lib::Protobuf::ProductModel::Pin* released = _impl_.pin_;
525 : _impl_.pin_ = nullptr;
526 : if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
527 : auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
528 : released = ::google::protobuf::internal::DuplicateIfNonNull(released);
529 : if (GetArena() == nullptr) {
530 : delete old;
531 : }
532 : } else {
533 : if (GetArena() != nullptr) {
534 : released = ::google::protobuf::internal::DuplicateIfNonNull(released);
535 : }
536 : }
537 : return released;
538 : }
539 : inline ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NULLABLE PinConnection::unsafe_arena_release_pin() {
540 : ::google::protobuf::internal::TSanWrite(&_impl_);
541 : // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.PinConnection.pin)
542 :
543 : ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
544 : ::Odb::Lib::Protobuf::ProductModel::Pin* temp = _impl_.pin_;
545 : _impl_.pin_ = nullptr;
546 : return temp;
547 : }
548 60386 : inline ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NONNULL PinConnection::_internal_mutable_pin() {
549 60386 : ::google::protobuf::internal::TSanWrite(&_impl_);
550 60386 : if (_impl_.pin_ == nullptr) {
551 60386 : auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::ProductModel::Pin>(GetArena());
552 60386 : _impl_.pin_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Pin*>(p);
553 : }
554 60386 : return _impl_.pin_;
555 : }
556 60386 : inline ::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NONNULL PinConnection::mutable_pin()
557 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
558 60386 : SetHasBit(_impl_._has_bits_[0], 0x00000004U);
559 60386 : ::Odb::Lib::Protobuf::ProductModel::Pin* _msg = _internal_mutable_pin();
560 : // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.PinConnection.pin)
561 60386 : return _msg;
562 : }
563 : inline void PinConnection::set_allocated_pin(::Odb::Lib::Protobuf::ProductModel::Pin* PROTOBUF_NULLABLE value) {
564 : ::google::protobuf::Arena* message_arena = GetArena();
565 : ::google::protobuf::internal::TSanWrite(&_impl_);
566 : if (message_arena == nullptr) {
567 : delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pin_);
568 : }
569 :
570 : if (value != nullptr) {
571 : ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
572 : if (message_arena != submessage_arena) {
573 : value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
574 : }
575 : SetHasBit(_impl_._has_bits_[0], 0x00000004U);
576 : } else {
577 : ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
578 : }
579 :
580 : _impl_.pin_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Pin*>(value);
581 : // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.pin)
582 : }
583 :
584 : #ifdef __GNUC__
585 : #pragma GCC diagnostic pop
586 : #endif // __GNUC__
587 :
588 : // @@protoc_insertion_point(namespace_scope)
589 : } // namespace ProductModel
590 : } // namespace Protobuf
591 : } // namespace Lib
592 : } // namespace Odb
593 :
594 :
595 : // @@protoc_insertion_point(global_scope)
596 :
597 : #include "google/protobuf/port_undef.inc"
598 :
599 : #endif // pinconnection_2eproto_2epb_2eh
|