1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // NO CHECKED-IN PROTOBUF GENCODE
3 // source: google/protobuf/source_context.proto
4 // Protobuf C++ Version: 5.29.4
5
6 #include "google/protobuf/source_context.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 google {
28 namespace protobuf {
29
Impl_(::_pbi::ConstantInitialized)30 inline constexpr SourceContext::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : file_name_(
33 &::google::protobuf::internal::fixed_address_empty_string,
34 ::_pbi::ConstantInitialized()),
35 _cached_size_{0} {}
36
37 template <typename>
SourceContext(::_pbi::ConstantInitialized)38 PROTOBUF_CONSTEXPR SourceContext::SourceContext(::_pbi::ConstantInitialized)
39 #if defined(PROTOBUF_CUSTOM_VTABLE)
40 : ::google::protobuf::Message(_class_data_.base()),
41 #else // PROTOBUF_CUSTOM_VTABLE
42 : ::google::protobuf::Message(),
43 #endif // PROTOBUF_CUSTOM_VTABLE
44 _impl_(::_pbi::ConstantInitialized()) {
45 }
46 struct SourceContextDefaultTypeInternal {
SourceContextDefaultTypeInternalgoogle::protobuf::SourceContextDefaultTypeInternal47 PROTOBUF_CONSTEXPR SourceContextDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SourceContextDefaultTypeInternalgoogle::protobuf::SourceContextDefaultTypeInternal48 ~SourceContextDefaultTypeInternal() {}
49 union {
50 SourceContext _instance;
51 };
52 };
53
54 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT
55 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceContextDefaultTypeInternal _SourceContext_default_instance_;
56 } // namespace protobuf
57 } // namespace google
58 static constexpr const ::_pb::EnumDescriptor**
59 file_level_enum_descriptors_google_2fprotobuf_2fsource_5fcontext_2eproto = nullptr;
60 static constexpr const ::_pb::ServiceDescriptor**
61 file_level_service_descriptors_google_2fprotobuf_2fsource_5fcontext_2eproto = nullptr;
62 const ::uint32_t
63 TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
64 protodesc_cold) = {
65 ~0u, // no _has_bits_
66 PROTOBUF_FIELD_OFFSET(::google::protobuf::SourceContext, _internal_metadata_),
67 ~0u, // no _extensions_
68 ~0u, // no _oneof_case_
69 ~0u, // no _weak_field_map_
70 ~0u, // no _inlined_string_donated_
71 ~0u, // no _split_
72 ~0u, // no sizeof(Split)
73 PROTOBUF_FIELD_OFFSET(::google::protobuf::SourceContext, _impl_.file_name_),
74 };
75
76 static const ::_pbi::MigrationSchema
77 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
78 {0, -1, -1, sizeof(::google::protobuf::SourceContext)},
79 };
80 static const ::_pb::Message* const file_default_instances[] = {
81 &::google::protobuf::_SourceContext_default_instance_._instance,
82 };
83 const char descriptor_table_protodef_google_2fprotobuf_2fsource_5fcontext_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
84 protodesc_cold) = {
85 "\n$google/protobuf/source_context.proto\022\017"
86 "google.protobuf\"\"\n\rSourceContext\022\021\n\tfile"
87 "_name\030\001 \001(\tB\212\001\n\023com.google.protobufB\022Sou"
88 "rceContextProtoP\001Z6google.golang.org/pro"
89 "tobuf/types/known/sourcecontextpb\242\002\003GPB\252"
90 "\002\036Google.Protobuf.WellKnownTypesb\006proto3"
91 };
92 static ::absl::once_flag descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto_once;
93 PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto = {
94 false,
95 false,
96 240,
97 descriptor_table_protodef_google_2fprotobuf_2fsource_5fcontext_2eproto,
98 "google/protobuf/source_context.proto",
99 &descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto_once,
100 nullptr,
101 0,
102 1,
103 schemas,
104 file_default_instances,
105 TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto::offsets,
106 file_level_enum_descriptors_google_2fprotobuf_2fsource_5fcontext_2eproto,
107 file_level_service_descriptors_google_2fprotobuf_2fsource_5fcontext_2eproto,
108 };
109 namespace google {
110 namespace protobuf {
111 // ===================================================================
112
113 class SourceContext::_Internal {
114 public:
115 };
116
SourceContext(::google::protobuf::Arena * arena)117 SourceContext::SourceContext(::google::protobuf::Arena* arena)
118 #if defined(PROTOBUF_CUSTOM_VTABLE)
119 : ::google::protobuf::Message(arena, _class_data_.base()) {
120 #else // PROTOBUF_CUSTOM_VTABLE
121 : ::google::protobuf::Message(arena) {
122 #endif // PROTOBUF_CUSTOM_VTABLE
123 SharedCtor(arena);
124 // @@protoc_insertion_point(arena_constructor:google.protobuf.SourceContext)
125 }
126 inline PROTOBUF_NDEBUG_INLINE SourceContext::Impl_::Impl_(
127 ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
128 const Impl_& from, const ::google::protobuf::SourceContext& from_msg)
129 : file_name_(arena, from.file_name_),
130 _cached_size_{0} {}
131
132 SourceContext::SourceContext(
133 ::google::protobuf::Arena* arena,
134 const SourceContext& from)
135 #if defined(PROTOBUF_CUSTOM_VTABLE)
136 : ::google::protobuf::Message(arena, _class_data_.base()) {
137 #else // PROTOBUF_CUSTOM_VTABLE
138 : ::google::protobuf::Message(arena) {
139 #endif // PROTOBUF_CUSTOM_VTABLE
140 SourceContext* const _this = this;
141 (void)_this;
142 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
143 from._internal_metadata_);
144 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
145
146 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceContext)
147 }
148 inline PROTOBUF_NDEBUG_INLINE SourceContext::Impl_::Impl_(
149 ::google::protobuf::internal::InternalVisibility visibility,
150 ::google::protobuf::Arena* arena)
151 : file_name_(arena),
152 _cached_size_{0} {}
153
154 inline void SourceContext::SharedCtor(::_pb::Arena* arena) {
155 new (&_impl_) Impl_(internal_visibility(), arena);
156 }
157 SourceContext::~SourceContext() {
158 // @@protoc_insertion_point(destructor:google.protobuf.SourceContext)
159 SharedDtor(*this);
160 }
161 inline void SourceContext::SharedDtor(MessageLite& self) {
162 SourceContext& this_ = static_cast<SourceContext&>(self);
163 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
164 ABSL_DCHECK(this_.GetArena() == nullptr);
165 this_._impl_.file_name_.Destroy();
166 this_._impl_.~Impl_();
167 }
168
169 inline void* SourceContext::PlacementNew_(const void*, void* mem,
170 ::google::protobuf::Arena* arena) {
171 return ::new (mem) SourceContext(arena);
172 }
173 constexpr auto SourceContext::InternalNewImpl_() {
174 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SourceContext),
175 alignof(SourceContext));
176 }
177 PROTOBUF_CONSTINIT
178 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
179 const ::google::protobuf::internal::ClassDataFull SourceContext::_class_data_ = {
180 ::google::protobuf::internal::ClassData{
181 &_SourceContext_default_instance_._instance,
182 &_table_.header,
183 nullptr, // OnDemandRegisterArenaDtor
184 nullptr, // IsInitialized
185 &SourceContext::MergeImpl,
186 ::google::protobuf::Message::GetNewImpl<SourceContext>(),
187 #if defined(PROTOBUF_CUSTOM_VTABLE)
188 &SourceContext::SharedDtor,
189 ::google::protobuf::Message::GetClearImpl<SourceContext>(), &SourceContext::ByteSizeLong,
190 &SourceContext::_InternalSerialize,
191 #endif // PROTOBUF_CUSTOM_VTABLE
192 PROTOBUF_FIELD_OFFSET(SourceContext, _impl_._cached_size_),
193 false,
194 },
195 &SourceContext::kDescriptorMethods,
196 &descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto,
197 nullptr, // tracker
198 };
199 const ::google::protobuf::internal::ClassData* SourceContext::GetClassData() const {
200 ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
201 ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
202 return _class_data_.base();
203 }
204 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
205 const ::_pbi::TcParseTable<0, 1, 0, 47, 2> SourceContext::_table_ = {
206 {
207 0, // no _has_bits_
208 0, // no _extensions_
209 1, 0, // max_field_number, fast_idx_mask
210 offsetof(decltype(_table_), field_lookup_table),
211 4294967294, // skipmap
212 offsetof(decltype(_table_), field_entries),
213 1, // num_field_entries
214 0, // num_aux_entries
215 offsetof(decltype(_table_), field_names), // no aux_entries
216 _class_data_.base(),
217 nullptr, // post_loop_handler
218 ::_pbi::TcParser::GenericFallback, // fallback
219 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
220 ::_pbi::TcParser::GetTable<::google::protobuf::SourceContext>(), // to_prefetch
221 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
222 }, {{
223 // string file_name = 1;
224 {::_pbi::TcParser::FastUS1,
225 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SourceContext, _impl_.file_name_)}},
226 }}, {{
227 65535, 65535
228 }}, {{
229 // string file_name = 1;
230 {PROTOBUF_FIELD_OFFSET(SourceContext, _impl_.file_name_), 0, 0,
231 (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
232 }},
233 // no aux_entries
234 {{
235 "\35\11\0\0\0\0\0\0"
236 "google.protobuf.SourceContext"
237 "file_name"
238 }},
239 };
240
241 PROTOBUF_NOINLINE void SourceContext::Clear() {
242 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceContext)
243 ::google::protobuf::internal::TSanWrite(&_impl_);
244 ::uint32_t cached_has_bits = 0;
245 // Prevent compiler warnings about cached_has_bits being unused
246 (void) cached_has_bits;
247
248 _impl_.file_name_.ClearToEmpty();
249 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
250 }
251
252 #if defined(PROTOBUF_CUSTOM_VTABLE)
253 ::uint8_t* SourceContext::_InternalSerialize(
254 const MessageLite& base, ::uint8_t* target,
255 ::google::protobuf::io::EpsCopyOutputStream* stream) {
256 const SourceContext& this_ = static_cast<const SourceContext&>(base);
257 #else // PROTOBUF_CUSTOM_VTABLE
258 ::uint8_t* SourceContext::_InternalSerialize(
259 ::uint8_t* target,
260 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
261 const SourceContext& this_ = *this;
262 #endif // PROTOBUF_CUSTOM_VTABLE
263 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceContext)
264 ::uint32_t cached_has_bits = 0;
265 (void)cached_has_bits;
266
267 // string file_name = 1;
268 if (!this_._internal_file_name().empty()) {
269 const std::string& _s = this_._internal_file_name();
270 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
271 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.SourceContext.file_name");
272 target = stream->WriteStringMaybeAliased(1, _s, target);
273 }
274
275 if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
276 target =
277 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
278 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
279 }
280 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceContext)
281 return target;
282 }
283
284 #if defined(PROTOBUF_CUSTOM_VTABLE)
285 ::size_t SourceContext::ByteSizeLong(const MessageLite& base) {
286 const SourceContext& this_ = static_cast<const SourceContext&>(base);
287 #else // PROTOBUF_CUSTOM_VTABLE
288 ::size_t SourceContext::ByteSizeLong() const {
289 const SourceContext& this_ = *this;
290 #endif // PROTOBUF_CUSTOM_VTABLE
291 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceContext)
292 ::size_t total_size = 0;
293
294 ::uint32_t cached_has_bits = 0;
295 // Prevent compiler warnings about cached_has_bits being unused
296 (void)cached_has_bits;
297
298 {
299 // string file_name = 1;
300 if (!this_._internal_file_name().empty()) {
301 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
302 this_._internal_file_name());
303 }
304 }
305 return this_.MaybeComputeUnknownFieldsSize(total_size,
306 &this_._impl_._cached_size_);
307 }
308
309 void SourceContext::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
310 auto* const _this = static_cast<SourceContext*>(&to_msg);
311 auto& from = static_cast<const SourceContext&>(from_msg);
312 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceContext)
313 ABSL_DCHECK_NE(&from, _this);
314 ::uint32_t cached_has_bits = 0;
315 (void) cached_has_bits;
316
317 if (!from._internal_file_name().empty()) {
318 _this->_internal_set_file_name(from._internal_file_name());
319 }
320 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
321 }
322
323 void SourceContext::CopyFrom(const SourceContext& from) {
324 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceContext)
325 if (&from == this) return;
326 Clear();
327 MergeFrom(from);
328 }
329
330
331 void SourceContext::InternalSwap(SourceContext* PROTOBUF_RESTRICT other) {
332 using std::swap;
333 auto* arena = GetArena();
334 ABSL_DCHECK_EQ(arena, other->GetArena());
335 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
336 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_name_, &other->_impl_.file_name_, arena);
337 }
338
339 ::google::protobuf::Metadata SourceContext::GetMetadata() const {
340 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
341 }
342 // @@protoc_insertion_point(namespace_scope)
343 } // namespace protobuf
344 } // namespace google
345 namespace google {
346 namespace protobuf {
347 } // namespace protobuf
348 } // namespace google
349 // @@protoc_insertion_point(global_scope)
350 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
351 _static_init2_ PROTOBUF_UNUSED =
352 (::_pbi::AddDescriptors(&descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto),
353 ::std::false_type{});
354 #include "google/protobuf/port_undef.inc"
355