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

#include "components/optimization_guide/proto/substitution.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 optimization_guide {
namespace proto {
class IndexExpr::_Internal {
 public:
  using HasBits = decltype(::std::declval<IndexExpr>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(IndexExpr, _impl_._has_bits_);
};

constexpr IndexExpr::ParseTableT_ IndexExpr::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(IndexExpr, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // 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<::optimization_guide::proto::IndexExpr>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // bool one_based = 1;
      {::_pbi::TcParser::FastV8S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(IndexExpr, _impl_.one_based_)}},
    }}, {{
      65535, 65535
    }}, {{
      // bool one_based = 1;
      {PROTOBUF_FIELD_OFFSET(IndexExpr, _impl_.one_based_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr IndexExpr::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        one_based_{false} {}

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

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

constexpr MediaField::ParseTableT_ MediaField::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(MediaField, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::MediaField>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.ProtoField proto_field = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(MediaField, _impl_.proto_field_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.ProtoField proto_field = 1;
      {PROTOBUF_FIELD_OFFSET(MediaField, _impl_.proto_field_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ProtoField>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ProtoField_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr MediaField::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        proto_field_{nullptr} {}

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

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

constexpr Condition::ParseTableT_ Condition::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Condition, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::Condition>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .optimization_guide.proto.ProtoField proto_field = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Condition, _impl_.proto_field_)}},
      // .optimization_guide.proto.OperatorType operator_type = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(Condition, _impl_.operator_type_)}},
      // .optimization_guide.proto.Value value = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 1, 1,
        PROTOBUF_FIELD_OFFSET(Condition, _impl_.value_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.ProtoField proto_field = 1;
      {PROTOBUF_FIELD_OFFSET(Condition, _impl_.proto_field_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.OperatorType operator_type = 2;
      {PROTOBUF_FIELD_OFFSET(Condition, _impl_.operator_type_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // .optimization_guide.proto.Value value = 3;
      {PROTOBUF_FIELD_OFFSET(Condition, _impl_.value_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ProtoField>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ProtoField_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::Value>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::Value_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr Condition::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        proto_field_{nullptr},
        value_{nullptr},
        operator_type_{static_cast< ::optimization_guide::proto::OperatorType >(0)} {}

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

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

constexpr ConditionList::ParseTableT_ ConditionList::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ConditionList, _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
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::ConditionList>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .optimization_guide.proto.Condition conditions = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(ConditionList, _impl_.conditions_)}},
      // .optimization_guide.proto.ConditionEvaluationType condition_evaluation_type = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(ConditionList, _impl_.condition_evaluation_type_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.ConditionEvaluationType condition_evaluation_type = 1;
      {PROTOBUF_FIELD_OFFSET(ConditionList, _impl_.condition_evaluation_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // repeated .optimization_guide.proto.Condition conditions = 2;
      {PROTOBUF_FIELD_OFFSET(ConditionList, _impl_.conditions_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::Condition>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::Condition_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr ConditionList::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        conditions_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::ConditionList,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ConditionList, _impl_.conditions_)>()
         }
        ,
        condition_evaluation_type_{static_cast< ::optimization_guide::proto::ConditionEvaluationType >(0)} {}

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

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

constexpr RangeExpr::ParseTableT_ RangeExpr::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(RangeExpr, _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
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::RangeExpr>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.SubstitutedString expr = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(RangeExpr, _impl_.expr_)}},
      // .optimization_guide.proto.ProtoField proto_field = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(RangeExpr, _impl_.proto_field_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.ProtoField proto_field = 1;
      {PROTOBUF_FIELD_OFFSET(RangeExpr, _impl_.proto_field_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.SubstitutedString expr = 2;
      {PROTOBUF_FIELD_OFFSET(RangeExpr, _impl_.expr_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ProtoField>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ProtoField_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::SubstitutedString>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::SubstitutedString_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr RangeExpr::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        proto_field_{nullptr},
        expr_{nullptr} {}

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

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

constexpr StringArg::ParseTableT_ StringArg::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(StringArg, _impl_._has_bits_),
      0, // no _extensions_
      7, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967168,  // skipmap
      offsetof(ParseTableT_, field_entries),
      7,  // num_field_entries
      5,  // 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<::optimization_guide::proto::StringArg>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.ConditionList conditions = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 0, 1,
        PROTOBUF_FIELD_OFFSET(StringArg, _impl_.conditions_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string raw_string = 1;
      {PROTOBUF_FIELD_OFFSET(StringArg, _impl_.arg_.raw_string_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .optimization_guide.proto.ProtoField proto_field = 2;
      {PROTOBUF_FIELD_OFFSET(StringArg, _impl_.arg_.proto_field_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.ConditionList conditions = 3;
      {PROTOBUF_FIELD_OFFSET(StringArg, _impl_.conditions_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.RangeExpr range_expr = 4;
      {PROTOBUF_FIELD_OFFSET(StringArg, _impl_.arg_.range_expr_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.IndexExpr index_expr = 5;
      {PROTOBUF_FIELD_OFFSET(StringArg, _impl_.arg_.index_expr_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.ControlToken control_token = 6;
      {PROTOBUF_FIELD_OFFSET(StringArg, _impl_.arg_.control_token_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)},
      // .optimization_guide.proto.MediaField media_field = 7;
      {PROTOBUF_FIELD_OFFSET(StringArg, _impl_.arg_.media_field_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ProtoField>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ProtoField_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ConditionList>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ConditionList_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::RangeExpr>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::RangeExpr_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::IndexExpr>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::IndexExpr_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::MediaField>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::MediaField_globals_},
        #endif
    }},
    {{
      "\42\12\0\0\0\0\0\0"
      "optimization_guide.proto.StringArg"
      "raw_string"
    }},
  };
}


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

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

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

constexpr StringSubstitution::ParseTableT_ StringSubstitution::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(StringSubstitution, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::StringSubstitution>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .optimization_guide.proto.StringArg candidates = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(StringSubstitution, _impl_.candidates_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .optimization_guide.proto.StringArg candidates = 1;
      {PROTOBUF_FIELD_OFFSET(StringSubstitution, _impl_.candidates_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::StringArg>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::StringArg_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr StringSubstitution::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        candidates_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::StringSubstitution,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::StringSubstitution, _impl_.candidates_)>()
         }
     {}

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

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

constexpr SubstitutedString::ParseTableT_ SubstitutedString::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967238,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::SubstitutedString>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string string_template = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.string_template_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // .optimization_guide.proto.ConditionList conditions = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 2, 0,
        PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.conditions_)}},
      // bool should_ignore_input_context = 5;
      {::_pbi::TcParser::FastV8S1,
       {40, 3, 0,
        PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.should_ignore_input_context_)}},
      // repeated .optimization_guide.proto.StringSubstitution substitutions = 6;
      {::_pbi::TcParser::FastMtR1,
       {50, 0, 1,
        PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.substitutions_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // string string_template = 1;
      {PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.string_template_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .optimization_guide.proto.ConditionList conditions = 4;
      {PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.conditions_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // bool should_ignore_input_context = 5;
      {PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.should_ignore_input_context_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // repeated .optimization_guide.proto.StringSubstitution substitutions = 6;
      {PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.substitutions_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ConditionList>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ConditionList_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::StringSubstitution>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::StringSubstitution_globals_},
        #endif
    }},
    {{
      "\52\17\0\0\0\0\0\0"
      "optimization_guide.proto.SubstitutedString"
      "string_template"
    }},
  };
}


inline constexpr SubstitutedString::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        substitutions_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::SubstitutedString,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::SubstitutedString, _impl_.substitutions_)>()
         }
        ,
        string_template_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        conditions_{nullptr},
        should_ignore_input_context_{false} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SubstitutedStringGlobalsTypeInternal SubstitutedString_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* SubstitutedString_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return SubstitutedString_globals_.GetClassData();
#else
  return SubstitutedString_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace optimization_guide
namespace optimization_guide {
namespace proto {
PROTOBUF_CONSTINIT const uint32_t ControlToken_internal_data_[] = {
    327680u, 0u, };
static const char ControlToken_names[] = {
    "CONTROL_TOKEN_END"
    "CONTROL_TOKEN_MODEL"
    "CONTROL_TOKEN_SYSTEM"
    "CONTROL_TOKEN_UNKNOWN"
    "CONTROL_TOKEN_USER"
};

static const ::google::protobuf::internal::EnumEntry ControlToken_entries[] = {
    {{&ControlToken_names[0], 17}, 4},
    {{&ControlToken_names[17], 19}, 2},
    {{&ControlToken_names[36], 20}, 1},
    {{&ControlToken_names[56], 21}, 0},
    {{&ControlToken_names[77], 18}, 3},
};

static const int ControlToken_entries_by_number[] = {
    3,  // 0 -> CONTROL_TOKEN_UNKNOWN
    2,  // 1 -> CONTROL_TOKEN_SYSTEM
    1,  // 2 -> CONTROL_TOKEN_MODEL
    4,  // 3 -> CONTROL_TOKEN_USER
    0,  // 4 -> CONTROL_TOKEN_END
};

bool ControlToken_Parse(::absl::string_view name,
                                  ControlToken* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      ControlToken_entries, 5, name, &int_value);
  if (success) {
    *value = static_cast<ControlToken>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    ControlToken_strings[5] = {};

const ::std::string& ControlToken_Name(ControlToken value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ControlToken_entries, ControlToken_entries_by_number, 5,
      ControlToken_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ControlToken_entries,
                                  ControlToken_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ControlToken_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t OperatorType_internal_data_[] = {
    196608u, 0u, };
static const char OperatorType_names[] = {
    "OPERATOR_TYPE_EQUAL_TO"
    "OPERATOR_TYPE_NOT_EQUAL_TO"
    "OPERATOR_TYPE_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry OperatorType_entries[] = {
    {{&OperatorType_names[0], 22}, 1},
    {{&OperatorType_names[22], 26}, 2},
    {{&OperatorType_names[48], 25}, 0},
};

static const int OperatorType_entries_by_number[] = {
    2,  // 0 -> OPERATOR_TYPE_UNSPECIFIED
    0,  // 1 -> OPERATOR_TYPE_EQUAL_TO
    1,  // 2 -> OPERATOR_TYPE_NOT_EQUAL_TO
};

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

const ::std::string& OperatorType_Name(OperatorType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      OperatorType_entries, OperatorType_entries_by_number, 3,
      OperatorType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(OperatorType_entries,
                                  OperatorType_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : OperatorType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t ConditionEvaluationType_internal_data_[] = {
    196608u, 0u, };
static const char ConditionEvaluationType_names[] = {
    "CONDITION_EVALUATION_TYPE_AND"
    "CONDITION_EVALUATION_TYPE_OR"
    "CONDITION_EVALUATION_TYPE_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry ConditionEvaluationType_entries[] = {
    {{&ConditionEvaluationType_names[0], 29}, 1},
    {{&ConditionEvaluationType_names[29], 28}, 2},
    {{&ConditionEvaluationType_names[57], 37}, 0},
};

static const int ConditionEvaluationType_entries_by_number[] = {
    2,  // 0 -> CONDITION_EVALUATION_TYPE_UNSPECIFIED
    0,  // 1 -> CONDITION_EVALUATION_TYPE_AND
    1,  // 2 -> CONDITION_EVALUATION_TYPE_OR
};

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

const ::std::string& ConditionEvaluationType_Name(ConditionEvaluationType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ConditionEvaluationType_entries, ConditionEvaluationType_entries_by_number, 3,
      ConditionEvaluationType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ConditionEvaluationType_entries,
                                  ConditionEvaluationType_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ConditionEvaluationType_strings[idx].get();
}
// ===================================================================

SubstitutedString::SubstitutedString(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SubstitutedString_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:optimization_guide.proto.SubstitutedString)
}
PROTOBUF_NDEBUG_INLINE SubstitutedString::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::optimization_guide::proto::SubstitutedString& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        substitutions_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::SubstitutedString,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::SubstitutedString, _impl_.substitutions_)>()
          , from.substitutions_
        }
        ,
        string_template_(arena, from.string_template_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:optimization_guide.proto.SubstitutedString)
}
PROTOBUF_NDEBUG_INLINE SubstitutedString::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        substitutions_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::SubstitutedString,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::SubstitutedString, _impl_.substitutions_)>()
         }
        ,
        string_template_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SubstitutedString_class_data_ =
    SubstitutedString::InternalGenerateClassData_(SubstitutedString_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.substitutions_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.string_template_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.conditions_ != nullptr);
      _impl_.conditions_->Clear();
    }
  }
  _impl_.should_ignore_input_context_ = false;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // string string_template = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_string_template().empty()) {
      const ::std::string& _s = this_._internal_string_template();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SubstitutedString.string_template");
      target = stream->WriteStringMaybeAliased(1, _s, target);
    }
  }

  // .optimization_guide.proto.ConditionList conditions = 4;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.conditions_, this_._impl_.conditions_->GetCachedSize(), target,
        stream);
  }

  // bool should_ignore_input_context = 5;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (this_._internal_should_ignore_input_context() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteBoolToArray(
          5, this_._internal_should_ignore_input_context(), target);
    }
  }

  // repeated .optimization_guide.proto.StringSubstitution substitutions = 6;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_substitutions_size());
         i < n; i++) {
      const auto& repfield = this_._internal_substitutions().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              6, repfield, repfield.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:optimization_guide.proto.SubstitutedString)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    // repeated .optimization_guide.proto.StringSubstitution substitutions = 6;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_substitutions_size();
      for (const auto& msg : this_._internal_substitutions()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // string string_template = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_string_template().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_string_template());
      }
    }
    // .optimization_guide.proto.ConditionList conditions = 4;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.conditions_);
    }
    // bool should_ignore_input_context = 5;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (this_._internal_should_ignore_input_context() != 0) {
        total_size += 2;
      }
    }
  }
  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 SubstitutedString::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SubstitutedString*>(&to_msg);
  auto& from = static_cast<const SubstitutedString&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.SubstitutedString)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_substitutions()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_substitutions());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_string_template().empty()) {
        _this->_internal_set_string_template(from._internal_string_template());
      } else {
        if (_this->_impl_.string_template_.IsDefault()) {
          _this->_internal_set_string_template("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.conditions_ != nullptr);
      if (_this->_impl_.conditions_ == nullptr) {
        _this->_impl_.conditions_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.conditions_);
      } else {
        _this->_impl_.conditions_->MergeFrom(*from._impl_.conditions_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (from._internal_should_ignore_input_context() != 0) {
        _this->_impl_.should_ignore_input_context_ = from._impl_.should_ignore_input_context_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SubstitutedString::InternalSwap(SubstitutedString* 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_.substitutions_.InternalSwap(&other->_impl_.substitutions_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.string_template_, &other->_impl_.string_template_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.should_ignore_input_context_)
      + sizeof(SubstitutedString::_impl_.should_ignore_input_context_)
      - PROTOBUF_FIELD_OFFSET(SubstitutedString, _impl_.conditions_)>(
          reinterpret_cast<char*>(&_impl_.conditions_),
          reinterpret_cast<char*>(&other->_impl_.conditions_));
}

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

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

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

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

  // @@protoc_insertion_point(copy_constructor:optimization_guide.proto.StringSubstitution)
}
PROTOBUF_NDEBUG_INLINE StringSubstitution::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        candidates_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::StringSubstitution,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::StringSubstitution, _impl_.candidates_)>()
         }
     {}

inline void StringSubstitution::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
StringSubstitution::~StringSubstitution() {
  // @@protoc_insertion_point(destructor:optimization_guide.proto.StringSubstitution)
  SharedDtor(*this);
}
inline void StringSubstitution::SharedDtor(MessageLite& self) {
  StringSubstitution& this_ = static_cast<StringSubstitution&>(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 StringSubstitution_class_data_ =
    StringSubstitution::InternalGenerateClassData_(StringSubstitution_globals_._default);

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .optimization_guide.proto.StringArg candidates = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_candidates_size());
         i < n; i++) {
      const auto& repfield = this_._internal_candidates().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.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:optimization_guide.proto.StringSubstitution)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t StringSubstitution::ByteSizeLong(const MessageLite& base) {
  const StringSubstitution& this_ = static_cast<const StringSubstitution&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t StringSubstitution::ByteSizeLong() const {
  const StringSubstitution& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.StringSubstitution)
  ::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_);
   {
    // repeated .optimization_guide.proto.StringArg candidates = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_candidates_size();
      for (const auto& msg : this_._internal_candidates()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  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 StringSubstitution::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<StringSubstitution*>(&to_msg);
  auto& from = static_cast<const StringSubstitution&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.StringSubstitution)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_internal_mutable_candidates()->InternalMergeFromWithArena(
        ::google::protobuf::MessageLite::internal_visibility(), arena,
        from._internal_candidates());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

void RangeExpr::clear_proto_field() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.proto_field_ != nullptr) _impl_.proto_field_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
RangeExpr::RangeExpr(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, RangeExpr_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:optimization_guide.proto.RangeExpr)
}
PROTOBUF_NDEBUG_INLINE RangeExpr::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::optimization_guide::proto::RangeExpr& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  RangeExpr* 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_.proto_field_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.proto_field_)
                : nullptr;
  _impl_.expr_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.expr_)
                : nullptr;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite RangeExpr_class_data_ =
    RangeExpr::InternalGenerateClassData_(RangeExpr_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(_impl_.proto_field_ != nullptr);
      _impl_.proto_field_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.expr_ != nullptr);
      _impl_.expr_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.ProtoField proto_field = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.proto_field_, this_._impl_.proto_field_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.SubstitutedString expr = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.expr_, this_._impl_.expr_->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:optimization_guide.proto.RangeExpr)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t RangeExpr::ByteSizeLong(const MessageLite& base) {
  const RangeExpr& this_ = static_cast<const RangeExpr&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t RangeExpr::ByteSizeLong() const {
  const RangeExpr& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.RangeExpr)
  ::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)) {
    // .optimization_guide.proto.ProtoField proto_field = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.proto_field_);
    }
    // .optimization_guide.proto.SubstitutedString expr = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.expr_);
    }
  }
  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 RangeExpr::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<RangeExpr*>(&to_msg);
  auto& from = static_cast<const RangeExpr&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.RangeExpr)
  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)) {
      ABSL_DCHECK(from._impl_.proto_field_ != nullptr);
      if (_this->_impl_.proto_field_ == nullptr) {
        _this->_impl_.proto_field_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.proto_field_);
      } else {
        _this->_impl_.proto_field_->MergeFrom(*from._impl_.proto_field_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.expr_ != nullptr);
      if (_this->_impl_.expr_ == nullptr) {
        _this->_impl_.expr_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.expr_);
      } else {
        _this->_impl_.expr_->MergeFrom(*from._impl_.expr_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

inline void IndexExpr::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.one_based_ = {};
}
IndexExpr::~IndexExpr() {
  // @@protoc_insertion_point(destructor:optimization_guide.proto.IndexExpr)
  SharedDtor(*this);
}
inline void IndexExpr::SharedDtor(MessageLite& self) {
  IndexExpr& this_ = static_cast<IndexExpr&>(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 IndexExpr_class_data_ =
    IndexExpr::InternalGenerateClassData_(IndexExpr_globals_._default);

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

  _impl_.one_based_ = false;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // bool one_based = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (this_._internal_one_based() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteBoolToArray(
          1, this_._internal_one_based(), 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:optimization_guide.proto.IndexExpr)
  return target;
}

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

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

   {
    // bool one_based = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (this_._internal_one_based() != 0) {
        total_size += 2;
      }
    }
  }
  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 IndexExpr::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<IndexExpr*>(&to_msg);
  auto& from = static_cast<const IndexExpr&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.IndexExpr)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (from._internal_one_based() != 0) {
      _this->_impl_.one_based_ = from._impl_.one_based_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

void MediaField::clear_proto_field() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.proto_field_ != nullptr) _impl_.proto_field_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
MediaField::MediaField(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, MediaField_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:optimization_guide.proto.MediaField)
}
PROTOBUF_NDEBUG_INLINE MediaField::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::optimization_guide::proto::MediaField& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  MediaField* 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_.proto_field_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.proto_field_)
                : nullptr;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite MediaField_class_data_ =
    MediaField::InternalGenerateClassData_(MediaField_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    ABSL_DCHECK(_impl_.proto_field_ != nullptr);
    _impl_.proto_field_->Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.ProtoField proto_field = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.proto_field_, this_._impl_.proto_field_->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:optimization_guide.proto.MediaField)
  return target;
}

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

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

   {
    // .optimization_guide.proto.ProtoField proto_field = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.proto_field_);
    }
  }
  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 MediaField::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<MediaField*>(&to_msg);
  auto& from = static_cast<const MediaField&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.MediaField)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    ABSL_DCHECK(from._impl_.proto_field_ != nullptr);
    if (_this->_impl_.proto_field_ == nullptr) {
      _this->_impl_.proto_field_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.proto_field_);
    } else {
      _this->_impl_.proto_field_->MergeFrom(*from._impl_.proto_field_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

void StringArg::set_allocated_proto_field(::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE proto_field) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_arg();
  if (proto_field) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(proto_field)->GetArena();
    if (message_arena != submessage_arena) {
      proto_field = ::google::protobuf::internal::GetOwnedMessage(message_arena, proto_field, submessage_arena);
    }
    set_has_proto_field();
    _impl_.arg_.proto_field_ = proto_field;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.StringArg.proto_field)
}
void StringArg::clear_proto_field() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (arg_case() == kProtoField) {
    if (GetArena() == nullptr) {
      delete _impl_.arg_.proto_field_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.arg_.proto_field_ != nullptr) {
        _impl_.arg_.proto_field_->Clear();
      }
    }
    clear_has_arg();
  }
}
void StringArg::set_allocated_range_expr(::optimization_guide::proto::RangeExpr* PROTOBUF_NULLABLE range_expr) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_arg();
  if (range_expr) {
    ::google::protobuf::Arena* submessage_arena = range_expr->GetArena();
    if (message_arena != submessage_arena) {
      range_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, range_expr, submessage_arena);
    }
    set_has_range_expr();
    _impl_.arg_.range_expr_ = range_expr;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.StringArg.range_expr)
}
void StringArg::set_allocated_index_expr(::optimization_guide::proto::IndexExpr* PROTOBUF_NULLABLE index_expr) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_arg();
  if (index_expr) {
    ::google::protobuf::Arena* submessage_arena = index_expr->GetArena();
    if (message_arena != submessage_arena) {
      index_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, index_expr, submessage_arena);
    }
    set_has_index_expr();
    _impl_.arg_.index_expr_ = index_expr;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.StringArg.index_expr)
}
void StringArg::set_allocated_media_field(::optimization_guide::proto::MediaField* PROTOBUF_NULLABLE media_field) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_arg();
  if (media_field) {
    ::google::protobuf::Arena* submessage_arena = media_field->GetArena();
    if (message_arena != submessage_arena) {
      media_field = ::google::protobuf::internal::GetOwnedMessage(message_arena, media_field, submessage_arena);
    }
    set_has_media_field();
    _impl_.arg_.media_field_ = media_field;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.StringArg.media_field)
}
StringArg::StringArg(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, StringArg_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:optimization_guide.proto.StringArg)
}
PROTOBUF_NDEBUG_INLINE StringArg::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::optimization_guide::proto::StringArg& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        arg_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  StringArg* 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_.conditions_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.conditions_)
                : nullptr;
  switch (arg_case()) {
    case ARG_NOT_SET:
      break;
      case kRawString:
        new (&_impl_.arg_.raw_string_) decltype(_impl_.arg_.raw_string_){arena, from._impl_.arg_.raw_string_};
        break;
      case kProtoField:
        _impl_.arg_.proto_field_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.arg_.proto_field_);
        break;
      case kRangeExpr:
        _impl_.arg_.range_expr_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.arg_.range_expr_);
        break;
      case kIndexExpr:
        _impl_.arg_.index_expr_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.arg_.index_expr_);
        break;
      case kControlToken:
        _impl_.arg_.control_token_ = from._impl_.arg_.control_token_;
        break;
      case kMediaField:
        _impl_.arg_.media_field_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.arg_.media_field_);
        break;
  }

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

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

