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

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

constexpr SchedulingParams::ParseTableT_ SchedulingParams::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SchedulingParams, _impl_._has_bits_),
      0, // no _extensions_
      5, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967265,  // 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<::protodb::SchedulingParams>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .protodb.SchedulingParams.NetworkRequirements network_requirements = 4;
      {::_pbi::TcParser::FastEr0S1,
       {32, 2, 2,
        PROTOBUF_FIELD_OFFSET(SchedulingParams, _impl_.network_requirements_)}},
      // optional .protodb.SchedulingParams.BatteryRequirements battery_requirements = 5;
      {::_pbi::TcParser::FastEr0S1,
       {40, 3, 2,
        PROTOBUF_FIELD_OFFSET(SchedulingParams, _impl_.battery_requirements_)}},
      // optional int64 cancel_time = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 0, 0,
        PROTOBUF_FIELD_OFFSET(SchedulingParams, _impl_.cancel_time_)}},
      // optional .protodb.SchedulingParams.Priority priority = 3;
      {::_pbi::TcParser::FastEr0S1,
       {24, 1, 3,
        PROTOBUF_FIELD_OFFSET(SchedulingParams, _impl_.priority_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 cancel_time = 2;
      {PROTOBUF_FIELD_OFFSET(SchedulingParams, _impl_.cancel_time_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional .protodb.SchedulingParams.Priority priority = 3;
      {PROTOBUF_FIELD_OFFSET(SchedulingParams, _impl_.priority_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional .protodb.SchedulingParams.NetworkRequirements network_requirements = 4;
      {PROTOBUF_FIELD_OFFSET(SchedulingParams, _impl_.network_requirements_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional .protodb.SchedulingParams.BatteryRequirements battery_requirements = 5;
      {PROTOBUF_FIELD_OFFSET(SchedulingParams, _impl_.battery_requirements_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {0, 3},
        {0, 2},
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr SchedulingParams::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        cancel_time_{::int64_t{0}},
        priority_{static_cast< ::protodb::SchedulingParams_Priority >(0)},
        network_requirements_{static_cast< ::protodb::SchedulingParams_NetworkRequirements >(0)},
        battery_requirements_{static_cast< ::protodb::SchedulingParams_BatteryRequirements >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SchedulingParamsGlobalsTypeInternal SchedulingParams_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* SchedulingParams_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return SchedulingParams_globals_.GetClassData();
#else
  return SchedulingParams_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace protodb
namespace protodb {
PROTOBUF_CONSTINIT const uint32_t SchedulingParams_NetworkRequirements_internal_data_[] = {
    196608u, 0u, };
static const char SchedulingParams_NetworkRequirements_names[] = {
    "NONE"
    "OPTIMISTIC"
    "UNMETERED"
};

static const ::google::protobuf::internal::EnumEntry SchedulingParams_NetworkRequirements_entries[] = {
    {{&SchedulingParams_NetworkRequirements_names[0], 4}, 0},
    {{&SchedulingParams_NetworkRequirements_names[4], 10}, 1},
    {{&SchedulingParams_NetworkRequirements_names[14], 9}, 2},
};

static const int SchedulingParams_NetworkRequirements_entries_by_number[] = {
    0,  // 0 -> NONE
    1,  // 1 -> OPTIMISTIC
    2,  // 2 -> UNMETERED
};

bool SchedulingParams_NetworkRequirements_Parse(::absl::string_view name,
                                  SchedulingParams_NetworkRequirements* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      SchedulingParams_NetworkRequirements_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<SchedulingParams_NetworkRequirements>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    SchedulingParams_NetworkRequirements_strings[3] = {};

const ::std::string& SchedulingParams_NetworkRequirements_Name(SchedulingParams_NetworkRequirements value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SchedulingParams_NetworkRequirements_entries, SchedulingParams_NetworkRequirements_entries_by_number, 3,
      SchedulingParams_NetworkRequirements_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SchedulingParams_NetworkRequirements_entries,
                                  SchedulingParams_NetworkRequirements_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SchedulingParams_NetworkRequirements_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t SchedulingParams_BatteryRequirements_internal_data_[] = {
    196608u, 0u, };
static const char SchedulingParams_BatteryRequirements_names[] = {
    "BATTERY_CHARGING"
    "BATTERY_INSENSITIVE"
    "BATTERY_SENSITIVE"
};

static const ::google::protobuf::internal::EnumEntry SchedulingParams_BatteryRequirements_entries[] = {
    {{&SchedulingParams_BatteryRequirements_names[0], 16}, 2},
    {{&SchedulingParams_BatteryRequirements_names[16], 19}, 0},
    {{&SchedulingParams_BatteryRequirements_names[35], 17}, 1},
};

static const int SchedulingParams_BatteryRequirements_entries_by_number[] = {
    1,  // 0 -> BATTERY_INSENSITIVE
    2,  // 1 -> BATTERY_SENSITIVE
    0,  // 2 -> BATTERY_CHARGING
};

bool SchedulingParams_BatteryRequirements_Parse(::absl::string_view name,
                                  SchedulingParams_BatteryRequirements* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      SchedulingParams_BatteryRequirements_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<SchedulingParams_BatteryRequirements>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    SchedulingParams_BatteryRequirements_strings[3] = {};

const ::std::string& SchedulingParams_BatteryRequirements_Name(SchedulingParams_BatteryRequirements value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SchedulingParams_BatteryRequirements_entries, SchedulingParams_BatteryRequirements_entries_by_number, 3,
      SchedulingParams_BatteryRequirements_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SchedulingParams_BatteryRequirements_entries,
                                  SchedulingParams_BatteryRequirements_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SchedulingParams_BatteryRequirements_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t SchedulingParams_Priority_internal_data_[] = {
    262144u, 0u, };
static const char SchedulingParams_Priority_names[] = {
    "HIGH"
    "LOW"
    "NORMAL"
    "UI"
};

static const ::google::protobuf::internal::EnumEntry SchedulingParams_Priority_entries[] = {
    {{&SchedulingParams_Priority_names[0], 4}, 2},
    {{&SchedulingParams_Priority_names[4], 3}, 0},
    {{&SchedulingParams_Priority_names[7], 6}, 1},
    {{&SchedulingParams_Priority_names[13], 2}, 3},
};

static const int SchedulingParams_Priority_entries_by_number[] = {
    1,  // 0 -> LOW
    2,  // 1 -> NORMAL
    0,  // 2 -> HIGH
    3,  // 3 -> UI
};

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

const ::std::string& SchedulingParams_Priority_Name(SchedulingParams_Priority value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SchedulingParams_Priority_entries, SchedulingParams_Priority_entries_by_number, 4,
      SchedulingParams_Priority_strings);
  (void)kDummy;

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

SchedulingParams::SchedulingParams(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SchedulingParams_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:protodb.SchedulingParams)
}
SchedulingParams::SchedulingParams(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SchedulingParams& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SchedulingParams_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 SchedulingParams::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void SchedulingParams::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, cancel_time_),
           0,
           offsetof(Impl_, battery_requirements_) -
               offsetof(Impl_, cancel_time_) +
               sizeof(Impl_::battery_requirements_));
}
SchedulingParams::~SchedulingParams() {
  // @@protoc_insertion_point(destructor:protodb.SchedulingParams)
  SharedDtor(*this);
}
inline void SchedulingParams::SharedDtor(MessageLite& self) {
  SchedulingParams& this_ = static_cast<SchedulingParams&>(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 SchedulingParams_class_data_ =
    SchedulingParams::InternalGenerateClassData_(SchedulingParams_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int64 cancel_time = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
            stream, this_._internal_cancel_time(), target);
  }

  // optional .protodb.SchedulingParams.Priority priority = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_priority(), target);
  }

  // optional .protodb.SchedulingParams.NetworkRequirements network_requirements = 4;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        4, this_._internal_network_requirements(), target);
  }

  // optional .protodb.SchedulingParams.BatteryRequirements battery_requirements = 5;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        5, this_._internal_battery_requirements(), 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:protodb.SchedulingParams)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SchedulingParams::ByteSizeLong(const MessageLite& base) {
  const SchedulingParams& this_ = static_cast<const SchedulingParams&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SchedulingParams::ByteSizeLong() const {
  const SchedulingParams& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:protodb.SchedulingParams)
  ::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)) {
    // optional int64 cancel_time = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_cancel_time());
    }
    // optional .protodb.SchedulingParams.Priority priority = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_priority());
    }
    // optional .protodb.SchedulingParams.NetworkRequirements network_requirements = 4;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_network_requirements());
    }
    // optional .protodb.SchedulingParams.BatteryRequirements battery_requirements = 5;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_battery_requirements());
    }
  }
  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 SchedulingParams::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SchedulingParams*>(&to_msg);
  auto& from = static_cast<const SchedulingParams&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:protodb.SchedulingParams)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.cancel_time_ = from._impl_.cancel_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.priority_ = from._impl_.priority_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.network_requirements_ = from._impl_.network_requirements_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.battery_requirements_ = from._impl_.battery_requirements_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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