// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: opentelemetry/proto/resource/v1/resource.proto
// Protobuf C++ Version: 7.34.1

#ifndef opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto_2epb_2eh
#define opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>
#include <utility>

// clang-format off
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 7034001
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
#include "opentelemetry/proto/common/v1/common.pb.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"

#define PROTOBUF_INTERNAL_EXPORT_opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto OPENTELEMETRY_PROTO_API

namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
}  // namespace internal
}  // namespace protobuf
}  // namespace google

// Internal implementation detail -- do not use these members.
struct OPENTELEMETRY_PROTO_API TableStruct_opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto {
  static const ::uint32_t offsets[];
};
extern "C" {
OPENTELEMETRY_PROTO_API extern const ::google::protobuf::internal::DescriptorTable descriptor_table_opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto;
}  // extern "C"
namespace opentelemetry {
namespace proto {
namespace resource {
namespace v1 {
class Resource;
struct ResourceDefaultTypeInternal;
OPENTELEMETRY_PROTO_API extern ResourceDefaultTypeInternal _Resource_default_instance_;
OPENTELEMETRY_PROTO_API extern const ::google::protobuf::internal::ClassDataFull Resource_class_data_;
}  // namespace v1
}  // namespace resource
}  // namespace proto
}  // namespace opentelemetry
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace opentelemetry {
namespace proto {
namespace resource {
namespace v1 {

// ===================================================================


// -------------------------------------------------------------------

class OPENTELEMETRY_PROTO_API  PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Resource final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:opentelemetry.proto.resource.v1.Resource) */ {
 public:
  inline Resource() : Resource(nullptr) {}
  ~Resource() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(Resource* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(Resource));
  }
#endif

  template <typename = void>
  explicit constexpr Resource(::google::protobuf::internal::ConstantInitialized);

  inline Resource(const Resource& from) : Resource(nullptr, from) {}
  inline Resource(Resource&& from) noexcept
      : Resource(nullptr, ::std::move(from)) {}
  inline Resource& operator=(const Resource& from) {
    CopyFrom(from);
    return *this;
  }
  inline Resource& operator=(Resource&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  }
  [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
  GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  [[nodiscard]] static const Resource& default_instance() {
    return *reinterpret_cast<const Resource*>(
        &_Resource_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(Resource& a, Resource& b) { a.Swap(&b); }
  inline void Swap(Resource* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Resource* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  [[nodiscard]] Resource* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::Message::DefaultConstruct<Resource>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const Resource& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const Resource& from) { Resource::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  [[nodiscard]] bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  [[nodiscard]] ::size_t ByteSizeLong() const final;
  [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  [[nodiscard]] int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(Resource* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "opentelemetry.proto.resource.v1.Resource"; }

  explicit Resource(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  Resource(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Resource& from);
  Resource(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Resource&& from) noexcept
      : Resource(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_();

  [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const;
  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kAttributesFieldNumber = 1,
    kEntityRefsFieldNumber = 3,
    kDroppedAttributesCountFieldNumber = 2,
  };
  // repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
  [[nodiscard]] int attributes_size()
      const;
  private:
  int _internal_attributes_size() const;

  public:
  void clear_attributes() ;
  [[nodiscard]] ::opentelemetry::proto::common::v1::KeyValue* PROTOBUF_NONNULL mutable_attributes(int index);
  [[nodiscard]] ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::KeyValue>* PROTOBUF_NONNULL
  mutable_attributes();

  private:
  const ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::KeyValue>& _internal_attributes() const;
  ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::KeyValue>* PROTOBUF_NONNULL _internal_mutable_attributes();
  public:
  [[nodiscard]] const ::opentelemetry::proto::common::v1::KeyValue& attributes(int index) const;
  ::opentelemetry::proto::common::v1::KeyValue* PROTOBUF_NONNULL add_attributes();
  [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::KeyValue>& attributes()
      const;
  // repeated .opentelemetry.proto.common.v1.EntityRef entity_refs = 3;
  [[nodiscard]] int entity_refs_size()
      const;
  private:
  int _internal_entity_refs_size() const;

  public:
  void clear_entity_refs() ;
  [[nodiscard]] ::opentelemetry::proto::common::v1::EntityRef* PROTOBUF_NONNULL mutable_entity_refs(int index);
  [[nodiscard]] ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::EntityRef>* PROTOBUF_NONNULL
  mutable_entity_refs();

  private:
  const ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::EntityRef>& _internal_entity_refs() const;
  ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::EntityRef>* PROTOBUF_NONNULL _internal_mutable_entity_refs();
  public:
  [[nodiscard]] const ::opentelemetry::proto::common::v1::EntityRef& entity_refs(int index) const;
  ::opentelemetry::proto::common::v1::EntityRef* PROTOBUF_NONNULL add_entity_refs();
  [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::EntityRef>& entity_refs()
      const;
  // uint32 dropped_attributes_count = 2;
  void clear_dropped_attributes_count() ;
  [[nodiscard]] ::uint32_t dropped_attributes_count() const;
  void set_dropped_attributes_count(::uint32_t value);

  private:
  ::uint32_t _internal_dropped_attributes_count() const;
  void _internal_set_dropped_attributes_count(::uint32_t value);

  public:
  // @@protoc_insertion_point(class_scope:opentelemetry.proto.resource.v1.Resource)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<2, 3,
                                   2, 0,
                                   2>
      _table_;

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const Resource& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue > attributes_;
    ::google::protobuf::RepeatedPtrField< ::opentelemetry::proto::common::v1::EntityRef > entity_refs_;
    ::uint32_t dropped_attributes_count_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto;
};

OPENTELEMETRY_PROTO_API extern const ::google::protobuf::internal::ClassDataFull Resource_class_data_;

// ===================================================================




// ===================================================================


#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// -------------------------------------------------------------------

// Resource

// repeated .opentelemetry.proto.common.v1.KeyValue attributes = 1;
inline int Resource::_internal_attributes_size() const {
  return _internal_attributes().size();
}
inline int Resource::attributes_size() const {
  return _internal_attributes_size();
}
inline ::opentelemetry::proto::common::v1::KeyValue* PROTOBUF_NONNULL Resource::mutable_attributes(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:opentelemetry.proto.resource.v1.Resource.attributes)
  return _internal_mutable_attributes()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::KeyValue>* PROTOBUF_NONNULL Resource::mutable_attributes()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:opentelemetry.proto.resource.v1.Resource.attributes)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_attributes();
}
inline const ::opentelemetry::proto::common::v1::KeyValue& Resource::attributes(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:opentelemetry.proto.resource.v1.Resource.attributes)
  return _internal_attributes().Get(index);
}
inline ::opentelemetry::proto::common::v1::KeyValue* PROTOBUF_NONNULL Resource::add_attributes()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::opentelemetry::proto::common::v1::KeyValue* _add =
      _internal_mutable_attributes()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:opentelemetry.proto.resource.v1.Resource.attributes)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::KeyValue>& Resource::attributes() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:opentelemetry.proto.resource.v1.Resource.attributes)
  return _internal_attributes();
}
inline const ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::KeyValue>&
Resource::_internal_attributes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.attributes_;
}
inline ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::KeyValue>* PROTOBUF_NONNULL
Resource::_internal_mutable_attributes() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.attributes_;
}

// uint32 dropped_attributes_count = 2;
inline void Resource::clear_dropped_attributes_count() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.dropped_attributes_count_ = 0u;
  ClearHasBit(_impl_._has_bits_[0],
                  0x00000004U);
}
inline ::uint32_t Resource::dropped_attributes_count() const {
  // @@protoc_insertion_point(field_get:opentelemetry.proto.resource.v1.Resource.dropped_attributes_count)
  return _internal_dropped_attributes_count();
}
inline void Resource::set_dropped_attributes_count(::uint32_t value) {
  _internal_set_dropped_attributes_count(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_set:opentelemetry.proto.resource.v1.Resource.dropped_attributes_count)
}
inline ::uint32_t Resource::_internal_dropped_attributes_count() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.dropped_attributes_count_;
}
inline void Resource::_internal_set_dropped_attributes_count(::uint32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.dropped_attributes_count_ = value;
}

// repeated .opentelemetry.proto.common.v1.EntityRef entity_refs = 3;
inline int Resource::_internal_entity_refs_size() const {
  return _internal_entity_refs().size();
}
inline int Resource::entity_refs_size() const {
  return _internal_entity_refs_size();
}
inline ::opentelemetry::proto::common::v1::EntityRef* PROTOBUF_NONNULL Resource::mutable_entity_refs(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:opentelemetry.proto.resource.v1.Resource.entity_refs)
  return _internal_mutable_entity_refs()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::EntityRef>* PROTOBUF_NONNULL Resource::mutable_entity_refs()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_mutable_list:opentelemetry.proto.resource.v1.Resource.entity_refs)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_entity_refs();
}
inline const ::opentelemetry::proto::common::v1::EntityRef& Resource::entity_refs(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:opentelemetry.proto.resource.v1.Resource.entity_refs)
  return _internal_entity_refs().Get(index);
}
inline ::opentelemetry::proto::common::v1::EntityRef* PROTOBUF_NONNULL Resource::add_entity_refs()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::opentelemetry::proto::common::v1::EntityRef* _add =
      _internal_mutable_entity_refs()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_add:opentelemetry.proto.resource.v1.Resource.entity_refs)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::EntityRef>& Resource::entity_refs() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:opentelemetry.proto.resource.v1.Resource.entity_refs)
  return _internal_entity_refs();
}
inline const ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::EntityRef>&
Resource::_internal_entity_refs() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.entity_refs_;
}
inline ::google::protobuf::RepeatedPtrField<::opentelemetry::proto::common::v1::EntityRef>* PROTOBUF_NONNULL
Resource::_internal_mutable_entity_refs() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.entity_refs_;
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace resource
}  // namespace proto
}  // namespace opentelemetry


// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"
// clang-format on

#endif  // opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto_2epb_2eh
