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