File indexing completed on 2025-01-31 10:12:26
0001
0002
0003
0004
0005
0006 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto_2epb_2eh
0007 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto_2epb_2eh
0008
0009 #include <limits>
0010 #include <string>
0011 #include <type_traits>
0012 #include <utility>
0013
0014 #include "google/protobuf/runtime_version.h"
0015 #if PROTOBUF_VERSION != 5028002
0016 #error "Protobuf C++ gencode is built with an incompatible version of"
0017 #error "Protobuf C++ headers/runtime. See"
0018 #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
0019 #endif
0020 #include "google/protobuf/io/coded_stream.h"
0021 #include "google/protobuf/arena.h"
0022 #include "google/protobuf/arenastring.h"
0023 #include "google/protobuf/generated_message_tctable_decl.h"
0024 #include "google/protobuf/generated_message_util.h"
0025 #include "google/protobuf/metadata_lite.h"
0026 #include "google/protobuf/generated_message_reflection.h"
0027 #include "google/protobuf/message.h"
0028 #include "google/protobuf/repeated_field.h" // IWYU pragma: export
0029 #include "google/protobuf/extension_set.h" // IWYU pragma: export
0030 #include "google/protobuf/unknown_field_set.h"
0031
0032
0033
0034 #include "google/protobuf/port_def.inc"
0035
0036 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto PROTOBUF_EXPORT
0037
0038 namespace google {
0039 namespace protobuf {
0040 namespace internal {
0041 class AnyMetadata;
0042 }
0043 }
0044 }
0045
0046
0047 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto {
0048 static const ::uint32_t offsets[];
0049 };
0050 PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable
0051 descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto;
0052 namespace google {
0053 namespace protobuf {
0054 class SourceContext;
0055 struct SourceContextDefaultTypeInternal;
0056 PROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_default_instance_;
0057 }
0058 }
0059
0060 namespace google {
0061 namespace protobuf {
0062
0063
0064
0065
0066
0067
0068 class PROTOBUF_EXPORT SourceContext final : public ::google::protobuf::Message
0069 {
0070 public:
0071 inline SourceContext() : SourceContext(nullptr) {}
0072 ~SourceContext() PROTOBUF_FINAL;
0073 template <typename = void>
0074 explicit PROTOBUF_CONSTEXPR SourceContext(
0075 ::google::protobuf::internal::ConstantInitialized);
0076
0077 inline SourceContext(const SourceContext& from) : SourceContext(nullptr, from) {}
0078 inline SourceContext(SourceContext&& from) noexcept
0079 : SourceContext(nullptr, std::move(from)) {}
0080 inline SourceContext& operator=(const SourceContext& from) {
0081 CopyFrom(from);
0082 return *this;
0083 }
0084 inline SourceContext& operator=(SourceContext&& from) noexcept {
0085 if (this == &from) return *this;
0086 if (GetArena() == from.GetArena()
0087 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
0088 && GetArena() != nullptr
0089 #endif
0090 ) {
0091 InternalSwap(&from);
0092 } else {
0093 CopyFrom(from);
0094 }
0095 return *this;
0096 }
0097
0098 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
0099 ABSL_ATTRIBUTE_LIFETIME_BOUND {
0100 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
0101 }
0102 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
0103 ABSL_ATTRIBUTE_LIFETIME_BOUND {
0104 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
0105 }
0106
0107 static const ::google::protobuf::Descriptor* descriptor() {
0108 return GetDescriptor();
0109 }
0110 static const ::google::protobuf::Descriptor* GetDescriptor() {
0111 return default_instance().GetMetadata().descriptor;
0112 }
0113 static const ::google::protobuf::Reflection* GetReflection() {
0114 return default_instance().GetMetadata().reflection;
0115 }
0116 static const SourceContext& default_instance() {
0117 return *internal_default_instance();
0118 }
0119 static inline const SourceContext* internal_default_instance() {
0120 return reinterpret_cast<const SourceContext*>(
0121 &_SourceContext_default_instance_);
0122 }
0123 static constexpr int kIndexInFileMessages = 0;
0124 friend void swap(SourceContext& a, SourceContext& b) { a.Swap(&b); }
0125 inline void Swap(SourceContext* other) {
0126 if (other == this) return;
0127 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
0128 if (GetArena() != nullptr && GetArena() == other->GetArena()) {
0129 #else
0130 if (GetArena() == other->GetArena()) {
0131 #endif
0132 InternalSwap(other);
0133 } else {
0134 ::google::protobuf::internal::GenericSwap(this, other);
0135 }
0136 }
0137 void UnsafeArenaSwap(SourceContext* other) {
0138 if (other == this) return;
0139 ABSL_DCHECK(GetArena() == other->GetArena());
0140 InternalSwap(other);
0141 }
0142
0143
0144
0145 SourceContext* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
0146 return ::google::protobuf::Message::DefaultConstruct<SourceContext>(arena);
0147 }
0148 using ::google::protobuf::Message::CopyFrom;
0149 void CopyFrom(const SourceContext& from);
0150 using ::google::protobuf::Message::MergeFrom;
0151 void MergeFrom(const SourceContext& from) { SourceContext::MergeImpl(*this, from); }
0152
0153 private:
0154 static void MergeImpl(
0155 ::google::protobuf::MessageLite& to_msg,
0156 const ::google::protobuf::MessageLite& from_msg);
0157
0158 public:
0159 bool IsInitialized() const {
0160 return true;
0161 }
0162 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
0163 #if defined(PROTOBUF_CUSTOM_VTABLE)
0164 private:
0165 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
0166 static ::uint8_t* _InternalSerialize(
0167 const MessageLite& msg, ::uint8_t* target,
0168 ::google::protobuf::io::EpsCopyOutputStream* stream);
0169
0170 public:
0171 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
0172 ::uint8_t* _InternalSerialize(
0173 ::uint8_t* target,
0174 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
0175 return _InternalSerialize(*this, target, stream);
0176 }
0177 #else
0178 ::size_t ByteSizeLong() const final;
0179 ::uint8_t* _InternalSerialize(
0180 ::uint8_t* target,
0181 ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
0182 #endif
0183 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
0184
0185 private:
0186 void SharedCtor(::google::protobuf::Arena* arena);
0187 void SharedDtor();
0188 void InternalSwap(SourceContext* other);
0189 private:
0190 friend class ::google::protobuf::internal::AnyMetadata;
0191 static ::absl::string_view FullMessageName() { return "google.protobuf.SourceContext"; }
0192
0193 protected:
0194 explicit SourceContext(::google::protobuf::Arena* arena);
0195 SourceContext(::google::protobuf::Arena* arena, const SourceContext& from);
0196 SourceContext(::google::protobuf::Arena* arena, SourceContext&& from) noexcept
0197 : SourceContext(arena) {
0198 *this = ::std::move(from);
0199 }
0200 const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
0201 static const ::google::protobuf::Message::ClassDataFull _class_data_;
0202
0203 public:
0204 ::google::protobuf::Metadata GetMetadata() const;
0205
0206
0207
0208 enum : int {
0209 kFileNameFieldNumber = 1,
0210 };
0211
0212 void clear_file_name() ;
0213 const std::string& file_name() const;
0214 template <typename Arg_ = const std::string&, typename... Args_>
0215 void set_file_name(Arg_&& arg, Args_... args);
0216 std::string* mutable_file_name();
0217 PROTOBUF_NODISCARD std::string* release_file_name();
0218 void set_allocated_file_name(std::string* value);
0219
0220 private:
0221 const std::string& _internal_file_name() const;
0222 inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(
0223 const std::string& value);
0224 std::string* _internal_mutable_file_name();
0225
0226 public:
0227
0228 private:
0229 class _Internal;
0230 friend class ::google::protobuf::internal::TcParser;
0231 static const ::google::protobuf::internal::TcParseTable<
0232 0, 1, 0,
0233 47, 2>
0234 _table_;
0235
0236
0237 friend class ::google::protobuf::MessageLite;
0238 friend class ::google::protobuf::Arena;
0239 template <typename T>
0240 friend class ::google::protobuf::Arena::InternalHelper;
0241 using InternalArenaConstructable_ = void;
0242 using DestructorSkippable_ = void;
0243 struct Impl_ {
0244 inline explicit constexpr Impl_(
0245 ::google::protobuf::internal::ConstantInitialized) noexcept;
0246 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0247 ::google::protobuf::Arena* arena);
0248 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0249 ::google::protobuf::Arena* arena, const Impl_& from,
0250 const SourceContext& from_msg);
0251 ::google::protobuf::internal::ArenaStringPtr file_name_;
0252 mutable ::google::protobuf::internal::CachedSize _cached_size_;
0253 PROTOBUF_TSAN_DECLARE_MEMBER
0254 };
0255 union { Impl_ _impl_; };
0256 friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
0257 };
0258
0259
0260
0261
0262
0263
0264
0265
0266
0267 #ifdef __GNUC__
0268 #pragma GCC diagnostic push
0269 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
0270 #endif
0271
0272
0273
0274
0275
0276 inline void SourceContext::clear_file_name() {
0277 ::google::protobuf::internal::TSanWrite(&_impl_);
0278 _impl_.file_name_.ClearToEmpty();
0279 }
0280 inline const std::string& SourceContext::file_name() const
0281 ABSL_ATTRIBUTE_LIFETIME_BOUND {
0282
0283 return _internal_file_name();
0284 }
0285 template <typename Arg_, typename... Args_>
0286 inline PROTOBUF_ALWAYS_INLINE void SourceContext::set_file_name(Arg_&& arg,
0287 Args_... args) {
0288 ::google::protobuf::internal::TSanWrite(&_impl_);
0289 _impl_.file_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
0290
0291 }
0292 inline std::string* SourceContext::mutable_file_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
0293 std::string* _s = _internal_mutable_file_name();
0294
0295 return _s;
0296 }
0297 inline const std::string& SourceContext::_internal_file_name() const {
0298 ::google::protobuf::internal::TSanRead(&_impl_);
0299 return _impl_.file_name_.Get();
0300 }
0301 inline void SourceContext::_internal_set_file_name(const std::string& value) {
0302 ::google::protobuf::internal::TSanWrite(&_impl_);
0303 _impl_.file_name_.Set(value, GetArena());
0304 }
0305 inline std::string* SourceContext::_internal_mutable_file_name() {
0306 ::google::protobuf::internal::TSanWrite(&_impl_);
0307 return _impl_.file_name_.Mutable( GetArena());
0308 }
0309 inline std::string* SourceContext::release_file_name() {
0310 ::google::protobuf::internal::TSanWrite(&_impl_);
0311
0312 return _impl_.file_name_.Release();
0313 }
0314 inline void SourceContext::set_allocated_file_name(std::string* value) {
0315 ::google::protobuf::internal::TSanWrite(&_impl_);
0316 _impl_.file_name_.SetAllocated(value, GetArena());
0317 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
0318 if (_impl_.file_name_.IsDefault()) {
0319 _impl_.file_name_.Set("", GetArena());
0320 }
0321 #endif
0322
0323 }
0324
0325 #ifdef __GNUC__
0326 #pragma GCC diagnostic pop
0327 #endif
0328
0329
0330 }
0331 }
0332
0333
0334
0335
0336 #include "google/protobuf/port_undef.inc"
0337
0338 #endif