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 : #ifndef pin_2eproto_2epb_2eh
7 : #define pin_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 : // @@protoc_insertion_point(includes)
33 :
34 : // Must be included last.
35 : #include "google/protobuf/port_def.inc"
36 :
37 : #define PROTOBUF_INTERNAL_EXPORT_pin_2eproto ODBDESIGN_EXPORT
38 :
39 : namespace google {
40 : namespace protobuf {
41 : namespace internal {
42 : template <typename T>
43 : ::absl::string_view GetAnyMessageName();
44 : } // namespace internal
45 : } // namespace protobuf
46 : } // namespace google
47 :
48 : // Internal implementation detail -- do not use these members.
49 : struct ODBDESIGN_EXPORT TableStruct_pin_2eproto {
50 : static const ::uint32_t offsets[];
51 : };
52 : extern "C" {
53 : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_pin_2eproto;
54 : } // extern "C"
55 : namespace Odb {
56 : namespace Lib {
57 : namespace Protobuf {
58 : namespace ProductModel {
59 : class Pin;
60 : struct PinDefaultTypeInternal;
61 : ODBDESIGN_EXPORT extern PinDefaultTypeInternal _Pin_default_instance_;
62 : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::ClassDataFull Pin_class_data_;
63 : } // namespace ProductModel
64 : } // namespace Protobuf
65 : } // namespace Lib
66 : } // namespace Odb
67 : namespace google {
68 : namespace protobuf {
69 : } // namespace protobuf
70 : } // namespace google
71 :
72 : namespace Odb {
73 : namespace Lib {
74 : namespace Protobuf {
75 : namespace ProductModel {
76 :
77 : // ===================================================================
78 :
79 :
80 : // -------------------------------------------------------------------
81 :
82 : class ODBDESIGN_EXPORT Pin final : public ::google::protobuf::Message
83 : /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Pin) */ {
84 : public:
85 11119188 : inline Pin() : Pin(nullptr) {}
86 : ~Pin() PROTOBUF_FINAL;
87 :
88 : #if defined(PROTOBUF_CUSTOM_VTABLE)
89 : void operator delete(Pin* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
90 : SharedDtor(*msg);
91 : ::google::protobuf::internal::SizedDelete(msg, sizeof(Pin));
92 : }
93 : #endif
94 :
95 : template <typename = void>
96 : explicit PROTOBUF_CONSTEXPR Pin(::google::protobuf::internal::ConstantInitialized);
97 :
98 9833843 : inline Pin(const Pin& from) : Pin(nullptr, from) {}
99 : inline Pin(Pin&& from) noexcept
100 : : Pin(nullptr, ::std::move(from)) {}
101 5536974 : inline Pin& operator=(const Pin& from) {
102 5536974 : CopyFrom(from);
103 5536974 : return *this;
104 : }
105 : inline Pin& operator=(Pin&& from) noexcept {
106 : if (this == &from) return *this;
107 : if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
108 : InternalSwap(&from);
109 : } else {
110 : CopyFrom(from);
111 : }
112 : return *this;
113 : }
114 :
115 : inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
116 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
117 : return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
118 : }
119 : inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
120 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
121 : return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
122 : }
123 :
124 : static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
125 : return GetDescriptor();
126 : }
127 : static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
128 : return default_instance().GetMetadata().descriptor;
129 : }
130 : static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
131 : return default_instance().GetMetadata().reflection;
132 : }
133 : static const Pin& default_instance() {
134 : return *reinterpret_cast<const Pin*>(
135 : &_Pin_default_instance_);
136 : }
137 : static constexpr int kIndexInFileMessages = 0;
138 : friend void swap(Pin& a, Pin& b) { a.Swap(&b); }
139 : inline void Swap(Pin* PROTOBUF_NONNULL other) {
140 : if (other == this) return;
141 : if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
142 : InternalSwap(other);
143 : } else {
144 : ::google::protobuf::internal::GenericSwap(this, other);
145 : }
146 : }
147 : void UnsafeArenaSwap(Pin* PROTOBUF_NONNULL other) {
148 : if (other == this) return;
149 : ABSL_DCHECK(GetArena() == other->GetArena());
150 : InternalSwap(other);
151 : }
152 :
153 : // implements Message ----------------------------------------------
154 :
155 : Pin* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
156 : return ::google::protobuf::Message::DefaultConstruct<Pin>(arena);
157 : }
158 : using ::google::protobuf::Message::CopyFrom;
159 : void CopyFrom(const Pin& from);
160 : using ::google::protobuf::Message::MergeFrom;
161 8358274 : void MergeFrom(const Pin& from) { Pin::MergeImpl(*this, from); }
162 :
163 : private:
164 : static void MergeImpl(::google::protobuf::MessageLite& to_msg,
165 : const ::google::protobuf::MessageLite& from_msg);
166 :
167 : public:
168 : bool IsInitialized() const {
169 : return true;
170 : }
171 : ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
172 : #if defined(PROTOBUF_CUSTOM_VTABLE)
173 : private:
174 : static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
175 : static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
176 : const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
177 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
178 :
179 : public:
180 : ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
181 : ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
182 : ::uint8_t* PROTOBUF_NONNULL target,
183 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
184 : return _InternalSerialize(*this, target, stream);
185 : }
186 : #else // PROTOBUF_CUSTOM_VTABLE
187 : ::size_t ByteSizeLong() const final;
188 : ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
189 : ::uint8_t* PROTOBUF_NONNULL target,
190 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
191 : #endif // PROTOBUF_CUSTOM_VTABLE
192 3447792 : int GetCachedSize() const { return _impl_._cached_size_.Get(); }
193 :
194 : private:
195 : void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
196 : static void SharedDtor(MessageLite& self);
197 : void InternalSwap(Pin* PROTOBUF_NONNULL other);
198 : private:
199 : template <typename T>
200 : friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
201 : static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Pin"; }
202 :
203 : explicit Pin(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
204 : Pin(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Pin& from);
205 : Pin(
206 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Pin&& from) noexcept
207 : : Pin(arena) {
208 : *this = ::std::move(from);
209 : }
210 : const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
211 : static void* PROTOBUF_NONNULL PlacementNew_(
212 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
213 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
214 : static constexpr auto InternalNewImpl_();
215 :
216 : public:
217 : static constexpr auto InternalGenerateClassData_();
218 :
219 : ::google::protobuf::Metadata GetMetadata() const;
220 : // nested types ----------------------------------------------------
221 :
222 : // accessors -------------------------------------------------------
223 : enum : int {
224 : kNameFieldNumber = 1,
225 : kIndexFieldNumber = 2,
226 : };
227 : // optional string name = 1;
228 : bool has_name() const;
229 : void clear_name() ;
230 : const ::std::string& name() const;
231 : template <typename Arg_ = const ::std::string&, typename... Args_>
232 : void set_name(Arg_&& arg, Args_... args);
233 : ::std::string* PROTOBUF_NONNULL mutable_name();
234 : [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
235 : void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
236 :
237 : private:
238 : const ::std::string& _internal_name() const;
239 : PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
240 : ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
241 :
242 : public:
243 : // optional uint32 index = 2;
244 : bool has_index() const;
245 : void clear_index() ;
246 : ::uint32_t index() const;
247 : void set_index(::uint32_t value);
248 :
249 : private:
250 : ::uint32_t _internal_index() const;
251 : void _internal_set_index(::uint32_t value);
252 :
253 : public:
254 : // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Pin)
255 : private:
256 : class _Internal;
257 : friend class ::google::protobuf::internal::TcParser;
258 : static const ::google::protobuf::internal::TcParseTable<1, 2,
259 : 0, 46,
260 : 2>
261 : _table_;
262 :
263 : friend class ::google::protobuf::MessageLite;
264 : friend class ::google::protobuf::Arena;
265 : template <typename T>
266 : friend class ::google::protobuf::Arena::InternalHelper;
267 : using InternalArenaConstructable_ = void;
268 : using DestructorSkippable_ = void;
269 : struct Impl_ {
270 : inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
271 : inline explicit Impl_(
272 : ::google::protobuf::internal::InternalVisibility visibility,
273 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
274 : inline explicit Impl_(
275 : ::google::protobuf::internal::InternalVisibility visibility,
276 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
277 : const Pin& from_msg);
278 : ::google::protobuf::internal::HasBits<1> _has_bits_;
279 : ::google::protobuf::internal::CachedSize _cached_size_;
280 : ::google::protobuf::internal::ArenaStringPtr name_;
281 : ::uint32_t index_;
282 : PROTOBUF_TSAN_DECLARE_MEMBER
283 : };
284 : union { Impl_ _impl_; };
285 : friend struct ::TableStruct_pin_2eproto;
286 : };
287 :
288 : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::ClassDataFull Pin_class_data_;
289 :
290 : // ===================================================================
291 :
292 :
293 :
294 :
295 : // ===================================================================
296 :
297 :
298 : #ifdef __GNUC__
299 : #pragma GCC diagnostic push
300 : #pragma GCC diagnostic ignored "-Wstrict-aliasing"
301 : #endif // __GNUC__
302 : // -------------------------------------------------------------------
303 :
304 : // Pin
305 :
306 : // optional string name = 1;
307 : inline bool Pin::has_name() const {
308 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
309 : return value;
310 : }
311 : inline void Pin::clear_name() {
312 : ::google::protobuf::internal::TSanWrite(&_impl_);
313 : _impl_.name_.ClearToEmpty();
314 : ClearHasBit(_impl_._has_bits_[0],
315 : 0x00000001U);
316 : }
317 1828710 : inline const ::std::string& Pin::name() const
318 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
319 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Pin.name)
320 1828710 : return _internal_name();
321 : }
322 : template <typename Arg_, typename... Args_>
323 : PROTOBUF_ALWAYS_INLINE void Pin::set_name(Arg_&& arg, Args_... args) {
324 5582214 : ::google::protobuf::internal::TSanWrite(&_impl_);
325 5582214 : SetHasBit(_impl_._has_bits_[0], 0x00000001U);
326 5582214 : _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
327 : // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Pin.name)
328 5582214 : }
329 : inline ::std::string* PROTOBUF_NONNULL Pin::mutable_name()
330 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
331 : SetHasBit(_impl_._has_bits_[0], 0x00000001U);
332 : ::std::string* _s = _internal_mutable_name();
333 : // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Pin.name)
334 : return _s;
335 : }
336 19786712 : inline const ::std::string& Pin::_internal_name() const {
337 19786712 : ::google::protobuf::internal::TSanRead(&_impl_);
338 19786712 : return _impl_.name_.Get();
339 : }
340 : inline void Pin::_internal_set_name(const ::std::string& value) {
341 10739840 : ::google::protobuf::internal::TSanWrite(&_impl_);
342 10739840 : _impl_.name_.Set(value, GetArena());
343 10739840 : }
344 : inline ::std::string* PROTOBUF_NONNULL Pin::_internal_mutable_name() {
345 : ::google::protobuf::internal::TSanWrite(&_impl_);
346 : return _impl_.name_.Mutable( GetArena());
347 : }
348 : inline ::std::string* PROTOBUF_NULLABLE Pin::release_name() {
349 : ::google::protobuf::internal::TSanWrite(&_impl_);
350 : // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Pin.name)
351 : if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
352 : return nullptr;
353 : }
354 : ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
355 : auto* released = _impl_.name_.Release();
356 : if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
357 : _impl_.name_.Set("", GetArena());
358 : }
359 : return released;
360 : }
361 : inline void Pin::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
362 : ::google::protobuf::internal::TSanWrite(&_impl_);
363 : if (value != nullptr) {
364 : SetHasBit(_impl_._has_bits_[0], 0x00000001U);
365 : } else {
366 : ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
367 : }
368 : _impl_.name_.SetAllocated(value, GetArena());
369 : if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
370 : _impl_.name_.Set("", GetArena());
371 : }
372 : // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Pin.name)
373 : }
374 :
375 : // optional uint32 index = 2;
376 : inline bool Pin::has_index() const {
377 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
378 : return value;
379 : }
380 : inline void Pin::clear_index() {
381 : ::google::protobuf::internal::TSanWrite(&_impl_);
382 : _impl_.index_ = 0u;
383 : ClearHasBit(_impl_._has_bits_[0],
384 : 0x00000002U);
385 : }
386 1828710 : inline ::uint32_t Pin::index() const {
387 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Pin.index)
388 1828710 : return _internal_index();
389 : }
390 5582214 : inline void Pin::set_index(::uint32_t value) {
391 5582214 : _internal_set_index(value);
392 5582214 : SetHasBit(_impl_._has_bits_[0], 0x00000002U);
393 : // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Pin.index)
394 5582214 : }
395 9046872 : inline ::uint32_t Pin::_internal_index() const {
396 9046872 : ::google::protobuf::internal::TSanRead(&_impl_);
397 9046872 : return _impl_.index_;
398 : }
399 5582214 : inline void Pin::_internal_set_index(::uint32_t value) {
400 5582214 : ::google::protobuf::internal::TSanWrite(&_impl_);
401 5582214 : _impl_.index_ = value;
402 5582214 : }
403 :
404 : #ifdef __GNUC__
405 : #pragma GCC diagnostic pop
406 : #endif // __GNUC__
407 :
408 : // @@protoc_insertion_point(namespace_scope)
409 : } // namespace ProductModel
410 : } // namespace Protobuf
411 : } // namespace Lib
412 : } // namespace Odb
413 :
414 :
415 : // @@protoc_insertion_point(global_scope)
416 :
417 : #include "google/protobuf/port_undef.inc"
418 :
419 : #endif // pin_2eproto_2epb_2eh
|