Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 10:12:20

0001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
0002 // NO CHECKED-IN PROTOBUF GENCODE
0003 // source: google/protobuf/field_mask.proto
0004 // Protobuf C++ Version: 5.28.2
0005 
0006 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto_2epb_2eh
0007 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_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 // @@protoc_insertion_point(includes)
0032 
0033 // Must be included last.
0034 #include "google/protobuf/port_def.inc"
0035 
0036 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ffield_5fmask_2eproto PROTOBUF_EXPORT
0037 
0038 namespace google {
0039 namespace protobuf {
0040 namespace internal {
0041 class AnyMetadata;
0042 }  // namespace internal
0043 }  // namespace protobuf
0044 }  // namespace google
0045 
0046 // Internal implementation detail -- do not use these members.
0047 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto {
0048   static const ::uint32_t offsets[];
0049 };
0050 PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable
0051     descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto;
0052 namespace google {
0053 namespace protobuf {
0054 class FieldMask;
0055 struct FieldMaskDefaultTypeInternal;
0056 PROTOBUF_EXPORT extern FieldMaskDefaultTypeInternal _FieldMask_default_instance_;
0057 }  // namespace protobuf
0058 }  // namespace google
0059 
0060 namespace google {
0061 namespace protobuf {
0062 
0063 // ===================================================================
0064 
0065 
0066 // -------------------------------------------------------------------
0067 
0068 class PROTOBUF_EXPORT FieldMask final : public ::google::protobuf::Message
0069 /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */ {
0070  public:
0071   inline FieldMask() : FieldMask(nullptr) {}
0072   ~FieldMask() PROTOBUF_FINAL;
0073   template <typename = void>
0074   explicit PROTOBUF_CONSTEXPR FieldMask(
0075       ::google::protobuf::internal::ConstantInitialized);
0076 
0077   inline FieldMask(const FieldMask& from) : FieldMask(nullptr, from) {}
0078   inline FieldMask(FieldMask&& from) noexcept
0079       : FieldMask(nullptr, std::move(from)) {}
0080   inline FieldMask& operator=(const FieldMask& from) {
0081     CopyFrom(from);
0082     return *this;
0083   }
0084   inline FieldMask& operator=(FieldMask&& 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  // !PROTOBUF_FORCE_COPY_IN_MOVE
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 FieldMask& default_instance() {
0117     return *internal_default_instance();
0118   }
0119   static inline const FieldMask* internal_default_instance() {
0120     return reinterpret_cast<const FieldMask*>(
0121         &_FieldMask_default_instance_);
0122   }
0123   static constexpr int kIndexInFileMessages = 0;
0124   friend void swap(FieldMask& a, FieldMask& b) { a.Swap(&b); }
0125   inline void Swap(FieldMask* other) {
0126     if (other == this) return;
0127 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
0128     if (GetArena() != nullptr && GetArena() == other->GetArena()) {
0129 #else   // PROTOBUF_FORCE_COPY_IN_SWAP
0130     if (GetArena() == other->GetArena()) {
0131 #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
0132       InternalSwap(other);
0133     } else {
0134       ::google::protobuf::internal::GenericSwap(this, other);
0135     }
0136   }
0137   void UnsafeArenaSwap(FieldMask* other) {
0138     if (other == this) return;
0139     ABSL_DCHECK(GetArena() == other->GetArena());
0140     InternalSwap(other);
0141   }
0142 
0143   // implements Message ----------------------------------------------
0144 
0145   FieldMask* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
0146     return ::google::protobuf::Message::DefaultConstruct<FieldMask>(arena);
0147   }
0148   using ::google::protobuf::Message::CopyFrom;
0149   void CopyFrom(const FieldMask& from);
0150   using ::google::protobuf::Message::MergeFrom;
0151   void MergeFrom(const FieldMask& from) { FieldMask::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   // PROTOBUF_CUSTOM_VTABLE
0178   ::size_t ByteSizeLong() const final;
0179   ::uint8_t* _InternalSerialize(
0180       ::uint8_t* target,
0181       ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
0182   #endif  // PROTOBUF_CUSTOM_VTABLE
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(FieldMask* other);
0189  private:
0190   friend class ::google::protobuf::internal::AnyMetadata;
0191   static ::absl::string_view FullMessageName() { return "google.protobuf.FieldMask"; }
0192 
0193  protected:
0194   explicit FieldMask(::google::protobuf::Arena* arena);
0195   FieldMask(::google::protobuf::Arena* arena, const FieldMask& from);
0196   FieldMask(::google::protobuf::Arena* arena, FieldMask&& from) noexcept
0197       : FieldMask(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   // nested types ----------------------------------------------------
0206 
0207   // accessors -------------------------------------------------------
0208   enum : int {
0209     kPathsFieldNumber = 1,
0210   };
0211   // repeated string paths = 1;
0212   int paths_size() const;
0213   private:
0214   int _internal_paths_size() const;
0215 
0216   public:
0217   void clear_paths() ;
0218   const std::string& paths(int index) const;
0219   std::string* mutable_paths(int index);
0220   template <typename Arg_ = const std::string&, typename... Args_>
0221   void set_paths(int index, Arg_&& value, Args_... args);
0222   std::string* add_paths();
0223   template <typename Arg_ = const std::string&, typename... Args_>
0224   void add_paths(Arg_&& value, Args_... args);
0225   const ::google::protobuf::RepeatedPtrField<std::string>& paths() const;
0226   ::google::protobuf::RepeatedPtrField<std::string>* mutable_paths();
0227 
0228   private:
0229   const ::google::protobuf::RepeatedPtrField<std::string>& _internal_paths() const;
0230   ::google::protobuf::RepeatedPtrField<std::string>* _internal_mutable_paths();
0231 
0232   public:
0233   // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
0234  private:
0235   class _Internal;
0236   friend class ::google::protobuf::internal::TcParser;
0237   static const ::google::protobuf::internal::TcParseTable<
0238       0, 1, 0,
0239       39, 2>
0240       _table_;
0241 
0242 
0243   friend class ::google::protobuf::MessageLite;
0244   friend class ::google::protobuf::Arena;
0245   template <typename T>
0246   friend class ::google::protobuf::Arena::InternalHelper;
0247   using InternalArenaConstructable_ = void;
0248   using DestructorSkippable_ = void;
0249   struct Impl_ {
0250     inline explicit constexpr Impl_(
0251         ::google::protobuf::internal::ConstantInitialized) noexcept;
0252     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0253                           ::google::protobuf::Arena* arena);
0254     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0255                           ::google::protobuf::Arena* arena, const Impl_& from,
0256                           const FieldMask& from_msg);
0257     ::google::protobuf::RepeatedPtrField<std::string> paths_;
0258     mutable ::google::protobuf::internal::CachedSize _cached_size_;
0259     PROTOBUF_TSAN_DECLARE_MEMBER
0260   };
0261   union { Impl_ _impl_; };
0262   friend struct ::TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto;
0263 };
0264 
0265 // ===================================================================
0266 
0267 
0268 
0269 
0270 // ===================================================================
0271 
0272 
0273 #ifdef __GNUC__
0274 #pragma GCC diagnostic push
0275 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
0276 #endif  // __GNUC__
0277 // -------------------------------------------------------------------
0278 
0279 // FieldMask
0280 
0281 // repeated string paths = 1;
0282 inline int FieldMask::_internal_paths_size() const {
0283   return _internal_paths().size();
0284 }
0285 inline int FieldMask::paths_size() const {
0286   return _internal_paths_size();
0287 }
0288 inline void FieldMask::clear_paths() {
0289   ::google::protobuf::internal::TSanWrite(&_impl_);
0290   _impl_.paths_.Clear();
0291 }
0292 inline std::string* FieldMask::add_paths() ABSL_ATTRIBUTE_LIFETIME_BOUND {
0293   ::google::protobuf::internal::TSanWrite(&_impl_);
0294   std::string* _s = _internal_mutable_paths()->Add();
0295   // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
0296   return _s;
0297 }
0298 inline const std::string& FieldMask::paths(int index) const
0299     ABSL_ATTRIBUTE_LIFETIME_BOUND {
0300   // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
0301   return _internal_paths().Get(index);
0302 }
0303 inline std::string* FieldMask::mutable_paths(int index)
0304     ABSL_ATTRIBUTE_LIFETIME_BOUND {
0305   // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
0306   return _internal_mutable_paths()->Mutable(index);
0307 }
0308 template <typename Arg_, typename... Args_>
0309 inline void FieldMask::set_paths(int index, Arg_&& value, Args_... args) {
0310   ::google::protobuf::internal::AssignToString(
0311       *_internal_mutable_paths()->Mutable(index),
0312       std::forward<Arg_>(value), args... );
0313   // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
0314 }
0315 template <typename Arg_, typename... Args_>
0316 inline void FieldMask::add_paths(Arg_&& value, Args_... args) {
0317   ::google::protobuf::internal::TSanWrite(&_impl_);
0318   ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_paths(),
0319                                std::forward<Arg_>(value),
0320                                args... );
0321   // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
0322 }
0323 inline const ::google::protobuf::RepeatedPtrField<std::string>&
0324 FieldMask::paths() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
0325   // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
0326   return _internal_paths();
0327 }
0328 inline ::google::protobuf::RepeatedPtrField<std::string>*
0329 FieldMask::mutable_paths() ABSL_ATTRIBUTE_LIFETIME_BOUND {
0330   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
0331   ::google::protobuf::internal::TSanWrite(&_impl_);
0332   return _internal_mutable_paths();
0333 }
0334 inline const ::google::protobuf::RepeatedPtrField<std::string>&
0335 FieldMask::_internal_paths() const {
0336   ::google::protobuf::internal::TSanRead(&_impl_);
0337   return _impl_.paths_;
0338 }
0339 inline ::google::protobuf::RepeatedPtrField<std::string>*
0340 FieldMask::_internal_mutable_paths() {
0341   ::google::protobuf::internal::TSanRead(&_impl_);
0342   return &_impl_.paths_;
0343 }
0344 
0345 #ifdef __GNUC__
0346 #pragma GCC diagnostic pop
0347 #endif  // __GNUC__
0348 
0349 // @@protoc_insertion_point(namespace_scope)
0350 }  // namespace protobuf
0351 }  // namespace google
0352 
0353 
0354 // @@protoc_insertion_point(global_scope)
0355 
0356 #include "google/protobuf/port_undef.inc"
0357 
0358 #endif  // GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto_2epb_2eh