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

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

constexpr GmailMessageReference::ParseTableT_ GmailMessageReference::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(GmailMessageReference, _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
      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<::components_sharing_message::GmailMessageReference>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .components_sharing_message.Timestamp email_delivered_timestamp = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 3, 2,
        PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.email_delivered_timestamp_)}},
      // bytes encrypted_message_reference = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.encrypted_message_reference_)}},
      // .components_sharing_message.Timestamp otp_created_timestamp = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.otp_created_timestamp_)}},
      // .components_sharing_message.Timestamp email_received_timestamp = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 1,
        PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.email_received_timestamp_)}},
    }}, {{
      65535, 65535
    }}, {{
      // bytes encrypted_message_reference = 1;
      {PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.encrypted_message_reference_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // .components_sharing_message.Timestamp otp_created_timestamp = 2;
      {PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.otp_created_timestamp_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .components_sharing_message.Timestamp email_received_timestamp = 3;
      {PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.email_received_timestamp_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .components_sharing_message.Timestamp email_delivered_timestamp = 4;
      {PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.email_delivered_timestamp_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::components_sharing_message::Timestamp>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::components_sharing_message::Timestamp_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::components_sharing_message::Timestamp>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::components_sharing_message::Timestamp_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::components_sharing_message::Timestamp>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::components_sharing_message::Timestamp_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr GmailMessageReference::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        encrypted_message_reference_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        otp_created_timestamp_{nullptr},
        email_received_timestamp_{nullptr},
        email_delivered_timestamp_{nullptr} {}

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

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

constexpr OneTimeTokenBackendNotification::ParseTableT_ OneTimeTokenBackendNotification::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(OneTimeTokenBackendNotification, _impl_._has_bits_),
      0, // no _extensions_
      2, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      2,  // 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<::components_sharing_message::OneTimeTokenBackendNotification>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .components_sharing_message.Timestamp notification_sent_timestamp = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 0, 1,
        PROTOBUF_FIELD_OFFSET(OneTimeTokenBackendNotification, _impl_.notification_sent_timestamp_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .components_sharing_message.GmailMessageReference gmail_one_time_password = 1;
      {PROTOBUF_FIELD_OFFSET(OneTimeTokenBackendNotification, _impl_.one_time_token_reference_.gmail_one_time_password_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .components_sharing_message.Timestamp notification_sent_timestamp = 2;
      {PROTOBUF_FIELD_OFFSET(OneTimeTokenBackendNotification, _impl_.notification_sent_timestamp_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::components_sharing_message::GmailMessageReference>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::components_sharing_message::GmailMessageReference_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::components_sharing_message::Timestamp>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::components_sharing_message::Timestamp_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr OneTimeTokenBackendNotification::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        notification_sent_timestamp_{nullptr},
        one_time_token_reference_{},
        _oneof_case_{} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST OneTimeTokenBackendNotificationGlobalsTypeInternal OneTimeTokenBackendNotification_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* OneTimeTokenBackendNotification_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return OneTimeTokenBackendNotification_globals_.GetClassData();
#else
  return OneTimeTokenBackendNotification_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace components_sharing_message
namespace components_sharing_message {
// ===================================================================

void OneTimeTokenBackendNotification::set_allocated_gmail_one_time_password(::components_sharing_message::GmailMessageReference* PROTOBUF_NULLABLE gmail_one_time_password) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_one_time_token_reference();
  if (gmail_one_time_password) {
    ::google::protobuf::Arena* submessage_arena = gmail_one_time_password->GetArena();
    if (message_arena != submessage_arena) {
      gmail_one_time_password = ::google::protobuf::internal::GetOwnedMessage(message_arena, gmail_one_time_password, submessage_arena);
    }
    set_has_gmail_one_time_password();
    _impl_.one_time_token_reference_.gmail_one_time_password_ = gmail_one_time_password;
  }
  // @@protoc_insertion_point(field_set_allocated:components_sharing_message.OneTimeTokenBackendNotification.gmail_one_time_password)
}
void OneTimeTokenBackendNotification::clear_notification_sent_timestamp() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.notification_sent_timestamp_ != nullptr) _impl_.notification_sent_timestamp_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
OneTimeTokenBackendNotification::OneTimeTokenBackendNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, OneTimeTokenBackendNotification_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:components_sharing_message.OneTimeTokenBackendNotification)
}
PROTOBUF_NDEBUG_INLINE OneTimeTokenBackendNotification::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::components_sharing_message::OneTimeTokenBackendNotification& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        one_time_token_reference_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  OneTimeTokenBackendNotification* 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_.notification_sent_timestamp_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.notification_sent_timestamp_)
                : nullptr;
  switch (one_time_token_reference_case()) {
    case ONE_TIME_TOKEN_REFERENCE_NOT_SET:
      break;
      case kGmailOneTimePassword:
        _impl_.one_time_token_reference_.gmail_one_time_password_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.one_time_token_reference_.gmail_one_time_password_);
        break;
  }

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

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

void OneTimeTokenBackendNotification::clear_one_time_token_reference() {
// @@protoc_insertion_point(one_of_clear_start:components_sharing_message.OneTimeTokenBackendNotification)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (one_time_token_reference_case()) {
    case kGmailOneTimePassword: {
      if (GetArena() == nullptr) {
        delete _impl_.one_time_token_reference_.gmail_one_time_password_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.one_time_token_reference_.gmail_one_time_password_ != nullptr) {
          _impl_.one_time_token_reference_.gmail_one_time_password_->Clear();
        }
      }
      break;
    }
    case ONE_TIME_TOKEN_REFERENCE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = ONE_TIME_TOKEN_REFERENCE_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite OneTimeTokenBackendNotification_class_data_ =
    OneTimeTokenBackendNotification::InternalGenerateClassData_(OneTimeTokenBackendNotification_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OneTimeTokenBackendNotification::GetClassData() const {
  return OneTimeTokenBackendNotification_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OneTimeTokenBackendNotification::GetClassData() const {
  return OneTimeTokenBackendNotification_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const OneTimeTokenBackendNotification::ParseTableT_
    OneTimeTokenBackendNotification::_table_ =
        OneTimeTokenBackendNotification::InternalGenerateParseTable_(OneTimeTokenBackendNotification_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void OneTimeTokenBackendNotification::Clear() {
// @@protoc_insertion_point(message_clear_start:components_sharing_message.OneTimeTokenBackendNotification)
  ::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)) {
    ABSL_DCHECK(_impl_.notification_sent_timestamp_ != nullptr);
    _impl_.notification_sent_timestamp_->Clear();
  }
  clear_one_time_token_reference();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  // .components_sharing_message.GmailMessageReference gmail_one_time_password = 1;
  if (this_.one_time_token_reference_case() == kGmailOneTimePassword) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.one_time_token_reference_.gmail_one_time_password_, this_._impl_.one_time_token_reference_.gmail_one_time_password_->GetCachedSize(), target,
        stream);
  }

  cached_has_bits = this_._impl_._has_bits_[0];
  // .components_sharing_message.Timestamp notification_sent_timestamp = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.notification_sent_timestamp_, this_._impl_.notification_sent_timestamp_->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:components_sharing_message.OneTimeTokenBackendNotification)
  return target;
}

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

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

   {
    // .components_sharing_message.Timestamp notification_sent_timestamp = 2;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.notification_sent_timestamp_);
    }
  }
  switch (this_.one_time_token_reference_case()) {
    // .components_sharing_message.GmailMessageReference gmail_one_time_password = 1;
    case kGmailOneTimePassword: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.one_time_token_reference_.gmail_one_time_password_);
      break;
    }
    case ONE_TIME_TOKEN_REFERENCE_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 OneTimeTokenBackendNotification::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<OneTimeTokenBackendNotification*>(&to_msg);
  auto& from = static_cast<const OneTimeTokenBackendNotification&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:components_sharing_message.OneTimeTokenBackendNotification)
  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)) {
    ABSL_DCHECK(from._impl_.notification_sent_timestamp_ != nullptr);
    if (_this->_impl_.notification_sent_timestamp_ == nullptr) {
      _this->_impl_.notification_sent_timestamp_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.notification_sent_timestamp_);
    } else {
      _this->_impl_.notification_sent_timestamp_->MergeFrom(*from._impl_.notification_sent_timestamp_);
    }
  }
  _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_one_time_token_reference();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

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

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


