// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: components/optimization_guide/proto/push_notification.proto
// Protobuf C++ Version: 7.35.1

#ifndef components_2foptimization_5fguide_2fproto_2fpush_5fnotification_2eproto_2epb_2eh
#define components_2foptimization_5fguide_2fproto_2fpush_5fnotification_2eproto_2epb_2eh

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

// clang-format off
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 7035001
#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/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "components/optimization_guide/proto/common_types.pb.h"
#include "components/optimization_guide/proto/hints.pb.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_components_2foptimization_5fguide_2fproto_2fpush_5fnotification_2eproto

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 TableStruct_components_2foptimization_5fguide_2fproto_2fpush_5fnotification_2eproto {
  static const ::uint32_t offsets[];
};
namespace optimization_guide {
namespace proto {
class HintNotificationPayload;
struct HintNotificationPayloadGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern HintNotificationPayloadGlobalsTypeInternal HintNotificationPayload_globals_;
extern const ::google::protobuf::internal::ClassDataLite HintNotificationPayload_class_data_;
#else
extern const HintNotificationPayloadGlobalsTypeInternal HintNotificationPayload_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace proto
}  // namespace optimization_guide
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace optimization_guide {
namespace proto {

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


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

class  HintNotificationPayload final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:optimization_guide.proto.HintNotificationPayload) */ {
 public:
  inline HintNotificationPayload() : HintNotificationPayload(nullptr) {}
  ~HintNotificationPayload() PROTOBUF_FINAL;

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

  template <typename = void>
  explicit constexpr HintNotificationPayload(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

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

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const HintNotificationPayload& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<HintNotificationPayload>(&HintNotificationPayload_globals_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(HintNotificationPayload& a, HintNotificationPayload& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(HintNotificationPayload* 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(HintNotificationPayload* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  HintNotificationPayload* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<HintNotificationPayload>(arena);
  }
  void CopyFrom(const HintNotificationPayload& from);
  void MergeFrom(const HintNotificationPayload& from) { HintNotificationPayload::MergeImpl(*this, from); }

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

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

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::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
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

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

  explicit HintNotificationPayload(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  HintNotificationPayload(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HintNotificationPayload& from);
  HintNotificationPayload(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, HintNotificationPayload&& from) noexcept
      : HintNotificationPayload(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_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kHintKeyFieldNumber = 3,
    kPayloadFieldNumber = 4,
    kOptimizationTypeFieldNumber = 1,
    kKeyRepresentationFieldNumber = 2,
  };
  // optional string hint_key = 3;
  bool has_hint_key()
      const;
  void clear_hint_key() ;
  const ::std::string& hint_key() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_hint_key(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_hint_key();
  ::std::string* PROTOBUF_NULLABLE release_hint_key();
  void set_allocated_hint_key(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_hint_key() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_hint_key(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_hint_key();

  public:
  // optional .optimization_guide.proto.Any payload = 4;
  bool has_payload()
      const;
  void clear_payload() ;
  const ::optimization_guide::proto::Any& payload() const;
  ::optimization_guide::proto::Any* PROTOBUF_NULLABLE release_payload();
  ::optimization_guide::proto::Any* PROTOBUF_NONNULL mutable_payload();
  void set_allocated_payload(::optimization_guide::proto::Any* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_payload(::optimization_guide::proto::Any* PROTOBUF_NULLABLE value);
  ::optimization_guide::proto::Any* PROTOBUF_NULLABLE unsafe_arena_release_payload();

  private:
  const ::optimization_guide::proto::Any& _internal_payload() const;
  ::optimization_guide::proto::Any* PROTOBUF_NONNULL _internal_mutable_payload();

  public:
  // optional .optimization_guide.proto.OptimizationType optimization_type = 1;
  bool has_optimization_type()
      const;
  void clear_optimization_type() ;
  ::optimization_guide::proto::OptimizationType optimization_type() const;
  void set_optimization_type(::optimization_guide::proto::OptimizationType value);

  private:
  ::optimization_guide::proto::OptimizationType _internal_optimization_type() const;
  void _internal_set_optimization_type(::optimization_guide::proto::OptimizationType value);

  public:
  // optional .optimization_guide.proto.KeyRepresentation key_representation = 2;
  bool has_key_representation()
      const;
  void clear_key_representation() ;
  ::optimization_guide::proto::KeyRepresentation key_representation() const;
  void set_key_representation(::optimization_guide::proto::KeyRepresentation value);

  private:
  ::optimization_guide::proto::KeyRepresentation _internal_key_representation() const;
  void _internal_set_key_representation(::optimization_guide::proto::KeyRepresentation value);

  public:
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.HintNotificationPayload)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<2, 4,
                          3, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  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 HintNotificationPayload& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr hint_key_;
    ::optimization_guide::proto::Any* PROTOBUF_NULLABLE payload_;
    int optimization_type_;
    int key_representation_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2fpush_5fnotification_2eproto;
};

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




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


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

// HintNotificationPayload

// optional .optimization_guide.proto.OptimizationType optimization_type = 1;
inline bool HintNotificationPayload::has_optimization_type() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void HintNotificationPayload::clear_optimization_type() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.optimization_type_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline ::optimization_guide::proto::OptimizationType HintNotificationPayload::optimization_type() const {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.HintNotificationPayload.optimization_type)
  return _internal_optimization_type();
}
inline void HintNotificationPayload::set_optimization_type(::optimization_guide::proto::OptimizationType value) {
  _internal_set_optimization_type(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_set:optimization_guide.proto.HintNotificationPayload.optimization_type)
}
inline ::optimization_guide::proto::OptimizationType HintNotificationPayload::_internal_optimization_type() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::optimization_guide::proto::OptimizationType>(_impl_.optimization_type_);
}
inline void HintNotificationPayload::_internal_set_optimization_type(::optimization_guide::proto::OptimizationType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::optimization_guide::proto::OptimizationType_internal_data_));
                                          _impl_.optimization_type_ = value;
}

// optional .optimization_guide.proto.KeyRepresentation key_representation = 2;
inline bool HintNotificationPayload::has_key_representation() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void HintNotificationPayload::clear_key_representation() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.key_representation_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline ::optimization_guide::proto::KeyRepresentation HintNotificationPayload::key_representation() const {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.HintNotificationPayload.key_representation)
  return _internal_key_representation();
}
inline void HintNotificationPayload::set_key_representation(::optimization_guide::proto::KeyRepresentation value) {
  _internal_set_key_representation(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:optimization_guide.proto.HintNotificationPayload.key_representation)
}
inline ::optimization_guide::proto::KeyRepresentation HintNotificationPayload::_internal_key_representation() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::optimization_guide::proto::KeyRepresentation>(_impl_.key_representation_);
}
inline void HintNotificationPayload::_internal_set_key_representation(::optimization_guide::proto::KeyRepresentation value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::optimization_guide::proto::KeyRepresentation_internal_data_));
                                          _impl_.key_representation_ = value;
}

// optional string hint_key = 3;
inline bool HintNotificationPayload::has_hint_key() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void HintNotificationPayload::clear_hint_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.hint_key_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& HintNotificationPayload::hint_key() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.HintNotificationPayload.hint_key)
  return _internal_hint_key();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void HintNotificationPayload::set_hint_key(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.hint_key_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:optimization_guide.proto.HintNotificationPayload.hint_key)
}
inline ::std::string* PROTOBUF_NONNULL HintNotificationPayload::mutable_hint_key()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_hint_key();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.HintNotificationPayload.hint_key)
  return _s;
}
inline const ::std::string& HintNotificationPayload::_internal_hint_key() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.hint_key_.Get();
}
inline void HintNotificationPayload::_internal_set_hint_key(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.hint_key_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL HintNotificationPayload::_internal_mutable_hint_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.hint_key_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE HintNotificationPayload::release_hint_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.HintNotificationPayload.hint_key)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.hint_key_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.hint_key_.Set("", GetArena());
  }
  return released;
}
inline void HintNotificationPayload::set_allocated_hint_key(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  _impl_.hint_key_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hint_key_.IsDefault()) {
    _impl_.hint_key_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.HintNotificationPayload.hint_key)
}

