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

#ifndef components_2fcommerce_2fcore_2fproto_2fdiscounts_2eproto_2epb_2eh
#define components_2fcommerce_2fcore_2fproto_2fdiscounts_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 "google/protobuf/generated_enum_util.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_components_2fcommerce_2fcore_2fproto_2fdiscounts_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_2fcommerce_2fcore_2fproto_2fdiscounts_2eproto {
  static const ::uint32_t offsets[];
};
namespace commerce {
enum DiscountCluster_ClusterType : int;
extern const uint32_t DiscountCluster_ClusterType_internal_data_[];
enum Discount_Type : int;
extern const uint32_t Discount_Type_internal_data_[];
class Discount;
struct DiscountGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern DiscountGlobalsTypeInternal Discount_globals_;
extern const ::google::protobuf::internal::ClassDataLite Discount_class_data_;
#else
extern const DiscountGlobalsTypeInternal Discount_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class DiscountCluster;
struct DiscountClusterGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern DiscountClusterGlobalsTypeInternal DiscountCluster_globals_;
extern const ::google::protobuf::internal::ClassDataLite DiscountCluster_class_data_;
#else
extern const DiscountClusterGlobalsTypeInternal DiscountCluster_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class Discount_Description;
struct Discount_DescriptionGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern Discount_DescriptionGlobalsTypeInternal Discount_Description_globals_;
extern const ::google::protobuf::internal::ClassDataLite Discount_Description_class_data_;
#else
extern const Discount_DescriptionGlobalsTypeInternal Discount_Description_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class DiscountsData;
struct DiscountsDataGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern DiscountsDataGlobalsTypeInternal DiscountsData_globals_;
extern const ::google::protobuf::internal::ClassDataLite DiscountsData_class_data_;
#else
extern const DiscountsDataGlobalsTypeInternal DiscountsData_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace commerce
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::commerce::DiscountCluster_ClusterType_internal_data_>
    internal::EnumTraitsImpl::value<::commerce::DiscountCluster_ClusterType>;
template <>
internal::EnumTraitsT<::commerce::Discount_Type_internal_data_>
    internal::EnumTraitsImpl::value<::commerce::Discount_Type>;
}  // namespace protobuf
}  // namespace google

