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 < 3021000
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 3021004 < 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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
32#include <google/protobuf/unknown_field_set.h>
33// @@protoc_insertion_point(includes)
34#include <google/protobuf/port_def.inc>
35#define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto PROTOBUF_EXPORT
36PROTOBUF_NAMESPACE_OPEN
37namespace internal {
38class AnyMetadata;
39} // namespace internal
40PROTOBUF_NAMESPACE_CLOSE
41
42// Internal implementation detail -- do not use these members.
43struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto {
44 static const uint32_t offsets[];
45};
46PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto;
47PROTOBUF_NAMESPACE_OPEN
48class SourceContext;
49struct SourceContextDefaultTypeInternal;
50PROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_default_instance_;
51PROTOBUF_NAMESPACE_CLOSE
52PROTOBUF_NAMESPACE_OPEN
53template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceContext* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceContext>(Arena*);
54PROTOBUF_NAMESPACE_CLOSE
55PROTOBUF_NAMESPACE_OPEN
56
57// ===================================================================
58
59class PROTOBUF_EXPORT SourceContext final :
60 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
61 public:
62 inline SourceContext() : SourceContext(nullptr) {}
63 ~SourceContext() override;
64 explicit PROTOBUF_CONSTEXPR SourceContext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
65
66 SourceContext(const SourceContext& from);
67 SourceContext(SourceContext&& from) noexcept
68 : SourceContext() {
69 *this = ::std::move(from);
70 }
71
72 inline SourceContext& operator=(const SourceContext& from) {
73 CopyFrom(from);
74 return *this;
75 }
76 inline SourceContext& operator=(SourceContext&& from) noexcept {
77 if (this == &from) return *this;
78 if (GetOwningArena() == from.GetOwningArena()
79 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
80 && GetOwningArena() != nullptr
81 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
82 ) {
83 InternalSwap(other: &from);
84 } else {
85 CopyFrom(from);
86 }
87 return *this;
88 }
89
90 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
91 return GetDescriptor();
92 }
93 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
94 return default_instance().GetMetadata().descriptor;
95 }
96 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
97 return default_instance().GetMetadata().reflection;
98 }
99 static const SourceContext& default_instance() {
100 return *internal_default_instance();
101 }
102 static inline const SourceContext* internal_default_instance() {
103 return reinterpret_cast<const SourceContext*>(
104 &_SourceContext_default_instance_);
105 }
106 static constexpr int kIndexInFileMessages =
107 0;
108
109 friend void swap(SourceContext& a, SourceContext& b) {
110 a.Swap(other: &b);
111 }
112 inline void Swap(SourceContext* other) {
113 if (other == this) return;
114 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
115 if (GetOwningArena() != nullptr &&
116 GetOwningArena() == other->GetOwningArena()) {
117 #else // PROTOBUF_FORCE_COPY_IN_SWAP
118 if (GetOwningArena() == other->GetOwningArena()) {
119 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
120 InternalSwap(other);
121 } else {
122 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(m1: this, m2: other);
123 }
124 }
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
133 SourceContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
134 return CreateMaybeMessage<SourceContext>(arena);
135 }
136 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
137 void CopyFrom(const SourceContext& from);
138 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
139 void MergeFrom( const SourceContext& from) {
140 SourceContext::MergeImpl(to_msg&: *this, from_msg: from);
141 }
142 private:
143 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
144 public:
145 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
146 bool IsInitialized() const final;
147
148 size_t ByteSizeLong() const final;
149 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
150 uint8_t* _InternalSerialize(
151 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
152 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
153
154 private:
155 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
156 void SharedDtor();
157 void SetCachedSize(int size) const final;
158 void InternalSwap(SourceContext* other);
159
160 private:
161 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
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 public:
169
170 static const ClassData _class_data_;
171 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
172
173 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
174
175 // nested types ----------------------------------------------------
176
177 // accessors -------------------------------------------------------
178
179 enum : int {
180 kFileNameFieldNumber = 1,
181 };
182 // string file_name = 1;
183 void clear_file_name();
184 const std::string& file_name() const;
185 template <typename ArgT0 = const std::string&, typename... ArgT>
186 void set_file_name(ArgT0&& arg0, ArgT... args);
187 std::string* mutable_file_name();
188 PROTOBUF_NODISCARD std::string* release_file_name();
189 void set_allocated_file_name(std::string* file_name);
190 private:
191 const std::string& _internal_file_name() const;
192 inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value);
193 std::string* _internal_mutable_file_name();
194 public:
195
196 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
197 private:
198 class _Internal;
199
200 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
201 typedef void InternalArenaConstructable_;
202 typedef void DestructorSkippable_;
203 struct Impl_ {
204 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
205 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
206 };
207 union { Impl_ _impl_; };
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;
222inline void SourceContext::clear_file_name() {
223 _impl_.file_name_.ClearToEmpty();
224}
225inline const std::string& SourceContext::file_name() const {
226 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
227 return _internal_file_name();
228}
229template <typename ArgT0, typename... ArgT>
230inline PROTOBUF_ALWAYS_INLINE
231void SourceContext::set_file_name(ArgT0&& arg0, ArgT... args) {
232
233 _impl_.file_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
234 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
235}
236inline 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}
241inline const std::string& SourceContext::_internal_file_name() const {
242 return _impl_.file_name_.Get();
243}
244inline void SourceContext::_internal_set_file_name(const std::string& value) {
245
246 _impl_.file_name_.Set(value, arena: GetArenaForAllocation());
247}
248inline std::string* SourceContext::_internal_mutable_file_name() {
249
250 return _impl_.file_name_.Mutable(arena: GetArenaForAllocation());
251}
252inline std::string* SourceContext::release_file_name() {
253 // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
254 return _impl_.file_name_.Release();
255}
256inline void SourceContext::set_allocated_file_name(std::string* file_name) {
257 if (file_name != nullptr) {
258
259 } else {
260
261 }
262 _impl_.file_name_.SetAllocated(value: file_name, arena: GetArenaForAllocation());
263#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
264 if (_impl_.file_name_.IsDefault()) {
265 _impl_.file_name_.Set("", GetArenaForAllocation());
266 }
267#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
268 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
269}
270
271#ifdef __GNUC__
272 #pragma GCC diagnostic pop
273#endif // __GNUC__
274
275// @@protoc_insertion_point(namespace_scope)
276
277PROTOBUF_NAMESPACE_CLOSE
278
279// @@protoc_insertion_point(global_scope)
280
281#include <google/protobuf/port_undef.inc>
282#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
283