1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // NO CHECKED-IN PROTOBUF GENCODE
3 // source: google/protobuf/cpp_features.proto
4 // Protobuf C++ Version: 5.29.4
5
6 #include "google/protobuf/cpp_features.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 pb {
28
Impl_(::_pbi::ConstantInitialized)29 inline constexpr CppFeatures::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
31 : _cached_size_{0},
32 string_type_{static_cast< ::pb::CppFeatures_StringType >(0)},
33 legacy_closed_enum_{false},
34 enum_name_uses_string_view_{false} {}
35
36 template <typename>
CppFeatures(::_pbi::ConstantInitialized)37 PROTOBUF_CONSTEXPR CppFeatures::CppFeatures(::_pbi::ConstantInitialized)
38 #if defined(PROTOBUF_CUSTOM_VTABLE)
39 : ::google::protobuf::Message(_class_data_.base()),
40 #else // PROTOBUF_CUSTOM_VTABLE
41 : ::google::protobuf::Message(),
42 #endif // PROTOBUF_CUSTOM_VTABLE
43 _impl_(::_pbi::ConstantInitialized()) {
44 }
45 struct CppFeaturesDefaultTypeInternal {
CppFeaturesDefaultTypeInternalpb::CppFeaturesDefaultTypeInternal46 PROTOBUF_CONSTEXPR CppFeaturesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~CppFeaturesDefaultTypeInternalpb::CppFeaturesDefaultTypeInternal47 ~CppFeaturesDefaultTypeInternal() {}
48 union {
49 CppFeatures _instance;
50 };
51 };
52
53 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT
54 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CppFeaturesDefaultTypeInternal _CppFeatures_default_instance_;
55 } // namespace pb
56 static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fcpp_5ffeatures_2eproto[1];
57 static constexpr const ::_pb::ServiceDescriptor**
58 file_level_service_descriptors_google_2fprotobuf_2fcpp_5ffeatures_2eproto = nullptr;
59 const ::uint32_t
60 TableStruct_google_2fprotobuf_2fcpp_5ffeatures_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
61 protodesc_cold) = {
62 PROTOBUF_FIELD_OFFSET(::pb::CppFeatures, _impl_._has_bits_),
63 PROTOBUF_FIELD_OFFSET(::pb::CppFeatures, _internal_metadata_),
64 ~0u, // no _extensions_
65 ~0u, // no _oneof_case_
66 ~0u, // no _weak_field_map_
67 ~0u, // no _inlined_string_donated_
68 ~0u, // no _split_
69 ~0u, // no sizeof(Split)
70 PROTOBUF_FIELD_OFFSET(::pb::CppFeatures, _impl_.legacy_closed_enum_),
71 PROTOBUF_FIELD_OFFSET(::pb::CppFeatures, _impl_.string_type_),
72 PROTOBUF_FIELD_OFFSET(::pb::CppFeatures, _impl_.enum_name_uses_string_view_),
73 1,
74 0,
75 2,
76 };
77
78 static const ::_pbi::MigrationSchema
79 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
80 {0, 11, -1, sizeof(::pb::CppFeatures)},
81 };
82 static const ::_pb::Message* const file_default_instances[] = {
83 &::pb::_CppFeatures_default_instance_._instance,
84 };
85 const char descriptor_table_protodef_google_2fprotobuf_2fcpp_5ffeatures_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
86 protodesc_cold) = {
87 "\n\"google/protobuf/cpp_features.proto\022\002pb"
88 "\032 google/protobuf/descriptor.proto\"\374\003\n\013C"
89 "ppFeatures\022\373\001\n\022legacy_closed_enum\030\001 \001(\010B"
90 "\336\001\210\001\001\230\001\004\230\001\001\242\001\t\022\004true\030\204\007\242\001\n\022\005false\030\347\007\262\001\270\001"
91 "\010\350\007\020\350\007\032\257\001The legacy closed enum behavior"
92 " in C++ is deprecated and is scheduled t"
93 "o be removed in edition 2025. See http:"
94 "//protobuf.dev/programming-guides/enum/#"
95 "cpp for more information\022Z\n\013string_type\030"
96 "\002 \001(\0162\032.pb.CppFeatures.StringTypeB)\210\001\001\230\001"
97 "\004\230\001\001\242\001\013\022\006STRING\030\204\007\242\001\t\022\004VIEW\030\351\007\262\001\003\010\350\007\022L\n\032"
98 "enum_name_uses_string_view\030\003 \001(\010B(\210\001\002\230\001\006"
99 "\230\001\001\242\001\n\022\005false\030\204\007\242\001\t\022\004true\030\351\007\262\001\003\010\351\007\"E\n\nSt"
100 "ringType\022\027\n\023STRING_TYPE_UNKNOWN\020\000\022\010\n\004VIE"
101 "W\020\001\022\010\n\004CORD\020\002\022\n\n\006STRING\020\003::\n\003cpp\022\033.googl"
102 "e.protobuf.FeatureSet\030\350\007 \001(\0132\017.pb.CppFea"
103 "tures"
104 };
105 static const ::_pbi::DescriptorTable* const descriptor_table_google_2fprotobuf_2fcpp_5ffeatures_2eproto_deps[1] =
106 {
107 &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
108 };
109 static ::absl::once_flag descriptor_table_google_2fprotobuf_2fcpp_5ffeatures_2eproto_once;
110 PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fcpp_5ffeatures_2eproto = {
111 false,
112 false,
113 645,
114 descriptor_table_protodef_google_2fprotobuf_2fcpp_5ffeatures_2eproto,
115 "google/protobuf/cpp_features.proto",
116 &descriptor_table_google_2fprotobuf_2fcpp_5ffeatures_2eproto_once,
117 descriptor_table_google_2fprotobuf_2fcpp_5ffeatures_2eproto_deps,
118 1,
119 1,
120 schemas,
121 file_default_instances,
122 TableStruct_google_2fprotobuf_2fcpp_5ffeatures_2eproto::offsets,
123 file_level_enum_descriptors_google_2fprotobuf_2fcpp_5ffeatures_2eproto,
124 file_level_service_descriptors_google_2fprotobuf_2fcpp_5ffeatures_2eproto,
125 };
126 namespace pb {
CppFeatures_StringType_descriptor()127 const ::google::protobuf::EnumDescriptor* CppFeatures_StringType_descriptor() {
128 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fcpp_5ffeatures_2eproto);
129 return file_level_enum_descriptors_google_2fprotobuf_2fcpp_5ffeatures_2eproto[0];
130 }
131 PROTOBUF_CONSTINIT const uint32_t CppFeatures_StringType_internal_data_[] = {
132 262144u, 0u, };
CppFeatures_StringType_IsValid(int value)133 bool CppFeatures_StringType_IsValid(int value) {
134 return 0 <= value && value <= 3;
135 }
136 #if (__cplusplus < 201703) && \
137 (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
138
139 constexpr CppFeatures_StringType CppFeatures::STRING_TYPE_UNKNOWN;
140 constexpr CppFeatures_StringType CppFeatures::VIEW;
141 constexpr CppFeatures_StringType CppFeatures::CORD;
142 constexpr CppFeatures_StringType CppFeatures::STRING;
143 constexpr CppFeatures_StringType CppFeatures::StringType_MIN;
144 constexpr CppFeatures_StringType CppFeatures::StringType_MAX;
145 constexpr int CppFeatures::StringType_ARRAYSIZE;
146
147 #endif // (__cplusplus < 201703) &&
148 // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
149 // ===================================================================
150
151 class CppFeatures::_Internal {
152 public:
153 using HasBits =
154 decltype(std::declval<CppFeatures>()._impl_._has_bits_);
155 static constexpr ::int32_t kHasBitsOffset =
156 8 * PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_._has_bits_);
157 };
158
CppFeatures(::google::protobuf::Arena * arena)159 CppFeatures::CppFeatures(::google::protobuf::Arena* arena)
160 #if defined(PROTOBUF_CUSTOM_VTABLE)
161 : ::google::protobuf::Message(arena, _class_data_.base()) {
162 #else // PROTOBUF_CUSTOM_VTABLE
163 : ::google::protobuf::Message(arena) {
164 #endif // PROTOBUF_CUSTOM_VTABLE
165 SharedCtor(arena);
166 // @@protoc_insertion_point(arena_constructor:pb.CppFeatures)
167 }
168 CppFeatures::CppFeatures(
169 ::google::protobuf::Arena* arena, const CppFeatures& from)
170 : CppFeatures(arena) {
171 MergeFrom(from);
172 }
173 inline PROTOBUF_NDEBUG_INLINE CppFeatures::Impl_::Impl_(
174 ::google::protobuf::internal::InternalVisibility visibility,
175 ::google::protobuf::Arena* arena)
176 : _cached_size_{0} {}
177
178 inline void CppFeatures::SharedCtor(::_pb::Arena* arena) {
179 new (&_impl_) Impl_(internal_visibility(), arena);
180 ::memset(reinterpret_cast<char *>(&_impl_) +
181 offsetof(Impl_, string_type_),
182 0,
183 offsetof(Impl_, enum_name_uses_string_view_) -
184 offsetof(Impl_, string_type_) +
185 sizeof(Impl_::enum_name_uses_string_view_));
186 }
187 CppFeatures::~CppFeatures() {
188 // @@protoc_insertion_point(destructor:pb.CppFeatures)
189 SharedDtor(*this);
190 }
191 inline void CppFeatures::SharedDtor(MessageLite& self) {
192 CppFeatures& this_ = static_cast<CppFeatures&>(self);
193 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
194 ABSL_DCHECK(this_.GetArena() == nullptr);
195 this_._impl_.~Impl_();
196 }
197
198 inline void* CppFeatures::PlacementNew_(const void*, void* mem,
199 ::google::protobuf::Arena* arena) {
200 return ::new (mem) CppFeatures(arena);
201 }
202 constexpr auto CppFeatures::InternalNewImpl_() {
203 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CppFeatures),
204 alignof(CppFeatures));
205 }
206 PROTOBUF_CONSTINIT
207 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
208 const ::google::protobuf::internal::ClassDataFull CppFeatures::_class_data_ = {
209 ::google::protobuf::internal::ClassData{
210 &_CppFeatures_default_instance_._instance,
211 &_table_.header,
212 nullptr, // OnDemandRegisterArenaDtor
213 nullptr, // IsInitialized
214 &CppFeatures::MergeImpl,
215 ::google::protobuf::Message::GetNewImpl<CppFeatures>(),
216 #if defined(PROTOBUF_CUSTOM_VTABLE)
217 &CppFeatures::SharedDtor,
218 ::google::protobuf::Message::GetClearImpl<CppFeatures>(), &CppFeatures::ByteSizeLong,
219 &CppFeatures::_InternalSerialize,
220 #endif // PROTOBUF_CUSTOM_VTABLE
221 PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_._cached_size_),
222 false,
223 },
224 &CppFeatures::kDescriptorMethods,
225 &descriptor_table_google_2fprotobuf_2fcpp_5ffeatures_2eproto,
226 nullptr, // tracker
227 };
228 const ::google::protobuf::internal::ClassData* CppFeatures::GetClassData() const {
229 ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
230 ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
231 return _class_data_.base();
232 }
233 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
234 const ::_pbi::TcParseTable<2, 3, 1, 0, 2> CppFeatures::_table_ = {
235 {
236 PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_._has_bits_),
237 0, // no _extensions_
238 3, 24, // max_field_number, fast_idx_mask
239 offsetof(decltype(_table_), field_lookup_table),
240 4294967288, // skipmap
241 offsetof(decltype(_table_), field_entries),
242 3, // num_field_entries
243 1, // num_aux_entries
244 offsetof(decltype(_table_), aux_entries),
245 _class_data_.base(),
246 nullptr, // post_loop_handler
247 ::_pbi::TcParser::GenericFallback, // fallback
248 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
249 ::_pbi::TcParser::GetTable<::pb::CppFeatures>(), // to_prefetch
250 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
251 }, {{
252 {::_pbi::TcParser::MiniParse, {}},
253 // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
254 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CppFeatures, _impl_.legacy_closed_enum_), 1>(),
255 {8, 1, 0, PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_.legacy_closed_enum_)}},
256 // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
257 {::_pbi::TcParser::FastEr0S1,
258 {16, 0, 3, PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_.string_type_)}},
259 // optional bool enum_name_uses_string_view = 3 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
260 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CppFeatures, _impl_.enum_name_uses_string_view_), 2>(),
261 {24, 2, 0, PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_.enum_name_uses_string_view_)}},
262 }}, {{
263 65535, 65535
264 }}, {{
265 // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
266 {PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_.legacy_closed_enum_), _Internal::kHasBitsOffset + 1, 0,
267 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
268 // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
269 {PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_.string_type_), _Internal::kHasBitsOffset + 0, 0,
270 (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
271 // optional bool enum_name_uses_string_view = 3 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
272 {PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_.enum_name_uses_string_view_), _Internal::kHasBitsOffset + 2, 0,
273 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
274 }}, {{
275 {0, 4},
276 }}, {{
277 }},
278 };
279
280 PROTOBUF_NOINLINE void CppFeatures::Clear() {
281 // @@protoc_insertion_point(message_clear_start:pb.CppFeatures)
282 ::google::protobuf::internal::TSanWrite(&_impl_);
283 ::uint32_t cached_has_bits = 0;
284 // Prevent compiler warnings about cached_has_bits being unused
285 (void) cached_has_bits;
286
287 cached_has_bits = _impl_._has_bits_[0];
288 if (cached_has_bits & 0x00000007u) {
289 ::memset(&_impl_.string_type_, 0, static_cast<::size_t>(
290 reinterpret_cast<char*>(&_impl_.enum_name_uses_string_view_) -
291 reinterpret_cast<char*>(&_impl_.string_type_)) + sizeof(_impl_.enum_name_uses_string_view_));
292 }
293 _impl_._has_bits_.Clear();
294 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
295 }
296
297 #if defined(PROTOBUF_CUSTOM_VTABLE)
298 ::uint8_t* CppFeatures::_InternalSerialize(
299 const MessageLite& base, ::uint8_t* target,
300 ::google::protobuf::io::EpsCopyOutputStream* stream) {
301 const CppFeatures& this_ = static_cast<const CppFeatures&>(base);
302 #else // PROTOBUF_CUSTOM_VTABLE
303 ::uint8_t* CppFeatures::_InternalSerialize(
304 ::uint8_t* target,
305 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
306 const CppFeatures& this_ = *this;
307 #endif // PROTOBUF_CUSTOM_VTABLE
308 // @@protoc_insertion_point(serialize_to_array_start:pb.CppFeatures)
309 ::uint32_t cached_has_bits = 0;
310 (void)cached_has_bits;
311
312 cached_has_bits = this_._impl_._has_bits_[0];
313 // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
314 if (cached_has_bits & 0x00000002u) {
315 target = stream->EnsureSpace(target);
316 target = ::_pbi::WireFormatLite::WriteBoolToArray(
317 1, this_._internal_legacy_closed_enum(), target);
318 }
319
320 // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
321 if (cached_has_bits & 0x00000001u) {
322 target = stream->EnsureSpace(target);
323 target = ::_pbi::WireFormatLite::WriteEnumToArray(
324 2, this_._internal_string_type(), target);
325 }
326
327 // optional bool enum_name_uses_string_view = 3 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
328 if (cached_has_bits & 0x00000004u) {
329 target = stream->EnsureSpace(target);
330 target = ::_pbi::WireFormatLite::WriteBoolToArray(
331 3, this_._internal_enum_name_uses_string_view(), target);
332 }
333
334 if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
335 target =
336 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
337 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
338 }
339 // @@protoc_insertion_point(serialize_to_array_end:pb.CppFeatures)
340 return target;
341 }
342
343 #if defined(PROTOBUF_CUSTOM_VTABLE)
344 ::size_t CppFeatures::ByteSizeLong(const MessageLite& base) {
345 const CppFeatures& this_ = static_cast<const CppFeatures&>(base);
346 #else // PROTOBUF_CUSTOM_VTABLE
347 ::size_t CppFeatures::ByteSizeLong() const {
348 const CppFeatures& this_ = *this;
349 #endif // PROTOBUF_CUSTOM_VTABLE
350 // @@protoc_insertion_point(message_byte_size_start:pb.CppFeatures)
351 ::size_t total_size = 0;
352
353 ::uint32_t cached_has_bits = 0;
354 // Prevent compiler warnings about cached_has_bits being unused
355 (void)cached_has_bits;
356
357 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
358 cached_has_bits = this_._impl_._has_bits_[0];
359 if (cached_has_bits & 0x00000007u) {
360 // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
361 if (cached_has_bits & 0x00000001u) {
362 total_size += 1 +
363 ::_pbi::WireFormatLite::EnumSize(this_._internal_string_type());
364 }
365 // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
366 if (cached_has_bits & 0x00000002u) {
367 total_size += 2;
368 }
369 // optional bool enum_name_uses_string_view = 3 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
370 if (cached_has_bits & 0x00000004u) {
371 total_size += 2;
372 }
373 }
374 return this_.MaybeComputeUnknownFieldsSize(total_size,
375 &this_._impl_._cached_size_);
376 }
377
378 void CppFeatures::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
379 auto* const _this = static_cast<CppFeatures*>(&to_msg);
380 auto& from = static_cast<const CppFeatures&>(from_msg);
381 // @@protoc_insertion_point(class_specific_merge_from_start:pb.CppFeatures)
382 ABSL_DCHECK_NE(&from, _this);
383 ::uint32_t cached_has_bits = 0;
384 (void) cached_has_bits;
385
386 cached_has_bits = from._impl_._has_bits_[0];
387 if (cached_has_bits & 0x00000007u) {
388 if (cached_has_bits & 0x00000001u) {
389 _this->_impl_.string_type_ = from._impl_.string_type_;
390 }
391 if (cached_has_bits & 0x00000002u) {
392 _this->_impl_.legacy_closed_enum_ = from._impl_.legacy_closed_enum_;
393 }
394 if (cached_has_bits & 0x00000004u) {
395 _this->_impl_.enum_name_uses_string_view_ = from._impl_.enum_name_uses_string_view_;
396 }
397 }
398 _this->_impl_._has_bits_[0] |= cached_has_bits;
399 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
400 }
401
402 void CppFeatures::CopyFrom(const CppFeatures& from) {
403 // @@protoc_insertion_point(class_specific_copy_from_start:pb.CppFeatures)
404 if (&from == this) return;
405 Clear();
406 MergeFrom(from);
407 }
408
409
410 void CppFeatures::InternalSwap(CppFeatures* PROTOBUF_RESTRICT other) {
411 using std::swap;
412 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
413 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
414 ::google::protobuf::internal::memswap<
415 PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_.enum_name_uses_string_view_)
416 + sizeof(CppFeatures::_impl_.enum_name_uses_string_view_)
417 - PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_.string_type_)>(
418 reinterpret_cast<char*>(&_impl_.string_type_),
419 reinterpret_cast<char*>(&other->_impl_.string_type_));
420 }
421
422 ::google::protobuf::Metadata CppFeatures::GetMetadata() const {
423 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
424 }
425 PROTOBUF_CONSTINIT PROTOBUF_EXPORT
426 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::_pbi::
427 ExtensionIdentifier<::google::protobuf::FeatureSet, ::_pbi::MessageTypeTraits< ::pb::CppFeatures >,
428 11, false>
429 cpp(kCppFieldNumber, &::pb::_CppFeatures_default_instance_);
430 // @@protoc_insertion_point(namespace_scope)
431 } // namespace pb
432 namespace google {
433 namespace protobuf {
434 } // namespace protobuf
435 } // namespace google
436 // @@protoc_insertion_point(global_scope)
437 #include "google/protobuf/port_undef.inc"
438