• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 < 3013000
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 3013000 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
33 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
34 #include <google/protobuf/unknown_field_set.h>
35 // @@protoc_insertion_point(includes)
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto PROTOBUF_EXPORT
38 PROTOBUF_NAMESPACE_OPEN
39 namespace internal {
40 class AnyMetadata;
41 }  // namespace internal
42 PROTOBUF_NAMESPACE_CLOSE
43 
44 // Internal implementation detail -- do not use these members.
45 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto {
46   static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
47     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
48   static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
49     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50   static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
51     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
52   static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
53   static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
54   static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
55 };
56 extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto;
57 PROTOBUF_NAMESPACE_OPEN
58 class SourceContext;
59 class SourceContextDefaultTypeInternal;
60 PROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_default_instance_;
61 PROTOBUF_NAMESPACE_CLOSE
62 PROTOBUF_NAMESPACE_OPEN
63 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::SourceContext* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceContext>(Arena*);
64 PROTOBUF_NAMESPACE_CLOSE
65 PROTOBUF_NAMESPACE_OPEN
66 
67 // ===================================================================
68 
69 class PROTOBUF_EXPORT SourceContext PROTOBUF_FINAL :
70     public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
71  public:
SourceContext()72   inline SourceContext() : SourceContext(nullptr) {}
73   virtual ~SourceContext();
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 (GetArena() == from.GetArena()) {
87       if (this != &from) InternalSwap(&from);
88     } else {
89       CopyFrom(from);
90     }
91     return *this;
92   }
93 
descriptor()94   static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
95     return GetDescriptor();
96   }
GetDescriptor()97   static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
98     return GetMetadataStatic().descriptor;
99   }
GetReflection()100   static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
101     return GetMetadataStatic().reflection;
102   }
103   static const SourceContext& default_instance();
104 
105   static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
internal_default_instance()106   static inline const SourceContext* internal_default_instance() {
107     return reinterpret_cast<const SourceContext*>(
108                &_SourceContext_default_instance_);
109   }
110   static constexpr int kIndexInFileMessages =
111     0;
112 
swap(SourceContext & a,SourceContext & b)113   friend void swap(SourceContext& a, SourceContext& b) {
114     a.Swap(&b);
115   }
Swap(SourceContext * other)116   inline void Swap(SourceContext* other) {
117     if (other == this) return;
118     if (GetArena() == other->GetArena()) {
119       InternalSwap(other);
120     } else {
121       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
122     }
123   }
UnsafeArenaSwap(SourceContext * other)124   void UnsafeArenaSwap(SourceContext* other) {
125     if (other == this) return;
126     GOOGLE_DCHECK(GetArena() == other->GetArena());
127     InternalSwap(other);
128   }
129 
130   // implements Message ----------------------------------------------
131 
New()132   inline SourceContext* New() const final {
133     return CreateMaybeMessage<SourceContext>(nullptr);
134   }
135 
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)136   SourceContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
137     return CreateMaybeMessage<SourceContext>(arena);
138   }
139   void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
140   void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
141   void CopyFrom(const SourceContext& from);
142   void MergeFrom(const SourceContext& from);
143   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
144   bool IsInitialized() const final;
145 
146   size_t ByteSizeLong() const final;
147   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
148   ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
149       ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()150   int GetCachedSize() const final { return _cached_size_.Get(); }
151 
152   private:
153   inline void SharedCtor();
154   inline void SharedDtor();
155   void SetCachedSize(int size) const final;
156   void InternalSwap(SourceContext* other);
157   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()158   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
159     return "google.protobuf.SourceContext";
160   }
161   protected:
162   explicit SourceContext(::PROTOBUF_NAMESPACE_ID::Arena* arena);
163   private:
164   static void ArenaDtor(void* object);
165   inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
166   public:
167 
168   ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
169   private:
GetMetadataStatic()170   static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
171     ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto);
172     return ::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto.file_level_metadata[kIndexInFileMessages];
173   }
174 
175   public:
176 
177   // nested types ----------------------------------------------------
178 
179   // accessors -------------------------------------------------------
180 
181   enum : int {
182     kFileNameFieldNumber = 1,
183   };
184   // string file_name = 1;
185   void clear_file_name();
186   const std::string& file_name() const;
187   void set_file_name(const std::string& value);
188   void set_file_name(std::string&& value);
189   void set_file_name(const char* value);
190   void set_file_name(const char* value, size_t size);
191   std::string* mutable_file_name();
192   std::string* release_file_name();
193   void set_allocated_file_name(std::string* file_name);
194   private:
195   const std::string& _internal_file_name() const;
196   void _internal_set_file_name(const std::string& value);
197   std::string* _internal_mutable_file_name();
198   public:
199 
200   // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
201  private:
202   class _Internal;
203 
204   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
205   typedef void InternalArenaConstructable_;
206   typedef void DestructorSkippable_;
207   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
208   mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
209   friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
210 };
211 // ===================================================================
212 
213 
214 // ===================================================================
215 
216 #ifdef __GNUC__
217   #pragma GCC diagnostic push
218   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
219 #endif  // __GNUC__
220 // SourceContext
221 
222 // string file_name = 1;
clear_file_name()223 inline void SourceContext::clear_file_name() {
224   file_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
225 }
file_name()226 inline const std::string& SourceContext::file_name() const {
227   // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
228   return _internal_file_name();
229 }
set_file_name(const std::string & value)230 inline void SourceContext::set_file_name(const std::string& value) {
231   _internal_set_file_name(value);
232   // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
233 }
mutable_file_name()234 inline std::string* SourceContext::mutable_file_name() {
235   // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
236   return _internal_mutable_file_name();
237 }
_internal_file_name()238 inline const std::string& SourceContext::_internal_file_name() const {
239   return file_name_.Get();
240 }
_internal_set_file_name(const std::string & value)241 inline void SourceContext::_internal_set_file_name(const std::string& value) {
242 
243   file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
244 }
set_file_name(std::string && value)245 inline void SourceContext::set_file_name(std::string&& value) {
246 
247   file_name_.Set(
248     &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
249   // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceContext.file_name)
250 }
set_file_name(const char * value)251 inline void SourceContext::set_file_name(const char* value) {
252   GOOGLE_DCHECK(value != nullptr);
253 
254   file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
255               GetArena());
256   // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_name)
257 }
set_file_name(const char * value,size_t size)258 inline void SourceContext::set_file_name(const char* value,
259     size_t size) {
260 
261   file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
262       reinterpret_cast<const char*>(value), size), GetArena());
263   // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.file_name)
264 }
_internal_mutable_file_name()265 inline std::string* SourceContext::_internal_mutable_file_name() {
266 
267   return file_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
268 }
release_file_name()269 inline std::string* SourceContext::release_file_name() {
270   // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
271   return file_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
272 }
set_allocated_file_name(std::string * file_name)273 inline void SourceContext::set_allocated_file_name(std::string* file_name) {
274   if (file_name != nullptr) {
275 
276   } else {
277 
278   }
279   file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name,
280       GetArena());
281   // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
282 }
283 
284 #ifdef __GNUC__
285   #pragma GCC diagnostic pop
286 #endif  // __GNUC__
287 
288 // @@protoc_insertion_point(namespace_scope)
289 
290 PROTOBUF_NAMESPACE_CLOSE
291 
292 // @@protoc_insertion_point(global_scope)
293 
294 #include <google/protobuf/port_undef.inc>
295 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
296