namespace commerce {
enum DiscountCluster_ClusterType : int {
  DiscountCluster_ClusterType_TYPE_UNSPECIFIED = 0,
  DiscountCluster_ClusterType_OFFER_LEVEL = 1,
  DiscountCluster_ClusterType_PAGE_LEVEL = 2,
};

extern const uint32_t DiscountCluster_ClusterType_internal_data_[];
inline constexpr DiscountCluster_ClusterType DiscountCluster_ClusterType_ClusterType_MIN =
    static_cast<DiscountCluster_ClusterType>(0);
inline constexpr DiscountCluster_ClusterType DiscountCluster_ClusterType_ClusterType_MAX =
    static_cast<DiscountCluster_ClusterType>(2);
inline bool DiscountCluster_ClusterType_IsValid(int value) {
  return 0 <= value && value <= 2;
}
inline constexpr int DiscountCluster_ClusterType_ClusterType_ARRAYSIZE = 2 + 1;
const ::std::string& DiscountCluster_ClusterType_Name(DiscountCluster_ClusterType value);
template <typename T>
const ::std::string& DiscountCluster_ClusterType_Name(T value) {
  static_assert(::std::is_same<T, DiscountCluster_ClusterType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to ClusterType_Name().");
  return DiscountCluster_ClusterType_Name(static_cast<DiscountCluster_ClusterType>(value));
}
bool DiscountCluster_ClusterType_Parse(
    ::absl::string_view name, DiscountCluster_ClusterType* PROTOBUF_NONNULL value);
enum Discount_Type : int {
  Discount_Type_TYPE_UNSPECIFIED = 0,
  Discount_Type_FREE_LISTING_WITH_CODE = 1,
  Discount_Type_CRAWLED_PROMOTION = 2,
};

extern const uint32_t Discount_Type_internal_data_[];
inline constexpr Discount_Type Discount_Type_Type_MIN =
    static_cast<Discount_Type>(0);
inline constexpr Discount_Type Discount_Type_Type_MAX =
    static_cast<Discount_Type>(2);
inline bool Discount_Type_IsValid(int value) {
  return 0 <= value && value <= 2;
}
inline constexpr int Discount_Type_Type_ARRAYSIZE = 2 + 1;
const ::std::string& Discount_Type_Name(Discount_Type value);
template <typename T>
const ::std::string& Discount_Type_Name(T value) {
  static_assert(::std::is_same<T, Discount_Type>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to Type_Name().");
  return Discount_Type_Name(static_cast<Discount_Type>(value));
}
bool Discount_Type_Parse(
    ::absl::string_view name, Discount_Type* PROTOBUF_NONNULL value);
using ::google::protobuf::internal::generated_enum::AbslParseFlag;
using ::google::protobuf::internal::generated_enum::AbslUnparseFlag;

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


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

class  Discount_Description final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:commerce.Discount.Description) */ {
 public:
  inline Discount_Description() : Discount_Description(nullptr) {}
  ~Discount_Description() PROTOBUF_FINAL;

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

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

  inline Discount_Description(const Discount_Description& from) : Discount_Description(nullptr, from) {}
  inline Discount_Description(Discount_Description&& from) noexcept : Discount_Description(nullptr, ::std::move(from)) {}
  inline Discount_Description& operator=(const Discount_Description& from) {
    CopyFrom(from);
    return *this;
  }
  inline Discount_Description& operator=(Discount_Description&& 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 Discount_Description& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<Discount_Description>(&Discount_Description_globals_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(Discount_Description& a, Discount_Description& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(Discount_Description* 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(Discount_Description* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  Discount_Description* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<Discount_Description>(arena);
  }
  void CopyFrom(const Discount_Description& from);
  void MergeFrom(const Discount_Description& from) { Discount_Description::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(Discount_Description* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "commerce.Discount.Description"; }

  explicit Discount_Description(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  Discount_Description(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discount_Description& from);
  Discount_Description(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discount_Description&& from) noexcept
      : Discount_Description(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 {
    kLanguageCodeFieldNumber = 1,
    kDetailFieldNumber = 2,
    kTermsAndConditionsFieldNumber = 3,
    kValueTextFieldNumber = 4,
  };
  // optional string language_code = 1;
  bool has_language_code()
      const;
  void clear_language_code() ;
  const ::std::string& language_code() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_language_code(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_language_code();
  ::std::string* PROTOBUF_NULLABLE release_language_code();
  void set_allocated_language_code(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_language_code() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_language_code(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_language_code();

  public:
  // optional string detail = 2;
  bool has_detail()
      const;
  void clear_detail() ;
  const ::std::string& detail() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_detail(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_detail();
  ::std::string* PROTOBUF_NULLABLE release_detail();
  void set_allocated_detail(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_detail() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_detail(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_detail();

  public:
  // optional string terms_and_conditions = 3;
  bool has_terms_and_conditions()
      const;
  void clear_terms_and_conditions() ;
  const ::std::string& terms_and_conditions() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_terms_and_conditions(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_terms_and_conditions();
  ::std::string* PROTOBUF_NULLABLE release_terms_and_conditions();
  void set_allocated_terms_and_conditions(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_terms_and_conditions() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_terms_and_conditions(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_terms_and_conditions();

  public:
  // optional string value_text = 4;
  bool has_value_text()
      const;
  void clear_value_text() ;
  const ::std::string& value_text() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_value_text(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_value_text();
  ::std::string* PROTOBUF_NULLABLE release_value_text();
  void set_allocated_value_text(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_value_text() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_value_text(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_value_text();

  public:
  // @@protoc_insertion_point(class_scope:commerce.Discount.Description)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<2, 4,
                          0, 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 Discount_Description& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr language_code_;
    ::google::protobuf::internal::ArenaStringPtr detail_;
    ::google::protobuf::internal::ArenaStringPtr terms_and_conditions_;
    ::google::protobuf::internal::ArenaStringPtr value_text_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fcommerce_2fcore_2fproto_2fdiscounts_2eproto;
};
// -------------------------------------------------------------------

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

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

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

  inline Discount(const Discount& from) : Discount(nullptr, from) {}
  inline Discount(Discount&& from) noexcept : Discount(nullptr, ::std::move(from)) {}
  inline Discount& operator=(const Discount& from) {
    CopyFrom(from);
    return *this;
  }
  inline Discount& operator=(Discount&& 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 Discount& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<Discount>(&Discount_globals_);
  }
  static constexpr int kIndexInFileMessages = 3;
  friend void swap(Discount& a, Discount& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(Discount* 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(Discount* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  Discount* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<Discount>(arena);
  }
  void CopyFrom(const Discount& from);
  void MergeFrom(const Discount& from) { Discount::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(Discount* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "commerce.Discount"; }

  explicit Discount(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  Discount(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discount& from);
  Discount(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discount&& from) noexcept
      : Discount(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 ----------------------------------------------------
  using Description = Discount_Description;
  using Type = Discount_Type;
  static constexpr Type TYPE_UNSPECIFIED = Discount_Type_TYPE_UNSPECIFIED;
  static constexpr Type FREE_LISTING_WITH_CODE = Discount_Type_FREE_LISTING_WITH_CODE;
  static constexpr Type CRAWLED_PROMOTION = Discount_Type_CRAWLED_PROMOTION;
  static inline bool Type_IsValid(int value) {
    return Discount_Type_IsValid(value);
  }
  static constexpr Type Type_MIN = Discount_Type_Type_MIN;
  static constexpr Type Type_MAX = Discount_Type_Type_MAX;
  static constexpr int Type_ARRAYSIZE = Discount_Type_Type_ARRAYSIZE;
  template <typename T>
  static inline const ::std::string& Type_Name(T value) {
    return Discount_Type_Name(value);
  }
  static inline bool Type_Parse(
      ::absl::string_view name, Type* PROTOBUF_NONNULL value) {
    return Discount_Type_Parse(name, value);
  }

  // accessors -------------------------------------------------------
  enum : int {
    kDiscountCodeFieldNumber = 6,
    kDescriptionFieldNumber = 3,
    kIdFieldNumber = 1,
    kTypeFieldNumber = 2,
    kIsMerchantWideFieldNumber = 5,
    kExpiryTimeSecFieldNumber = 4,
    kOfferIdFieldNumber = 7,
  };
  // optional string discount_code = 6;
  bool has_discount_code()
      const;
  void clear_discount_code() ;
  const ::std::string& discount_code() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_discount_code(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_discount_code();
  ::std::string* PROTOBUF_NULLABLE release_discount_code();
  void set_allocated_discount_code(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_discount_code() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_discount_code(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_discount_code();

  public:
  // optional .commerce.Discount.Description description = 3;
  bool has_description()
      const;
  void clear_description() ;
  const ::commerce::Discount_Description& description() const;
  ::commerce::Discount_Description* PROTOBUF_NULLABLE release_description();
  ::commerce::Discount_Description* PROTOBUF_NONNULL mutable_description();
  void set_allocated_description(::commerce::Discount_Description* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_description(::commerce::Discount_Description* PROTOBUF_NULLABLE value);
  ::commerce::Discount_Description* PROTOBUF_NULLABLE unsafe_arena_release_description();

  private:
  const ::commerce::Discount_Description& _internal_description() const;
  ::commerce::Discount_Description* PROTOBUF_NONNULL _internal_mutable_description();

  public:
  // optional uint64 id = 1;
  bool has_id()
      const;
  void clear_id() ;
  ::uint64_t id() const;
  void set_id(::uint64_t value);

  private:
  ::uint64_t _internal_id() const;
  void _internal_set_id(::uint64_t value);

  public:
  // optional .commerce.Discount.Type type = 2;
  bool has_type()
      const;
  void clear_type() ;
  ::commerce::Discount_Type type() const;
  void set_type(::commerce::Discount_Type value);

  private:
  ::commerce::Discount_Type _internal_type() const;
  void _internal_set_type(::commerce::Discount_Type value);

  public:
  // optional bool is_merchant_wide = 5;
  bool has_is_merchant_wide()
      const;
  void clear_is_merchant_wide() ;
  bool is_merchant_wide() const;
  void set_is_merchant_wide(bool value);

  private:
  bool _internal_is_merchant_wide() const;
  void _internal_set_is_merchant_wide(bool value);

  public:
  // optional double expiry_time_sec = 4;
  bool has_expiry_time_sec()
      const;
  void clear_expiry_time_sec() ;
  double expiry_time_sec() const;
  void set_expiry_time_sec(double value);

  private:
  double _internal_expiry_time_sec() const;
  void _internal_set_expiry_time_sec(double value);

  public:
  // optional fixed64 offer_id = 7;
  bool has_offer_id()
      const;
  void clear_offer_id() ;
  ::uint64_t offer_id() const;
  void set_offer_id(::uint64_t value);

  private:
  ::uint64_t _internal_offer_id() const;
  void _internal_set_offer_id(::uint64_t value);

  public:
  // @@protoc_insertion_point(class_scope:commerce.Discount)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<3, 7,
                          2, 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 Discount& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr discount_code_;
    ::commerce::Discount_Description* PROTOBUF_NULLABLE description_;
    ::uint64_t id_;
    int type_;
    bool is_merchant_wide_;
    double expiry_time_sec_;
    ::uint64_t offer_id_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fcommerce_2fcore_2fproto_2fdiscounts_2eproto;
};
// -------------------------------------------------------------------

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

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

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

  inline DiscountCluster(const DiscountCluster& from) : DiscountCluster(nullptr, from) {}
  inline DiscountCluster(DiscountCluster&& from) noexcept : DiscountCluster(nullptr, ::std::move(from)) {}
  inline DiscountCluster& operator=(const DiscountCluster& from) {
    CopyFrom(from);
    return *this;
  }
  inline DiscountCluster& operator=(DiscountCluster&& 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 DiscountCluster& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<DiscountCluster>(&DiscountCluster_globals_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(DiscountCluster& a, DiscountCluster& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(DiscountCluster* 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(DiscountCluster* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  DiscountCluster* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<DiscountCluster>(arena);
  }
  void CopyFrom(const DiscountCluster& from);
  void MergeFrom(const DiscountCluster& from) { DiscountCluster::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(DiscountCluster* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "commerce.DiscountCluster"; }

  explicit DiscountCluster(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  DiscountCluster(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DiscountCluster& from);
  DiscountCluster(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DiscountCluster&& from) noexcept
      : DiscountCluster(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 ----------------------------------------------------
  using ClusterType = DiscountCluster_ClusterType;
  static constexpr ClusterType TYPE_UNSPECIFIED = DiscountCluster_ClusterType_TYPE_UNSPECIFIED;
  static constexpr ClusterType OFFER_LEVEL = DiscountCluster_ClusterType_OFFER_LEVEL;
  static constexpr ClusterType PAGE_LEVEL = DiscountCluster_ClusterType_PAGE_LEVEL;
  static inline bool ClusterType_IsValid(int value) {
    return DiscountCluster_ClusterType_IsValid(value);
  }
  static constexpr ClusterType ClusterType_MIN = DiscountCluster_ClusterType_ClusterType_MIN;
  static constexpr ClusterType ClusterType_MAX = DiscountCluster_ClusterType_ClusterType_MAX;
  static constexpr int ClusterType_ARRAYSIZE = DiscountCluster_ClusterType_ClusterType_ARRAYSIZE;
  template <typename T>
  static inline const ::std::string& ClusterType_Name(T value) {
    return DiscountCluster_ClusterType_Name(value);
  }
  static inline bool ClusterType_Parse(
      ::absl::string_view name, ClusterType* PROTOBUF_NONNULL value) {
    return DiscountCluster_ClusterType_Parse(name, value);
  }

  // accessors -------------------------------------------------------
  enum : int {
    kDiscountsFieldNumber = 2,
    kClusterTypeFieldNumber = 1,
  };
  // repeated .commerce.Discount discounts = 2;
  int discounts_size()
      const;
  private:
  int _internal_discounts_size() const;

  public:
  void clear_discounts() ;
  const ::commerce::Discount& discounts(int index) const;
  ::commerce::Discount* PROTOBUF_NONNULL mutable_discounts(int index);
  ::commerce::Discount* PROTOBUF_NONNULL add_discounts();
  const ::google::protobuf::RepeatedPtrField<::commerce::Discount>&
  discounts() const;
  ::google::protobuf::RepeatedPtrField<::commerce::Discount>* PROTOBUF_NONNULL
  mutable_discounts();

  private:
  const ::google::protobuf::RepeatedPtrField<::commerce::Discount>& _internal_discounts() const;
  ::google::protobuf::RepeatedPtrField<::commerce::Discount>* PROTOBUF_NONNULL _internal_mutable_discounts();

  public:
  // optional .commerce.DiscountCluster.ClusterType cluster_type = 1;
  bool has_cluster_type()
      const;
  void clear_cluster_type() ;
  ::commerce::DiscountCluster_ClusterType cluster_type() const;
  void set_cluster_type(::commerce::DiscountCluster_ClusterType value);

  private:
  ::commerce::DiscountCluster_ClusterType _internal_cluster_type() const;
  void _internal_set_cluster_type(::commerce::DiscountCluster_ClusterType value);

  public:
  // @@protoc_insertion_point(class_scope:commerce.DiscountCluster)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<1, 2,
                          2, 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 DiscountCluster& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::commerce::Discount > discounts_;
    int cluster_type_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fcommerce_2fcore_2fproto_2fdiscounts_2eproto;
};
// -------------------------------------------------------------------

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

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

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

  inline DiscountsData(const DiscountsData& from) : DiscountsData(nullptr, from) {}
  inline DiscountsData(DiscountsData&& from) noexcept : DiscountsData(nullptr, ::std::move(from)) {}
  inline DiscountsData& operator=(const DiscountsData& from) {
    CopyFrom(from);
    return *this;
  }
  inline DiscountsData& operator=(DiscountsData&& 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 DiscountsData& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<DiscountsData>(&DiscountsData_globals_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(DiscountsData& a, DiscountsData& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(DiscountsData* 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(DiscountsData* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  DiscountsData* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<DiscountsData>(arena);
  }
  void CopyFrom(const DiscountsData& from);
  void MergeFrom(const DiscountsData& from) { DiscountsData::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(DiscountsData* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "commerce.DiscountsData"; }

  explicit DiscountsData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  DiscountsData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DiscountsData& from);
  DiscountsData(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DiscountsData&& from) noexcept
      : DiscountsData(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 {
    kDiscountClustersFieldNumber = 1,
  };
  // repeated .commerce.DiscountCluster discount_clusters = 1;
  int discount_clusters_size()
      const;
  private:
  int _internal_discount_clusters_size() const;

  public:
  void clear_discount_clusters() ;
  const ::commerce::DiscountCluster& discount_clusters(int index) const;
  ::commerce::DiscountCluster* PROTOBUF_NONNULL mutable_discount_clusters(int index);
  ::commerce::DiscountCluster* PROTOBUF_NONNULL add_discount_clusters();
  const ::google::protobuf::RepeatedPtrField<::commerce::DiscountCluster>&
  discount_clusters() const;
  ::google::protobuf::RepeatedPtrField<::commerce::DiscountCluster>* PROTOBUF_NONNULL
  mutable_discount_clusters();

  private:
  const ::google::protobuf::RepeatedPtrField<::commerce::DiscountCluster>& _internal_discount_clusters() const;
  ::google::protobuf::RepeatedPtrField<::commerce::DiscountCluster>* PROTOBUF_NONNULL _internal_mutable_discount_clusters();

  public:
  // @@protoc_insertion_point(class_scope:commerce.DiscountsData)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<0, 1,
                          1, 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 DiscountsData& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::commerce::DiscountCluster > discount_clusters_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fcommerce_2fcore_2fproto_2fdiscounts_2eproto;
};

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




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


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

// DiscountsData

// repeated .commerce.DiscountCluster discount_clusters = 1;
inline int DiscountsData::_internal_discount_clusters_size() const {
  return _internal_discount_clusters().size();
}
inline int DiscountsData::discount_clusters_size() const {
  return _internal_discount_clusters_size();
}
inline void DiscountsData::clear_discount_clusters() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.discount_clusters_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::commerce::DiscountCluster& DiscountsData::discount_clusters(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:commerce.DiscountsData.discount_clusters)
  return _internal_discount_clusters().Get(index);
}
inline ::commerce::DiscountCluster* PROTOBUF_NONNULL DiscountsData::mutable_discount_clusters(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:commerce.DiscountsData.discount_clusters)
  return _internal_mutable_discount_clusters()->Mutable(index);
}
inline ::commerce::DiscountCluster* PROTOBUF_NONNULL DiscountsData::add_discount_clusters()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::commerce::DiscountCluster* _add =
      _internal_mutable_discount_clusters()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:commerce.DiscountsData.discount_clusters)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::commerce::DiscountCluster>& DiscountsData::discount_clusters() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:commerce.DiscountsData.discount_clusters)
  return _internal_discount_clusters();
}
inline ::google::protobuf::RepeatedPtrField<::commerce::DiscountCluster>* PROTOBUF_NONNULL
DiscountsData::mutable_discount_clusters() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:commerce.DiscountsData.discount_clusters)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_discount_clusters();
}
inline const ::google::protobuf::RepeatedPtrField<::commerce::DiscountCluster>&
DiscountsData::_internal_discount_clusters() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.discount_clusters_;
}
inline ::google::protobuf::RepeatedPtrField<::commerce::DiscountCluster>* PROTOBUF_NONNULL
DiscountsData::_internal_mutable_discount_clusters() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.discount_clusters_;
}

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

// DiscountCluster

// optional .commerce.DiscountCluster.ClusterType cluster_type = 1;
inline bool DiscountCluster::has_cluster_type() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void DiscountCluster::clear_cluster_type() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.cluster_type_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline ::commerce::DiscountCluster_ClusterType DiscountCluster::cluster_type() const {
  // @@protoc_insertion_point(field_get:commerce.DiscountCluster.cluster_type)
  return _internal_cluster_type();
}
inline void DiscountCluster::set_cluster_type(::commerce::DiscountCluster_ClusterType value) {
  _internal_set_cluster_type(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_set:commerce.DiscountCluster.cluster_type)
}
inline ::commerce::DiscountCluster_ClusterType DiscountCluster::_internal_cluster_type() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::commerce::DiscountCluster_ClusterType>(_impl_.cluster_type_);
}
inline void DiscountCluster::_internal_set_cluster_type(::commerce::DiscountCluster_ClusterType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::commerce::DiscountCluster_ClusterType_internal_data_));
                                          _impl_.cluster_type_ = value;
}

// repeated .commerce.Discount discounts = 2;
inline int DiscountCluster::_internal_discounts_size() const {
  return _internal_discounts().size();
}
inline int DiscountCluster::discounts_size() const {
  return _internal_discounts_size();
}
inline void DiscountCluster::clear_discounts() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.discounts_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::commerce::Discount& DiscountCluster::discounts(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:commerce.DiscountCluster.discounts)
  return _internal_discounts().Get(index);
}
inline ::commerce::Discount* PROTOBUF_NONNULL DiscountCluster::mutable_discounts(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:commerce.DiscountCluster.discounts)
  return _internal_mutable_discounts()->Mutable(index);
}
inline ::commerce::Discount* PROTOBUF_NONNULL DiscountCluster::add_discounts()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::commerce::Discount* _add =
      _internal_mutable_discounts()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:commerce.DiscountCluster.discounts)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::commerce::Discount>& DiscountCluster::discounts() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:commerce.DiscountCluster.discounts)
  return _internal_discounts();
}
inline ::google::protobuf::RepeatedPtrField<::commerce::Discount>* PROTOBUF_NONNULL
DiscountCluster::mutable_discounts() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:commerce.DiscountCluster.discounts)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_discounts();
}
inline const ::google::protobuf::RepeatedPtrField<::commerce::Discount>&
DiscountCluster::_internal_discounts() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.discounts_;
}
inline ::google::protobuf::RepeatedPtrField<::commerce::Discount>* PROTOBUF_NONNULL
DiscountCluster::_internal_mutable_discounts() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.discounts_;
}

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

// Discount_Description

// optional string language_code = 1;
inline bool Discount_Description::has_language_code() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void Discount_Description::clear_language_code() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.language_code_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& Discount_Description::language_code() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:commerce.Discount.Description.language_code)
  return _internal_language_code();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Discount_Description::set_language_code(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.language_code_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:commerce.Discount.Description.language_code)
}
inline ::std::string* PROTOBUF_NONNULL Discount_Description::mutable_language_code()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_language_code();
  // @@protoc_insertion_point(field_mutable:commerce.Discount.Description.language_code)
  return _s;
}
inline const ::std::string& Discount_Description::_internal_language_code() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.language_code_.Get();
}
inline void Discount_Description::_internal_set_language_code(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.language_code_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Discount_Description::_internal_mutable_language_code() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.language_code_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Discount_Description::release_language_code() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:commerce.Discount.Description.language_code)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.language_code_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.language_code_.Set("", GetArena());
  }
  return released;
}
inline void Discount_Description::set_allocated_language_code(::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_.language_code_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.language_code_.IsDefault()) {
    _impl_.language_code_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:commerce.Discount.Description.language_code)
}

// optional string detail = 2;
inline bool Discount_Description::has_detail() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void Discount_Description::clear_detail() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.detail_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::std::string& Discount_Description::detail() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:commerce.Discount.Description.detail)
  return _internal_detail();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Discount_Description::set_detail(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  _impl_.detail_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:commerce.Discount.Description.detail)
}
inline ::std::string* PROTOBUF_NONNULL Discount_Description::mutable_detail()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::std::string* _s = _internal_mutable_detail();
  // @@protoc_insertion_point(field_mutable:commerce.Discount.Description.detail)
  return _s;
}
inline const ::std::string& Discount_Description::_internal_detail() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.detail_.Get();
}
inline void Discount_Description::_internal_set_detail(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.detail_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Discount_Description::_internal_mutable_detail() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.detail_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Discount_Description::release_detail() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:commerce.Discount.Description.detail)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  auto* released = _impl_.detail_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.detail_.Set("", GetArena());
  }
  return released;
}
inline void Discount_Description::set_allocated_detail(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  _impl_.detail_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.detail_.IsDefault()) {
    _impl_.detail_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:commerce.Discount.Description.detail)
}

// optional string terms_and_conditions = 3;
inline bool Discount_Description::has_terms_and_conditions() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void Discount_Description::clear_terms_and_conditions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.terms_and_conditions_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline const ::std::string& Discount_Description::terms_and_conditions() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:commerce.Discount.Description.terms_and_conditions)
  return _internal_terms_and_conditions();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Discount_Description::set_terms_and_conditions(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  _impl_.terms_and_conditions_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:commerce.Discount.Description.terms_and_conditions)
}
inline ::std::string* PROTOBUF_NONNULL Discount_Description::mutable_terms_and_conditions()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::std::string* _s = _internal_mutable_terms_and_conditions();
  // @@protoc_insertion_point(field_mutable:commerce.Discount.Description.terms_and_conditions)
  return _s;
}
inline const ::std::string& Discount_Description::_internal_terms_and_conditions() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.terms_and_conditions_.Get();
}
inline void Discount_Description::_internal_set_terms_and_conditions(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.terms_and_conditions_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Discount_Description::_internal_mutable_terms_and_conditions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.terms_and_conditions_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Discount_Description::release_terms_and_conditions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:commerce.Discount.Description.terms_and_conditions)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  auto* released = _impl_.terms_and_conditions_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.terms_and_conditions_.Set("", GetArena());
  }
  return released;
}
inline void Discount_Description::set_allocated_terms_and_conditions(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }
  _impl_.terms_and_conditions_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.terms_and_conditions_.IsDefault()) {
    _impl_.terms_and_conditions_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:commerce.Discount.Description.terms_and_conditions)
}

// optional string value_text = 4;
inline bool Discount_Description::has_value_text() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void Discount_Description::clear_value_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.value_text_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline const ::std::string& Discount_Description::value_text() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:commerce.Discount.Description.value_text)
  return _internal_value_text();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Discount_Description::set_value_text(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  _impl_.value_text_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:commerce.Discount.Description.value_text)
}
inline ::std::string* PROTOBUF_NONNULL Discount_Description::mutable_value_text()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  ::std::string* _s = _internal_mutable_value_text();
  // @@protoc_insertion_point(field_mutable:commerce.Discount.Description.value_text)
  return _s;
}
inline const ::std::string& Discount_Description::_internal_value_text() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.value_text_.Get();
}
inline void Discount_Description::_internal_set_value_text(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.value_text_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Discount_Description::_internal_mutable_value_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.value_text_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Discount_Description::release_value_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:commerce.Discount.Description.value_text)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  auto* released = _impl_.value_text_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.value_text_.Set("", GetArena());
  }
  return released;
}
inline void Discount_Description::set_allocated_value_text(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  }
  _impl_.value_text_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_text_.IsDefault()) {
    _impl_.value_text_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:commerce.Discount.Description.value_text)
}

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

// Discount

// optional uint64 id = 1;
inline bool Discount::has_id() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void Discount::clear_id() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.id_ = ::uint64_t{0u};
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline ::uint64_t Discount::id() const {
  // @@protoc_insertion_point(field_get:commerce.Discount.id)
  return _internal_id();
}
inline void Discount::set_id(::uint64_t value) {
  _internal_set_id(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_set:commerce.Discount.id)
}
inline ::uint64_t Discount::_internal_id() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.id_;
}
inline void Discount::_internal_set_id(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.id_ = value;
}

// optional .commerce.Discount.Type type = 2;
inline bool Discount::has_type() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void Discount::clear_type() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.type_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline ::commerce::Discount_Type Discount::type() const {
  // @@protoc_insertion_point(field_get:commerce.Discount.type)
  return _internal_type();
}
inline void Discount::set_type(::commerce::Discount_Type value) {
  _internal_set_type(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:commerce.Discount.type)
}
inline ::commerce::Discount_Type Discount::_internal_type() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::commerce::Discount_Type>(_impl_.type_);
}
inline void Discount::_internal_set_type(::commerce::Discount_Type value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::commerce::Discount_Type_internal_data_));
                                          _impl_.type_ = value;
}

// optional .commerce.Discount.Description description = 3;
inline bool Discount::has_description() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  PROTOBUF_ASSUME(!value || _impl_.description_ != nullptr);
  return value;
}
inline void Discount::clear_description() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.description_ != nullptr) _impl_.description_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::commerce::Discount_Description& Discount::_internal_description() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::commerce::Discount_Description* p = _impl_.description_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::commerce::Discount_Description>(&::commerce::Discount_Description_globals_);
}
inline const ::commerce::Discount_Description& Discount::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:commerce.Discount.description)
  return _internal_description();
}
inline void Discount::unsafe_arena_set_allocated_description(
    ::commerce::Discount_Description* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.description_);
  }
  _impl_.description_ = reinterpret_cast<::commerce::Discount_Description*>(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:commerce.Discount.description)
}
inline ::commerce::Discount_Description* PROTOBUF_NULLABLE Discount::release_description() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::commerce::Discount_Description* released = _impl_.description_;
  _impl_.description_ = 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 ::commerce::Discount_Description* PROTOBUF_NULLABLE Discount::unsafe_arena_release_description() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:commerce.Discount.description)

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::commerce::Discount_Description* temp = _impl_.description_;
  _impl_.description_ = nullptr;
  return temp;
}
inline ::commerce::Discount_Description* PROTOBUF_NONNULL Discount::_internal_mutable_description() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.description_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::commerce::Discount_Description>(GetArena());
    _impl_.description_ = reinterpret_cast<::commerce::Discount_Description*>(p);
  }
  return _impl_.description_;
}
inline ::commerce::Discount_Description* PROTOBUF_NONNULL Discount::mutable_description()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::commerce::Discount_Description* _msg = _internal_mutable_description();
  // @@protoc_insertion_point(field_mutable:commerce.Discount.description)
  return _msg;
}
inline void Discount::set_allocated_description(::commerce::Discount_Description* 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_.description_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = 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_.description_ = reinterpret_cast<::commerce::Discount_Description*>(value);
  // @@protoc_insertion_point(field_set_allocated:commerce.Discount.description)
}

// optional double expiry_time_sec = 4;
inline bool Discount::has_expiry_time_sec() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
  return value;
}
inline void Discount::clear_expiry_time_sec() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.expiry_time_sec_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
inline double Discount::expiry_time_sec() const {
  // @@protoc_insertion_point(field_get:commerce.Discount.expiry_time_sec)
  return _internal_expiry_time_sec();
}
inline void Discount::set_expiry_time_sec(double value) {
  _internal_set_expiry_time_sec(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000020U);
  // @@protoc_insertion_point(field_set:commerce.Discount.expiry_time_sec)
}
inline double Discount::_internal_expiry_time_sec() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.expiry_time_sec_;
}
inline void Discount::_internal_set_expiry_time_sec(double value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.expiry_time_sec_ = value;
}

// optional bool is_merchant_wide = 5;
inline bool Discount::has_is_merchant_wide() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
  return value;
}
inline void Discount::clear_is_merchant_wide() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.is_merchant_wide_ = false;
  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
inline bool Discount::is_merchant_wide() const {
  // @@protoc_insertion_point(field_get:commerce.Discount.is_merchant_wide)
  return _internal_is_merchant_wide();
}
inline void Discount::set_is_merchant_wide(bool value) {
  _internal_set_is_merchant_wide(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  // @@protoc_insertion_point(field_set:commerce.Discount.is_merchant_wide)
}
inline bool Discount::_internal_is_merchant_wide() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.is_merchant_wide_;
}
inline void Discount::_internal_set_is_merchant_wide(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.is_merchant_wide_ = value;
}

// optional string discount_code = 6;
inline bool Discount::has_discount_code() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void Discount::clear_discount_code() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.discount_code_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& Discount::discount_code() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:commerce.Discount.discount_code)
  return _internal_discount_code();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Discount::set_discount_code(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.discount_code_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:commerce.Discount.discount_code)
}
inline ::std::string* PROTOBUF_NONNULL Discount::mutable_discount_code()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_discount_code();
  // @@protoc_insertion_point(field_mutable:commerce.Discount.discount_code)
  return _s;
}
inline const ::std::string& Discount::_internal_discount_code() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.discount_code_.Get();
}
inline void Discount::_internal_set_discount_code(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.discount_code_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Discount::_internal_mutable_discount_code() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.discount_code_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Discount::release_discount_code() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:commerce.Discount.discount_code)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.discount_code_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.discount_code_.Set("", GetArena());
  }
  return released;
}
inline void Discount::set_allocated_discount_code(::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_.discount_code_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.discount_code_.IsDefault()) {
    _impl_.discount_code_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:commerce.Discount.discount_code)
}

// optional fixed64 offer_id = 7;
inline bool Discount::has_offer_id() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
  return value;
}
inline void Discount::clear_offer_id() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.offer_id_ = ::uint64_t{0u};
  ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
inline ::uint64_t Discount::offer_id() const {
  // @@protoc_insertion_point(field_get:commerce.Discount.offer_id)
  return _internal_offer_id();
}
inline void Discount::set_offer_id(::uint64_t value) {
  _internal_set_offer_id(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000040U);
  // @@protoc_insertion_point(field_set:commerce.Discount.offer_id)
}
inline ::uint64_t Discount::_internal_offer_id() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.offer_id_;
}
inline void Discount::_internal_set_offer_id(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.offer_id_ = value;
}

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

// @@protoc_insertion_point(namespace_scope)
}  // namespace commerce


namespace google {
namespace protobuf {

template <>
struct is_proto_enum<::commerce::DiscountCluster_ClusterType> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::commerce::DiscountCluster_ClusterType> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::commerce::DiscountCluster_ClusterType_Parse;
  static constexpr auto kNameFunc = ::commerce::DiscountCluster_ClusterType_Name<int>;
};
template <>
struct is_proto_enum<::commerce::Discount_Type> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::commerce::Discount_Type> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::commerce::Discount_Type_Parse;
  static constexpr auto kNameFunc = ::commerce::Discount_Type_Name<int>;
};

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

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

#endif  // components_2fcommerce_2fcore_2fproto_2fdiscounts_2eproto_2epb_2eh
