• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef google_2fprotobuf_2fsource_5fcontext_2eproto_2epb_2eh
7 #define google_2fprotobuf_2fsource_5fcontext_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 != 5029004
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_google_2fprotobuf_2fsource_5fcontext_2eproto PROTOBUF_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 PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto {
50   static const ::uint32_t offsets[];
51 };
52 PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable
53     descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto;
54 namespace google {
55 namespace protobuf {
56 class SourceContext;
57 struct SourceContextDefaultTypeInternal;
58 PROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_default_instance_;
59 }  // namespace protobuf
60 }  // namespace google
61 
62 namespace google {
63 namespace protobuf {
64 
65 // ===================================================================
66 
67 
68 // -------------------------------------------------------------------
69 
70 class PROTOBUF_EXPORT SourceContext final : public ::google::protobuf::Message
71 /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
72  public:
SourceContext()73   inline SourceContext() : SourceContext(nullptr) {}
74   ~SourceContext() PROTOBUF_FINAL;
75 
76 #if defined(PROTOBUF_CUSTOM_VTABLE)
delete(SourceContext * msg,std::destroying_delete_t)77   void operator delete(SourceContext* msg, std::destroying_delete_t) {
78     SharedDtor(*msg);
79     ::google::protobuf::internal::SizedDelete(msg, sizeof(SourceContext));
80   }
81 #endif
82 
83   template <typename = void>
84   explicit PROTOBUF_CONSTEXPR SourceContext(
85       ::google::protobuf::internal::ConstantInitialized);
86 
SourceContext(const SourceContext & from)87   inline SourceContext(const SourceContext& from) : SourceContext(nullptr, from) {}
SourceContext(SourceContext && from)88   inline SourceContext(SourceContext&& from) noexcept
89       : SourceContext(nullptr, std::move(from)) {}
90   inline SourceContext& operator=(const SourceContext& from) {
91     CopyFrom(from);
92     return *this;
93   }
94   inline SourceContext& operator=(SourceContext&& from) noexcept {
95     if (this == &from) return *this;
96     if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
97       InternalSwap(&from);
98     } else {
99       CopyFrom(from);
100     }
101     return *this;
102   }
103 
unknown_fields()104   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
105       ABSL_ATTRIBUTE_LIFETIME_BOUND {
106     return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
107   }
mutable_unknown_fields()108   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
109       ABSL_ATTRIBUTE_LIFETIME_BOUND {
110     return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
111   }
112 
descriptor()113   static const ::google::protobuf::Descriptor* descriptor() {
114     return GetDescriptor();
115   }
GetDescriptor()116   static const ::google::protobuf::Descriptor* GetDescriptor() {
117     return default_instance().GetMetadata().descriptor;
118   }
GetReflection()119   static const ::google::protobuf::Reflection* GetReflection() {
120     return default_instance().GetMetadata().reflection;
121   }
default_instance()122   static const SourceContext& default_instance() {
123     return *internal_default_instance();
124   }
internal_default_instance()125   static inline const SourceContext* internal_default_instance() {
126     return reinterpret_cast<const SourceContext*>(
127         &_SourceContext_default_instance_);
128   }
129   static constexpr int kIndexInFileMessages = 0;
swap(SourceContext & a,SourceContext & b)130   friend void swap(SourceContext& a, SourceContext& b) { a.Swap(&b); }
Swap(SourceContext * other)131   inline void Swap(SourceContext* other) {
132     if (other == this) return;
133     if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
134       InternalSwap(other);
135     } else {
136       ::google::protobuf::internal::GenericSwap(this, other);
137     }
138   }
UnsafeArenaSwap(SourceContext * other)139   void UnsafeArenaSwap(SourceContext* other) {
140     if (other == this) return;
141     ABSL_DCHECK(GetArena() == other->GetArena());
142     InternalSwap(other);
143   }
144 
145   // implements Message ----------------------------------------------
146 
147   SourceContext* New(::google::protobuf::Arena* arena = nullptr) const {
148     return ::google::protobuf::Message::DefaultConstruct<SourceContext>(arena);
149   }
150   using ::google::protobuf::Message::CopyFrom;
151   void CopyFrom(const SourceContext& from);
152   using ::google::protobuf::Message::MergeFrom;
MergeFrom(const SourceContext & from)153   void MergeFrom(const SourceContext& from) { SourceContext::MergeImpl(*this, from); }
154 
155   private:
156   static void MergeImpl(
157       ::google::protobuf::MessageLite& to_msg,
158       const ::google::protobuf::MessageLite& from_msg);
159 
160   public:
IsInitialized()161   bool IsInitialized() const {
162     return true;
163   }
164   ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
165   #if defined(PROTOBUF_CUSTOM_VTABLE)
166   private:
167   static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
168   static ::uint8_t* _InternalSerialize(
169       const MessageLite& msg, ::uint8_t* target,
170       ::google::protobuf::io::EpsCopyOutputStream* stream);
171 
172   public:
ByteSizeLong()173   ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
_InternalSerialize(::uint8_t * target,::google::protobuf::io::EpsCopyOutputStream * stream)174   ::uint8_t* _InternalSerialize(
175       ::uint8_t* target,
176       ::google::protobuf::io::EpsCopyOutputStream* stream) const {
177     return _InternalSerialize(*this, target, stream);
178   }
179   #else   // PROTOBUF_CUSTOM_VTABLE
180   ::size_t ByteSizeLong() const final;
181   ::uint8_t* _InternalSerialize(
182       ::uint8_t* target,
183       ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
184   #endif  // PROTOBUF_CUSTOM_VTABLE
GetCachedSize()185   int GetCachedSize() const { return _impl_._cached_size_.Get(); }
186 
187   private:
188   void SharedCtor(::google::protobuf::Arena* arena);
189   static void SharedDtor(MessageLite& self);
190   void InternalSwap(SourceContext* other);
191  private:
192   template <typename T>
193   friend ::absl::string_view(
194       ::google::protobuf::internal::GetAnyMessageName)();
FullMessageName()195   static ::absl::string_view FullMessageName() { return "google.protobuf.SourceContext"; }
196 
197  protected:
198   explicit SourceContext(::google::protobuf::Arena* arena);
199   SourceContext(::google::protobuf::Arena* arena, const SourceContext& from);
SourceContext(::google::protobuf::Arena * arena,SourceContext && from)200   SourceContext(::google::protobuf::Arena* arena, SourceContext&& from) noexcept
201       : SourceContext(arena) {
202     *this = ::std::move(from);
203   }
204   const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL;
205   static void* PlacementNew_(const void*, void* mem,
206                              ::google::protobuf::Arena* arena);
207   static constexpr auto InternalNewImpl_();
208   static const ::google::protobuf::internal::ClassDataFull _class_data_;
209 
210  public:
211   ::google::protobuf::Metadata GetMetadata() const;
212   // nested types ----------------------------------------------------
213 
214   // accessors -------------------------------------------------------
215   enum : int {
216     kFileNameFieldNumber = 1,
217   };
218   // string file_name = 1;
219   void clear_file_name() ;
220   const std::string& file_name() const;
221   template <typename Arg_ = const std::string&, typename... Args_>
222   void set_file_name(Arg_&& arg, Args_... args);
223   std::string* mutable_file_name();
224   PROTOBUF_NODISCARD std::string* release_file_name();
225   void set_allocated_file_name(std::string* value);
226 
227   private:
228   const std::string& _internal_file_name() const;
229   inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(
230       const std::string& value);
231   std::string* _internal_mutable_file_name();
232 
233   public:
234   // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
235  private:
236   class _Internal;
237   friend class ::google::protobuf::internal::TcParser;
238   static const ::google::protobuf::internal::TcParseTable<
239       0, 1, 0,
240       47, 2>
241       _table_;
242 
243   friend class ::google::protobuf::MessageLite;
244   friend class ::google::protobuf::Arena;
245   template <typename T>
246   friend class ::google::protobuf::Arena::InternalHelper;
247   using InternalArenaConstructable_ = void;
248   using DestructorSkippable_ = void;
249   struct Impl_ {
250     inline explicit constexpr Impl_(
251         ::google::protobuf::internal::ConstantInitialized) noexcept;
252     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
253                           ::google::protobuf::Arena* arena);
254     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
255                           ::google::protobuf::Arena* arena, const Impl_& from,
256                           const SourceContext& from_msg);
257     ::google::protobuf::internal::ArenaStringPtr file_name_;
258     ::google::protobuf::internal::CachedSize _cached_size_;
259     PROTOBUF_TSAN_DECLARE_MEMBER
260   };
261   union { Impl_ _impl_; };
262   friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
263 };
264 
265 // ===================================================================
266 
267 
268 
269 
270 // ===================================================================
271 
272 
273 #ifdef __GNUC__
274 #pragma GCC diagnostic push
275 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
276 #endif  // __GNUC__
277 // -------------------------------------------------------------------
278 
279 // SourceContext
280 
281 // string file_name = 1;
clear_file_name()282 inline void SourceContext::clear_file_name() {
283   ::google::protobuf::internal::TSanWrite(&_impl_);
284   _impl_.file_name_.ClearToEmpty();
285 }
file_name()286 inline const std::string& SourceContext::file_name() const
287     ABSL_ATTRIBUTE_LIFETIME_BOUND {
288   // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
289   return _internal_file_name();
290 }
291 template <typename Arg_, typename... Args_>
set_file_name(Arg_ && arg,Args_...args)292 inline PROTOBUF_ALWAYS_INLINE void SourceContext::set_file_name(Arg_&& arg,
293                                                      Args_... args) {
294   ::google::protobuf::internal::TSanWrite(&_impl_);
295   _impl_.file_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
296   // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
297 }
mutable_file_name()298 inline std::string* SourceContext::mutable_file_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
299   std::string* _s = _internal_mutable_file_name();
300   // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
301   return _s;
302 }
_internal_file_name()303 inline const std::string& SourceContext::_internal_file_name() const {
304   ::google::protobuf::internal::TSanRead(&_impl_);
305   return _impl_.file_name_.Get();
306 }
_internal_set_file_name(const std::string & value)307 inline void SourceContext::_internal_set_file_name(const std::string& value) {
308   ::google::protobuf::internal::TSanWrite(&_impl_);
309   _impl_.file_name_.Set(value, GetArena());
310 }
_internal_mutable_file_name()311 inline std::string* SourceContext::_internal_mutable_file_name() {
312   ::google::protobuf::internal::TSanWrite(&_impl_);
313   return _impl_.file_name_.Mutable( GetArena());
314 }
release_file_name()315 inline std::string* SourceContext::release_file_name() {
316   ::google::protobuf::internal::TSanWrite(&_impl_);
317   // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
318   return _impl_.file_name_.Release();
319 }
set_allocated_file_name(std::string * value)320 inline void SourceContext::set_allocated_file_name(std::string* value) {
321   ::google::protobuf::internal::TSanWrite(&_impl_);
322   _impl_.file_name_.SetAllocated(value, GetArena());
323   if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.file_name_.IsDefault()) {
324     _impl_.file_name_.Set("", GetArena());
325   }
326   // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
327 }
328 
329 #ifdef __GNUC__
330 #pragma GCC diagnostic pop
331 #endif  // __GNUC__
332 
333 // @@protoc_insertion_point(namespace_scope)
334 }  // namespace protobuf
335 }  // namespace google
336 
337 
338 // @@protoc_insertion_point(global_scope)
339 
340 #include "google/protobuf/port_undef.inc"
341 
342 #endif  // google_2fprotobuf_2fsource_5fcontext_2eproto_2epb_2eh
343