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

#include "pass.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 wallet {
class Pass_LoyaltyCard::_Internal {
 public:
  using HasBits = decltype(::std::declval<Pass_LoyaltyCard>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCard, _impl_._has_bits_);
};

constexpr Pass_LoyaltyCard::ParseTableT_ Pass_LoyaltyCard::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCard, _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<::wallet::Pass_LoyaltyCard>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional string merchant_name = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCard, _impl_.merchant_name_)}},
      // optional string loyalty_number = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCard, _impl_.loyalty_number_)}},
      // optional string program_name = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 2, 0,
        PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCard, _impl_.program_name_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string merchant_name = 1;
      {PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCard, _impl_.merchant_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string loyalty_number = 2;
      {PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCard, _impl_.loyalty_number_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string program_name = 3;
      {PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCard, _impl_.program_name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Pass_LoyaltyCard::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        merchant_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        loyalty_number_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        program_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

template <typename>
constexpr Pass_LoyaltyCard::Pass_LoyaltyCard(::_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 Pass_LoyaltyCard::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) Pass_LoyaltyCard(arena);
}
constexpr auto Pass_LoyaltyCard::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Pass_LoyaltyCard), alignof(Pass_LoyaltyCard));
}
constexpr auto Pass_LoyaltyCard::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
          &Pass_LoyaltyCard::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<Pass_LoyaltyCard>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &Pass_LoyaltyCard::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<Pass_LoyaltyCard>(), &Pass_LoyaltyCard::ByteSizeLong,
              &Pass_LoyaltyCard::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCard, _impl_._cached_size_),
          true,
      },
      "wallet.Pass.LoyaltyCard",
  };
}
struct Pass_LoyaltyCardGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr Pass_LoyaltyCardGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 Pass_LoyaltyCard_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(Pass_LoyaltyCard::InternalGenerateClassData_(
            _default, &Pass_LoyaltyCard_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<Pass_LoyaltyCard>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~Pass_LoyaltyCardGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) Pass_LoyaltyCard _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<Pass_LoyaltyCard>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(Pass_LoyaltyCardGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr Pass::ParseTableT_ Pass::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Pass, _impl_._has_bits_),
      0, // no _extensions_
      3, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967290,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // 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<::wallet::Pass>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string pass_id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Pass, _impl_.pass_id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string pass_id = 1;
      {PROTOBUF_FIELD_OFFSET(Pass, _impl_.pass_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // .wallet.Pass.LoyaltyCard loyalty_card = 3;
      {PROTOBUF_FIELD_OFFSET(Pass, _impl_.data_.loyalty_card_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::wallet::Pass_LoyaltyCard>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::wallet::Pass_LoyaltyCard_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr Pass::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        pass_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        data_{},
        _oneof_case_{} {}

template <typename>
constexpr Pass::Pass(::_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 Pass::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) Pass(arena);
}
constexpr auto Pass::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Pass), alignof(Pass));
}
constexpr auto Pass::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
          &Pass::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<Pass>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &Pass::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<Pass>(), &Pass::ByteSizeLong,
              &Pass::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(Pass, _impl_._cached_size_),
          true,
      },
      "wallet.Pass",
  };
}
struct PassGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PassGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 Pass_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(Pass::InternalGenerateClassData_(
            _default, &Pass_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<Pass>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PassGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) Pass _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<Pass>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PassGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PassGlobalsTypeInternal Pass_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Pass_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Pass_globals_.GetClassData();
#else
  return Pass_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace wallet
namespace wallet {
// ===================================================================

Pass_LoyaltyCard::Pass_LoyaltyCard(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Pass_LoyaltyCard_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:wallet.Pass.LoyaltyCard)
}
PROTOBUF_NDEBUG_INLINE Pass_LoyaltyCard::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::wallet::Pass_LoyaltyCard& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        merchant_name_(arena, from.merchant_name_),
        loyalty_number_(arena, from.loyalty_number_),
        program_name_(arena, from.program_name_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Pass_LoyaltyCard* 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:wallet.Pass.LoyaltyCard)
}
PROTOBUF_NDEBUG_INLINE Pass_LoyaltyCard::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        merchant_name_(arena),
        loyalty_number_(arena),
        program_name_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Pass_LoyaltyCard_class_data_ =
    Pass_LoyaltyCard::InternalGenerateClassData_(Pass_LoyaltyCard_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Pass_LoyaltyCard::GetClassData() const {
  return Pass_LoyaltyCard_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Pass_LoyaltyCard::GetClassData() const {
  return Pass_LoyaltyCard_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Pass_LoyaltyCard::ParseTableT_
    Pass_LoyaltyCard::_table_ =
        Pass_LoyaltyCard::InternalGenerateParseTable_(Pass_LoyaltyCard_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Pass_LoyaltyCard::Clear() {
// @@protoc_insertion_point(message_clear_start:wallet.Pass.LoyaltyCard)
  ::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, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.merchant_name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.loyalty_number_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.program_name_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

  // optional string program_name = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_program_name();
    target = stream->WriteStringMaybeAliased(3, _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:wallet.Pass.LoyaltyCard)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Pass_LoyaltyCard::ByteSizeLong(const MessageLite& base) {
  const Pass_LoyaltyCard& this_ = static_cast<const Pass_LoyaltyCard&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Pass_LoyaltyCard::ByteSizeLong() const {
  const Pass_LoyaltyCard& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:wallet.Pass.LoyaltyCard)
  ::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 merchant_name = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_merchant_name());
    }
    // optional string loyalty_number = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_loyalty_number());
    }
    // optional string program_name = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_program_name());
    }
  }
  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 Pass_LoyaltyCard::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Pass_LoyaltyCard*>(&to_msg);
  auto& from = static_cast<const Pass_LoyaltyCard&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:wallet.Pass.LoyaltyCard)
  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_merchant_name(from._internal_merchant_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_loyalty_number(from._internal_loyalty_number());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_program_name(from._internal_program_name());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Pass_LoyaltyCard::CopyFrom(const Pass_LoyaltyCard& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:wallet.Pass.LoyaltyCard)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Pass_LoyaltyCard::InternalSwap(Pass_LoyaltyCard* 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_.merchant_name_, &other->_impl_.merchant_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.loyalty_number_, &other->_impl_.loyalty_number_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.program_name_, &other->_impl_.program_name_, arena);
}

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