// optional .optimization_guide.proto.Any payload = 4;
inline bool HintNotificationPayload::has_payload() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  PROTOBUF_ASSUME(!value || _impl_.payload_ != nullptr);
  return value;
}
inline const ::optimization_guide::proto::Any& HintNotificationPayload::_internal_payload() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::optimization_guide::proto::Any* p = _impl_.payload_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::optimization_guide::proto::Any>(&::optimization_guide::proto::Any_globals_);
}
inline const ::optimization_guide::proto::Any& HintNotificationPayload::payload() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.HintNotificationPayload.payload)
  return _internal_payload();
}
inline void HintNotificationPayload::unsafe_arena_set_allocated_payload(
    ::optimization_guide::proto::Any* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_);
  }
  _impl_.payload_ = reinterpret_cast<::optimization_guide::proto::Any*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:optimization_guide.proto.HintNotificationPayload.payload)
}
inline ::optimization_guide::proto::Any* PROTOBUF_NULLABLE HintNotificationPayload::release_payload() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::optimization_guide::proto::Any* released = _impl_.payload_;
  _impl_.payload_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::optimization_guide::proto::Any* PROTOBUF_NULLABLE HintNotificationPayload::unsafe_arena_release_payload() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.HintNotificationPayload.payload)

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::optimization_guide::proto::Any* temp = _impl_.payload_;
  _impl_.payload_ = nullptr;
  return temp;
}
inline ::optimization_guide::proto::Any* PROTOBUF_NONNULL HintNotificationPayload::_internal_mutable_payload() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.payload_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::optimization_guide::proto::Any>(GetArena());
    _impl_.payload_ = reinterpret_cast<::optimization_guide::proto::Any*>(p);
  }
  return _impl_.payload_;
}
inline ::optimization_guide::proto::Any* PROTOBUF_NONNULL HintNotificationPayload::mutable_payload()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::optimization_guide::proto::Any* _msg = _internal_mutable_payload();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.HintNotificationPayload.payload)
  return _msg;
}
inline void HintNotificationPayload::set_allocated_payload(::optimization_guide::proto::Any* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.payload_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }

  _impl_.payload_ = reinterpret_cast<::optimization_guide::proto::Any*>(value);
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.HintNotificationPayload.payload)
}

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

// @@protoc_insertion_point(namespace_scope)
}  // namespace proto
}  // namespace optimization_guide


// @@protoc_insertion_point(global_scope)

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

#endif  // components_2foptimization_5fguide_2fproto_2fpush_5fnotification_2eproto_2epb_2eh
