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