void Pass::set_allocated_loyalty_card(::wallet::Pass_LoyaltyCard* PROTOBUF_NULLABLE loyalty_card) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_data();
  if (loyalty_card) {
    ::google::protobuf::Arena* submessage_arena = loyalty_card->GetArena();
    if (message_arena != submessage_arena) {
      loyalty_card = ::google::protobuf::internal::GetOwnedMessage(message_arena, loyalty_card, submessage_arena);
    }
    set_has_loyalty_card();
    _impl_.data_.loyalty_card_ = loyalty_card;
  }
  // @@protoc_insertion_point(field_set_allocated:wallet.Pass.loyalty_card)
}
Pass::Pass(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Pass_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:wallet.Pass)
}
PROTOBUF_NDEBUG_INLINE Pass::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::wallet::Pass& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        pass_id_(arena, from.pass_id_),
        data_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Pass* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (data_case()) {
    case DATA_NOT_SET:
      break;
      case kLoyaltyCard:
        _impl_.data_.loyalty_card_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.data_.loyalty_card_);
        break;
  }

  // @@protoc_insertion_point(copy_constructor:wallet.Pass)
}
PROTOBUF_NDEBUG_INLINE Pass::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        pass_id_(arena),
        data_{},
        _oneof_case_{} {}

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

void Pass::clear_data() {
// @@protoc_insertion_point(one_of_clear_start:wallet.Pass)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (data_case()) {
    case kLoyaltyCard: {
      if (GetArena() == nullptr) {
        delete _impl_.data_.loyalty_card_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.data_.loyalty_card_ != nullptr) {
          _impl_.data_.loyalty_card_->Clear();
        }
      }
      break;
    }
    case DATA_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = DATA_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Pass_class_data_ =
    Pass::InternalGenerateClassData_(Pass_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Pass::GetClassData() const {
  return Pass_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Pass::GetClassData() const {
  return Pass_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Pass::ParseTableT_
    Pass::_table_ =
        Pass::InternalGenerateParseTable_(Pass_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Pass::Clear() {
// @@protoc_insertion_point(message_clear_start:wallet.Pass)
  ::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_.pass_id_.ClearNonDefaultToEmpty();
  }
  clear_data();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // .wallet.Pass.LoyaltyCard loyalty_card = 3;
  if (this_.data_case() == kLoyaltyCard) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.data_.loyalty_card_, this_._impl_.data_.loyalty_card_->GetCachedSize(), target,
        stream);
  }

  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:wallet.Pass)
  return target;
}

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

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

   {
    // optional string pass_id = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_pass_id());
    }
  }
  switch (this_.data_case()) {
    // .wallet.Pass.LoyaltyCard loyalty_card = 3;
    case kLoyaltyCard: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.loyalty_card_);
      break;
    }
    case DATA_NOT_SET: {
      break;
    }
  }
  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 Pass::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Pass*>(&to_msg);
  auto& from = static_cast<const Pass&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:wallet.Pass)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_internal_set_pass_id(from._internal_pass_id());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_data();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kLoyaltyCard: {
        if (oneof_needs_init) {
          _this->_impl_.data_.loyalty_card_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.data_.loyalty_card_);
        } else {
          _this->_impl_.data_.loyalty_card_->MergeFrom(*from._impl_.data_.loyalty_card_);
        }
        break;
      }
      case DATA_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void Pass::InternalSwap(Pass* 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_.pass_id_, &other->_impl_.pass_id_, arena);
  swap(_impl_.data_, other->_impl_.data_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

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