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 < 3011000
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 3011004 < 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.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::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 };
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 :
70 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
71 public:
72 SourceContext();
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
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 InternalSwap(other);
119 }
120
121 // implements Message ----------------------------------------------
122
New()123 inline SourceContext* New() const final {
124 return CreateMaybeMessage<SourceContext>(nullptr);
125 }
126
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)127 SourceContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
128 return CreateMaybeMessage<SourceContext>(arena);
129 }
130 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
131 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
132 void CopyFrom(const SourceContext& from);
133 void MergeFrom(const SourceContext& from);
134 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
135 bool IsInitialized() const final;
136
137 size_t ByteSizeLong() const final;
138 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
139 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
140 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()141 int GetCachedSize() const final { return _cached_size_.Get(); }
142
143 private:
144 inline void SharedCtor();
145 inline void SharedDtor();
146 void SetCachedSize(int size) const final;
147 void InternalSwap(SourceContext* other);
148 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()149 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
150 return "google.protobuf.SourceContext";
151 }
152 private:
GetArenaNoVirtual()153 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
154 return nullptr;
155 }
MaybeArenaPtr()156 inline void* MaybeArenaPtr() const {
157 return nullptr;
158 }
159 public:
160
161 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
162 private:
GetMetadataStatic()163 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
164 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto);
165 return ::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto.file_level_metadata[kIndexInFileMessages];
166 }
167
168 public:
169
170 // nested types ----------------------------------------------------
171
172 // accessors -------------------------------------------------------
173
174 enum : int {
175 kFileNameFieldNumber = 1,
176 };
177 // string file_name = 1;
178 void clear_file_name();
179 const std::string& file_name() const;
180 void set_file_name(const std::string& value);
181 void set_file_name(std::string&& value);
182 void set_file_name(const char* value);
183 void set_file_name(const char* value, size_t size);
184 std::string* mutable_file_name();
185 std::string* release_file_name();
186 void set_allocated_file_name(std::string* file_name);
187 private:
188 const std::string& _internal_file_name() const;
189 void _internal_set_file_name(const std::string& value);
190 std::string* _internal_mutable_file_name();
191 public:
192
193 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
194 private:
195 class _Internal;
196
197 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
198 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
199 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
200 friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
201 };
202 // ===================================================================
203
204
205 // ===================================================================
206
207 #ifdef __GNUC__
208 #pragma GCC diagnostic push
209 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
210 #endif // __GNUC__
211 // SourceContext
212
213 // string file_name = 1;
clear_file_name()214 inline void SourceContext::clear_file_name() {
215 file_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
216 }
file_name()217 inline const std::string& SourceContext::file_name() const {
218 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
219 return _internal_file_name();
220 }
set_file_name(const std::string & value)221 inline void SourceContext::set_file_name(const std::string& value) {
222 _internal_set_file_name(value);
223 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
224 }
mutable_file_name()225 inline std::string* SourceContext::mutable_file_name() {
226 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
227 return _internal_mutable_file_name();
228 }
_internal_file_name()229 inline const std::string& SourceContext::_internal_file_name() const {
230 return file_name_.GetNoArena();
231 }
_internal_set_file_name(const std::string & value)232 inline void SourceContext::_internal_set_file_name(const std::string& value) {
233
234 file_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
235 }
set_file_name(std::string && value)236 inline void SourceContext::set_file_name(std::string&& value) {
237
238 file_name_.SetNoArena(
239 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
240 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceContext.file_name)
241 }
set_file_name(const char * value)242 inline void SourceContext::set_file_name(const char* value) {
243 GOOGLE_DCHECK(value != nullptr);
244
245 file_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
246 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_name)
247 }
set_file_name(const char * value,size_t size)248 inline void SourceContext::set_file_name(const char* value, size_t size) {
249
250 file_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
251 ::std::string(reinterpret_cast<const char*>(value), size));
252 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.file_name)
253 }
_internal_mutable_file_name()254 inline std::string* SourceContext::_internal_mutable_file_name() {
255
256 return file_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
257 }
release_file_name()258 inline std::string* SourceContext::release_file_name() {
259 // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
260
261 return file_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
262 }
set_allocated_file_name(std::string * file_name)263 inline void SourceContext::set_allocated_file_name(std::string* file_name) {
264 if (file_name != nullptr) {
265
266 } else {
267
268 }
269 file_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name);
270 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
271 }
272
273 #ifdef __GNUC__
274 #pragma GCC diagnostic pop
275 #endif // __GNUC__
276
277 // @@protoc_insertion_point(namespace_scope)
278
279 PROTOBUF_NAMESPACE_CLOSE
280
281 // @@protoc_insertion_point(global_scope)
282
283 #include <google/protobuf/port_undef.inc>
284 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
285