source_context.pb.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/source_context.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3012000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3012000 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/inlined_string_field.h>
  25. #include <google/protobuf/metadata_lite.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/unknown_field_set.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto PROTOBUF_EXPORT
  34. PROTOBUF_NAMESPACE_OPEN
  35. namespace internal {
  36. class AnyMetadata;
  37. } // namespace internal
  38. PROTOBUF_NAMESPACE_CLOSE
  39. // Internal implementation detail -- do not use these members.
  40. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto {
  41. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  42. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  44. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  49. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  50. };
  51. extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto;
  52. PROTOBUF_NAMESPACE_OPEN
  53. class SourceContext;
  54. class SourceContextDefaultTypeInternal;
  55. PROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_default_instance_;
  56. PROTOBUF_NAMESPACE_CLOSE
  57. PROTOBUF_NAMESPACE_OPEN
  58. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::SourceContext* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceContext>(Arena*);
  59. PROTOBUF_NAMESPACE_CLOSE
  60. PROTOBUF_NAMESPACE_OPEN
  61. // ===================================================================
  62. class PROTOBUF_EXPORT SourceContext PROTOBUF_FINAL :
  63. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
  64. public:
  65. inline SourceContext() : SourceContext(nullptr) {};
  66. virtual ~SourceContext();
  67. SourceContext(const SourceContext& from);
  68. SourceContext(SourceContext&& from) noexcept
  69. : SourceContext() {
  70. *this = ::std::move(from);
  71. }
  72. inline SourceContext& operator=(const SourceContext& from) {
  73. CopyFrom(from);
  74. return *this;
  75. }
  76. inline SourceContext& operator=(SourceContext&& from) noexcept {
  77. if (GetArena() == from.GetArena()) {
  78. if (this != &from) InternalSwap(&from);
  79. } else {
  80. CopyFrom(from);
  81. }
  82. return *this;
  83. }
  84. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  85. return GetDescriptor();
  86. }
  87. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  88. return GetMetadataStatic().descriptor;
  89. }
  90. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  91. return GetMetadataStatic().reflection;
  92. }
  93. static const SourceContext& default_instance();
  94. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  95. static inline const SourceContext* internal_default_instance() {
  96. return reinterpret_cast<const SourceContext*>(
  97. &_SourceContext_default_instance_);
  98. }
  99. static constexpr int kIndexInFileMessages =
  100. 0;
  101. friend void swap(SourceContext& a, SourceContext& b) {
  102. a.Swap(&b);
  103. }
  104. inline void Swap(SourceContext* other) {
  105. if (other == this) return;
  106. if (GetArena() == other->GetArena()) {
  107. InternalSwap(other);
  108. } else {
  109. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  110. }
  111. }
  112. void UnsafeArenaSwap(SourceContext* other) {
  113. if (other == this) return;
  114. GOOGLE_DCHECK(GetArena() == other->GetArena());
  115. InternalSwap(other);
  116. }
  117. // implements Message ----------------------------------------------
  118. inline SourceContext* New() const final {
  119. return CreateMaybeMessage<SourceContext>(nullptr);
  120. }
  121. SourceContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  122. return CreateMaybeMessage<SourceContext>(arena);
  123. }
  124. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  125. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  126. void CopyFrom(const SourceContext& from);
  127. void MergeFrom(const SourceContext& from);
  128. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  129. bool IsInitialized() const final;
  130. size_t ByteSizeLong() const final;
  131. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  132. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  133. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  134. int GetCachedSize() const final { return _cached_size_.Get(); }
  135. private:
  136. inline void SharedCtor();
  137. inline void SharedDtor();
  138. void SetCachedSize(int size) const final;
  139. void InternalSwap(SourceContext* other);
  140. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  141. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  142. return "google.protobuf.SourceContext";
  143. }
  144. protected:
  145. explicit SourceContext(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  146. private:
  147. static void ArenaDtor(void* object);
  148. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  149. public:
  150. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  151. private:
  152. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  153. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto);
  154. return ::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto.file_level_metadata[kIndexInFileMessages];
  155. }
  156. public:
  157. // nested types ----------------------------------------------------
  158. // accessors -------------------------------------------------------
  159. enum : int {
  160. kFileNameFieldNumber = 1,
  161. };
  162. // string file_name = 1;
  163. void clear_file_name();
  164. const std::string& file_name() const;
  165. void set_file_name(const std::string& value);
  166. void set_file_name(std::string&& value);
  167. void set_file_name(const char* value);
  168. void set_file_name(const char* value, size_t size);
  169. std::string* mutable_file_name();
  170. std::string* release_file_name();
  171. void set_allocated_file_name(std::string* file_name);
  172. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  173. " string fields are deprecated and will be removed in a"
  174. " future release.")
  175. std::string* unsafe_arena_release_file_name();
  176. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  177. " string fields are deprecated and will be removed in a"
  178. " future release.")
  179. void unsafe_arena_set_allocated_file_name(
  180. std::string* file_name);
  181. private:
  182. const std::string& _internal_file_name() const;
  183. void _internal_set_file_name(const std::string& value);
  184. std::string* _internal_mutable_file_name();
  185. public:
  186. // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
  187. private:
  188. class _Internal;
  189. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  190. typedef void InternalArenaConstructable_;
  191. typedef void DestructorSkippable_;
  192. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
  193. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  194. friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
  195. };
  196. // ===================================================================
  197. // ===================================================================
  198. #ifdef __GNUC__
  199. #pragma GCC diagnostic push
  200. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  201. #endif // __GNUC__
  202. // SourceContext
  203. // string file_name = 1;
  204. inline void SourceContext::clear_file_name() {
  205. file_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  206. }
  207. inline const std::string& SourceContext::file_name() const {
  208. // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
  209. return _internal_file_name();
  210. }
  211. inline void SourceContext::set_file_name(const std::string& value) {
  212. _internal_set_file_name(value);
  213. // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
  214. }
  215. inline std::string* SourceContext::mutable_file_name() {
  216. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
  217. return _internal_mutable_file_name();
  218. }
  219. inline const std::string& SourceContext::_internal_file_name() const {
  220. return file_name_.Get();
  221. }
  222. inline void SourceContext::_internal_set_file_name(const std::string& value) {
  223. file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  224. }
  225. inline void SourceContext::set_file_name(std::string&& value) {
  226. file_name_.Set(
  227. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  228. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceContext.file_name)
  229. }
  230. inline void SourceContext::set_file_name(const char* value) {
  231. GOOGLE_DCHECK(value != nullptr);
  232. file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  233. GetArena());
  234. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_name)
  235. }
  236. inline void SourceContext::set_file_name(const char* value,
  237. size_t size) {
  238. file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  239. reinterpret_cast<const char*>(value), size), GetArena());
  240. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.file_name)
  241. }
  242. inline std::string* SourceContext::_internal_mutable_file_name() {
  243. return file_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  244. }
  245. inline std::string* SourceContext::release_file_name() {
  246. // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
  247. return file_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  248. }
  249. inline void SourceContext::set_allocated_file_name(std::string* file_name) {
  250. if (file_name != nullptr) {
  251. } else {
  252. }
  253. file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name,
  254. GetArena());
  255. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
  256. }
  257. inline std::string* SourceContext::unsafe_arena_release_file_name() {
  258. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.SourceContext.file_name)
  259. GOOGLE_DCHECK(GetArena() != nullptr);
  260. return file_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  261. GetArena());
  262. }
  263. inline void SourceContext::unsafe_arena_set_allocated_file_name(
  264. std::string* file_name) {
  265. GOOGLE_DCHECK(GetArena() != nullptr);
  266. if (file_name != nullptr) {
  267. } else {
  268. }
  269. file_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  270. file_name, GetArena());
  271. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.SourceContext.file_name)
  272. }
  273. #ifdef __GNUC__
  274. #pragma GCC diagnostic pop
  275. #endif // __GNUC__
  276. // @@protoc_insertion_point(namespace_scope)
  277. PROTOBUF_NAMESPACE_CLOSE
  278. // @@protoc_insertion_point(global_scope)
  279. #include <google/protobuf/port_undef.inc>
  280. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto