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

#include "components/commerce/core/proto/price_insights.pb.h"

#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/internal_visibility.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace commerce {
class PriceRange::_Internal {
 public:
  using HasBits = decltype(::std::declval<PriceRange>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(PriceRange, _impl_._has_bits_);
};

constexpr PriceRange::ParseTableT_ PriceRange::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PriceRange, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::commerce::PriceRange>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional string currency_code = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(PriceRange, _impl_.currency_code_)}},
      // optional int64 lowest_typical_price_micros = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(PriceRange, _impl_.lowest_typical_price_micros_)}},
      // optional int64 highest_typical_price_micros = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(PriceRange, _impl_.highest_typical_price_micros_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string currency_code = 1;
      {PROTOBUF_FIELD_OFFSET(PriceRange, _impl_.currency_code_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 lowest_typical_price_micros = 2;
      {PROTOBUF_FIELD_OFFSET(PriceRange, _impl_.lowest_typical_price_micros_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 highest_typical_price_micros = 3;
      {PROTOBUF_FIELD_OFFSET(PriceRange, _impl_.highest_typical_price_micros_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr PriceRange::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        currency_code_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        lowest_typical_price_micros_{::int64_t{0}},
        highest_typical_price_micros_{::int64_t{0}} {}

template <typename>
constexpr PriceRange::PriceRange(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL PriceRange::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PriceRange(arena);
}
constexpr auto PriceRange::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PriceRange), alignof(PriceRange));
}
constexpr auto PriceRange::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &PriceRange::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PriceRange>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PriceRange::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PriceRange>(), &PriceRange::ByteSizeLong,
              &PriceRange::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PriceRange, _impl_._cached_size_),
          true,
      },
      "commerce.PriceRange",
  };
}
struct PriceRangeGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PriceRangeGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PriceRange_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PriceRange::InternalGenerateClassData_(
            _default, &PriceRange_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PriceRange>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PriceRangeGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PriceRange _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PriceRange>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PriceRangeGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PriceRangeGlobalsTypeInternal PriceRange_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PriceRange_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PriceRange_globals_.GetClassData();
#else
  return PriceRange_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class PricePoint::_Internal {
 public:
  using HasBits = decltype(::std::declval<PricePoint>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(PricePoint, _impl_._has_bits_);
};

constexpr PricePoint::ParseTableT_ PricePoint::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PricePoint, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::commerce::PricePoint>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int64 min_price_micros = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(PricePoint, _impl_.min_price_micros_)}},
      // optional string date = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(PricePoint, _impl_.date_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string date = 1;
      {PROTOBUF_FIELD_OFFSET(PricePoint, _impl_.date_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 min_price_micros = 2;
      {PROTOBUF_FIELD_OFFSET(PricePoint, _impl_.min_price_micros_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr PricePoint::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        date_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        min_price_micros_{::int64_t{0}} {}

template <typename>
constexpr PricePoint::PricePoint(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL PricePoint::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PricePoint(arena);
}
constexpr auto PricePoint::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PricePoint), alignof(PricePoint));
}
constexpr auto PricePoint::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &PricePoint::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PricePoint>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PricePoint::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PricePoint>(), &PricePoint::ByteSizeLong,
              &PricePoint::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PricePoint, _impl_._cached_size_),
          true,
      },
      "commerce.PricePoint",
  };
}
struct PricePointGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PricePointGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PricePoint_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PricePoint::InternalGenerateClassData_(
            _default, &PricePoint_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PricePoint>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PricePointGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PricePoint _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PricePoint>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PricePointGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PricePointGlobalsTypeInternal PricePoint_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PricePoint_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PricePoint_globals_.GetClassData();
#else
  return PricePoint_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class PriceHistory::_Internal {
 public:
  using HasBits = decltype(::std::declval<PriceHistory>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_._has_bits_);
};

constexpr PriceHistory::ParseTableT_ PriceHistory::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::commerce::PriceHistory>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string jackpot_url = 4;
      {::_pbi::TcParser::FastBS1,
       {34, 3, 0,
        PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_.jackpot_url_)}},
      // optional string currency_code = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_.currency_code_)}},
      // optional string attributes = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 2, 0,
        PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_.attributes_)}},
      // repeated .commerce.PricePoint price_points = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_.price_points_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string currency_code = 1;
      {PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_.currency_code_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string attributes = 2;
      {PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_.attributes_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .commerce.PricePoint price_points = 3;
      {PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_.price_points_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string jackpot_url = 4;
      {PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_.jackpot_url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::commerce::PricePoint>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::commerce::PricePoint_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr PriceHistory::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        price_points_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::commerce::PriceHistory,
            PROTOBUF_FIELD_OFFSET(::commerce::PriceHistory, _impl_.price_points_)>()
         }
        ,
        currency_code_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        attributes_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        jackpot_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

template <typename>
constexpr PriceHistory::PriceHistory(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL PriceHistory::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PriceHistory(arena);
}
constexpr auto PriceHistory::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PriceHistory), alignof(PriceHistory));
}
constexpr auto PriceHistory::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &PriceHistory::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PriceHistory>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PriceHistory::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PriceHistory>(), &PriceHistory::ByteSizeLong,
              &PriceHistory::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PriceHistory, _impl_._cached_size_),
          true,
      },
      "commerce.PriceHistory",
  };
}
struct PriceHistoryGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PriceHistoryGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PriceHistory_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PriceHistory::InternalGenerateClassData_(
            _default, &PriceHistory_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PriceHistory>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PriceHistoryGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PriceHistory _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PriceHistory>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PriceHistoryGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PriceHistoryGlobalsTypeInternal PriceHistory_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PriceHistory_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PriceHistory_globals_.GetClassData();
#else
  return PriceHistory_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class PriceInsightsData::_Internal {
 public:
  using HasBits = decltype(::std::declval<PriceInsightsData>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_._has_bits_);
};

constexpr PriceInsightsData::ParseTableT_ PriceInsightsData::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::commerce::PriceInsightsData>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional uint64 product_cluster_id = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.product_cluster_id_)}},
      // optional .commerce.PriceRange price_range = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.price_range_)}},
      // optional .commerce.PriceHistory price_history = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 1, 1,
        PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.price_history_)}},
      // optional .commerce.PriceInsightsData.PriceBucket price_bucket = 4;
      {::_pbi::TcParser::FastEr0S1,
       {32, 3, 3,
        PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.price_bucket_)}},
      // optional bool has_multiple_catalogs = 5;
      {::_pbi::TcParser::FastV8S1,
       {40, 4, 0,
        PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.has_multiple_catalogs_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional uint64 product_cluster_id = 1;
      {PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.product_cluster_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional .commerce.PriceRange price_range = 2;
      {PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.price_range_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .commerce.PriceHistory price_history = 3;
      {PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.price_history_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .commerce.PriceInsightsData.PriceBucket price_bucket = 4;
      {PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.price_bucket_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional bool has_multiple_catalogs = 5;
      {PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.has_multiple_catalogs_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::commerce::PriceRange>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::commerce::PriceRange_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::commerce::PriceHistory>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::commerce::PriceHistory_globals_},
        #endif
        {0, 3},
    }},
    {{
    }},
  };
}


inline constexpr PriceInsightsData::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        price_range_{nullptr},
        price_history_{nullptr},
        product_cluster_id_{::uint64_t{0u}},
        price_bucket_{static_cast< ::commerce::PriceInsightsData_PriceBucket >(0)},
        has_multiple_catalogs_{false} {}

template <typename>
constexpr PriceInsightsData::PriceInsightsData(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL PriceInsightsData::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PriceInsightsData(arena);
}
constexpr auto PriceInsightsData::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PriceInsightsData), alignof(PriceInsightsData));
}
constexpr auto PriceInsightsData::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &PriceInsightsData::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PriceInsightsData>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PriceInsightsData::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PriceInsightsData>(), &PriceInsightsData::ByteSizeLong,
              &PriceInsightsData::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_._cached_size_),
          true,
      },
      "commerce.PriceInsightsData",
  };
}
struct PriceInsightsDataGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PriceInsightsDataGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PriceInsightsData_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PriceInsightsData::InternalGenerateClassData_(
            _default, &PriceInsightsData_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PriceInsightsData>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PriceInsightsDataGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PriceInsightsData _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PriceInsightsData>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PriceInsightsDataGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PriceInsightsDataGlobalsTypeInternal PriceInsightsData_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PriceInsightsData_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PriceInsightsData_globals_.GetClassData();
#else
  return PriceInsightsData_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace commerce
namespace commerce {
PROTOBUF_CONSTINIT const uint32_t PriceInsightsData_PriceBucket_internal_data_[] = {
    262144u, 0u, };
static const char PriceInsightsData_PriceBucket_names[] = {
    "HIGH_PRICE"
    "LOW_PRICE"
    "TYPICAL_PRICE"
    "UNKNOWN"
};

static const ::google::protobuf::internal::EnumEntry PriceInsightsData_PriceBucket_entries[] = {
    {{&PriceInsightsData_PriceBucket_names[0], 10}, 3},
    {{&PriceInsightsData_PriceBucket_names[10], 9}, 1},
    {{&PriceInsightsData_PriceBucket_names[19], 13}, 2},
    {{&PriceInsightsData_PriceBucket_names[32], 7}, 0},
};

static const int PriceInsightsData_PriceBucket_entries_by_number[] = {
    3,  // 0 -> UNKNOWN
    1,  // 1 -> LOW_PRICE
    2,  // 2 -> TYPICAL_PRICE
    0,  // 3 -> HIGH_PRICE
};

bool PriceInsightsData_PriceBucket_Parse(::absl::string_view name,
                                  PriceInsightsData_PriceBucket* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      PriceInsightsData_PriceBucket_entries, 4, name, &int_value);
  if (success) {
    *value = static_cast<PriceInsightsData_PriceBucket>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    PriceInsightsData_PriceBucket_strings[4] = {};

const ::std::string& PriceInsightsData_PriceBucket_Name(PriceInsightsData_PriceBucket value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      PriceInsightsData_PriceBucket_entries, PriceInsightsData_PriceBucket_entries_by_number, 4,
      PriceInsightsData_PriceBucket_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(PriceInsightsData_PriceBucket_entries,
                                  PriceInsightsData_PriceBucket_entries_by_number,
                                  4, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PriceInsightsData_PriceBucket_strings[idx].get();
}
// ===================================================================

PriceInsightsData::PriceInsightsData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PriceInsightsData_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:commerce.PriceInsightsData)
}
PROTOBUF_NDEBUG_INLINE PriceInsightsData::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::commerce::PriceInsightsData& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

PriceInsightsData::PriceInsightsData(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const PriceInsightsData& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PriceInsightsData_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PriceInsightsData* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.price_range_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.price_range_)
                : nullptr;
  _impl_.price_history_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.price_history_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, product_cluster_id_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, product_cluster_id_),
           offsetof(Impl_, has_multiple_catalogs_) -
               offsetof(Impl_, product_cluster_id_) +
               sizeof(Impl_::has_multiple_catalogs_));

  // @@protoc_insertion_point(copy_constructor:commerce.PriceInsightsData)
}
PROTOBUF_NDEBUG_INLINE PriceInsightsData::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void PriceInsightsData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, price_range_),
           0,
           offsetof(Impl_, has_multiple_catalogs_) -
               offsetof(Impl_, price_range_) +
               sizeof(Impl_::has_multiple_catalogs_));
}
PriceInsightsData::~PriceInsightsData() {
  // @@protoc_insertion_point(destructor:commerce.PriceInsightsData)
  SharedDtor(*this);
}
inline void PriceInsightsData::SharedDtor(MessageLite& self) {
  PriceInsightsData& this_ = static_cast<PriceInsightsData&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  delete this_._impl_.price_range_;
  delete this_._impl_.price_history_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PriceInsightsData_class_data_ =
    PriceInsightsData::InternalGenerateClassData_(PriceInsightsData_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PriceInsightsData::GetClassData() const {
  return PriceInsightsData_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PriceInsightsData::GetClassData() const {
  return PriceInsightsData_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PriceInsightsData::ParseTableT_
    PriceInsightsData::_table_ =
        PriceInsightsData::InternalGenerateParseTable_(PriceInsightsData_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PriceInsightsData::Clear() {
// @@protoc_insertion_point(message_clear_start:commerce.PriceInsightsData)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(_impl_.price_range_ != nullptr);
      _impl_.price_range_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.price_history_ != nullptr);
      _impl_.price_history_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000001cU)) {
    ::memset(&_impl_.product_cluster_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.has_multiple_catalogs_) -
        reinterpret_cast<char*>(&_impl_.product_cluster_id_)) + sizeof(_impl_.has_multiple_catalogs_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL PriceInsightsData::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const PriceInsightsData& this_ = static_cast<const PriceInsightsData&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL PriceInsightsData::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const PriceInsightsData& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:commerce.PriceInsightsData)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional uint64 product_cluster_id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        1, this_._internal_product_cluster_id(), target);
  }

  // optional .commerce.PriceRange price_range = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.price_range_, this_._impl_.price_range_->GetCachedSize(), target,
        stream);
  }

  // optional .commerce.PriceHistory price_history = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.price_history_, this_._impl_.price_history_->GetCachedSize(), target,
        stream);
  }

  // optional .commerce.PriceInsightsData.PriceBucket price_bucket = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        4, this_._internal_price_bucket(), target);
  }

  // optional bool has_multiple_catalogs = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        5, this_._internal_has_multiple_catalogs(), target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:commerce.PriceInsightsData)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PriceInsightsData::ByteSizeLong(const MessageLite& base) {
  const PriceInsightsData& this_ = static_cast<const PriceInsightsData&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PriceInsightsData::ByteSizeLong() const {
  const PriceInsightsData& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:commerce.PriceInsightsData)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000010U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    // optional .commerce.PriceRange price_range = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.price_range_);
    }
    // optional .commerce.PriceHistory price_history = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.price_history_);
    }
    // optional uint64 product_cluster_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_product_cluster_id());
    }
    // optional .commerce.PriceInsightsData.PriceBucket price_bucket = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_price_bucket());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void PriceInsightsData::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PriceInsightsData*>(&to_msg);
  auto& from = static_cast<const PriceInsightsData&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:commerce.PriceInsightsData)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(from._impl_.price_range_ != nullptr);
      if (_this->_impl_.price_range_ == nullptr) {
        _this->_impl_.price_range_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.price_range_);
      } else {
        _this->_impl_.price_range_->MergeFrom(*from._impl_.price_range_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.price_history_ != nullptr);
      if (_this->_impl_.price_history_ == nullptr) {
        _this->_impl_.price_history_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.price_history_);
      } else {
        _this->_impl_.price_history_->MergeFrom(*from._impl_.price_history_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.product_cluster_id_ = from._impl_.product_cluster_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.price_bucket_ = from._impl_.price_bucket_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.has_multiple_catalogs_ = from._impl_.has_multiple_catalogs_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void PriceInsightsData::CopyFrom(const PriceInsightsData& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:commerce.PriceInsightsData)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void PriceInsightsData::InternalSwap(PriceInsightsData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.has_multiple_catalogs_)
      + sizeof(PriceInsightsData::_impl_.has_multiple_catalogs_)
      - PROTOBUF_FIELD_OFFSET(PriceInsightsData, _impl_.price_range_)>(
          reinterpret_cast<char*>(&_impl_.price_range_),
          reinterpret_cast<char*>(&other->_impl_.price_range_));
}

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

PriceRange::PriceRange(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PriceRange_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:commerce.PriceRange)
}
PROTOBUF_NDEBUG_INLINE PriceRange::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::commerce::PriceRange& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        currency_code_(arena, from.currency_code_) {}

PriceRange::PriceRange(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const PriceRange& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PriceRange_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PriceRange* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, lowest_typical_price_micros_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, lowest_typical_price_micros_),
           offsetof(Impl_, highest_typical_price_micros_) -
               offsetof(Impl_, lowest_typical_price_micros_) +
               sizeof(Impl_::highest_typical_price_micros_));

  // @@protoc_insertion_point(copy_constructor:commerce.PriceRange)
}
PROTOBUF_NDEBUG_INLINE PriceRange::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        currency_code_(arena) {}

inline void PriceRange::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, lowest_typical_price_micros_),
           0,
           offsetof(Impl_, highest_typical_price_micros_) -
               offsetof(Impl_, lowest_typical_price_micros_) +
               sizeof(Impl_::highest_typical_price_micros_));
}
PriceRange::~PriceRange() {
  // @@protoc_insertion_point(destructor:commerce.PriceRange)
  SharedDtor(*this);
}
inline void PriceRange::SharedDtor(MessageLite& self) {
  PriceRange& this_ = static_cast<PriceRange&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.currency_code_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PriceRange_class_data_ =
    PriceRange::InternalGenerateClassData_(PriceRange_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PriceRange::GetClassData() const {
  return PriceRange_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PriceRange::GetClassData() const {
  return PriceRange_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PriceRange::ParseTableT_
    PriceRange::_table_ =
        PriceRange::InternalGenerateParseTable_(PriceRange_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PriceRange::Clear() {
// @@protoc_insertion_point(message_clear_start:commerce.PriceRange)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.currency_code_.ClearNonDefaultToEmpty();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
    ::memset(&_impl_.lowest_typical_price_micros_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.highest_typical_price_micros_) -
        reinterpret_cast<char*>(&_impl_.lowest_typical_price_micros_)) + sizeof(_impl_.highest_typical_price_micros_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL PriceRange::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const PriceRange& this_ = static_cast<const PriceRange&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL PriceRange::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const PriceRange& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:commerce.PriceRange)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string currency_code = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_currency_code();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // optional int64 lowest_typical_price_micros = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
            stream, this_._internal_lowest_typical_price_micros(), target);
  }

  // optional int64 highest_typical_price_micros = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
            stream, this_._internal_highest_typical_price_micros(), target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:commerce.PriceRange)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PriceRange::ByteSizeLong(const MessageLite& base) {
  const PriceRange& this_ = static_cast<const PriceRange&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PriceRange::ByteSizeLong() const {
  const PriceRange& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:commerce.PriceRange)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // optional string currency_code = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_currency_code());
    }
    // optional int64 lowest_typical_price_micros = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_lowest_typical_price_micros());
    }
    // optional int64 highest_typical_price_micros = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_highest_typical_price_micros());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void PriceRange::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PriceRange*>(&to_msg);
  auto& from = static_cast<const PriceRange&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:commerce.PriceRange)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_currency_code(from._internal_currency_code());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.lowest_typical_price_micros_ = from._impl_.lowest_typical_price_micros_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.highest_typical_price_micros_ = from._impl_.highest_typical_price_micros_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void PriceRange::CopyFrom(const PriceRange& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:commerce.PriceRange)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void PriceRange::InternalSwap(PriceRange* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.currency_code_, &other->_impl_.currency_code_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(PriceRange, _impl_.highest_typical_price_micros_)
      + sizeof(PriceRange::_impl_.highest_typical_price_micros_)
      - PROTOBUF_FIELD_OFFSET(PriceRange, _impl_.lowest_typical_price_micros_)>(
          reinterpret_cast<char*>(&_impl_.lowest_typical_price_micros_),
          reinterpret_cast<char*>(&other->_impl_.lowest_typical_price_micros_));
}

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

PricePoint::PricePoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PricePoint_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:commerce.PricePoint)
}
PROTOBUF_NDEBUG_INLINE PricePoint::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::commerce::PricePoint& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        date_(arena, from.date_) {}

PricePoint::PricePoint(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const PricePoint& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PricePoint_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PricePoint* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  _impl_.min_price_micros_ = from._impl_.min_price_micros_;

  // @@protoc_insertion_point(copy_constructor:commerce.PricePoint)
}
PROTOBUF_NDEBUG_INLINE PricePoint::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        date_(arena) {}

inline void PricePoint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.min_price_micros_ = {};
}
PricePoint::~PricePoint() {
  // @@protoc_insertion_point(destructor:commerce.PricePoint)
  SharedDtor(*this);
}
inline void PricePoint::SharedDtor(MessageLite& self) {
  PricePoint& this_ = static_cast<PricePoint&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.date_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PricePoint_class_data_ =
    PricePoint::InternalGenerateClassData_(PricePoint_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PricePoint::GetClassData() const {
  return PricePoint_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PricePoint::GetClassData() const {
  return PricePoint_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PricePoint::ParseTableT_
    PricePoint::_table_ =
        PricePoint::InternalGenerateParseTable_(PricePoint_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PricePoint::Clear() {
// @@protoc_insertion_point(message_clear_start:commerce.PricePoint)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.date_.ClearNonDefaultToEmpty();
  }
  _impl_.min_price_micros_ = ::int64_t{0};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL PricePoint::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const PricePoint& this_ = static_cast<const PricePoint&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL PricePoint::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const PricePoint& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:commerce.PricePoint)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string date = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_date();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // optional int64 min_price_micros = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
            stream, this_._internal_min_price_micros(), target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:commerce.PricePoint)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PricePoint::ByteSizeLong(const MessageLite& base) {
  const PricePoint& this_ = static_cast<const PricePoint&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PricePoint::ByteSizeLong() const {
  const PricePoint& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:commerce.PricePoint)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // optional string date = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_date());
    }
    // optional int64 min_price_micros = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_min_price_micros());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void PricePoint::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PricePoint*>(&to_msg);
  auto& from = static_cast<const PricePoint&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:commerce.PricePoint)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_date(from._internal_date());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.min_price_micros_ = from._impl_.min_price_micros_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void PricePoint::CopyFrom(const PricePoint& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:commerce.PricePoint)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void PricePoint::InternalSwap(PricePoint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.date_, &other->_impl_.date_, arena);
  swap(_impl_.min_price_micros_, other->_impl_.min_price_micros_);
}

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

PriceHistory::PriceHistory(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PriceHistory_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:commerce.PriceHistory)
}
PROTOBUF_NDEBUG_INLINE PriceHistory::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::commerce::PriceHistory& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        price_points_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::commerce::PriceHistory,
              PROTOBUF_FIELD_OFFSET(::commerce::PriceHistory, _impl_.price_points_)>()
          , from.price_points_
        }
        ,
        currency_code_(arena, from.currency_code_),
        attributes_(arena, from.attributes_),
        jackpot_url_(arena, from.jackpot_url_) {}

PriceHistory::PriceHistory(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const PriceHistory& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PriceHistory_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PriceHistory* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:commerce.PriceHistory)
}
PROTOBUF_NDEBUG_INLINE PriceHistory::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        price_points_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::commerce::PriceHistory,
            PROTOBUF_FIELD_OFFSET(::commerce::PriceHistory, _impl_.price_points_)>()
         }
        ,
        currency_code_(arena),
        attributes_(arena),
        jackpot_url_(arena) {}

inline void PriceHistory::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
PriceHistory::~PriceHistory() {
  // @@protoc_insertion_point(destructor:commerce.PriceHistory)
  SharedDtor(*this);
}
inline void PriceHistory::SharedDtor(MessageLite& self) {
  PriceHistory& this_ = static_cast<PriceHistory&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.currency_code_.Destroy();
  this_._impl_.attributes_.Destroy();
  this_._impl_.jackpot_url_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PriceHistory_class_data_ =
    PriceHistory::InternalGenerateClassData_(PriceHistory_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PriceHistory::GetClassData() const {
  return PriceHistory_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PriceHistory::GetClassData() const {
  return PriceHistory_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PriceHistory::ParseTableT_
    PriceHistory::_table_ =
        PriceHistory::InternalGenerateParseTable_(PriceHistory_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PriceHistory::Clear() {
// @@protoc_insertion_point(message_clear_start:commerce.PriceHistory)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.price_points_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.currency_code_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.attributes_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.jackpot_url_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL PriceHistory::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const PriceHistory& this_ = static_cast<const PriceHistory&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL PriceHistory::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const PriceHistory& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:commerce.PriceHistory)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string currency_code = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_currency_code();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // optional string attributes = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_attributes();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // repeated .commerce.PricePoint price_points = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_price_points_size());
         i < n; i++) {
      const auto& repfield = this_._internal_price_points().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional string jackpot_url = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_jackpot_url();
    target = stream->WriteStringMaybeAliased(4, _s, target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:commerce.PriceHistory)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PriceHistory::ByteSizeLong(const MessageLite& base) {
  const PriceHistory& this_ = static_cast<const PriceHistory&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PriceHistory::ByteSizeLong() const {
  const PriceHistory& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:commerce.PriceHistory)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    // repeated .commerce.PricePoint price_points = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_price_points_size();
      for (const auto& msg : this_._internal_price_points()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string currency_code = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_currency_code());
    }
    // optional string attributes = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_attributes());
    }
    // optional string jackpot_url = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_jackpot_url());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void PriceHistory::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PriceHistory*>(&to_msg);
  auto& from = static_cast<const PriceHistory&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:commerce.PriceHistory)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_price_points()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_price_points());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_currency_code(from._internal_currency_code());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_attributes(from._internal_attributes());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_jackpot_url(from._internal_jackpot_url());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void PriceHistory::CopyFrom(const PriceHistory& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:commerce.PriceHistory)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void PriceHistory::InternalSwap(PriceHistory* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.price_points_.InternalSwap(&other->_impl_.price_points_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.currency_code_, &other->_impl_.currency_code_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.attributes_, &other->_impl_.attributes_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jackpot_url_, &other->_impl_.jackpot_url_, arena);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace commerce
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
