source_context.pb.h 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/source_context.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/unknown_field_set.h>
  28. // @@protoc_insertion_point(includes)
  29. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto LIBPROTOBUF_EXPORT
  30. namespace protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct LIBPROTOBUF_EXPORT TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[1];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void LIBPROTOBUF_EXPORT AddDescriptors();
  41. } // namespace protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto
  42. namespace google {
  43. namespace protobuf {
  44. class SourceContext;
  45. class SourceContextDefaultTypeInternal;
  46. LIBPROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_default_instance_;
  47. } // namespace protobuf
  48. } // namespace google
  49. namespace google {
  50. namespace protobuf {
  51. template<> LIBPROTOBUF_EXPORT ::google::protobuf::SourceContext* Arena::CreateMaybeMessage<::google::protobuf::SourceContext>(Arena*);
  52. } // namespace protobuf
  53. } // namespace google
  54. namespace google {
  55. namespace protobuf {
  56. // ===================================================================
  57. class LIBPROTOBUF_EXPORT SourceContext : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
  58. public:
  59. SourceContext();
  60. virtual ~SourceContext();
  61. SourceContext(const SourceContext& from);
  62. inline SourceContext& operator=(const SourceContext& from) {
  63. CopyFrom(from);
  64. return *this;
  65. }
  66. #if LANG_CXX11
  67. SourceContext(SourceContext&& from) noexcept
  68. : SourceContext() {
  69. *this = ::std::move(from);
  70. }
  71. inline SourceContext& operator=(SourceContext&& from) noexcept {
  72. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  73. if (this != &from) InternalSwap(&from);
  74. } else {
  75. CopyFrom(from);
  76. }
  77. return *this;
  78. }
  79. #endif
  80. static const ::google::protobuf::Descriptor* descriptor();
  81. static const SourceContext& default_instance();
  82. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  83. static inline const SourceContext* internal_default_instance() {
  84. return reinterpret_cast<const SourceContext*>(
  85. &_SourceContext_default_instance_);
  86. }
  87. static constexpr int kIndexInFileMessages =
  88. 0;
  89. void Swap(SourceContext* other);
  90. friend void swap(SourceContext& a, SourceContext& b) {
  91. a.Swap(&b);
  92. }
  93. // implements Message ----------------------------------------------
  94. inline SourceContext* New() const final {
  95. return CreateMaybeMessage<SourceContext>(NULL);
  96. }
  97. SourceContext* New(::google::protobuf::Arena* arena) const final {
  98. return CreateMaybeMessage<SourceContext>(arena);
  99. }
  100. void CopyFrom(const ::google::protobuf::Message& from) final;
  101. void MergeFrom(const ::google::protobuf::Message& from) final;
  102. void CopyFrom(const SourceContext& from);
  103. void MergeFrom(const SourceContext& from);
  104. void Clear() final;
  105. bool IsInitialized() const final;
  106. size_t ByteSizeLong() const final;
  107. bool MergePartialFromCodedStream(
  108. ::google::protobuf::io::CodedInputStream* input) final;
  109. void SerializeWithCachedSizes(
  110. ::google::protobuf::io::CodedOutputStream* output) const final;
  111. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  112. bool deterministic, ::google::protobuf::uint8* target) const final;
  113. int GetCachedSize() const final { return _cached_size_.Get(); }
  114. private:
  115. void SharedCtor();
  116. void SharedDtor();
  117. void SetCachedSize(int size) const final;
  118. void InternalSwap(SourceContext* other);
  119. private:
  120. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  121. return NULL;
  122. }
  123. inline void* MaybeArenaPtr() const {
  124. return NULL;
  125. }
  126. public:
  127. ::google::protobuf::Metadata GetMetadata() const final;
  128. // nested types ----------------------------------------------------
  129. // accessors -------------------------------------------------------
  130. // string file_name = 1;
  131. void clear_file_name();
  132. static const int kFileNameFieldNumber = 1;
  133. const ::std::string& file_name() const;
  134. void set_file_name(const ::std::string& value);
  135. #if LANG_CXX11
  136. void set_file_name(::std::string&& value);
  137. #endif
  138. void set_file_name(const char* value);
  139. void set_file_name(const char* value, size_t size);
  140. ::std::string* mutable_file_name();
  141. ::std::string* release_file_name();
  142. void set_allocated_file_name(::std::string* file_name);
  143. // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
  144. private:
  145. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  146. ::google::protobuf::internal::ArenaStringPtr file_name_;
  147. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  148. friend struct ::protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::TableStruct;
  149. };
  150. // ===================================================================
  151. // ===================================================================
  152. #ifdef __GNUC__
  153. #pragma GCC diagnostic push
  154. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  155. #endif // __GNUC__
  156. // SourceContext
  157. // string file_name = 1;
  158. inline void SourceContext::clear_file_name() {
  159. file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  160. }
  161. inline const ::std::string& SourceContext::file_name() const {
  162. // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
  163. return file_name_.GetNoArena();
  164. }
  165. inline void SourceContext::set_file_name(const ::std::string& value) {
  166. file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  167. // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
  168. }
  169. #if LANG_CXX11
  170. inline void SourceContext::set_file_name(::std::string&& value) {
  171. file_name_.SetNoArena(
  172. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  173. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceContext.file_name)
  174. }
  175. #endif
  176. inline void SourceContext::set_file_name(const char* value) {
  177. GOOGLE_DCHECK(value != NULL);
  178. file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  179. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_name)
  180. }
  181. inline void SourceContext::set_file_name(const char* value, size_t size) {
  182. file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  183. ::std::string(reinterpret_cast<const char*>(value), size));
  184. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.file_name)
  185. }
  186. inline ::std::string* SourceContext::mutable_file_name() {
  187. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
  188. return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  189. }
  190. inline ::std::string* SourceContext::release_file_name() {
  191. // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
  192. return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  193. }
  194. inline void SourceContext::set_allocated_file_name(::std::string* file_name) {
  195. if (file_name != NULL) {
  196. } else {
  197. }
  198. file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_name);
  199. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
  200. }
  201. #ifdef __GNUC__
  202. #pragma GCC diagnostic pop
  203. #endif // __GNUC__
  204. // @@protoc_insertion_point(namespace_scope)
  205. } // namespace protobuf
  206. } // namespace google
  207. // @@protoc_insertion_point(global_scope)
  208. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto