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 < 3012000
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 3012004 < 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
38PROTOBUF_NAMESPACE_OPEN
39namespace internal {
40class AnyMetadata;
41} // namespace internal
42PROTOBUF_NAMESPACE_CLOSE
43
44// Internal implementation detail -- do not use these members.
45struct 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::AuxillaryParseTableField 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};
56extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto;
57PROTOBUF_NAMESPACE_OPEN
58class SourceContext;
59class SourceContextDefaultTypeInternal;
60PROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_default_instance_;
61PROTOBUF_NAMESPACE_CLOSE
62PROTOBUF_NAMESPACE_OPEN
63template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::SourceContext* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceContext>(Arena*);
64PROTOBUF_NAMESPACE_CLOSE
65PROTOBUF_NAMESPACE_OPEN
66
67// ===================================================================
68
69class PROTOBUF_EXPORT SourceContext PROTOBUF_FINAL :
70 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
71 public:
72 inline SourceContext() : SourceContext(nullptr) {};
73 virtual ~SourceContext();
74
75 SourceContext(const 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(other: &from);
88 } else {
89 CopyFrom(from);
90 }
91 return *this;
92 }
93
94 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
95 return GetDescriptor();
96 }
97 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
98 return GetMetadataStatic().descriptor;
99 }
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
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
113 friend void swap(SourceContext& a, SourceContext& b) {
114 a.Swap(other: &b);
115 }
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(m1: this, m2: other);
122 }
123 }
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
132 inline SourceContext* New() const final {
133 return CreateMaybeMessage<SourceContext>(arena: nullptr);
134 }
135
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;
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;
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:
170 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
171 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(table: &::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 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
195 " string fields are deprecated and will be removed in a"
196 " future release.")
197 std::string* unsafe_arena_release_file_name();
198 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
199 " string fields are deprecated and will be removed in a"
200 " future release.")
201 void unsafe_arena_set_allocated_file_name(
202 std::string* file_name);
203 private:
204 const std::string& _internal_file_name() const;
205 void _internal_set_file_name(const std::string& value);
206 std::string* _internal_mutable_file_name();
207 public:
208
209 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
210 private:
211 class _Internal;
212
213 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
214 typedef void InternalArenaConstructable_;
215 typedef void DestructorSkippable_;
216 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
217 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
218 friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
219};
220// ===================================================================
221
222
223// ===================================================================
224
225#ifdef __GNUC__
226 #pragma GCC diagnostic push
227 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
228#endif // __GNUC__
229// SourceContext
230
231// string file_name = 1;
232inline void SourceContext::clear_file_name() {
233 file_name_.ClearToEmpty(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
234}
235inline const std::string& SourceContext::file_name() const {
236 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
237 return _internal_file_name();
238}
239inline void SourceContext::set_file_name(const std::string& value) {
240 _internal_set_file_name(value);
241 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
242}
243inline std::string* SourceContext::mutable_file_name() {
244 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
245 return _internal_mutable_file_name();
246}
247inline const std::string& SourceContext::_internal_file_name() const {
248 return file_name_.Get();
249}
250inline void SourceContext::_internal_set_file_name(const std::string& value) {
251
252 file_name_.Set(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, arena: GetArena());
253}
254inline void SourceContext::set_file_name(std::string&& value) {
255
256 file_name_.Set(
257 default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value: ::std::move(value), arena: GetArena());
258 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceContext.file_name)
259}
260inline void SourceContext::set_file_name(const char* value) {
261 GOOGLE_DCHECK(value != nullptr);
262
263 file_name_.Set(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value: ::std::string(value),
264 arena: GetArena());
265 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_name)
266}
267inline void SourceContext::set_file_name(const char* value,
268 size_t size) {
269
270 file_name_.Set(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value: ::std::string(
271 reinterpret_cast<const char*>(value), size), arena: GetArena());
272 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.file_name)
273}
274inline std::string* SourceContext::_internal_mutable_file_name() {
275
276 return file_name_.Mutable(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), arena: GetArena());
277}
278inline std::string* SourceContext::release_file_name() {
279 // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
280 return file_name_.Release(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), arena: GetArena());
281}
282inline void SourceContext::set_allocated_file_name(std::string* file_name) {
283 if (file_name != nullptr) {
284
285 } else {
286
287 }
288 file_name_.SetAllocated(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value: file_name,
289 arena: GetArena());
290 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
291}
292inline std::string* SourceContext::unsafe_arena_release_file_name() {
293 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.SourceContext.file_name)
294 GOOGLE_DCHECK(GetArena() != nullptr);
295
296 return file_name_.UnsafeArenaRelease(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
297 GetArena());
298}
299inline void SourceContext::unsafe_arena_set_allocated_file_name(
300 std::string* file_name) {
301 GOOGLE_DCHECK(GetArena() != nullptr);
302 if (file_name != nullptr) {
303
304 } else {
305
306 }
307 file_name_.UnsafeArenaSetAllocated(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
308 value: file_name, GetArena());
309 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.SourceContext.file_name)
310}
311
312#ifdef __GNUC__
313 #pragma GCC diagnostic pop
314#endif // __GNUC__
315
316// @@protoc_insertion_point(namespace_scope)
317
318PROTOBUF_NAMESPACE_CLOSE
319
320// @@protoc_insertion_point(global_scope)
321
322#include <google/protobuf/port_undef.inc>
323#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
324

source code of include/google/protobuf/source_context.pb.h