void StringArg::clear_arg() {
// @@protoc_insertion_point(one_of_clear_start:optimization_guide.proto.StringArg)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (arg_case()) {
    case kRawString: {
      _impl_.arg_.raw_string_.Destroy();
      break;
    }
    case kProtoField: {
      if (GetArena() == nullptr) {
        delete _impl_.arg_.proto_field_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.arg_.proto_field_ != nullptr) {
          _impl_.arg_.proto_field_->Clear();
        }
      }
      break;
    }
    case kRangeExpr: {
      if (GetArena() == nullptr) {
        delete _impl_.arg_.range_expr_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.arg_.range_expr_ != nullptr) {
          _impl_.arg_.range_expr_->Clear();
        }
      }
      break;
    }
    case kIndexExpr: {
      if (GetArena() == nullptr) {
        delete _impl_.arg_.index_expr_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.arg_.index_expr_ != nullptr) {
          _impl_.arg_.index_expr_->Clear();
        }
      }
      break;
    }
    case kControlToken: {
      // No need to clear
      break;
    }
    case kMediaField: {
      if (GetArena() == nullptr) {
        delete _impl_.arg_.media_field_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.arg_.media_field_ != nullptr) {
          _impl_.arg_.media_field_->Clear();
        }
      }
      break;
    }
    case ARG_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = ARG_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite StringArg_class_data_ =
    StringArg::InternalGenerateClassData_(StringArg_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    ABSL_DCHECK(_impl_.conditions_ != nullptr);
    _impl_.conditions_->Clear();
  }
  clear_arg();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  switch (this_.arg_case()) {
    case kRawString: {
      const ::std::string& _s = this_._internal_raw_string();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.StringArg.raw_string");
      target = stream->WriteStringMaybeAliased(1, _s, target);
      break;
    }
    case kProtoField: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          2, *this_._impl_.arg_.proto_field_, this_._impl_.arg_.proto_field_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.ConditionList conditions = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.conditions_, this_._impl_.conditions_->GetCachedSize(), target,
        stream);
  }

  switch (this_.arg_case()) {
    case kRangeExpr: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          4, *this_._impl_.arg_.range_expr_, this_._impl_.arg_.range_expr_->GetCachedSize(), target,
          stream);
      break;
    }
    case kIndexExpr: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          5, *this_._impl_.arg_.index_expr_, this_._impl_.arg_.index_expr_->GetCachedSize(), target,
          stream);
      break;
    }
    case kControlToken: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          6, this_._internal_control_token(), target);
      break;
    }
    case kMediaField: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          7, *this_._impl_.arg_.media_field_, this_._impl_.arg_.media_field_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  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:optimization_guide.proto.StringArg)
  return target;
}

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

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

   {
    // .optimization_guide.proto.ConditionList conditions = 3;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.conditions_);
    }
  }
  switch (this_.arg_case()) {
    // string raw_string = 1;
    case kRawString: {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_raw_string());
      break;
    }
    // .optimization_guide.proto.ProtoField proto_field = 2;
    case kProtoField: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.arg_.proto_field_);
      break;
    }
    // .optimization_guide.proto.RangeExpr range_expr = 4;
    case kRangeExpr: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.arg_.range_expr_);
      break;
    }
    // .optimization_guide.proto.IndexExpr index_expr = 5;
    case kIndexExpr: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.arg_.index_expr_);
      break;
    }
    // .optimization_guide.proto.ControlToken control_token = 6;
    case kControlToken: {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_control_token());
      break;
    }
    // .optimization_guide.proto.MediaField media_field = 7;
    case kMediaField: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.arg_.media_field_);
      break;
    }
    case ARG_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 StringArg::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<StringArg*>(&to_msg);
  auto& from = static_cast<const StringArg&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.StringArg)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    ABSL_DCHECK(from._impl_.conditions_ != nullptr);
    if (_this->_impl_.conditions_ == nullptr) {
      _this->_impl_.conditions_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.conditions_);
    } else {
      _this->_impl_.conditions_->MergeFrom(*from._impl_.conditions_);
    }
  }
  _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_arg();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kRawString: {
        if (oneof_needs_init) {
          _this->_impl_.arg_.raw_string_.InitDefault();
        }
        _this->_impl_.arg_.raw_string_.Set(from._internal_raw_string(), arena);
        break;
      }
      case kProtoField: {
        if (oneof_needs_init) {
          _this->_impl_.arg_.proto_field_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.arg_.proto_field_);
        } else {
          _this->_impl_.arg_.proto_field_->CheckTypeAndMergeFrom(*from._impl_.arg_.proto_field_);
        }
        break;
      }
      case kRangeExpr: {
        if (oneof_needs_init) {
          _this->_impl_.arg_.range_expr_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.arg_.range_expr_);
        } else {
          _this->_impl_.arg_.range_expr_->CheckTypeAndMergeFrom(*from._impl_.arg_.range_expr_);
        }
        break;
      }
      case kIndexExpr: {
        if (oneof_needs_init) {
          _this->_impl_.arg_.index_expr_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.arg_.index_expr_);
        } else {
          _this->_impl_.arg_.index_expr_->CheckTypeAndMergeFrom(*from._impl_.arg_.index_expr_);
        }
        break;
      }
      case kControlToken: {
        _this->_impl_.arg_.control_token_ = from._impl_.arg_.control_token_;
        break;
      }
      case kMediaField: {
        if (oneof_needs_init) {
          _this->_impl_.arg_.media_field_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.arg_.media_field_);
        } else {
          _this->_impl_.arg_.media_field_->CheckTypeAndMergeFrom(*from._impl_.arg_.media_field_);
        }
        break;
      }
      case ARG_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

  // @@protoc_insertion_point(copy_constructor:optimization_guide.proto.ConditionList)
}
PROTOBUF_NDEBUG_INLINE ConditionList::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        conditions_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::ConditionList,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ConditionList, _impl_.conditions_)>()
         }
     {}

inline void ConditionList::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.condition_evaluation_type_ = {};
}
ConditionList::~ConditionList() {
  // @@protoc_insertion_point(destructor:optimization_guide.proto.ConditionList)
  SharedDtor(*this);
}
inline void ConditionList::SharedDtor(MessageLite& self) {
  ConditionList& this_ = static_cast<ConditionList&>(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 ConditionList_class_data_ =
    ConditionList::InternalGenerateClassData_(ConditionList_globals_._default);

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.ConditionEvaluationType condition_evaluation_type = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (this_._internal_condition_evaluation_type() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          1, this_._internal_condition_evaluation_type(), target);
    }
  }

  // repeated .optimization_guide.proto.Condition conditions = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_conditions_size());
         i < n; i++) {
      const auto& repfield = this_._internal_conditions().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.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:optimization_guide.proto.ConditionList)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ConditionList::ByteSizeLong(const MessageLite& base) {
  const ConditionList& this_ = static_cast<const ConditionList&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ConditionList::ByteSizeLong() const {
  const ConditionList& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.ConditionList)
  ::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)) {
    // repeated .optimization_guide.proto.Condition conditions = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_conditions_size();
      for (const auto& msg : this_._internal_conditions()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .optimization_guide.proto.ConditionEvaluationType condition_evaluation_type = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (this_._internal_condition_evaluation_type() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_condition_evaluation_type());
      }
    }
  }
  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 ConditionList::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ConditionList*>(&to_msg);
  auto& from = static_cast<const ConditionList&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.ConditionList)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_conditions()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_conditions());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (from._internal_condition_evaluation_type() != 0) {
        _this->_impl_.condition_evaluation_type_ = from._impl_.condition_evaluation_type_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void ConditionList::InternalSwap(ConditionList* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.conditions_.InternalSwap(&other->_impl_.conditions_);
  swap(_impl_.condition_evaluation_type_, other->_impl_.condition_evaluation_type_);
}

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

void Condition::clear_proto_field() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.proto_field_ != nullptr) _impl_.proto_field_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
void Condition::clear_value() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.value_ != nullptr) _impl_.value_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
Condition::Condition(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Condition_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:optimization_guide.proto.Condition)
}
PROTOBUF_NDEBUG_INLINE Condition::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::optimization_guide::proto::Condition& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Condition* 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_.proto_field_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.proto_field_)
                : nullptr;
  _impl_.value_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.value_)
                : nullptr;
  _impl_.operator_type_ = from._impl_.operator_type_;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Condition_class_data_ =
    Condition::InternalGenerateClassData_(Condition_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(_impl_.proto_field_ != nullptr);
      _impl_.proto_field_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.value_ != nullptr);
      _impl_.value_->Clear();
    }
  }
  _impl_.operator_type_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.ProtoField proto_field = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.proto_field_, this_._impl_.proto_field_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.OperatorType operator_type = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (this_._internal_operator_type() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          2, this_._internal_operator_type(), target);
    }
  }

  // .optimization_guide.proto.Value value = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.value_, this_._impl_.value_->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:optimization_guide.proto.Condition)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // .optimization_guide.proto.ProtoField proto_field = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.proto_field_);
    }
    // .optimization_guide.proto.Value value = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.value_);
    }
    // .optimization_guide.proto.OperatorType operator_type = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (this_._internal_operator_type() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_operator_type());
      }
    }
  }
  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 Condition::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Condition*>(&to_msg);
  auto& from = static_cast<const Condition&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.Condition)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(from._impl_.proto_field_ != nullptr);
      if (_this->_impl_.proto_field_ == nullptr) {
        _this->_impl_.proto_field_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.proto_field_);
      } else {
        _this->_impl_.proto_field_->MergeFrom(*from._impl_.proto_field_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.value_ != nullptr);
      if (_this->_impl_.value_ == nullptr) {
        _this->_impl_.value_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.value_);
      } else {
        _this->_impl_.value_->MergeFrom(*from._impl_.value_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (from._internal_operator_type() != 0) {
        _this->_impl_.operator_type_ = from._impl_.operator_type_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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