1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: google/protobuf/source_context.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3017000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3017003 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
32 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
34 // @@protoc_insertion_point(includes)
35 #include <google/protobuf/port_def.inc>
36 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto PROTOBUF_EXPORT
37 PROTOBUF_NAMESPACE_OPEN
38 namespace internal {
39 class AnyMetadata;
40 }  // namespace internal
41 PROTOBUF_NAMESPACE_CLOSE
42 
43 // Internal implementation detail -- do not use these members.
44 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto {
45   static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
46     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
47   static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
48     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
49   static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
50     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51   static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
52   static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
53   static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
54 };
55 PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto;
56 PROTOBUF_NAMESPACE_OPEN
57 class SourceContext;
58 struct SourceContextDefaultTypeInternal;
59 PROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_default_instance_;
60 PROTOBUF_NAMESPACE_CLOSE
61 PROTOBUF_NAMESPACE_OPEN
62 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::SourceContext* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceContext>(Arena*);
63 PROTOBUF_NAMESPACE_CLOSE
64 PROTOBUF_NAMESPACE_OPEN
65 
66 // ===================================================================
67 
68 class PROTOBUF_EXPORT SourceContext final :
69     public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
70  public:
SourceContext()71   inline SourceContext() : SourceContext(nullptr) {}
72   ~SourceContext() override;
73   explicit constexpr SourceContext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
74 
75   SourceContext(const SourceContext& from);
SourceContext(SourceContext && from)76   SourceContext(SourceContext&& from) noexcept
77     : SourceContext() {
78     *this = ::std::move(from);
79   }
80 
81   inline SourceContext& operator=(const SourceContext& from) {
82     CopyFrom(from);
83     return *this;
84   }
85   inline SourceContext& operator=(SourceContext&& from) noexcept {
86     if (this == &from) return *this;
87     if (GetOwningArena() == from.GetOwningArena()) {
88       InternalSwap(&from);
89     } else {
90       CopyFrom(from);
91     }
92     return *this;
93   }
94 
descriptor()95   static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
96     return GetDescriptor();
97   }
GetDescriptor()98   static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
99     return default_instance().GetMetadata().descriptor;
100   }
GetReflection()101   static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
102     return default_instance().GetMetadata().reflection;
103   }
default_instance()104   static const SourceContext& default_instance() {
105     return *internal_default_instance();
106   }
internal_default_instance()107   static inline const SourceContext* internal_default_instance() {
108     return reinterpret_cast<const SourceContext*>(
109                &_SourceContext_default_instance_);
110   }
111   static constexpr int kIndexInFileMessages =
112     0;
113 
swap(SourceContext & a,SourceContext & b)114   friend void swap(SourceContext& a, SourceContext& b) {
115     a.Swap(&b);
116   }
Swap(SourceContext * other)117   inline void Swap(SourceContext* other) {
118     if (other == this) return;
119     if (GetOwningArena() == other->GetOwningArena()) {
120       InternalSwap(other);
121     } else {
122       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
123     }
124   }
UnsafeArenaSwap(SourceContext * other)125   void UnsafeArenaSwap(SourceContext* other) {
126     if (other == this) return;
127     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
128     InternalSwap(other);
129   }
130 
131   // implements Message ----------------------------------------------
132 
New()133   inline SourceContext* New() const final {
134     return new SourceContext();
135   }
136 
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)137   SourceContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
138     return CreateMaybeMessage<SourceContext>(arena);
139   }
140   using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
141   void CopyFrom(const SourceContext& from);
142   using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
143   void MergeFrom(const SourceContext& from);
144   private:
145   static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
146   public:
147   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
148   bool IsInitialized() const final;
149 
150   size_t ByteSizeLong() const final;
151   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
152   ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
153       ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()154   int GetCachedSize() const final { return _cached_size_.Get(); }
155 
156   private:
157   void SharedCtor();
158   void SharedDtor();
159   void SetCachedSize(int size) const final;
160   void InternalSwap(SourceContext* other);
161   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()162   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
163     return "google.protobuf.SourceContext";
164   }
165   protected:
166   explicit SourceContext(::PROTOBUF_NAMESPACE_ID::Arena* arena,
167                        bool is_message_owned = false);
168   private:
169   static void ArenaDtor(void* object);
170   inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
171   public:
172 
173   static const ClassData _class_data_;
174   const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
175 
176   ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
177 
178   // nested types ----------------------------------------------------
179 
180   // accessors -------------------------------------------------------
181 
182   enum : int {
183     kFileNameFieldNumber = 1,
184   };
185   // string file_name = 1;
186   void clear_file_name();
187   const std::string& file_name() const;
188   template <typename ArgT0 = const std::string&, typename... ArgT>
189   void set_file_name(ArgT0&& arg0, ArgT... args);
190   std::string* mutable_file_name();
191   PROTOBUF_MUST_USE_RESULT std::string* release_file_name();
192   void set_allocated_file_name(std::string* file_name);
193   private:
194   const std::string& _internal_file_name() const;
195   inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value);
196   std::string* _internal_mutable_file_name();
197   public:
198 
199   // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
200  private:
201   class _Internal;
202 
203   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
204   typedef void InternalArenaConstructable_;
205   typedef void DestructorSkippable_;
206   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
207   mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
208   friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
209 };
210 // ===================================================================
211 
212 
213 // ===================================================================
214 
215 #ifdef __GNUC__
216   #pragma GCC diagnostic push
217   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
218 #endif  // __GNUC__
219 // SourceContext
220 
221 // string file_name = 1;
clear_file_name()222 inline void SourceContext::clear_file_name() {
223   file_name_.ClearToEmpty();
224 }
file_name()225 inline const std::string& SourceContext::file_name() const {
226   // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
227   return _internal_file_name();
228 }
229 template <typename ArgT0, typename... ArgT>
230 inline PROTOBUF_ALWAYS_INLINE
set_file_name(ArgT0 && arg0,ArgT...args)231 void SourceContext::set_file_name(ArgT0&& arg0, ArgT... args) {
232 
233  file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
234   // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
235 }
mutable_file_name()236 inline std::string* SourceContext::mutable_file_name() {
237   std::string* _s = _internal_mutable_file_name();
238   // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
239   return _s;
240 }
_internal_file_name()241 inline const std::string& SourceContext::_internal_file_name() const {
242   return file_name_.Get();
243 }
_internal_set_file_name(const std::string & value)244 inline void SourceContext::_internal_set_file_name(const std::string& value) {
245 
246   file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
247 }
_internal_mutable_file_name()248 inline std::string* SourceContext::_internal_mutable_file_name() {
249 
250   return file_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
251 }
release_file_name()252 inline std::string* SourceContext::release_file_name() {
253   // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
254   return file_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
255 }
set_allocated_file_name(std::string * file_name)256 inline void SourceContext::set_allocated_file_name(std::string* file_name) {
257   if (file_name != nullptr) {
258 
259   } else {
260 
261   }
262   file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name,
263       GetArenaForAllocation());
264   // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
265 }
266 
267 #ifdef __GNUC__
268   #pragma GCC diagnostic pop
269 #endif  // __GNUC__
270 
271 // @@protoc_insertion_point(namespace_scope)
272 
273 PROTOBUF_NAMESPACE_CLOSE
274 
275 // @@protoc_insertion_point(global_scope)
276 
277 #include <google/protobuf/port_undef.inc>
278 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
279