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

#include "components/sync/protocol/user_consent_specifics.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 sync_pb {
class UserConsentSpecifics_SessionId::_Internal {
 public:
  using HasBits = decltype(::std::declval<UserConsentSpecifics_SessionId>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(UserConsentSpecifics_SessionId, _impl_._has_bits_);
};

constexpr UserConsentSpecifics_SessionId::ParseTableT_ UserConsentSpecifics_SessionId::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UserConsentSpecifics_SessionId, _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<::sync_pb::UserConsentSpecifics_SessionId>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional uint64 least_significant_uuid_bits = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics_SessionId, _impl_.least_significant_uuid_bits_)}},
      // optional uint64 most_significant_uuid_bits = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics_SessionId, _impl_.most_significant_uuid_bits_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional uint64 most_significant_uuid_bits = 1;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics_SessionId, _impl_.most_significant_uuid_bits_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 least_significant_uuid_bits = 2;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics_SessionId, _impl_.least_significant_uuid_bits_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr UserConsentSpecifics_SessionId::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        most_significant_uuid_bits_{::uint64_t{0u}},
        least_significant_uuid_bits_{::uint64_t{0u}} {}

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

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

constexpr UserConsentSpecifics::ParseTableT_ UserConsentSpecifics::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_._has_bits_),
      0, // no _extensions_
      19, 248,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294476800,  // skipmap
      offsetof(ParseTableT_, field_entries),
      17,  // num_field_entries
      12,  // 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<::sync_pb::UserConsentSpecifics>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.UserConsentSpecifics.Feature feature = 1 [deprecated = true];
      {::_pbi::TcParser::FastEr0S1,
       {8, 4, 6,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.feature_)}},
      // repeated int32 description_grd_ids = 2 [deprecated = true];
      {::_pbi::TcParser::FastV32R1,
       {16, 0, 0,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.description_grd_ids_)}},
      // optional int32 confirmation_grd_id = 3 [deprecated = true];
      {::_pbi::TcParser::FastV32S1,
       {24, 5, 0,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.confirmation_grd_id_)}},
      // optional string locale = 4;
      {::_pbi::TcParser::FastBS1,
       {34, 1, 0,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.locale_)}},
      // optional .sync_pb.UserConsentTypes.ConsentStatus status = 5 [deprecated = true];
      {::_pbi::TcParser::FastEr0S1,
       {40, 7, 2,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.status_)}},
      // optional string obfuscated_gaia_id = 6;
      {::_pbi::TcParser::FastBS1,
       {50, 2, 0,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.obfuscated_gaia_id_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional int64 client_consent_time_usec = 12;
      {::_pbi::TcParser::FastV64S1,
       {96, 6, 0,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.client_consent_time_usec_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.UserConsentSpecifics.SessionId session_id = 18;
      {::_pbi::TcParser::FastMtS2,
       {402, 3, 8,
        PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.session_id_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .sync_pb.UserConsentSpecifics.Feature feature = 1 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.feature_), _Internal::kHasBitsOffset + 4, 10, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // repeated int32 description_grd_ids = 2 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.description_grd_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
      // optional int32 confirmation_grd_id = 3 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.confirmation_grd_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional string locale = 4;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.locale_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.UserConsentTypes.ConsentStatus status = 5 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.status_), _Internal::kHasBitsOffset + 7, 11, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional string obfuscated_gaia_id = 6;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.obfuscated_gaia_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // .sync_pb.UserConsentTypes.SyncConsent sync_consent = 7;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.consent_.sync_consent_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.UserConsentTypes.ArcBackupAndRestoreConsent arc_backup_and_restore_consent = 8;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.consent_.arc_backup_and_restore_consent_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.UserConsentTypes.ArcGoogleLocationServiceConsent arc_location_service_consent = 9;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.consent_.arc_location_service_consent_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.UserConsentTypes.ArcPlayTermsOfServiceConsent arc_play_terms_of_service_consent = 10;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.consent_.arc_play_terms_of_service_consent_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int64 client_consent_time_usec = 12;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.client_consent_time_usec_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // .sync_pb.UserConsentTypes.UnifiedConsent unified_consent = 13 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.consent_.unified_consent_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.UserConsentTypes.AssistantActivityControlConsent assistant_activity_control_consent = 14 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.consent_.assistant_activity_control_consent_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.UserConsentTypes.AccountPasswordsConsent account_passwords_consent = 15 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.consent_.account_passwords_consent_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.UserConsentTypes.RecorderSpeakerLabelConsent recorder_speaker_label_consent = 17;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.consent_.recorder_speaker_label_consent_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.UserConsentSpecifics.SessionId session_id = 18;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.session_id_), _Internal::kHasBitsOffset + 3, 8, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.UserConsentTypes.WalletPrivatePassConsent wallet_private_pass_consent = 19;
      {PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.consent_.wallet_private_pass_consent_), _Internal::kOneofCaseOffset + 0, 9, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentTypes_SyncConsent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentTypes_SyncConsent_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentTypes_ArcBackupAndRestoreConsent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentTypes_ArcBackupAndRestoreConsent_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentTypes_ArcGoogleLocationServiceConsent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentTypes_ArcGoogleLocationServiceConsent_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentTypes_ArcPlayTermsOfServiceConsent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentTypes_ArcPlayTermsOfServiceConsent_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentTypes_UnifiedConsent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentTypes_UnifiedConsent_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentTypes_AssistantActivityControlConsent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentTypes_AssistantActivityControlConsent_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentTypes_AccountPasswordsConsent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentTypes_AccountPasswordsConsent_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentTypes_RecorderSpeakerLabelConsent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentTypes_RecorderSpeakerLabelConsent_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentSpecifics_SessionId>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentSpecifics_SessionId_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UserConsentTypes_WalletPrivatePassConsent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UserConsentTypes_WalletPrivatePassConsent_globals_},
        #endif
        {0, 6},
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr UserConsentSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        description_grd_ids_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::UserConsentSpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::UserConsentSpecifics, _impl_.description_grd_ids_)>()
         }
        ,
        locale_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        obfuscated_gaia_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        session_id_{nullptr},
        feature_{static_cast< ::sync_pb::UserConsentSpecifics_Feature >(0)},
        confirmation_grd_id_{0},
        client_consent_time_usec_{::int64_t{0}},
        status_{static_cast< ::sync_pb::UserConsentTypes_ConsentStatus >(0)},
        consent_{},
        _oneof_case_{} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST UserConsentSpecificsGlobalsTypeInternal UserConsentSpecifics_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* UserConsentSpecifics_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return UserConsentSpecifics_globals_.GetClassData();
#else
  return UserConsentSpecifics_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace sync_pb
namespace sync_pb {
PROTOBUF_CONSTINIT const uint32_t UserConsentSpecifics_Feature_internal_data_[] = {
    458752u, 0u, };
static const char UserConsentSpecifics_Feature_names[] = {
    "ASSISTANT_ACTIVITY_CONTROL"
    "BACKUP_AND_RESTORE"
    "CHROME_SYNC"
    "CHROME_UNIFIED_CONSENT"
    "FEATURE_UNSPECIFIED"
    "GOOGLE_LOCATION_SERVICE"
    "PLAY_STORE"
};

static const ::google::protobuf::internal::EnumEntry UserConsentSpecifics_Feature_entries[] = {
    {{&UserConsentSpecifics_Feature_names[0], 26}, 6},
    {{&UserConsentSpecifics_Feature_names[26], 18}, 3},
    {{&UserConsentSpecifics_Feature_names[44], 11}, 1},
    {{&UserConsentSpecifics_Feature_names[55], 22}, 5},
    {{&UserConsentSpecifics_Feature_names[77], 19}, 0},
    {{&UserConsentSpecifics_Feature_names[96], 23}, 4},
    {{&UserConsentSpecifics_Feature_names[119], 10}, 2},
};

static const int UserConsentSpecifics_Feature_entries_by_number[] = {
    4,  // 0 -> FEATURE_UNSPECIFIED
    2,  // 1 -> CHROME_SYNC
    6,  // 2 -> PLAY_STORE
    1,  // 3 -> BACKUP_AND_RESTORE
    5,  // 4 -> GOOGLE_LOCATION_SERVICE
    3,  // 5 -> CHROME_UNIFIED_CONSENT
    0,  // 6 -> ASSISTANT_ACTIVITY_CONTROL
};

bool UserConsentSpecifics_Feature_Parse(::absl::string_view name,
                                  UserConsentSpecifics_Feature* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      UserConsentSpecifics_Feature_entries, 7, name, &int_value);
  if (success) {
    *value = static_cast<UserConsentSpecifics_Feature>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    UserConsentSpecifics_Feature_strings[7] = {};

const ::std::string& UserConsentSpecifics_Feature_Name(UserConsentSpecifics_Feature value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      UserConsentSpecifics_Feature_entries, UserConsentSpecifics_Feature_entries_by_number, 7,
      UserConsentSpecifics_Feature_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(UserConsentSpecifics_Feature_entries,
                                  UserConsentSpecifics_Feature_entries_by_number,
                                  7, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : UserConsentSpecifics_Feature_strings[idx].get();
}
// ===================================================================

UserConsentSpecifics_SessionId::UserConsentSpecifics_SessionId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, UserConsentSpecifics_SessionId_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.UserConsentSpecifics.SessionId)
}
UserConsentSpecifics_SessionId::UserConsentSpecifics_SessionId(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const UserConsentSpecifics_SessionId& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, UserConsentSpecifics_SessionId_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE UserConsentSpecifics_SessionId::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite UserConsentSpecifics_SessionId_class_data_ =
    UserConsentSpecifics_SessionId::InternalGenerateClassData_(UserConsentSpecifics_SessionId_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UserConsentSpecifics_SessionId::GetClassData() const {
  return UserConsentSpecifics_SessionId_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UserConsentSpecifics_SessionId::GetClassData() const {
  return UserConsentSpecifics_SessionId_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const UserConsentSpecifics_SessionId::ParseTableT_
    UserConsentSpecifics_SessionId::_table_ =
        UserConsentSpecifics_SessionId::InternalGenerateParseTable_(UserConsentSpecifics_SessionId_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void UserConsentSpecifics_SessionId::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.UserConsentSpecifics.SessionId)
  ::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)) {
    ::memset(&_impl_.most_significant_uuid_bits_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.least_significant_uuid_bits_) -
        reinterpret_cast<char*>(&_impl_.most_significant_uuid_bits_)) + sizeof(_impl_.least_significant_uuid_bits_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional uint64 least_significant_uuid_bits = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        2, this_._internal_least_significant_uuid_bits(), 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:sync_pb.UserConsentSpecifics.SessionId)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t UserConsentSpecifics_SessionId::ByteSizeLong(const MessageLite& base) {
  const UserConsentSpecifics_SessionId& this_ = static_cast<const UserConsentSpecifics_SessionId&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t UserConsentSpecifics_SessionId::ByteSizeLong() const {
  const UserConsentSpecifics_SessionId& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.UserConsentSpecifics.SessionId)
  ::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 uint64 most_significant_uuid_bits = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_most_significant_uuid_bits());
    }
    // optional uint64 least_significant_uuid_bits = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_least_significant_uuid_bits());
    }
  }
  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 UserConsentSpecifics_SessionId::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<UserConsentSpecifics_SessionId*>(&to_msg);
  auto& from = static_cast<const UserConsentSpecifics_SessionId&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.UserConsentSpecifics.SessionId)
  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->_impl_.most_significant_uuid_bits_ = from._impl_.most_significant_uuid_bits_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.least_significant_uuid_bits_ = from._impl_.least_significant_uuid_bits_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void UserConsentSpecifics_SessionId::CopyFrom(const UserConsentSpecifics_SessionId& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.UserConsentSpecifics.SessionId)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void UserConsentSpecifics_SessionId::InternalSwap(UserConsentSpecifics_SessionId* 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(UserConsentSpecifics_SessionId, _impl_.least_significant_uuid_bits_)
      + sizeof(UserConsentSpecifics_SessionId::_impl_.least_significant_uuid_bits_)
      - PROTOBUF_FIELD_OFFSET(UserConsentSpecifics_SessionId, _impl_.most_significant_uuid_bits_)>(
          reinterpret_cast<char*>(&_impl_.most_significant_uuid_bits_),
          reinterpret_cast<char*>(&other->_impl_.most_significant_uuid_bits_));
}

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

void UserConsentSpecifics::set_allocated_sync_consent(::sync_pb::UserConsentTypes_SyncConsent* PROTOBUF_NULLABLE sync_consent) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_consent();
  if (sync_consent) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(sync_consent)->GetArena();
    if (message_arena != submessage_arena) {
      sync_consent = ::google::protobuf::internal::GetOwnedMessage(message_arena, sync_consent, submessage_arena);
    }
    set_has_sync_consent();
    _impl_.consent_.sync_consent_ = sync_consent;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.UserConsentSpecifics.sync_consent)
}
void UserConsentSpecifics::clear_sync_consent() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (consent_case() == kSyncConsent) {
    if (GetArena() == nullptr) {
      delete _impl_.consent_.sync_consent_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.consent_.sync_consent_ != nullptr) {
        _impl_.consent_.sync_consent_->Clear();
      }
    }
    clear_has_consent();
  }
}
void UserConsentSpecifics::set_allocated_arc_backup_and_restore_consent(::sync_pb::UserConsentTypes_ArcBackupAndRestoreConsent* PROTOBUF_NULLABLE arc_backup_and_restore_consent) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_consent();
  if (arc_backup_and_restore_consent) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(arc_backup_and_restore_consent)->GetArena();
    if (message_arena != submessage_arena) {
      arc_backup_and_restore_consent = ::google::protobuf::internal::GetOwnedMessage(message_arena, arc_backup_and_restore_consent, submessage_arena);
    }
    set_has_arc_backup_and_restore_consent();
    _impl_.consent_.arc_backup_and_restore_consent_ = arc_backup_and_restore_consent;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.UserConsentSpecifics.arc_backup_and_restore_consent)
}
void UserConsentSpecifics::clear_arc_backup_and_restore_consent() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (consent_case() == kArcBackupAndRestoreConsent) {
    if (GetArena() == nullptr) {
      delete _impl_.consent_.arc_backup_and_restore_consent_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.consent_.arc_backup_and_restore_consent_ != nullptr) {
        _impl_.consent_.arc_backup_and_restore_consent_->Clear();
      }
    }
    clear_has_consent();
  }
}
void UserConsentSpecifics::set_allocated_arc_location_service_consent(::sync_pb::UserConsentTypes_ArcGoogleLocationServiceConsent* PROTOBUF_NULLABLE arc_location_service_consent) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_consent();
  if (arc_location_service_consent) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(arc_location_service_consent)->GetArena();
    if (message_arena != submessage_arena) {
      arc_location_service_consent = ::google::protobuf::internal::GetOwnedMessage(message_arena, arc_location_service_consent, submessage_arena);
    }
    set_has_arc_location_service_consent();
    _impl_.consent_.arc_location_service_consent_ = arc_location_service_consent;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.UserConsentSpecifics.arc_location_service_consent)
}
void UserConsentSpecifics::clear_arc_location_service_consent() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (consent_case() == kArcLocationServiceConsent) {
    if (GetArena() == nullptr) {
      delete _impl_.consent_.arc_location_service_consent_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.consent_.arc_location_service_consent_ != nullptr) {
        _impl_.consent_.arc_location_service_consent_->Clear();
      }
    }
    clear_has_consent();
  }
}
void UserConsentSpecifics::set_allocated_arc_play_terms_of_service_consent(::sync_pb::UserConsentTypes_ArcPlayTermsOfServiceConsent* PROTOBUF_NULLABLE arc_play_terms_of_service_consent) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_consent();
  if (arc_play_terms_of_service_consent) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(arc_play_terms_of_service_consent)->GetArena();
    if (message_arena != submessage_arena) {
      arc_play_terms_of_service_consent = ::google::protobuf::internal::GetOwnedMessage(message_arena, arc_play_terms_of_service_consent, submessage_arena);
    }
    set_has_arc_play_terms_of_service_consent();
    _impl_.consent_.arc_play_terms_of_service_consent_ = arc_play_terms_of_service_consent;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.UserConsentSpecifics.arc_play_terms_of_service_consent)
}
void UserConsentSpecifics::clear_arc_play_terms_of_service_consent() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (consent_case() == kArcPlayTermsOfServiceConsent) {
    if (GetArena() == nullptr) {
      delete _impl_.consent_.arc_play_terms_of_service_consent_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.consent_.arc_play_terms_of_service_consent_ != nullptr) {
        _impl_.consent_.arc_play_terms_of_service_consent_->Clear();
      }
    }
    clear_has_consent();
  }
}
void UserConsentSpecifics::set_allocated_unified_consent(::sync_pb::UserConsentTypes_UnifiedConsent* PROTOBUF_NULLABLE unified_consent) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_consent();
  if (unified_consent) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(unified_consent)->GetArena();
    if (message_arena != submessage_arena) {
      unified_consent = ::google::protobuf::internal::GetOwnedMessage(message_arena, unified_consent, submessage_arena);
    }
    set_has_unified_consent();
    _impl_.consent_.unified_consent_ = unified_consent;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.UserConsentSpecifics.unified_consent)
}
void UserConsentSpecifics::clear_unified_consent() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (consent_case() == kUnifiedConsent) {
    if (GetArena() == nullptr) {
      delete _impl_.consent_.unified_consent_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.consent_.unified_consent_ != nullptr) {
        _impl_.consent_.unified_consent_->Clear();
      }
    }
    clear_has_consent();
  }
}
void UserConsentSpecifics::set_allocated_assistant_activity_control_consent(::sync_pb::UserConsentTypes_AssistantActivityControlConsent* PROTOBUF_NULLABLE assistant_activity_control_consent) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_consent();
  if (assistant_activity_control_consent) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(assistant_activity_control_consent)->GetArena();
    if (message_arena != submessage_arena) {
      assistant_activity_control_consent = ::google::protobuf::internal::GetOwnedMessage(message_arena, assistant_activity_control_consent, submessage_arena);
    }
    set_has_assistant_activity_control_consent();
    _impl_.consent_.assistant_activity_control_consent_ = assistant_activity_control_consent;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.UserConsentSpecifics.assistant_activity_control_consent)
}
void UserConsentSpecifics::clear_assistant_activity_control_consent() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (consent_case() == kAssistantActivityControlConsent) {
    if (GetArena() == nullptr) {
      delete _impl_.consent_.assistant_activity_control_consent_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.consent_.assistant_activity_control_consent_ != nullptr) {
        _impl_.consent_.assistant_activity_control_consent_->Clear();
      }
    }
    clear_has_consent();
  }
}
void UserConsentSpecifics::set_allocated_account_passwords_consent(::sync_pb::UserConsentTypes_AccountPasswordsConsent* PROTOBUF_NULLABLE account_passwords_consent) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_consent();
  if (account_passwords_consent) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(account_passwords_consent)->GetArena();
    if (message_arena != submessage_arena) {
      account_passwords_consent = ::google::protobuf::internal::GetOwnedMessage(message_arena, account_passwords_consent, submessage_arena);
    }
    set_has_account_passwords_consent();
    _impl_.consent_.account_passwords_consent_ = account_passwords_consent;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.UserConsentSpecifics.account_passwords_consent)
}
void UserConsentSpecifics::clear_account_passwords_consent() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (consent_case() == kAccountPasswordsConsent) {
    if (GetArena() == nullptr) {
      delete _impl_.consent_.account_passwords_consent_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.consent_.account_passwords_consent_ != nullptr) {
        _impl_.consent_.account_passwords_consent_->Clear();
      }
    }
    clear_has_consent();
  }
}
void UserConsentSpecifics::set_allocated_recorder_speaker_label_consent(::sync_pb::UserConsentTypes_RecorderSpeakerLabelConsent* PROTOBUF_NULLABLE recorder_speaker_label_consent) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_consent();
  if (recorder_speaker_label_consent) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(recorder_speaker_label_consent)->GetArena();
    if (message_arena != submessage_arena) {
      recorder_speaker_label_consent = ::google::protobuf::internal::GetOwnedMessage(message_arena, recorder_speaker_label_consent, submessage_arena);
    }
    set_has_recorder_speaker_label_consent();
    _impl_.consent_.recorder_speaker_label_consent_ = recorder_speaker_label_consent;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.UserConsentSpecifics.recorder_speaker_label_consent)
}
void UserConsentSpecifics::clear_recorder_speaker_label_consent() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (consent_case() == kRecorderSpeakerLabelConsent) {
    if (GetArena() == nullptr) {
      delete _impl_.consent_.recorder_speaker_label_consent_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.consent_.recorder_speaker_label_consent_ != nullptr) {
        _impl_.consent_.recorder_speaker_label_consent_->Clear();
      }
    }
    clear_has_consent();
  }
}
void UserConsentSpecifics::set_allocated_wallet_private_pass_consent(::sync_pb::UserConsentTypes_WalletPrivatePassConsent* PROTOBUF_NULLABLE wallet_private_pass_consent) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_consent();
  if (wallet_private_pass_consent) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(wallet_private_pass_consent)->GetArena();
    if (message_arena != submessage_arena) {
      wallet_private_pass_consent = ::google::protobuf::internal::GetOwnedMessage(message_arena, wallet_private_pass_consent, submessage_arena);
    }
    set_has_wallet_private_pass_consent();
    _impl_.consent_.wallet_private_pass_consent_ = wallet_private_pass_consent;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.UserConsentSpecifics.wallet_private_pass_consent)
}
void UserConsentSpecifics::clear_wallet_private_pass_consent() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (consent_case() == kWalletPrivatePassConsent) {
    if (GetArena() == nullptr) {
      delete _impl_.consent_.wallet_private_pass_consent_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.consent_.wallet_private_pass_consent_ != nullptr) {
        _impl_.consent_.wallet_private_pass_consent_->Clear();
      }
    }
    clear_has_consent();
  }
}
UserConsentSpecifics::UserConsentSpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, UserConsentSpecifics_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.UserConsentSpecifics)
}
PROTOBUF_NDEBUG_INLINE UserConsentSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::UserConsentSpecifics& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        description_grd_ids_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::UserConsentSpecifics,
              PROTOBUF_FIELD_OFFSET(::sync_pb::UserConsentSpecifics, _impl_.description_grd_ids_)>()
          , from.description_grd_ids_
        }
        ,
        locale_(arena, from.locale_),
        obfuscated_gaia_id_(arena, from.obfuscated_gaia_id_),
        consent_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  UserConsentSpecifics* 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_.session_id_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_id_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, feature_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, feature_),
           offsetof(Impl_, status_) -
               offsetof(Impl_, feature_) +
               sizeof(Impl_::status_));
  switch (consent_case()) {
    case CONSENT_NOT_SET:
      break;
      case kSyncConsent:
        _impl_.consent_.sync_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.sync_consent_);
        break;
      case kArcBackupAndRestoreConsent:
        _impl_.consent_.arc_backup_and_restore_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.arc_backup_and_restore_consent_);
        break;
      case kArcLocationServiceConsent:
        _impl_.consent_.arc_location_service_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.arc_location_service_consent_);
        break;
      case kArcPlayTermsOfServiceConsent:
        _impl_.consent_.arc_play_terms_of_service_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.arc_play_terms_of_service_consent_);
        break;
      case kUnifiedConsent:
        _impl_.consent_.unified_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.unified_consent_);
        break;
      case kAssistantActivityControlConsent:
        _impl_.consent_.assistant_activity_control_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.assistant_activity_control_consent_);
        break;
      case kAccountPasswordsConsent:
        _impl_.consent_.account_passwords_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.account_passwords_consent_);
        break;
      case kRecorderSpeakerLabelConsent:
        _impl_.consent_.recorder_speaker_label_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.recorder_speaker_label_consent_);
        break;
      case kWalletPrivatePassConsent:
        _impl_.consent_.wallet_private_pass_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.wallet_private_pass_consent_);
        break;
  }

  // @@protoc_insertion_point(copy_constructor:sync_pb.UserConsentSpecifics)
}
PROTOBUF_NDEBUG_INLINE UserConsentSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        description_grd_ids_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::UserConsentSpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::UserConsentSpecifics, _impl_.description_grd_ids_)>()
         }
        ,
        locale_(arena),
        obfuscated_gaia_id_(arena),
        consent_{},
        _oneof_case_{} {}

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

void UserConsentSpecifics::clear_consent() {
// @@protoc_insertion_point(one_of_clear_start:sync_pb.UserConsentSpecifics)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (consent_case()) {
    case kSyncConsent: {
      if (GetArena() == nullptr) {
        delete _impl_.consent_.sync_consent_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.consent_.sync_consent_ != nullptr) {
          _impl_.consent_.sync_consent_->Clear();
        }
      }
      break;
    }
    case kArcBackupAndRestoreConsent: {
      if (GetArena() == nullptr) {
        delete _impl_.consent_.arc_backup_and_restore_consent_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.consent_.arc_backup_and_restore_consent_ != nullptr) {
          _impl_.consent_.arc_backup_and_restore_consent_->Clear();
        }
      }
      break;
    }
    case kArcLocationServiceConsent: {
      if (GetArena() == nullptr) {
        delete _impl_.consent_.arc_location_service_consent_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.consent_.arc_location_service_consent_ != nullptr) {
          _impl_.consent_.arc_location_service_consent_->Clear();
        }
      }
      break;
    }
    case kArcPlayTermsOfServiceConsent: {
      if (GetArena() == nullptr) {
        delete _impl_.consent_.arc_play_terms_of_service_consent_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.consent_.arc_play_terms_of_service_consent_ != nullptr) {
          _impl_.consent_.arc_play_terms_of_service_consent_->Clear();
        }
      }
      break;
    }
    case kUnifiedConsent: {
      if (GetArena() == nullptr) {
        delete _impl_.consent_.unified_consent_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.consent_.unified_consent_ != nullptr) {
          _impl_.consent_.unified_consent_->Clear();
        }
      }
      break;
    }
    case kAssistantActivityControlConsent: {
      if (GetArena() == nullptr) {
        delete _impl_.consent_.assistant_activity_control_consent_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.consent_.assistant_activity_control_consent_ != nullptr) {
          _impl_.consent_.assistant_activity_control_consent_->Clear();
        }
      }
      break;
    }
    case kAccountPasswordsConsent: {
      if (GetArena() == nullptr) {
        delete _impl_.consent_.account_passwords_consent_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.consent_.account_passwords_consent_ != nullptr) {
          _impl_.consent_.account_passwords_consent_->Clear();
        }
      }
      break;
    }
    case kRecorderSpeakerLabelConsent: {
      if (GetArena() == nullptr) {
        delete _impl_.consent_.recorder_speaker_label_consent_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.consent_.recorder_speaker_label_consent_ != nullptr) {
          _impl_.consent_.recorder_speaker_label_consent_->Clear();
        }
      }
      break;
    }
    case kWalletPrivatePassConsent: {
      if (GetArena() == nullptr) {
        delete _impl_.consent_.wallet_private_pass_consent_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.consent_.wallet_private_pass_consent_ != nullptr) {
          _impl_.consent_.wallet_private_pass_consent_->Clear();
        }
      }
      break;
    }
    case CONSENT_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = CONSENT_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite UserConsentSpecifics_class_data_ =
    UserConsentSpecifics::InternalGenerateClassData_(UserConsentSpecifics_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UserConsentSpecifics::GetClassData() const {
  return UserConsentSpecifics_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UserConsentSpecifics::GetClassData() const {
  return UserConsentSpecifics_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const UserConsentSpecifics::ParseTableT_
    UserConsentSpecifics::_table_ =
        UserConsentSpecifics::InternalGenerateParseTable_(UserConsentSpecifics_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void UserConsentSpecifics::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.UserConsentSpecifics)
  ::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_.description_grd_ids_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.locale_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.obfuscated_gaia_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.session_id_ != nullptr);
      _impl_.session_id_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) {
    ::memset(&_impl_.feature_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.status_) -
        reinterpret_cast<char*>(&_impl_.feature_)) + sizeof(_impl_.status_));
  }
  clear_consent();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .sync_pb.UserConsentSpecifics.Feature feature = 1 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_feature(), target);
  }

  // repeated int32 description_grd_ids = 2 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_description_grd_ids_size(); i < n; ++i) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt32ToArray(
          2, this_._internal_description_grd_ids().Get(i), target);
    }
  }

  // optional int32 confirmation_grd_id = 3 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
            stream, this_._internal_confirmation_grd_id(), target);
  }

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

  // optional .sync_pb.UserConsentTypes.ConsentStatus status = 5 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        5, this_._internal_status(), target);
  }

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

  switch (this_.consent_case()) {
    case kSyncConsent: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          7, *this_._impl_.consent_.sync_consent_, this_._impl_.consent_.sync_consent_->GetCachedSize(), target,
          stream);
      break;
    }
    case kArcBackupAndRestoreConsent: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          8, *this_._impl_.consent_.arc_backup_and_restore_consent_, this_._impl_.consent_.arc_backup_and_restore_consent_->GetCachedSize(), target,
          stream);
      break;
    }
    case kArcLocationServiceConsent: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          9, *this_._impl_.consent_.arc_location_service_consent_, this_._impl_.consent_.arc_location_service_consent_->GetCachedSize(), target,
          stream);
      break;
    }
    case kArcPlayTermsOfServiceConsent: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          10, *this_._impl_.consent_.arc_play_terms_of_service_consent_, this_._impl_.consent_.arc_play_terms_of_service_consent_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  // optional int64 client_consent_time_usec = 12;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<12>(
            stream, this_._internal_client_consent_time_usec(), target);
  }

  switch (this_.consent_case()) {
    case kUnifiedConsent: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          13, *this_._impl_.consent_.unified_consent_, this_._impl_.consent_.unified_consent_->GetCachedSize(), target,
          stream);
      break;
    }
    case kAssistantActivityControlConsent: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          14, *this_._impl_.consent_.assistant_activity_control_consent_, this_._impl_.consent_.assistant_activity_control_consent_->GetCachedSize(), target,
          stream);
      break;
    }
    case kAccountPasswordsConsent: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          15, *this_._impl_.consent_.account_passwords_consent_, this_._impl_.consent_.account_passwords_consent_->GetCachedSize(), target,
          stream);
      break;
    }
    case kRecorderSpeakerLabelConsent: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          17, *this_._impl_.consent_.recorder_speaker_label_consent_, this_._impl_.consent_.recorder_speaker_label_consent_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  // optional .sync_pb.UserConsentSpecifics.SessionId session_id = 18;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        18, *this_._impl_.session_id_, this_._impl_.session_id_->GetCachedSize(), target,
        stream);
  }

  // .sync_pb.UserConsentTypes.WalletPrivatePassConsent wallet_private_pass_consent = 19;
  if (this_.consent_case() == kWalletPrivatePassConsent) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        19, *this_._impl_.consent_.wallet_private_pass_consent_, this_._impl_.consent_.wallet_private_pass_consent_->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:sync_pb.UserConsentSpecifics)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t UserConsentSpecifics::ByteSizeLong(const MessageLite& base) {
  const UserConsentSpecifics& this_ = static_cast<const UserConsentSpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t UserConsentSpecifics::ByteSizeLong() const {
  const UserConsentSpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.UserConsentSpecifics)
  ::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, 0x000000ffU)) {
    // repeated int32 description_grd_ids = 2 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
          this_._internal_description_grd_ids());
      ::size_t tag_size = ::size_t{1} *
          ::_pbi::FromIntSize(this_._internal_description_grd_ids_size());
      total_size += tag_size + data_size;
    }
    // optional string locale = 4;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_locale());
    }
    // optional string obfuscated_gaia_id = 6;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_obfuscated_gaia_id());
    }
    // optional .sync_pb.UserConsentSpecifics.SessionId session_id = 18;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.session_id_);
    }
    // optional .sync_pb.UserConsentSpecifics.Feature feature = 1 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_feature());
    }
    // optional int32 confirmation_grd_id = 3 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_confirmation_grd_id());
    }
    // optional int64 client_consent_time_usec = 12;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_client_consent_time_usec());
    }
    // optional .sync_pb.UserConsentTypes.ConsentStatus status = 5 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_status());
    }
  }
  switch (this_.consent_case()) {
    // .sync_pb.UserConsentTypes.SyncConsent sync_consent = 7;
    case kSyncConsent: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.consent_.sync_consent_);
      break;
    }
    // .sync_pb.UserConsentTypes.ArcBackupAndRestoreConsent arc_backup_and_restore_consent = 8;
    case kArcBackupAndRestoreConsent: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.consent_.arc_backup_and_restore_consent_);
      break;
    }
    // .sync_pb.UserConsentTypes.ArcGoogleLocationServiceConsent arc_location_service_consent = 9;
    case kArcLocationServiceConsent: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.consent_.arc_location_service_consent_);
      break;
    }
    // .sync_pb.UserConsentTypes.ArcPlayTermsOfServiceConsent arc_play_terms_of_service_consent = 10;
    case kArcPlayTermsOfServiceConsent: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.consent_.arc_play_terms_of_service_consent_);
      break;
    }
    // .sync_pb.UserConsentTypes.UnifiedConsent unified_consent = 13 [deprecated = true];
    case kUnifiedConsent: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.consent_.unified_consent_);
      break;
    }
    // .sync_pb.UserConsentTypes.AssistantActivityControlConsent assistant_activity_control_consent = 14 [deprecated = true];
    case kAssistantActivityControlConsent: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.consent_.assistant_activity_control_consent_);
      break;
    }
    // .sync_pb.UserConsentTypes.AccountPasswordsConsent account_passwords_consent = 15 [deprecated = true];
    case kAccountPasswordsConsent: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.consent_.account_passwords_consent_);
      break;
    }
    // .sync_pb.UserConsentTypes.RecorderSpeakerLabelConsent recorder_speaker_label_consent = 17;
    case kRecorderSpeakerLabelConsent: {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.consent_.recorder_speaker_label_consent_);
      break;
    }
    // .sync_pb.UserConsentTypes.WalletPrivatePassConsent wallet_private_pass_consent = 19;
    case kWalletPrivatePassConsent: {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.consent_.wallet_private_pass_consent_);
      break;
    }
    case CONSENT_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 UserConsentSpecifics::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<UserConsentSpecifics*>(&to_msg);
  auto& from = static_cast<const UserConsentSpecifics&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.UserConsentSpecifics)
  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, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_description_grd_ids()->MergeFrom(from._internal_description_grd_ids());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_locale(from._internal_locale());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_obfuscated_gaia_id(from._internal_obfuscated_gaia_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.session_id_ != nullptr);
      if (_this->_impl_.session_id_ == nullptr) {
        _this->_impl_.session_id_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.session_id_);
      } else {
        _this->_impl_.session_id_->MergeFrom(*from._impl_.session_id_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.feature_ = from._impl_.feature_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.confirmation_grd_id_ = from._impl_.confirmation_grd_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.client_consent_time_usec_ = from._impl_.client_consent_time_usec_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.status_ = from._impl_.status_;
    }
  }
  _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_consent();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kSyncConsent: {
        if (oneof_needs_init) {
          _this->_impl_.consent_.sync_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.sync_consent_);
        } else {
          _this->_impl_.consent_.sync_consent_->CheckTypeAndMergeFrom(*from._impl_.consent_.sync_consent_);
        }
        break;
      }
      case kArcBackupAndRestoreConsent: {
        if (oneof_needs_init) {
          _this->_impl_.consent_.arc_backup_and_restore_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.arc_backup_and_restore_consent_);
        } else {
          _this->_impl_.consent_.arc_backup_and_restore_consent_->CheckTypeAndMergeFrom(*from._impl_.consent_.arc_backup_and_restore_consent_);
        }
        break;
      }
      case kArcLocationServiceConsent: {
        if (oneof_needs_init) {
          _this->_impl_.consent_.arc_location_service_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.arc_location_service_consent_);
        } else {
          _this->_impl_.consent_.arc_location_service_consent_->CheckTypeAndMergeFrom(*from._impl_.consent_.arc_location_service_consent_);
        }
        break;
      }
      case kArcPlayTermsOfServiceConsent: {
        if (oneof_needs_init) {
          _this->_impl_.consent_.arc_play_terms_of_service_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.arc_play_terms_of_service_consent_);
        } else {
          _this->_impl_.consent_.arc_play_terms_of_service_consent_->CheckTypeAndMergeFrom(*from._impl_.consent_.arc_play_terms_of_service_consent_);
        }
        break;
      }
      case kUnifiedConsent: {
        if (oneof_needs_init) {
          _this->_impl_.consent_.unified_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.unified_consent_);
        } else {
          _this->_impl_.consent_.unified_consent_->CheckTypeAndMergeFrom(*from._impl_.consent_.unified_consent_);
        }
        break;
      }
      case kAssistantActivityControlConsent: {
        if (oneof_needs_init) {
          _this->_impl_.consent_.assistant_activity_control_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.assistant_activity_control_consent_);
        } else {
          _this->_impl_.consent_.assistant_activity_control_consent_->CheckTypeAndMergeFrom(*from._impl_.consent_.assistant_activity_control_consent_);
        }
        break;
      }
      case kAccountPasswordsConsent: {
        if (oneof_needs_init) {
          _this->_impl_.consent_.account_passwords_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.account_passwords_consent_);
        } else {
          _this->_impl_.consent_.account_passwords_consent_->CheckTypeAndMergeFrom(*from._impl_.consent_.account_passwords_consent_);
        }
        break;
      }
      case kRecorderSpeakerLabelConsent: {
        if (oneof_needs_init) {
          _this->_impl_.consent_.recorder_speaker_label_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.recorder_speaker_label_consent_);
        } else {
          _this->_impl_.consent_.recorder_speaker_label_consent_->CheckTypeAndMergeFrom(*from._impl_.consent_.recorder_speaker_label_consent_);
        }
        break;
      }
      case kWalletPrivatePassConsent: {
        if (oneof_needs_init) {
          _this->_impl_.consent_.wallet_private_pass_consent_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.consent_.wallet_private_pass_consent_);
        } else {
          _this->_impl_.consent_.wallet_private_pass_consent_->CheckTypeAndMergeFrom(*from._impl_.consent_.wallet_private_pass_consent_);
        }
        break;
      }
      case CONSENT_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void UserConsentSpecifics::InternalSwap(UserConsentSpecifics* 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_.description_grd_ids_.InternalSwap(&other->_impl_.description_grd_ids_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.locale_, &other->_impl_.locale_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.obfuscated_gaia_id_, &other->_impl_.obfuscated_gaia_id_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.status_)
      + sizeof(UserConsentSpecifics::_impl_.status_)
      - PROTOBUF_FIELD_OFFSET(UserConsentSpecifics, _impl_.session_id_)>(
          reinterpret_cast<char*>(&_impl_.session_id_),
          reinterpret_cast<char*>(&other->_impl_.session_id_));
  swap(_impl_.consent_, other->_impl_.consent_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

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