void OneTimeTokenBackendNotification::InternalSwap(OneTimeTokenBackendNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  swap(_impl_.notification_sent_timestamp_, other->_impl_.notification_sent_timestamp_);
  swap(_impl_.one_time_token_reference_, other->_impl_.one_time_token_reference_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

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

void GmailMessageReference::clear_otp_created_timestamp() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.otp_created_timestamp_ != nullptr) _impl_.otp_created_timestamp_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
void GmailMessageReference::clear_email_received_timestamp() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.email_received_timestamp_ != nullptr) _impl_.email_received_timestamp_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
void GmailMessageReference::clear_email_delivered_timestamp() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.email_delivered_timestamp_ != nullptr) _impl_.email_delivered_timestamp_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
GmailMessageReference::GmailMessageReference(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, GmailMessageReference_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:components_sharing_message.GmailMessageReference)
}
PROTOBUF_NDEBUG_INLINE GmailMessageReference::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::components_sharing_message::GmailMessageReference& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        encrypted_message_reference_(arena, from.encrypted_message_reference_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  GmailMessageReference* 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_.otp_created_timestamp_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.otp_created_timestamp_)
                : nullptr;
  _impl_.email_received_timestamp_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.email_received_timestamp_)
                : nullptr;
  _impl_.email_delivered_timestamp_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.email_delivered_timestamp_)
                : nullptr;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite GmailMessageReference_class_data_ =
    GmailMessageReference::InternalGenerateClassData_(GmailMessageReference_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
GmailMessageReference::GetClassData() const {
  return GmailMessageReference_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
GmailMessageReference::GetClassData() const {
  return GmailMessageReference_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GmailMessageReference::ParseTableT_
    GmailMessageReference::_table_ =
        GmailMessageReference::InternalGenerateParseTable_(GmailMessageReference_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void GmailMessageReference::Clear() {
// @@protoc_insertion_point(message_clear_start:components_sharing_message.GmailMessageReference)
  ::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_.encrypted_message_reference_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.otp_created_timestamp_ != nullptr);
      _impl_.otp_created_timestamp_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.email_received_timestamp_ != nullptr);
      _impl_.email_received_timestamp_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.email_delivered_timestamp_ != nullptr);
      _impl_.email_delivered_timestamp_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // bytes encrypted_message_reference = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!this_._internal_encrypted_message_reference().empty()) {
      const ::std::string& _s = this_._internal_encrypted_message_reference();
      target = stream->WriteBytesMaybeAliased(1, _s, target);
    }
  }

  // .components_sharing_message.Timestamp otp_created_timestamp = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.otp_created_timestamp_, this_._impl_.otp_created_timestamp_->GetCachedSize(), target,
        stream);
  }

  // .components_sharing_message.Timestamp email_received_timestamp = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.email_received_timestamp_, this_._impl_.email_received_timestamp_->GetCachedSize(), target,
        stream);
  }

  // .components_sharing_message.Timestamp email_delivered_timestamp = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.email_delivered_timestamp_, this_._impl_.email_delivered_timestamp_->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:components_sharing_message.GmailMessageReference)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t GmailMessageReference::ByteSizeLong(const MessageLite& base) {
  const GmailMessageReference& this_ = static_cast<const GmailMessageReference&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t GmailMessageReference::ByteSizeLong() const {
  const GmailMessageReference& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:components_sharing_message.GmailMessageReference)
  ::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)) {
    // bytes encrypted_message_reference = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_encrypted_message_reference().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                        this_._internal_encrypted_message_reference());
      }
    }
    // .components_sharing_message.Timestamp otp_created_timestamp = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.otp_created_timestamp_);
    }
    // .components_sharing_message.Timestamp email_received_timestamp = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.email_received_timestamp_);
    }
    // .components_sharing_message.Timestamp email_delivered_timestamp = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.email_delivered_timestamp_);
    }
  }
  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 GmailMessageReference::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<GmailMessageReference*>(&to_msg);
  auto& from = static_cast<const GmailMessageReference&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:components_sharing_message.GmailMessageReference)
  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)) {
      if (!from._internal_encrypted_message_reference().empty()) {
        _this->_internal_set_encrypted_message_reference(from._internal_encrypted_message_reference());
      } else {
        if (_this->_impl_.encrypted_message_reference_.IsDefault()) {
          _this->_internal_set_encrypted_message_reference("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.otp_created_timestamp_ != nullptr);
      if (_this->_impl_.otp_created_timestamp_ == nullptr) {
        _this->_impl_.otp_created_timestamp_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.otp_created_timestamp_);
      } else {
        _this->_impl_.otp_created_timestamp_->MergeFrom(*from._impl_.otp_created_timestamp_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.email_received_timestamp_ != nullptr);
      if (_this->_impl_.email_received_timestamp_ == nullptr) {
        _this->_impl_.email_received_timestamp_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.email_received_timestamp_);
      } else {
        _this->_impl_.email_received_timestamp_->MergeFrom(*from._impl_.email_received_timestamp_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.email_delivered_timestamp_ != nullptr);
      if (_this->_impl_.email_delivered_timestamp_ == nullptr) {
        _this->_impl_.email_delivered_timestamp_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.email_delivered_timestamp_);
      } else {
        _this->_impl_.email_delivered_timestamp_->MergeFrom(*from._impl_.email_delivered_timestamp_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void GmailMessageReference::InternalSwap(GmailMessageReference* 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_.encrypted_message_reference_, &other->_impl_.encrypted_message_reference_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.email_delivered_timestamp_)
      + sizeof(GmailMessageReference::_impl_.email_delivered_timestamp_)
      - PROTOBUF_FIELD_OFFSET(GmailMessageReference, _impl_.otp_created_timestamp_)>(
          reinterpret_cast<char*>(&_impl_.otp_created_timestamp_),
          reinterpret_cast<char*>(&other->_impl_.otp_created_timestamp_));
}

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