4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3019005 < 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.
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>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #include <google/protobuf/port_def.inc>
36 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto PROTOBUF_EXPORT
37 PROTOBUF_NAMESPACE_OPEN
41 PROTOBUF_NAMESPACE_CLOSE
45 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
47 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
49 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
51 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
52 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
56 PROTOBUF_NAMESPACE_OPEN
60 PROTOBUF_NAMESPACE_CLOSE
61 PROTOBUF_NAMESPACE_OPEN
63 PROTOBUF_NAMESPACE_CLOSE
64 PROTOBUF_NAMESPACE_OPEN
73 explicit constexpr
SourceContext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
86 if (
this == &
from)
return *
this;
87 if (GetOwningArena() ==
from.GetOwningArena()
88 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
89 && GetOwningArena() !=
nullptr
103 return default_instance().GetMetadata().descriptor;
106 return default_instance().GetMetadata().reflection;
109 return *internal_default_instance();
115 static constexpr
int kIndexInFileMessages =
122 if (other ==
this)
return;
123 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
124 if (GetOwningArena() !=
nullptr &&
125 GetOwningArena() == other->GetOwningArena()) {
126 #else // PROTOBUF_FORCE_COPY_IN_SWAP
127 if (GetOwningArena() == other->GetOwningArena()) {
128 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
135 if (other ==
this)
return;
143 return CreateMaybeMessage<SourceContext>(
arena);
152 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
155 size_t ByteSizeLong()
const final;
159 int GetCachedSize()
const final {
return _cached_size_.Get(); }
164 void SetCachedSize(
int size)
const final;
168 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
170 return "google.protobuf.SourceContext";
174 bool is_message_owned =
false);
176 static void ArenaDtor(
void*
object);
181 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData()
const final;
190 kFileNameFieldNumber = 1,
193 void clear_file_name();
195 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
196 void set_file_name(ArgT0&& arg0, ArgT...
args);
198 PROTOBUF_NODISCARD
std::string* release_file_name();
199 void set_allocated_file_name(
std::string* file_name);
202 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_file_name(
const std::string&
value);
210 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
213 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
214 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
215 friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
223 #pragma GCC diagnostic push
224 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
230 file_name_.ClearToEmpty();
234 return _internal_file_name();
236 template <
typename ArgT0,
typename... ArgT>
237 inline PROTOBUF_ALWAYS_INLINE
249 return file_name_.Get();
264 if (file_name !=
nullptr) {
270 GetArenaForAllocation());
271 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
275 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
280 #pragma GCC diagnostic pop
285 PROTOBUF_NAMESPACE_CLOSE
289 #include <google/protobuf/port_undef.inc>
290 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto